summaryrefslogtreecommitdiff
path: root/script/vm/global.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-24 20:17:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-24 20:17:04 +0800
commitb53089f637e5f4e77f2cfd938f254dc983bb5fb4 (patch)
tree838b267e8b442e09861d0e1fffb695f68feec2da /script/vm/global.lua
parent5e41989b246954c44d377c96572046be339fea18 (diff)
downloadlua-language-server-b53089f637e5f4e77f2cfd938f254dc983bb5fb4.zip
supports `private`, `protected` and `public`
#1316
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r--script/vm/global.lua6
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