TokenIndex class

The result of scanning one document: all identifier occurrences (for cursor→symbol mapping) and all recognised declaration sites.

Properties

declarations List<DeclSite>
final
hashCode int
The hash code for this object.
no setterinherited
identifiers List<IdentToken>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findDeclaration(String name, {String? container}) DeclSite?
The declaration named name, optionally within container.
identifierAt(int offset) IdentToken?
The identifier occurrence covering offset, or null.
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

scan(String text) TokenIndex