diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-07 15:41:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-07 15:41:59 +0800 |
commit | 7594b2ab0dc01248972f578e0931969d8a6c157e (patch) | |
tree | 6d223ae85b8a3750742ef783352c47c94da40c66 /script-beta/vm/getLibrary.lua | |
parent | b4c327778810b0a34e5abe26508a91ddfffd45e6 (diff) | |
download | lua-language-server-7594b2ab0dc01248972f578e0931969d8a6c157e.zip |
只有常量类型视为明确的定义
Diffstat (limited to 'script-beta/vm/getLibrary.lua')
-rw-r--r-- | script-beta/vm/getLibrary.lua | 2 |
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 |