diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-24 20:17:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-24 20:17:04 +0800 |
commit | b53089f637e5f4e77f2cfd938f254dc983bb5fb4 (patch) | |
tree | 838b267e8b442e09861d0e1fffb695f68feec2da /script/vm/global.lua | |
parent | 5e41989b246954c44d377c96572046be339fea18 (diff) | |
download | lua-language-server-b53089f637e5f4e77f2cfd938f254dc983bb5fb4.zip |
supports `private`, `protected` and `public`
#1316
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 |