summaryrefslogtreecommitdiff
path: root/script-beta/vm/getLibrary.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-07 15:41:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-07 15:41:59 +0800
commit7594b2ab0dc01248972f578e0931969d8a6c157e (patch)
tree6d223ae85b8a3750742ef783352c47c94da40c66 /script-beta/vm/getLibrary.lua
parentb4c327778810b0a34e5abe26508a91ddfffd45e6 (diff)
downloadlua-language-server-7594b2ab0dc01248972f578e0931969d8a6c157e.zip
只有常量类型视为明确的定义
Diffstat (limited to 'script-beta/vm/getLibrary.lua')
-rw-r--r--script-beta/vm/getLibrary.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/vm/getLibrary.lua b/script-beta/vm/getLibrary.lua
index a7f0e03a..4ce02024 100644
--- a/script-beta/vm/getLibrary.lua
+++ b/script-beta/vm/getLibrary.lua
@@ -4,7 +4,7 @@ local guide = require 'parser.guide'
local function getLibrary(source)
local defs = vm.getDefs(source)
for _, def in ipairs(defs) do
- if def.library then
+ if def.type == 'library' then
return def
end
end