functionreverseLookup

Information

Searches for uses of the given name in either all loaded classes or a given class. Returns a JSON array containing the name and source location for each match.

If exactMatch is true then only names that reference the same element is considered a match, otherwise names that reference elements inside that element are also included. I.e. reverseLookup(A, exactMatch = false) will match both A and A.B, while reverseLookup(A, exactMatch = true) will match A but not A.B.

Inputs

TypeNameDefaultDescription
TypeNamename
TypeNamescope$Code(AllLoadedClasses)
BooleanexactMatchtrue
BooleanprettyPrintfalse

Outputs

TypeNameDefaultDescription
Stringmatches