summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 05057e68..708b4e12 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -214,6 +214,16 @@ function vm.getClassFields(suri, node, key, pushResult)
pushResult(field)
end
end)
+ if src.value and src.value.type == 'table' then
+ searchFieldSwitch('table', suri, src.value, key, function (field)
+ local fieldKey = guide.getKeyName(field)
+ if not searchedFields[fieldKey]
+ and guide.isSet(field) then
+ hasFounded[fieldKey] = true
+ pushResult(field)
+ end
+ end)
+ end
end
end
-- look into extends(if field not found)