summaryrefslogtreecommitdiff
path: root/script/vm/variable.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-12 17:57:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-12 17:57:12 +0800
commit6c92b9a7cc10971e4ec6402fe9c23b1839c58c80 (patch)
treeb4e593ebdececafb57a71962371fe9d9d89030c5 /script/vm/variable.lua
parent5febd3a533762920ab4085fc8d3494fd64b3a6bb (diff)
downloadlua-language-server-6c92b9a7cc10971e4ec6402fe9c23b1839c58c80.zip
stash
Diffstat (limited to 'script/vm/variable.lua')
-rw-r--r--script/vm/variable.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/vm/variable.lua b/script/vm/variable.lua
index 539d8507..150ad18b 100644
--- a/script/vm/variable.lua
+++ b/script/vm/variable.lua
@@ -344,12 +344,14 @@ function vm.getVariableFields(source, includeGets)
end
---@param source parser.object
+---@return boolean
function vm.compileByVariable(source)
local variable = vm.getVariableNode(source)
if not variable then
- return
+ return false
end
vm.setNode(source, variable)
+ return true
end
---@param source parser.object