SyntaxErrorInAssetException class
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
no setter
-
filesWithErrors
→ List<
AnalysisResultWithErrors> -
A list analysis error results for files related to the assetId.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
syntaxErrors
→ Iterable<
AnalysisError> -
The errors reported by the parser when trying to resolve the assetId.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited