diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 14:35:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 14:35:56 +0800 |
commit | 67a341f3fa26e5a3140cde3420ef2269a84d478f (patch) | |
tree | 8c747faa574055b7dfe2a22ef3a8176100b90980 /script/vm/node.lua | |
parent | 0b898555f495b80f278fec01d2f3e6ec83b4952c (diff) | |
download | lua-language-server-67a341f3fa26e5a3140cde3420ef2269a84d478f.zip |
cleanup
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 9 |
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 |