Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: pkg/analyzer/test/services/test_utils.dart

Issue 727763003: Remove unused fields in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/test_support.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « pkg/analyzer/test/generated/test_support.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698