@@ -26,6 +26,19 @@ simpleSwitch = util.switch()
2626 end
2727 end
2828 end )
29+ : case ' doc.alias.name'
30+ : call (function (source , pushResult )
31+ local global = vm .getGlobal (' type' , source [1 ])
32+ if not global then
33+ return
34+ end
35+ for _ , get in ipairs (global :getGets (guide .getUri (source ))) do
36+ pushResult (get )
37+ end
38+ for _ , set in ipairs (global :getSets (guide .getUri (source ))) do
39+ pushResult (set )
40+ end
41+ end )
2942
3043--- @async
3144local function searchInAllFiles (suri , searcher , notify )
@@ -173,6 +186,11 @@ local nodeSwitch = util.switch()
173186 : call (function (source , pushResult , defMap , fileNotify )
174187 searchField (source , pushResult , defMap , fileNotify )
175188 end )
189+ : case ' doc.field.name'
190+ --- @async
191+ : call (function (source , pushResult , defMap , fileNotify )
192+ searchField (source , pushResult , defMap , fileNotify )
193+ end )
176194 : case ' function'
177195 : case ' doc.type.function'
178196 --- @async
@@ -237,6 +255,9 @@ local function searchByDef(source, pushResult)
237255 or source .type == ' method' then
238256 source = source .parent
239257 end
258+ if source .type == ' doc.field.name' then
259+ source = source .parent
260+ end
240261 defMap [source ] = true
241262 if guide .isSet (source ) then
242263 local defs = vm .getDefs (source )
0 commit comments