diff options
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r-- | script/vm/global.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index 29474b57..93316901 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -534,6 +534,12 @@ function compileObject(source) end ---@param source parser.object +---@return vm.global? +function vm.getGlobalNode(source) + return source._globalNode or nil +end + +---@param source parser.object local function compileSelf(source) if source.parent.type ~= 'funcargs' then return |