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

Side by Side Diff: pkg/analyzer/lib/src/error.dart

Issue 728513002: Remove some (but not all) unused methods 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 library error; 4 library error;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 7
8 import 'generated/error.dart'; 8 import 'generated/error.dart';
9 import 'generated/source.dart';
10 9
11 /// The maximum line length when printing extracted source code when converting 10 /// The maximum line length when printing extracted source code when converting
12 /// an [AnalyzerError] to a string. 11 /// an [AnalyzerError] to a string.
13 final _MAX_ERROR_LINE_LENGTH = 120; 12 final _MAX_ERROR_LINE_LENGTH = 120;
14 13
15 /// An error class that collects multiple [AnalyzerError]s that are emitted 14 /// An error class that collects multiple [AnalyzerError]s that are emitted
16 /// during a single analysis. 15 /// during a single analysis.
17 class AnalyzerErrorGroup implements Exception { 16 class AnalyzerErrorGroup implements Exception {
18 /// The errors in this collection. 17 /// The errors in this collection.
19 List<AnalyzerError> get errors => 18 List<AnalyzerError> get errors =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // 86 //
88 // for (var i = 0; i < errorColumn; i++) builder.write(" "); 87 // for (var i = 0; i < errorColumn; i++) builder.write(" ");
89 // for (var i = 0; i < errorLength; i++) builder.write("^"); 88 // for (var i = 0; i < errorLength; i++) builder.write("^");
90 builder.writeln(); 89 builder.writeln();
91 90
92 return builder.toString(); 91 return builder.toString();
93 } 92 }
94 } 93 }
95 94
96 // A content receiver that collects all the content into a string. 95 // A content receiver that collects all the content into a string.
97 class _ContentReceiver implements Source_ContentReceiver { 96 //class _ContentReceiver implements Source_ContentReceiver {
Brian Wilkerson 2014/11/13 16:51:56 We should be able to safely delete this class (not
scheglov 2014/11/13 17:07:10 Done.
98 final _buffer = new StringBuffer(); 97 // final _buffer = new StringBuffer();
99 98 //
100 String get result => _buffer.toString(); 99 // String get result => _buffer.toString();
101 100 //
102 void accept(String contents, _) => 101 // void accept(String contents, _) =>
103 _buffer.write(contents.substring(0, contents.length)); 102 // _buffer.write(contents.substring(0, contents.length));
104 } 103 //}
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698