diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-18 02:39:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-18 02:39:47 +0800 |
commit | 3494b7f1d0e93060cf0826f4f6c1b81d0d5e37a5 (patch) | |
tree | 4187ed3a012a64e9215284a90d89224106e837f4 /script/vm/ref.lua | |
parent | c0b4b0299dc7b7efc667ef7fb0957e079ad8a411 (diff) | |
download | lua-language-server-3494b7f1d0e93060cf0826f4f6c1b81d0d5e37a5.zip |
update
Diffstat (limited to 'script/vm/ref.lua')
-rw-r--r-- | script/vm/ref.lua | 6 |
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() |