ProjectFeatureIndex class
Simple project-level index to register/lookup feature names for paths. This can be seeded once per analysis run if a project-wide scan is needed.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
clear(
) → void - Clear the index.
-
getFeature(
String path) → String? - Get feature for a path if present in the index, otherwise null.
-
register(
String path, String feature) → void - Register a path -> feature mapping explicitly.
-
seedPaths(
Iterable< String> paths) → void - Bulk register a list of paths (will extract features lazily).