summaryrefslogtreecommitdiff
path: root/server/src/core/vm.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-30 15:51:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-30 15:51:13 +0800
commitcfbeb125b642836f88052a67826599b2912b2311 (patch)
treed6c66356331e56900a955a31a6e7964f35a100c7 /server/src/core/vm.lua
parentb4ac3e62ed182b5706e172323cd81cf11275818b (diff)
downloadlua-language-server-cfbeb125b642836f88052a67826599b2912b2311.zip
使用source来找field
Diffstat (limited to 'server/src/core/vm.lua')
-rw-r--r--server/src/core/vm.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua
index dbc2df65..df096ee4 100644
--- a/server/src/core/vm.lua
+++ b/server/src/core/vm.lua
@@ -195,7 +195,6 @@ function mt:buildTable(source)
else
if key.type == 'name' then
local field = self:createField(tbl, key[1], key)
- self.results.indexs[#self.results.indexs+1] = field
key.isIndex = true
if value.type == 'list' then
self:setValue(field, value[1], key)
@@ -1435,7 +1434,6 @@ local function compile(ast, lsp, uri)
funcs = {},
calls = {},
strings= {},
- indexs = {},
infos = {},
sources= {},
main = nil,