Resolver class Null safety

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

Implementers

Constructors

Resolver()

Properties

hashCode int
The hash code for this object.
read-only, inherited
libraries Stream<LibraryElement>
All libraries recursively accessible from the entry point or subsequent calls to libraryFor and isLibrary.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited