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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/error.dart

Issue 14161021: Generate unique names less aggressively. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 import 'ast.dart' show ASTNode; 8 import 'ast.dart' show ASTNode;
9 import 'scanner.dart' show Token; 9 import 'scanner.dart' show Token;
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 * @param arguments the arguments to the error, used to compose the error mess age 116 * @param arguments the arguments to the error, used to compose the error mess age
117 */ 117 */
118 void reportError2(ErrorCode errorCode, Token token, List<Object> arguments) { 118 void reportError2(ErrorCode errorCode, Token token, List<Object> arguments) {
119 _errorListener.onError(new AnalysisError.con2(_source, token.offset, token.l ength, errorCode, [arguments])); 119 _errorListener.onError(new AnalysisError.con2(_source, token.offset, token.l ength, errorCode, [arguments]));
120 } 120 }
121 /** 121 /**
122 * Set the source to be used when reporting errors. Setting the source to {@co de null} will cause 122 * Set the source to be used when reporting errors. Setting the source to {@co de null} will cause
123 * the default source to be used. 123 * the default source to be used.
124 * @param source the source to be used when reporting errors 124 * @param source the source to be used when reporting errors
125 */ 125 */
126 void set source(Source source7) { 126 void set source(Source source2) {
127 this._source = source7 == null ? _defaultSource : source7; 127 this._source = source2 == null ? _defaultSource : source2;
128 } 128 }
129 } 129 }
130 /** 130 /**
131 * Instances of the class {@code AnalysisError} represent an error discovered du ring the analysis of 131 * Instances of the class {@code AnalysisError} represent an error discovered du ring the analysis of
132 * some Dart code. 132 * some Dart code.
133 * @see AnalysisErrorListener 133 * @see AnalysisErrorListener
134 * @coverage dart.engine.error 134 * @coverage dart.engine.error
135 */ 135 */
136 class AnalysisError { 136 class AnalysisError {
137 /** 137 /**
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 * compilation error. 181 * compilation error.
182 */ 182 */
183 int _length = 0; 183 int _length = 0;
184 /** 184 /**
185 * Initialize a newly created analysis error for the specified source. The err or has no location 185 * Initialize a newly created analysis error for the specified source. The err or has no location
186 * information. 186 * information.
187 * @param source the source for which the exception occurred 187 * @param source the source for which the exception occurred
188 * @param errorCode the error code to be associated with this error 188 * @param errorCode the error code to be associated with this error
189 * @param arguments the arguments used to build the error message 189 * @param arguments the arguments used to build the error message
190 */ 190 */
191 AnalysisError.con1(Source source2, ErrorCode errorCode3, List<Object> argument s) { 191 AnalysisError.con1(Source source2, ErrorCode errorCode2, List<Object> argument s) {
192 _jtd_constructor_131_impl(source2, errorCode3, arguments); 192 _jtd_constructor_131_impl(source2, errorCode2, arguments);
193 } 193 }
194 _jtd_constructor_131_impl(Source source2, ErrorCode errorCode3, List<Object> a rguments) { 194 _jtd_constructor_131_impl(Source source2, ErrorCode errorCode2, List<Object> a rguments) {
195 this._source = source2; 195 this._source = source2;
196 this._errorCode = errorCode3; 196 this._errorCode = errorCode2;
197 this._message = JavaString.format(errorCode3.message, arguments); 197 this._message = JavaString.format(errorCode2.message, arguments);
198 } 198 }
199 /** 199 /**
200 * Initialize a newly created analysis error for the specified source at the g iven location. 200 * Initialize a newly created analysis error for the specified source at the g iven location.
201 * @param source the source for which the exception occurred 201 * @param source the source for which the exception occurred
202 * @param offset the offset of the location of the error 202 * @param offset the offset of the location of the error
203 * @param length the length of the location of the error 203 * @param length the length of the location of the error
204 * @param errorCode the error code to be associated with this error 204 * @param errorCode the error code to be associated with this error
205 * @param arguments the arguments used to build the error message 205 * @param arguments the arguments used to build the error message
206 */ 206 */
207 AnalysisError.con2(Source source3, int offset2, int length11, ErrorCode errorC ode4, List<Object> arguments) { 207 AnalysisError.con2(Source source2, int offset2, int length2, ErrorCode errorCo de2, List<Object> arguments) {
208 _jtd_constructor_132_impl(source3, offset2, length11, errorCode4, arguments) ; 208 _jtd_constructor_132_impl(source2, offset2, length2, errorCode2, arguments);
209 } 209 }
210 _jtd_constructor_132_impl(Source source3, int offset2, int length11, ErrorCode errorCode4, List<Object> arguments) { 210 _jtd_constructor_132_impl(Source source2, int offset2, int length2, ErrorCode errorCode2, List<Object> arguments) {
211 this._source = source3; 211 this._source = source2;
212 this._offset = offset2; 212 this._offset = offset2;
213 this._length = length11; 213 this._length = length2;
214 this._errorCode = errorCode4; 214 this._errorCode = errorCode2;
215 this._message = JavaString.format(errorCode4.message, arguments); 215 this._message = JavaString.format(errorCode2.message, arguments);
216 } 216 }
217 /** 217 /**
218 * Return the error code associated with the error. 218 * Return the error code associated with the error.
219 * @return the error code associated with the error 219 * @return the error code associated with the error
220 */ 220 */
221 ErrorCode get errorCode => _errorCode; 221 ErrorCode get errorCode => _errorCode;
222 /** 222 /**
223 * Return the number of characters from the offset to the end of the source wh ich encompasses the 223 * Return the number of characters from the offset to the end of the source wh ich encompasses the
224 * compilation error. 224 * compilation error.
225 * @return the length of the error location 225 * @return the length of the error location
(...skipping 18 matching lines...) Expand all
244 int get hashCode { 244 int get hashCode {
245 int hashCode = _offset; 245 int hashCode = _offset;
246 hashCode ^= (_message != null) ? _message.hashCode : 0; 246 hashCode ^= (_message != null) ? _message.hashCode : 0;
247 hashCode ^= (_source != null) ? _source.hashCode : 0; 247 hashCode ^= (_source != null) ? _source.hashCode : 0;
248 return hashCode; 248 return hashCode;
249 } 249 }
250 /** 250 /**
251 * Set the source in which the error occurred to the given source. 251 * Set the source in which the error occurred to the given source.
252 * @param source the source in which the error occurred 252 * @param source the source in which the error occurred
253 */ 253 */
254 void set source(Source source4) { 254 void set source(Source source2) {
255 this._source = source4; 255 this._source = source2;
256 } 256 }
257 String toString() { 257 String toString() {
258 JavaStringBuilder builder = new JavaStringBuilder(); 258 JavaStringBuilder builder = new JavaStringBuilder();
259 builder.append((_source != null) ? _source.fullName : "<unknown source>"); 259 builder.append((_source != null) ? _source.fullName : "<unknown source>");
260 builder.append("("); 260 builder.append("(");
261 builder.append(_offset); 261 builder.append(_offset);
262 builder.append(".."); 262 builder.append("..");
263 builder.append(_offset + _length - 1); 263 builder.append(_offset + _length - 1);
264 builder.append("): "); 264 builder.append("): ");
265 builder.append(_message); 265 builder.append(_message);
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { 1578 StaticTypeWarningCode(this.__name, this.__ordinal, String message) {
1579 this._message = message; 1579 this._message = message;
1580 } 1580 }
1581 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 1581 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
1582 String get message => _message; 1582 String get message => _message;
1583 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 1583 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
1584 bool needsRecompilation() => true; 1584 bool needsRecompilation() => true;
1585 int compareTo(StaticTypeWarningCode other) => __ordinal - other.__ordinal; 1585 int compareTo(StaticTypeWarningCode other) => __ordinal - other.__ordinal;
1586 String toString() => __name; 1586 String toString() => __name;
1587 } 1587 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698