| Index: pkg/analyzer/lib/src/generated/error.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
|
| index 70123b4ff092d57bad0af9a804452b6fb29ef18b..804608e828cdef69d3f3275619f968ee9170786f 100644
|
| --- a/pkg/analyzer/lib/src/generated/error.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error.dart
|
| @@ -115,6 +115,21 @@ class AnalysisErrorWithProperties extends AnalysisError {
|
| }
|
|
|
| /**
|
| + * Instances of the class `BooleanErrorListener` implement a listener that keeps track of
|
| + * whether an error has been reported to it.
|
| + */
|
| +class BooleanErrorListener implements AnalysisErrorListener {
|
| + /**
|
| + * A flag indicating whether an error has been reported to this listener.
|
| + */
|
| + bool errorReported = false;
|
| +
|
| + void onError(AnalysisError error) {
|
| + errorReported = true;
|
| + }
|
| +}
|
| +
|
| +/**
|
| * Instances of the class `ErrorReporter` wrap an error listener with utility methods used to
|
| * create the errors being reported.
|
| *
|
|
|