diff options
Diffstat (limited to 'script/method/workspace')
-rw-r--r-- | script/method/workspace/symbol.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/script/method/workspace/symbol.lua b/script/method/workspace/symbol.lua index 70755ee0..11e15296 100644 --- a/script/method/workspace/symbol.lua +++ b/script/method/workspace/symbol.lua @@ -46,28 +46,11 @@ local function convertRange(lines, range) return result end -local function getParentName(source) - local parentValue = source:get 'parent' - if not parentValue then - return - end - local pSource = parentValue:getSource() - if not pSource then - return - end - local name = pSource[1] - if type(name) ~= 'string' or name == '' then - return - end - return name -end - local function collect(results, source, uri, lines) if source:action() ~= 'set' then return end local kind = SymbolKind.Variable - local contain = getParentName(source) local value = source:bindValue() if value and value:getFunction() then kind = SymbolKind.Function @@ -81,7 +64,6 @@ local function collect(results, source, uri, lines) results[#results+1] = { name = source[1], kind = kind, - containerName = contain, location = { uri = uri, range = convertRange(lines, source), |