summaryrefslogtreecommitdiff
path: root/script/vm/ref.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/ref.lua')
-rw-r--r--script/vm/ref.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/ref.lua b/script/vm/ref.lua
index c97ca5e6..c8b98acf 100644
--- a/script/vm/ref.lua
+++ b/script/vm/ref.lua
@@ -91,21 +91,21 @@ local function searchField(source, pushResult, defMap, fileNotify)
return
end
---@async
- guide.eachSourceType(state.ast, 'getfield', function (src)
+ guide.eachSourceTypes(state.ast, {'getfield', 'setfield'}, function (src)
if src.field and src.field[1] == key then
checkDef(src)
await.delay()
end
end)
---@async
- guide.eachSourceType(state.ast, 'getmethod', function (src)
+ guide.eachSourceTypes(state.ast, {'getmethod', 'setmethod'}, function (src)
if src.method and src.method[1] == key then
checkDef(src)
await.delay()
end
end)
---@async
- guide.eachSourceType(state.ast, 'getindex', function (src)
+ guide.eachSourceTypes(state.ast, {'getindex', 'setindex'}, function (src)
if src.index and src.index.type == 'string' and src.index[1] == key then
checkDef(src)
await.delay()