diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-05-11 18:10:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-05-11 18:10:56 +0800 |
commit | 34de616ca2a14104782ec54fb33183d7e1d4a947 (patch) | |
tree | 37c302614cd6e592f3688e6dd31e289208d5ffc5 /script/vm/compiler.lua | |
parent | 6fb7e1861af8d287229146c2357787c8e25b0832 (diff) | |
download | lua-language-server-34de616ca2a14104782ec54fb33183d7e1d4a947.zip |
支持根据参数类型选择函数定义
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 11ba07ab..78b62b27 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -550,11 +550,14 @@ local function matchCall(source) or call.node ~= source then return end - local funcs = vm.getMatchedFunctions(source, call.args) local myNode = vm.getNode(source) if not myNode then return end + local funcs = vm.getExactMatchedFunctions(source, call.args) + if not funcs then + return + end local needRemove for n in myNode:eachObject() do if n.type == 'function' |