summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-17 16:48:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-17 16:48:43 +0800
commitcf20156aa05c074d3f8ea2bf12277b4b06dfc8c4 (patch)
treeaf108da2ace7c12f3f21f289f89f3d454c0e1541 /script/vm/compiler.lua
parent1bcadf492c4ccc19d137ffac80b0e9ca181a9ad7 (diff)
downloadlua-language-server-cf20156aa05c074d3f8ea2bf12277b4b06dfc8c4.zip
cleanup
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 65df3a1d..c7d57dcb 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -230,7 +230,7 @@ function vm.getClassFields(suri, object, key, ref, pushResult)
or keyType == 'string' then
typeName = keyType
end
- if typeName then
+ if typeName and field.field.type ~= 'doc.field.name' then
-- ---@field [integer] boolean -> class[1]
local fieldNode = vm.compileNode(field.field)
if vm.isSubType(suri, typeName, fieldNode) then