diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-05 03:54:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-05 03:54:59 +0800 |
commit | 9310038417408a5c2f6c148447d951f248fce2fe (patch) | |
tree | 2b7a6e3c199608627e12144e5c48f6206facfed2 /script/vm/compiler.lua | |
parent | 6eba8cd590beb5ea52d880bdfe01b79e7828e5b4 (diff) | |
download | lua-language-server-9310038417408a5c2f6c148447d951f248fce2fe.zip |
update
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 4dc3edef..fd1d1d5d 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -111,14 +111,14 @@ local searchFieldSwitch = util.switch() or (fn.name == 'number' and type(key) == 'number') or (fn.name == 'integer' and math.tointeger(key)) or (fn.name == 'string' and type(key) == 'string') then - pushResult(field.extends) + pushResult(field) end end end end if fieldKey.type == 'doc.field.name' then if key == nil or fieldKey[1] == key then - pushResult(field.extends) + pushResult(field) end end end @@ -852,6 +852,10 @@ local compilerSwitch = util.switch() : call(function (source) nodeMgr.setNode(source, m.compileNode(source.extends)) end) + : case 'doc.type.field' + : call(function (source) + nodeMgr.setNode(source, m.compileNode(source.extends)) + end) : case 'doc.param' : call(function (source) nodeMgr.setNode(source, m.compileNode(source.extends)) |