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 6b4d93efa9fd29bb73c54fd50c96a0b787efdb32..19b4409889b9972c7fa153f5df5b833f17718c04 100644 |
--- a/pkg/analyzer/lib/src/generated/error.dart |
+++ b/pkg/analyzer/lib/src/generated/error.dart |
@@ -6,6 +6,8 @@ library engine.error; |
import 'dart:collection'; |
+import 'package:source_span/source_span.dart'; |
+ |
import 'ast.dart' show AstNode; |
import 'element.dart'; |
import 'java_core.dart'; |
@@ -2663,6 +2665,16 @@ class ErrorReporter { |
} |
/** |
+ * Report an error with the given [errorCode] and [arguments]. The location of |
+ * the error is specified by the given [span]. |
+ */ |
+ void reportErrorForSpan(ErrorCode errorCode, SourceSpan span, |
+ [List<Object> arguments]) { |
+ _errorListener.onError(new AnalysisError( |
+ _source, span.start.offset, span.length, errorCode, arguments)); |
scheglov
2015/10/21 23:47:21
I'd use reportErrorForOffset() as other reportErro
pquitslund
2015/10/21 23:56:57
Done.
|
+ } |
+ |
+ /** |
* Report an error with the given [errorCode] and [arguments]. The [token] is |
* used to compute the location of the error. |
*/ |