diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-27 18:31:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-27 18:31:29 +0800 |
commit | a0f035aa6c1ed4edd7918f5cc47553b836030023 (patch) | |
tree | a2f170d7f0dc74574c40ebe2dd941bd310e0da2c /server-beta | |
parent | f7a5644be02e57eecf3bfaf9143c212cb9bb147a (diff) | |
download | lua-language-server-a0f035aa6c1ed4edd7918f5cc47553b836030023.zip |
暂存
Diffstat (limited to 'server-beta')
-rw-r--r-- | server-beta/src/core/definition.lua | 2 | ||||
-rw-r--r-- | server-beta/src/core/engineer.lua | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/server-beta/src/core/definition.lua b/server-beta/src/core/definition.lua index afd368b1..efee48fb 100644 --- a/server-beta/src/core/definition.lua +++ b/server-beta/src/core/definition.lua @@ -4,7 +4,7 @@ local engineer = require 'core.engineer' return function (ast, text, offset) local results = {} local searcher = engineer(ast) - guide.eachSource(ast.root, offset, function (source) + guide.eachSource(offset, function (source) searcher:eachRef(source, function (src, mode) if src.start == 0 then return diff --git a/server-beta/src/core/engineer.lua b/server-beta/src/core/engineer.lua index 073265db..a61ef8fd 100644 --- a/server-beta/src/core/engineer.lua +++ b/server-beta/src/core/engineer.lua @@ -78,8 +78,6 @@ return function (ast) local self = setmetatable({ step = 0, root = ast.root, - value = ast.value, - vm = ast.vm, }, mt) return self end |