summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-11 23:26:01 +0800
committersumneko <sumneko@hotmail.com>2022-03-11 23:26:01 +0800
commit18ef2f600c3f389e6984e2366e8b0c93d30d5792 (patch)
tree14e7139cc38a08e4e100fdf48cd1fd754ae3233c /script/vm/node.lua
parent0cd41e39f4439a442ef8d7b55e79549f48591034 (diff)
downloadlua-language-server-18ef2f600c3f389e6984e2366e8b0c93d30d5792.zip
update
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index 082a5e87..b8b7917d 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -16,6 +16,9 @@ function m.mergeNode(a, b)
if not b then
return a
end
+ if not a then
+ return b
+ end
if a.type == 'union' then
a:merge(b)
return a