summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-14 00:38:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-14 00:38:53 +0800
commit0691911c68f777559599b997f85c83407b9f3d6b (patch)
tree64e0f111dc4999537c406b13a733249eca3df51f /script/vm/node.lua
parenta02828b3c1d3582d73e44f36bc34e8d86f9b0295 (diff)
downloadlua-language-server-0691911c68f777559599b997f85c83407b9f3d6b.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 6a86350a..e15788a5 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -152,6 +152,7 @@ function mt:setTruthy()
if hasBoolean then
self[#self+1] = vm.declareGlobal('type', 'true')
end
+ return self
end
---@return vm.node
@@ -180,6 +181,7 @@ function mt:setFalsy()
if hasBoolean then
self[#self+1] = vm.declareGlobal('type', 'false')
end
+ return self
end
---@param name string
@@ -200,6 +202,7 @@ function mt:remove(name)
self[c] = nil
end
end
+ return self
end
---@param node vm.node