findTopLevelDeclarations method

Future<FindTopLevelDeclarationsResult> findTopLevelDeclarations(
  1. String? pattern
)

Perform a search for declarations of top-level elements (classes, typedefs, getters, setters, functions and fields) whose name matches the given pattern.

An identifier is returned immediately, and individual results will be returned via the search.results notification as they become available.

Implementation

Future<FindTopLevelDeclarationsResult> findTopLevelDeclarations(
    String? pattern) {
  final Map m = {'pattern': pattern};
  return _call('search.findTopLevelDeclarations', m)
      .then(FindTopLevelDeclarationsResult.parse);
}