summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-08 14:35:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-08 14:35:56 +0800
commit67a341f3fa26e5a3140cde3420ef2269a84d478f (patch)
tree8c747faa574055b7dfe2a22ef3a8176100b90980 /script/vm/node.lua
parent0b898555f495b80f278fec01d2f3e6ec83b4952c (diff)
downloadlua-language-server-67a341f3fa26e5a3140cde3420ef2269a84d478f.zip
cleanup
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index d51c2318..409841fc 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -23,7 +23,14 @@ function m.mergeNode(a, b)
return union(a, b)
end
-function m.setNode(source, node)
+---@param source parser.object
+---@param node vm.node
+---@param cover? boolean
+function m.setNode(source, node, cover)
+ if cover then
+ m.nodeCache[source] = node
+ return
+ end
if not node then
return
end