diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 03:41:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 03:41:36 +0800 |
commit | c273b04b9a6fe9601036d4401fb020238a1acc15 (patch) | |
tree | 437d37b0d65b336c15e6700cb4493e19c42a9a4b /script/vm | |
parent | 192656e11474177782202203d68a7db46df4a342 (diff) | |
download | lua-language-server-c273b04b9a6fe9601036d4401fb020238a1acc15.zip |
fix
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/compiler.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index c973ab8e..7fc4f57b 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -373,9 +373,10 @@ function vm.getClassFields(suri, object, key, ref, pushResult) local fieldKey = guide.getKeyName(field) if fieldKey and not searchedFields[fieldKey] then if not searchedFields[fieldKey] - and guide.isSet(field) - and guide.isLiteral(field.value) then - hasFounded[fieldKey] = true + and guide.isSet(field) then + if guide.isLiteral(field.value) then + hasFounded[fieldKey] = true + end pushResult(field, true) end end |