summaryrefslogtreecommitdiff
path: root/script/vm/getMeta.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 11:46:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 11:46:05 +0800
commit3715635806ae4680a81746d46e3714a4d06b0f5d (patch)
treee155634e77cfcf32bb1a56ec11b8f86a14581bc8 /script/vm/getMeta.lua
parentd559737fc37d2ab99a030dbe33d3190315391859 (diff)
downloadlua-language-server-3715635806ae4680a81746d46e3714a4d06b0f5d.zip
performance optimization
Diffstat (limited to 'script/vm/getMeta.lua')
-rw-r--r--script/vm/getMeta.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/getMeta.lua b/script/vm/getMeta.lua
index b6265dcc..44d1874a 100644
--- a/script/vm/getMeta.lua
+++ b/script/vm/getMeta.lua
@@ -35,10 +35,10 @@ end
function vm.eachMetaValue(source, callback)
vm.eachMeta(source, function (mt)
- for _, src in ipairs(vm.getFields(mt)) do
+ for _, src in ipairs(vm.getDefFields(mt)) do
if vm.getKeyName(src) == '__index' then
if src.value then
- for _, valueSrc in ipairs(vm.getFields(src.value)) do
+ for _, valueSrc in ipairs(vm.getDefFields(src.value)) do
callback(valueSrc)
end
end