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

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

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 9 months 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
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.error; 4 library engine.error;
5 5
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 8
9 /** 9 /**
10 * Instances of the enumeration {@code ErrorType} represent the type of an {@lin k ErrorCode}. 10 * Instances of the enumeration {@code ErrorType} represent the type of an {@lin k ErrorCode}.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 /** 114 /**
115 * Instances of the class {@code AnalysisError} represent an error discovered du ring the analysis of 115 * Instances of the class {@code AnalysisError} represent an error discovered du ring the analysis of
116 * some Dart code. 116 * some Dart code.
117 * @see AnalysisErrorListener 117 * @see AnalysisErrorListener
118 */ 118 */
119 class AnalysisError { 119 class AnalysisError {
120 /** 120 /**
121 * An empty array of errors used when no errors are expected. 121 * An empty array of errors used when no errors are expected.
122 */ 122 */
123 static List<AnalysisError> NO_ERRORS = new List<AnalysisError>.fixedLength(0); 123 static List<AnalysisError> NO_ERRORS = new List<AnalysisError>(0);
124 /** 124 /**
125 * The error code associated with the error. 125 * The error code associated with the error.
126 */ 126 */
127 ErrorCode _errorCode; 127 ErrorCode _errorCode;
128 /** 128 /**
129 * The localized error message. 129 * The localized error message.
130 */ 130 */
131 String _message; 131 String _message;
132 /** 132 /**
133 * The source in which the error occurred, or {@code null} if unknown. 133 * The source in which the error occurred, or {@code null} if unknown.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 StringBuffer builder = new StringBuffer(); 219 StringBuffer builder = new StringBuffer();
220 builder.add((_source != null) ? _source.fullName : "<unknown source>"); 220 builder.add((_source != null) ? _source.fullName : "<unknown source>");
221 builder.add("("); 221 builder.add("(");
222 builder.add(_offset); 222 builder.add(_offset);
223 builder.add(".."); 223 builder.add("..");
224 builder.add(_offset + _length - 1); 224 builder.add(_offset + _length - 1);
225 builder.add("): "); 225 builder.add("): ");
226 builder.add(_message); 226 builder.add(_message);
227 return builder.toString(); 227 return builder.toString();
228 } 228 }
229 } 229 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698