diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 22:23:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 22:23:32 +0800 |
commit | 75509a89ecc69c683c015a97c9844746c81e6057 (patch) | |
tree | 9d2b0784a10fbda18784c3e939b6b65987569ff3 /script/vm/compiler.lua | |
parent | 7df9f807faf27e3faea33842ed599963e00cdb0b (diff) | |
download | lua-language-server-75509a89ecc69c683c015a97c9844746c81e6057.zip |
cheanup
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 531a0cd2..1d79cc1b 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -60,6 +60,7 @@ local searchFieldSwitch = util.switch() end end) : case 'local' + : case 'self' : call(function (suri, node, key, pushResult) local fields if key then @@ -716,7 +717,7 @@ local function compileLocalBase(source) hasMarkDoc = bindDocs(source) end local hasMarkParam - if source.dummy and not hasMarkDoc then + if source.type == 'self' and not hasMarkDoc then hasMarkParam = true vm.setNode(source, vm.compileNode(source.method.node)) end @@ -834,6 +835,7 @@ local compilerSwitch = util.switch() end end) : case 'local' + : case 'self' : call(function (source) local baseNode = compileLocalBase(source) vm.setNode(source, baseNode, true) |