SearchDomain class
The search domain contains commands related to searches that can be performed against the code base.
Constructors
- SearchDomain(AnalysisServer server)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
finalinherited
-
onResults
→ Stream<
SearchResults> -
Reports some or all of the results of performing a requested search.
Unlike other notifications, this notification contains search results that
should be added to any previously received search results associated with
the same search id.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → AnalysisServer
-
finalinherited
Methods
-
findElementReferences(
String? file, int? offset, bool? includePotential) → Future< FindElementReferencesResult> - Perform a search for references to the element defined or referenced at the given offset in the given file.
-
findMemberDeclarations(
String? name) → Future< FindMemberDeclarationsResult> - Perform a search for declarations of members whose name is equal to the given name.
-
findMemberReferences(
String? name) → Future< FindMemberReferencesResult> - Perform a search for references to members whose name is equal to the given name. This search does not check to see that there is a member defined with the given name, so it is able to find references to undefined members as well.
-
findTopLevelDeclarations(
String? pattern) → Future< FindTopLevelDeclarationsResult> - Perform a search for declarations of top-level elements (classes, typedefs, getters, setters, functions and fields) whose name matches the given pattern.
-
getElementDeclarations(
{String? file, String? pattern, int? maxResults}) → Future< ElementDeclarationsResult> - Return top-level and class member declarations.
-
getTypeHierarchy(
String? file, int? offset, {bool? superOnly}) → Future< TypeHierarchyResult> - Return the type hierarchy of the class declared or referenced at the given location.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited