.OpenModelica.Scripting.reverseLookup

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.

Interface

function reverseLookup
  input TypeName name;
  input TypeName scope = $Code(AllLoadedClasses);
  input Boolean exactMatch = true;
  input Boolean prettyPrint = false;
  output String matches;
end reverseLookup;

Generated at 2026-07-05T18:59:05Z by OpenModelicaOpenModelica 1.27.0 using GenerateDoc.mos