| OLD | NEW |
| 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 library engine.error; | 5 library engine.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/task/model.dart'; | 9 import 'package:analyzer/src/task/model.dart'; |
| 10 import 'package:analyzer/task/model.dart'; | 10 import 'package:analyzer/task/model.dart'; |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 "The value '{1}' is not supported by {0}, legal values are {2}"); | 388 "The value '{1}' is not supported by {0}, legal values are {2}"); |
| 389 | 389 |
| 390 /** | 390 /** |
| 391 * An error code indicating that an unrecognized error code is being used to | 391 * An error code indicating that an unrecognized error code is being used to |
| 392 * specify an error filter. | 392 * specify an error filter. |
| 393 * | 393 * |
| 394 * Parameters: | 394 * Parameters: |
| 395 * 0: the unrecognized error code | 395 * 0: the unrecognized error code |
| 396 */ | 396 */ |
| 397 static const AnalysisOptionsWarningCode UNRECOGNIZED_ERROR_CODE = | 397 static const AnalysisOptionsWarningCode UNRECOGNIZED_ERROR_CODE = |
| 398 const AnalysisOptionsWarningCode('UNRECOGNIZED_ERROR_CODE', | 398 const AnalysisOptionsWarningCode( |
| 399 "'{0}' is not a recognized error code"); | 399 'UNRECOGNIZED_ERROR_CODE', "'{0}' is not a recognized error code"); |
| 400 | 400 |
| 401 /** | 401 /** |
| 402 * Initialize a newly created warning code to have the given [name]. | 402 * Initialize a newly created warning code to have the given [name]. |
| 403 */ | 403 */ |
| 404 const AnalysisOptionsWarningCode(String name, String message, | 404 const AnalysisOptionsWarningCode(String name, String message, |
| 405 [String correction]) | 405 [String correction]) |
| 406 : super(name, message, correction); | 406 : super(name, message, correction); |
| 407 | 407 |
| 408 @override | 408 @override |
| 409 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; | 409 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; |
| (...skipping 5088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5498 * Initialize a newly created error code to have the given [name]. | 5498 * Initialize a newly created error code to have the given [name]. |
| 5499 */ | 5499 */ |
| 5500 const TodoCode(String name) : super(name, "{0}"); | 5500 const TodoCode(String name) : super(name, "{0}"); |
| 5501 | 5501 |
| 5502 @override | 5502 @override |
| 5503 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5503 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5504 | 5504 |
| 5505 @override | 5505 @override |
| 5506 ErrorType get type => ErrorType.TODO; | 5506 ErrorType get type => ErrorType.TODO; |
| 5507 } | 5507 } |
| OLD | NEW |