SyntaxErrorInAssetException class Null safety

Exception thrown by a resolver when attempting to resolve a Dart library with syntax errors.

Builders are not expected to catch this exception unless they have special behavior for inputs with syntax errors. This exception has a descriptive toString implementation that the build system will show to users.

Implemented types

Constructors

SyntaxErrorInAssetException(AssetId assetId, List<AnalysisResultWithErrors> filesWithErrors)

Properties

assetId AssetId
The syntactically invalid AssetId that couldn't be resolved.
final
errorToResult Map<AnalysisError, AnalysisResultWithErrors>
A map from syntaxErrors to per-file results
read-only
filesWithErrors List<AnalysisResultWithErrors>
A list analysis error results for files related to the assetId. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
syntaxErrors Iterable<AnalysisError>
The errors reported by the parser when trying to resolve the assetId. [...]
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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