summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 17:38:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 17:38:38 +0800
commit61d9a99cb32487defbf72486d079e9c7324e4e51 (patch)
treedc1f81dfb50ac5e0254ededb101611f8bf48c6ac /script/vm/node.lua
parent5d46db21e707be3b23655ef7fc1dfc41c36464a2 (diff)
downloadlua-language-server-61d9a99cb32487defbf72486d079e9c7324e4e51.zip
update
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index fce8c642..2128edb2 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -11,7 +11,7 @@ vm.nodeCache = {}
---@class vm.node
---@field [integer] vm.node.object
----@field [vm.object] true
+---@field [vm.node.object] true
local mt = {}
mt.__index = mt
mt.id = 0
@@ -38,6 +38,7 @@ function mt:merge(node)
end
end
else
+ ---@cast node -vm.node
if not self[node] then
self[node] = true
self[#self+1] = node
@@ -287,6 +288,7 @@ function mt:removeNode(node)
self:remove 'false'
end
else
+ ---@cast c -vm.global
self:removeObject(c)
end
end