syntaxErrors property
Iterable<AnalysisError>
syntaxErrors
The errors reported by the parser when trying to resolve the assetId.
This only contains syntax errors since most semantic errors are expected during a build (e.g. due to missing part files that haven't been generated yet).
Implementation
Iterable<AnalysisError> get syntaxErrors {
return filesWithErrors
.expand((result) => result.errors)
.where(_isSyntaxError);
}