| Index: pkg/analyzer/test/services/test_utils.dart
|
| diff --git a/pkg/analyzer/test/services/test_utils.dart b/pkg/analyzer/test/services/test_utils.dart
|
| index 2e53cbda3ef2b249a89da4b3d8b532ab1e8ba506..4db82190a40de103333064a1c4e2159b98132541 100644
|
| --- a/pkg/analyzer/test/services/test_utils.dart
|
| +++ b/pkg/analyzer/test/services/test_utils.dart
|
| @@ -17,14 +17,6 @@ import 'package:analyzer/src/generated/parser.dart';
|
| /// Instances of the class [_GatheringErrorListener] implement an error listener
|
| /// that collects all of the errors passed to it for later examination.
|
| class _GatheringErrorListener implements AnalysisErrorListener {
|
| -
|
| - /// The source being parsed.
|
| - String _rawSource;
|
| -
|
| - /// The source being parsed after inserting a marker at the beginning and end
|
| - /// of the range of the most recent error.
|
| - String _markedSource;
|
| -
|
| /// A list containing the errors that were collected.
|
| final List<AnalysisError> _errors = new List<AnalysisError>();
|
|
|
| @@ -32,11 +24,6 @@ class _GatheringErrorListener implements AnalysisErrorListener {
|
| final Map<Source, LineInfo> _lineInfoMap = new Map<Source, LineInfo>();
|
|
|
| void onError(AnalysisError error) {
|
| - if (_rawSource != null) {
|
| - var left = error.offset;
|
| - var right = left + error.length - 1;
|
| - _markedSource = '${_rawSource.substring(0, left)}^${_rawSource.substring(left, right)}^${_rawSource.substring(right)}';
|
| - }
|
| _errors.add(error);
|
| }
|
|
|
|
|