diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-29 22:29:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-29 22:29:33 +0800 |
commit | ed484ba5809ef58eccf04cba4861c54f1925f794 (patch) | |
tree | 7ac1e09f4a73ae27749ff588514297fdfacdc446 /script/vm/compiler.lua | |
parent | 529856733fdfdf87f3aec704647798a5b611f49d (diff) | |
download | lua-language-server-ed484ba5809ef58eccf04cba4861c54f1925f794.zip |
update
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 427b927f..2464fe53 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -200,7 +200,7 @@ local function getObjectSign(source) return source._sign end -local function getReturnOfFunction(func, index) +function m.getReturnOfFunction(func, index) if func.type == 'function' then if not func._returns then func._returns = {} @@ -276,7 +276,7 @@ local function getReturn(func, index, args) if cnode.type == 'function' or cnode.type == 'doc.type.function' then hasCalled = true - local returnNode = getReturnOfFunction(cnode, index) + local returnNode = m.getReturnOfFunction(cnode, index) if returnNode and returnNode.type == 'generic' then returnNode = returnNode:resolve(args) end |