summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-05-11 18:10:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-05-11 18:10:56 +0800
commit34de616ca2a14104782ec54fb33183d7e1d4a947 (patch)
tree37c302614cd6e592f3688e6dd31e289208d5ffc5 /script/vm/node.lua
parent6fb7e1861af8d287229146c2357787c8e25b0832 (diff)
downloadlua-language-server-34de616ca2a14104782ec54fb33183d7e1d4a947.zip
支持根据参数类型选择函数定义
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index bc1dfcb1..fae79cbc 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -16,6 +16,7 @@ vm.nodeCache = setmetatable({}, util.MODE_K)
---@field [vm.node.object] true
---@field fields? table<vm.node|string, vm.node>
---@field undefinedGlobal boolean?
+---@field lastInfer? vm.infer
local mt = {}
mt.__index = mt
mt.id = 0
@@ -31,6 +32,7 @@ function mt:merge(node)
if not node then
return self
end
+ self.lastInfer = nil
if node.type == 'vm.node' then
if node == self then
return self