Resolver class abstract

Standard interface for resolving Dart source code as part of a build.

Implementers

Constructors

Resolver()

Properties

hashCode int
The hash code for this object.
no setterinherited
libraries Stream<LibraryElement>
All libraries resolved by this resolver.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

assetIdForElement(Element element) Future<AssetId>
Returns the AssetId of the Dart library or part declaring element.
astNodeFor(Element element, {bool resolve = false}) Future<AstNode?>
Returns the parsed AstNode for Element.
compilationUnitFor(AssetId assetId, {bool allowSyntaxErrors = false}) Future<CompilationUnit>
Returns a parsed AST structor representing the file defined in assetId.
findLibraryByName(String libraryName) Future<LibraryElement?>
Returns the first resolved library identified by libraryName.
isLibrary(AssetId assetId) Future<bool>
Returns whether assetId represents an Dart library file.
libraryFor(AssetId assetId, {bool allowSyntaxErrors = false}) Future<LibraryElement>
Returns a resolved library representing the file defined in assetId.
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