ReleasableResolver class Null safety

A resolver that should be manually released at the end of a build step.

Implemented types

Constructors

ReleasableResolver()

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, inherited
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.
inherited
astNodeFor(Element element, {bool resolve = false}) Future<AstNode?>
Returns the parsed AstNode for Element.
inherited
compilationUnitFor(AssetId assetId, {bool allowSyntaxErrors = false}) Future<CompilationUnit>
Returns a parsed AST structor representing the file defined in assetId.
inherited
findLibraryByName(String libraryName) Future<LibraryElement?>
Returns the first resolved library identified by libraryName.
inherited
isLibrary(AssetId assetId) Future<bool>
Returns whether assetId represents an Dart library file.
inherited
libraryFor(AssetId assetId, {bool allowSyntaxErrors = false}) Future<LibraryElement>
Returns a resolved library representing the file defined in assetId.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
release() → void
Release this resolver so it can be updated by following build steps.
toString() String
A string representation of this object.
inherited

Operators

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