findElementReferences method

Future<FindElementReferencesResult> findElementReferences(
  1. String? file,
  2. int? offset,
  3. bool? includePotential
)

Perform a search for references to the element defined or referenced at the given offset in the given file.

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

Implementation

Future<FindElementReferencesResult> findElementReferences(
    String? file, int? offset, bool? includePotential) {
  final Map m = {
    'file': file,
    'offset': offset,
    'includePotential': includePotential
  };
  return _call('search.findElementReferences', m)
      .then(FindElementReferencesResult.parse);
}