DartFileIndexer class abstract final

Builds the DartFileIndex of a Dart file by parsing it, without resolving any type.

Parse errors do not stop it: the index holds what could be parsed, and DartFileIndexer.parse also returns the errors.

Doc comments and annotations are not uses of names: the index keeps annotations as text and skips comments.

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

errorsOf(String content) → List<String>
The parse errors of content, each with its offset.
index(String path, String content) → DartFileIndex
The index of content, the file at path relative to the project root.
parse(String path, String content) → ({List<String> errors, DartFileIndex index})
The index of content, the file at path, and its parse errors, each with its offset.