diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-10 16:10:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-10 16:10:56 +0800 |
commit | e81e3400f29bf310e05afb9305a2cfa1c3271873 (patch) | |
tree | 263fd3cc9c000e04045b293db2256ab7213a57c1 /script/core | |
parent | f335c413a409c1f03e379d7d5e1d5b377d378a0f (diff) | |
download | lua-language-server-e81e3400f29bf310e05afb9305a2cfa1c3271873.zip |
update
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/definition.lua | 11 | ||||
-rw-r--r-- | script/core/infer.lua | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/script/core/definition.lua b/script/core/definition.lua index 6c6b3df3..11223187 100644 --- a/script/core/definition.lua +++ b/script/core/definition.lua @@ -1,4 +1,3 @@ -local searcher = require 'core.searcher' local workspace = require 'workspace' local files = require 'files' local vm = require 'vm' @@ -132,21 +131,11 @@ return function (uri, offset) end local defs = vm.getAllDefs(source) - local values = {} - for _, src in ipairs(defs) do - local value = searcher.getObjectValue(src) - if value and value ~= src and guide.isLiteral(value) then - values[value] = true - end - end for _, src in ipairs(defs) do if src.dummy then goto CONTINUE end - if values[src] then - goto CONTINUE - end local root = guide.getRoot(src) if not root then goto CONTINUE diff --git a/script/core/infer.lua b/script/core/infer.lua index 691424a2..ab5e2180 100644 --- a/script/core/infer.lua +++ b/script/core/infer.lua @@ -1,4 +1,3 @@ -local searcher = require 'core.searcher' local config = require 'config' local util = require 'utility' local vm = require "vm.vm" |