getTopLevelDeclarations method
Returns the mapping from a library (that is available to this context) to a top-level declaration that is exported (not necessary declared) by this library, and has the requested base name.
For getters and setters the corresponding top-level variable is returned.
Implementation
Future<Map<LibraryElement, Element>> getTopLevelDeclarations(
String baseName,
) async {
return await _context.dartFixContext!.getTopLevelDeclarations(baseName);
}