summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
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