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

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

Issue 200583002: Analyzer snapshot with disabled 'this.field' generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/html.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.error; 8 library engine.error;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 27 matching lines...) Expand all
38 /** 38 /**
39 * The severity representing an error. 39 * The severity representing an error.
40 */ 40 */
41 static final ErrorSeverity ERROR = new ErrorSeverity('ERROR', 3, "E", "error") ; 41 static final ErrorSeverity ERROR = new ErrorSeverity('ERROR', 3, "E", "error") ;
42 42
43 static final List<ErrorSeverity> values = [NONE, INFO, WARNING, ERROR]; 43 static final List<ErrorSeverity> values = [NONE, INFO, WARNING, ERROR];
44 44
45 /** 45 /**
46 * The name of the severity used when producing machine output. 46 * The name of the severity used when producing machine output.
47 */ 47 */
48 final String machineCode; 48 String machineCode;
49 49
50 /** 50 /**
51 * The name of the severity used when producing readable output. 51 * The name of the severity used when producing readable output.
52 */ 52 */
53 final String displayName; 53 String displayName;
54 54
55 /** 55 /**
56 * Initialize a newly created severity with the given names. 56 * Initialize a newly created severity with the given names.
57 * 57 *
58 * @param machineCode the name of the severity used when producing machine out put 58 * @param machineCode the name of the severity used when producing machine out put
59 * @param displayName the name of the severity used when producing readable ou tput 59 * @param displayName the name of the severity used when producing readable ou tput
60 */ 60 */
61 ErrorSeverity(String name, int ordinal, this.machineCode, this.displayName) : super(name, ordinal); 61 ErrorSeverity(String name, int ordinal, String machineCode, String displayName ) : super(name, ordinal) {
62 this.machineCode = machineCode;
63 this.displayName = displayName;
64 }
62 65
63 /** 66 /**
64 * Return the severity constant that represents the greatest severity. 67 * Return the severity constant that represents the greatest severity.
65 * 68 *
66 * @param severity the severity being compared against 69 * @param severity the severity being compared against
67 * @return the most sever of this or the given severity 70 * @return the most sever of this or the given severity
68 */ 71 */
69 ErrorSeverity max(ErrorSeverity severity) => this.ordinal >= severity.ordinal ? this : severity; 72 ErrorSeverity max(ErrorSeverity severity) => this.ordinal >= severity.ordinal ? this : severity;
70 } 73 }
71 74
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 if (errorSeverity1 == errorSeverity2) { 372 if (errorSeverity1 == errorSeverity2) {
370 return errorType1.compareTo(errorType2); 373 return errorType1.compareTo(errorType2);
371 } else { 374 } else {
372 return errorSeverity2.compareTo(errorSeverity1); 375 return errorSeverity2.compareTo(errorSeverity1);
373 } 376 }
374 }; 377 };
375 378
376 /** 379 /**
377 * The error code associated with the error. 380 * The error code associated with the error.
378 */ 381 */
379 final ErrorCode errorCode; 382 ErrorCode errorCode;
380 383
381 /** 384 /**
382 * The localized error message. 385 * The localized error message.
383 */ 386 */
384 String _message; 387 String _message;
385 388
386 /** 389 /**
387 * The correction to be displayed for this error, or `null` if there is no cor rection 390 * The correction to be displayed for this error, or `null` if there is no cor rection
388 * information for this error. 391 * information for this error.
389 */ 392 */
(...skipping 22 matching lines...) Expand all
412 bool isStaticOnly = false; 415 bool isStaticOnly = false;
413 416
414 /** 417 /**
415 * Initialize a newly created analysis error for the specified source. The err or has no location 418 * Initialize a newly created analysis error for the specified source. The err or has no location
416 * information. 419 * information.
417 * 420 *
418 * @param source the source for which the exception occurred 421 * @param source the source for which the exception occurred
419 * @param errorCode the error code to be associated with this error 422 * @param errorCode the error code to be associated with this error
420 * @param arguments the arguments used to build the error message 423 * @param arguments the arguments used to build the error message
421 */ 424 */
422 AnalysisError.con1(this.source, this.errorCode, List<Object> arguments) { 425 AnalysisError.con1(Source source, ErrorCode errorCode, List<Object> arguments) {
426 this.source = source;
427 this.errorCode = errorCode;
423 this._message = JavaString.format(errorCode.message, arguments); 428 this._message = JavaString.format(errorCode.message, arguments);
424 } 429 }
425 430
426 /** 431 /**
427 * Initialize a newly created analysis error for the specified source at the g iven location. 432 * Initialize a newly created analysis error for the specified source at the g iven location.
428 * 433 *
429 * @param source the source for which the exception occurred 434 * @param source the source for which the exception occurred
430 * @param offset the offset of the location of the error 435 * @param offset the offset of the location of the error
431 * @param length the length of the location of the error 436 * @param length the length of the location of the error
432 * @param errorCode the error code to be associated with this error 437 * @param errorCode the error code to be associated with this error
433 * @param arguments the arguments used to build the error message 438 * @param arguments the arguments used to build the error message
434 */ 439 */
435 AnalysisError.con2(this.source, int offset, int length, this.errorCode, List<O bject> arguments) { 440 AnalysisError.con2(Source source, int offset, int length, ErrorCode errorCode, List<Object> arguments) {
441 this.source = source;
436 this._offset = offset; 442 this._offset = offset;
437 this._length = length; 443 this._length = length;
444 this.errorCode = errorCode;
438 this._message = JavaString.format(errorCode.message, arguments); 445 this._message = JavaString.format(errorCode.message, arguments);
439 String correctionTemplate = errorCode.correction; 446 String correctionTemplate = errorCode.correction;
440 if (correctionTemplate != null) { 447 if (correctionTemplate != null) {
441 this._correction = JavaString.format(correctionTemplate, arguments); 448 this._correction = JavaString.format(correctionTemplate, arguments);
442 } 449 }
443 } 450 }
444 451
445 @override 452 @override
446 bool operator ==(Object obj) { 453 bool operator ==(Object obj) {
447 if (identical(obj, this)) { 454 if (identical(obj, this)) {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 UNDEFINED_SETTER, 813 UNDEFINED_SETTER,
807 UNNECESSARY_CAST, 814 UNNECESSARY_CAST,
808 UNNECESSARY_TYPE_CHECK_FALSE, 815 UNNECESSARY_TYPE_CHECK_FALSE,
809 UNNECESSARY_TYPE_CHECK_TRUE, 816 UNNECESSARY_TYPE_CHECK_TRUE,
810 UNUSED_IMPORT, 817 UNUSED_IMPORT,
811 USE_OF_VOID_RESULT]; 818 USE_OF_VOID_RESULT];
812 819
813 /** 820 /**
814 * The template used to create the message to be displayed for this error. 821 * The template used to create the message to be displayed for this error.
815 */ 822 */
816 final String message; 823 String message;
817 824
818 /** 825 /**
819 * The template used to create the correction to be displayed for this error, or `null` if 826 * The template used to create the correction to be displayed for this error, or `null` if
820 * there is no correction information for this error. 827 * there is no correction information for this error.
821 */ 828 */
822 String correction3; 829 String correction3;
823 830
824 /** 831 /**
825 * Initialize a newly created error code to have the given message. 832 * Initialize a newly created error code to have the given message.
826 * 833 *
827 * @param message the message template used to create the message to be displa yed for the error 834 * @param message the message template used to create the message to be displa yed for the error
828 */ 835 */
829 HintCode.con1(String name, int ordinal, this.message) : super(name, ordinal); 836 HintCode.con1(String name, int ordinal, String message) : super(name, ordinal) {
837 this.message = message;
838 }
830 839
831 /** 840 /**
832 * Initialize a newly created error code to have the given message and correct ion. 841 * Initialize a newly created error code to have the given message and correct ion.
833 * 842 *
834 * @param message the template used to create the message to be displayed for the error 843 * @param message the template used to create the message to be displayed for the error
835 * @param correction the template used to create the correction to be displaye d for the error 844 * @param correction the template used to create the correction to be displaye d for the error
836 */ 845 */
837 HintCode.con2(String name, int ordinal, this.message, String correction) : sup er(name, ordinal) { 846 HintCode.con2(String name, int ordinal, String message, String correction) : s uper(name, ordinal) {
847 this.message = message;
838 this.correction3 = correction; 848 this.correction3 = correction;
839 } 849 }
840 850
841 @override 851 @override
842 String get correction => correction3; 852 String get correction => correction3;
843 853
844 @override 854 @override
845 ErrorSeverity get errorSeverity => ErrorType.HINT.severity; 855 ErrorSeverity get errorSeverity => ErrorType.HINT.severity;
846 856
847 @override 857 @override
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 COMPILE_TIME_ERROR, 954 COMPILE_TIME_ERROR,
945 PUB_SUGGESTION, 955 PUB_SUGGESTION,
946 STATIC_WARNING, 956 STATIC_WARNING,
947 STATIC_TYPE_WARNING, 957 STATIC_TYPE_WARNING,
948 SYNTACTIC_ERROR, 958 SYNTACTIC_ERROR,
949 ANGULAR]; 959 ANGULAR];
950 960
951 /** 961 /**
952 * The severity of this type of error. 962 * The severity of this type of error.
953 */ 963 */
954 final ErrorSeverity severity; 964 ErrorSeverity severity;
955 965
956 /** 966 /**
957 * Initialize a newly created error type to have the given severity. 967 * Initialize a newly created error type to have the given severity.
958 * 968 *
959 * @param severity the severity of this type of error 969 * @param severity the severity of this type of error
960 */ 970 */
961 ErrorType(String name, int ordinal, this.severity) : super(name, ordinal); 971 ErrorType(String name, int ordinal, ErrorSeverity severity) : super(name, ordi nal) {
972 this.severity = severity;
973 }
962 974
963 String get displayName => name.toLowerCase().replaceAll('_', ' '); 975 String get displayName => name.toLowerCase().replaceAll('_', ' ');
964 } 976 }
965 977
966 /** 978 /**
967 * The enumeration `CompileTimeErrorCode` defines the error codes used for compi le time 979 * The enumeration `CompileTimeErrorCode` defines the error codes used for compi le time
968 * errors. The convention for this class is for the name of the error code to in dicate the problem 980 * errors. The convention for this class is for the name of the error code to in dicate the problem
969 * that caused the error to be generated and for the error message to explain wh at is wrong and, 981 * that caused the error to be generated and for the error message to explain wh at is wrong and,
970 * when appropriate, how the problem can be corrected. 982 * when appropriate, how the problem can be corrected.
971 */ 983 */
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 UNDEFINED_NAMED_PARAMETER, 2279 UNDEFINED_NAMED_PARAMETER,
2268 URI_DOES_NOT_EXIST, 2280 URI_DOES_NOT_EXIST,
2269 URI_WITH_INTERPOLATION, 2281 URI_WITH_INTERPOLATION,
2270 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, 2282 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR,
2271 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS, 2283 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS,
2272 WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER]; 2284 WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER];
2273 2285
2274 /** 2286 /**
2275 * The template used to create the message to be displayed for this error. 2287 * The template used to create the message to be displayed for this error.
2276 */ 2288 */
2277 final String message; 2289 String message;
2278 2290
2279 /** 2291 /**
2280 * The template used to create the correction to be displayed for this error, or `null` if 2292 * The template used to create the correction to be displayed for this error, or `null` if
2281 * there is no correction information for this error. 2293 * there is no correction information for this error.
2282 */ 2294 */
2283 String correction2; 2295 String correction2;
2284 2296
2285 /** 2297 /**
2286 * Initialize a newly created error code to have the given message. 2298 * Initialize a newly created error code to have the given message.
2287 * 2299 *
2288 * @param message the message template used to create the message to be displa yed for the error 2300 * @param message the message template used to create the message to be displa yed for the error
2289 */ 2301 */
2290 CompileTimeErrorCode.con1(String name, int ordinal, this.message) : super(name , ordinal); 2302 CompileTimeErrorCode.con1(String name, int ordinal, String message) : super(na me, ordinal) {
2303 this.message = message;
2304 }
2291 2305
2292 /** 2306 /**
2293 * Initialize a newly created error code to have the given message and correct ion. 2307 * Initialize a newly created error code to have the given message and correct ion.
2294 * 2308 *
2295 * @param message the template used to create the message to be displayed for the error 2309 * @param message the template used to create the message to be displayed for the error
2296 * @param correction the template used to create the correction to be displaye d for the error 2310 * @param correction the template used to create the correction to be displaye d for the error
2297 */ 2311 */
2298 CompileTimeErrorCode.con2(String name, int ordinal, this.message, String corre ction) : super(name, ordinal) { 2312 CompileTimeErrorCode.con2(String name, int ordinal, String message, String cor rection) : super(name, ordinal) {
2313 this.message = message;
2299 this.correction2 = correction; 2314 this.correction2 = correction;
2300 } 2315 }
2301 2316
2302 @override 2317 @override
2303 String get correction => correction2; 2318 String get correction => correction2;
2304 2319
2305 @override 2320 @override
2306 ErrorSeverity get errorSeverity => ErrorType.COMPILE_TIME_ERROR.severity; 2321 ErrorSeverity get errorSeverity => ErrorType.COMPILE_TIME_ERROR.severity;
2307 2322
2308 @override 2323 @override
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 static final PubSuggestionCode PACKAGE_IMPORT_CONTAINS_DOT_DOT = new PubSugges tionCode.con1('PACKAGE_IMPORT_CONTAINS_DOT_DOT', 2, "A package import should not contain '..'"); 2355 static final PubSuggestionCode PACKAGE_IMPORT_CONTAINS_DOT_DOT = new PubSugges tionCode.con1('PACKAGE_IMPORT_CONTAINS_DOT_DOT', 2, "A package import should not contain '..'");
2341 2356
2342 static final List<PubSuggestionCode> values = [ 2357 static final List<PubSuggestionCode> values = [
2343 FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, 2358 FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE,
2344 FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, 2359 FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE,
2345 PACKAGE_IMPORT_CONTAINS_DOT_DOT]; 2360 PACKAGE_IMPORT_CONTAINS_DOT_DOT];
2346 2361
2347 /** 2362 /**
2348 * The template used to create the message to be displayed for this error. 2363 * The template used to create the message to be displayed for this error.
2349 */ 2364 */
2350 final String message; 2365 String message;
2351 2366
2352 /** 2367 /**
2353 * The template used to create the correction to be displayed for this error, or `null` if 2368 * The template used to create the correction to be displayed for this error, or `null` if
2354 * there is no correction information for this error. 2369 * there is no correction information for this error.
2355 */ 2370 */
2356 String correction5; 2371 String correction5;
2357 2372
2358 /** 2373 /**
2359 * Initialize a newly created error code to have the given message. 2374 * Initialize a newly created error code to have the given message.
2360 * 2375 *
2361 * @param message the message template used to create the message to be displa yed for the error 2376 * @param message the message template used to create the message to be displa yed for the error
2362 */ 2377 */
2363 PubSuggestionCode.con1(String name, int ordinal, this.message) : super(name, o rdinal); 2378 PubSuggestionCode.con1(String name, int ordinal, String message) : super(name, ordinal) {
2379 this.message = message;
2380 }
2364 2381
2365 /** 2382 /**
2366 * Initialize a newly created error code to have the given message and correct ion. 2383 * Initialize a newly created error code to have the given message and correct ion.
2367 * 2384 *
2368 * @param message the template used to create the message to be displayed for the error 2385 * @param message the template used to create the message to be displayed for the error
2369 * @param correction the template used to create the correction to be displaye d for the error 2386 * @param correction the template used to create the correction to be displaye d for the error
2370 */ 2387 */
2371 PubSuggestionCode.con2(String name, int ordinal, this.message, String correcti on) : super(name, ordinal) { 2388 PubSuggestionCode.con2(String name, int ordinal, String message, String correc tion) : super(name, ordinal) {
2389 this.message = message;
2372 this.correction5 = correction; 2390 this.correction5 = correction;
2373 } 2391 }
2374 2392
2375 @override 2393 @override
2376 String get correction => correction5; 2394 String get correction => correction5;
2377 2395
2378 @override 2396 @override
2379 ErrorSeverity get errorSeverity => ErrorType.PUB_SUGGESTION.severity; 2397 ErrorSeverity get errorSeverity => ErrorType.PUB_SUGGESTION.severity;
2380 2398
2381 @override 2399 @override
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
3227 UNDEFINED_CLASS_BOOLEAN, 3245 UNDEFINED_CLASS_BOOLEAN,
3228 UNDEFINED_GETTER, 3246 UNDEFINED_GETTER,
3229 UNDEFINED_IDENTIFIER, 3247 UNDEFINED_IDENTIFIER,
3230 UNDEFINED_NAMED_PARAMETER, 3248 UNDEFINED_NAMED_PARAMETER,
3231 UNDEFINED_SETTER, 3249 UNDEFINED_SETTER,
3232 UNDEFINED_STATIC_METHOD_OR_GETTER]; 3250 UNDEFINED_STATIC_METHOD_OR_GETTER];
3233 3251
3234 /** 3252 /**
3235 * The template used to create the message to be displayed for this error. 3253 * The template used to create the message to be displayed for this error.
3236 */ 3254 */
3237 final String message; 3255 String message;
3238 3256
3239 /** 3257 /**
3240 * The template used to create the correction to be displayed for this error, or `null` if 3258 * The template used to create the correction to be displayed for this error, or `null` if
3241 * there is no correction information for this error. 3259 * there is no correction information for this error.
3242 */ 3260 */
3243 String correction7; 3261 String correction7;
3244 3262
3245 /** 3263 /**
3246 * Initialize a newly created error code to have the given message. 3264 * Initialize a newly created error code to have the given message.
3247 * 3265 *
3248 * @param message the message template used to create the message to be displa yed for the error 3266 * @param message the message template used to create the message to be displa yed for the error
3249 */ 3267 */
3250 StaticWarningCode.con1(String name, int ordinal, this.message) : super(name, o rdinal); 3268 StaticWarningCode.con1(String name, int ordinal, String message) : super(name, ordinal) {
3269 this.message = message;
3270 }
3251 3271
3252 /** 3272 /**
3253 * Initialize a newly created error code to have the given message and correct ion. 3273 * Initialize a newly created error code to have the given message and correct ion.
3254 * 3274 *
3255 * @param message the template used to create the message to be displayed for the error 3275 * @param message the template used to create the message to be displayed for the error
3256 * @param correction the template used to create the correction to be displaye d for the error 3276 * @param correction the template used to create the correction to be displaye d for the error
3257 */ 3277 */
3258 StaticWarningCode.con2(String name, int ordinal, this.message, String correcti on) : super(name, ordinal) { 3278 StaticWarningCode.con2(String name, int ordinal, String message, String correc tion) : super(name, ordinal) {
3279 this.message = message;
3259 this.correction7 = correction; 3280 this.correction7 = correction;
3260 } 3281 }
3261 3282
3262 @override 3283 @override
3263 String get correction => correction7; 3284 String get correction => correction7;
3264 3285
3265 @override 3286 @override
3266 ErrorSeverity get errorSeverity => ErrorType.STATIC_WARNING.severity; 3287 ErrorSeverity get errorSeverity => ErrorType.STATIC_WARNING.severity;
3267 3288
3268 @override 3289 @override
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
3314 * 3335 *
3315 * @param uri the URI pointing to a non-existent file 3336 * @param uri the URI pointing to a non-existent file
3316 */ 3337 */
3317 static final HtmlWarningCode URI_DOES_NOT_EXIST = new HtmlWarningCode.con1('UR I_DOES_NOT_EXIST', 1, "Target of URI does not exist: '%s'"); 3338 static final HtmlWarningCode URI_DOES_NOT_EXIST = new HtmlWarningCode.con1('UR I_DOES_NOT_EXIST', 1, "Target of URI does not exist: '%s'");
3318 3339
3319 static final List<HtmlWarningCode> values = [INVALID_URI, URI_DOES_NOT_EXIST]; 3340 static final List<HtmlWarningCode> values = [INVALID_URI, URI_DOES_NOT_EXIST];
3320 3341
3321 /** 3342 /**
3322 * The template used to create the message to be displayed for this error. 3343 * The template used to create the message to be displayed for this error.
3323 */ 3344 */
3324 final String message; 3345 String message;
3325 3346
3326 /** 3347 /**
3327 * The template used to create the correction to be displayed for this error, or `null` if 3348 * The template used to create the correction to be displayed for this error, or `null` if
3328 * there is no correction information for this error. 3349 * there is no correction information for this error.
3329 */ 3350 */
3330 String correction4; 3351 String correction4;
3331 3352
3332 /** 3353 /**
3333 * Initialize a newly created error code to have the given message. 3354 * Initialize a newly created error code to have the given message.
3334 * 3355 *
3335 * @param message the message template used to create the message to be displa yed for the error 3356 * @param message the message template used to create the message to be displa yed for the error
3336 */ 3357 */
3337 HtmlWarningCode.con1(String name, int ordinal, this.message) : super(name, ord inal); 3358 HtmlWarningCode.con1(String name, int ordinal, String message) : super(name, o rdinal) {
3359 this.message = message;
3360 }
3338 3361
3339 /** 3362 /**
3340 * Initialize a newly created error code to have the given message and correct ion. 3363 * Initialize a newly created error code to have the given message and correct ion.
3341 * 3364 *
3342 * @param message the template used to create the message to be displayed for the error 3365 * @param message the template used to create the message to be displayed for the error
3343 * @param correction the template used to create the correction to be displaye d for the error 3366 * @param correction the template used to create the correction to be displaye d for the error
3344 */ 3367 */
3345 HtmlWarningCode.con2(String name, int ordinal, this.message, String correction ) : super(name, ordinal) { 3368 HtmlWarningCode.con2(String name, int ordinal, String message, String correcti on) : super(name, ordinal) {
3369 this.message = message;
3346 this.correction4 = correction; 3370 this.correction4 = correction;
3347 } 3371 }
3348 3372
3349 @override 3373 @override
3350 String get correction => correction4; 3374 String get correction => correction4;
3351 3375
3352 @override 3376 @override
3353 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; 3377 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING;
3354 3378
3355 @override 3379 @override
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
3642 UNDEFINED_METHOD, 3666 UNDEFINED_METHOD,
3643 UNDEFINED_OPERATOR, 3667 UNDEFINED_OPERATOR,
3644 UNDEFINED_SETTER, 3668 UNDEFINED_SETTER,
3645 UNDEFINED_SUPER_METHOD, 3669 UNDEFINED_SUPER_METHOD,
3646 UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER, 3670 UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER,
3647 WRONG_NUMBER_OF_TYPE_ARGUMENTS]; 3671 WRONG_NUMBER_OF_TYPE_ARGUMENTS];
3648 3672
3649 /** 3673 /**
3650 * The template used to create the message to be displayed for this error. 3674 * The template used to create the message to be displayed for this error.
3651 */ 3675 */
3652 final String message; 3676 String message;
3653 3677
3654 /** 3678 /**
3655 * The template used to create the correction to be displayed for this error, or `null` if 3679 * The template used to create the correction to be displayed for this error, or `null` if
3656 * there is no correction information for this error. 3680 * there is no correction information for this error.
3657 */ 3681 */
3658 String correction6; 3682 String correction6;
3659 3683
3660 /** 3684 /**
3661 * Initialize a newly created error code to have the given message. 3685 * Initialize a newly created error code to have the given message.
3662 * 3686 *
3663 * @param message the message template used to create the message to be displa yed for the error 3687 * @param message the message template used to create the message to be displa yed for the error
3664 */ 3688 */
3665 StaticTypeWarningCode.con1(String name, int ordinal, this.message) : super(nam e, ordinal); 3689 StaticTypeWarningCode.con1(String name, int ordinal, String message) : super(n ame, ordinal) {
3690 this.message = message;
3691 }
3666 3692
3667 /** 3693 /**
3668 * Initialize a newly created error code to have the given message and correct ion. 3694 * Initialize a newly created error code to have the given message and correct ion.
3669 * 3695 *
3670 * @param message the template used to create the message to be displayed for the error 3696 * @param message the template used to create the message to be displayed for the error
3671 * @param correction the template used to create the correction to be displaye d for the error 3697 * @param correction the template used to create the correction to be displaye d for the error
3672 */ 3698 */
3673 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr ection) : super(name, ordinal) { 3699 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co rrection) : super(name, ordinal) {
3700 this.message = message;
3674 this.correction6 = correction; 3701 this.correction6 = correction;
3675 } 3702 }
3676 3703
3677 @override 3704 @override
3678 String get correction => correction6; 3705 String get correction => correction6;
3679 3706
3680 @override 3707 @override
3681 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3708 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3682 3709
3683 @override 3710 @override
3684 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3711 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3685 } 3712 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698