From 7cc24573d94b343a23ed2e0f9c00e4840dbbdd35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 21 Jul 2020 16:19:50 +0800 Subject: =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E7=9A=84=E5=AE=9E=E7=8E=B0=E4=B8=8D?= =?UTF-8?q?=E5=A4=AA=E5=A5=BD=E8=AE=A1=E7=AE=97parent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/method/workspace/symbol.lua | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'script/method/workspace') 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), -- cgit v1.2.3