| 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 analyzer.src.error.codes; | 5 library analyzer.src.error.codes; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 | 8 |
| 9 export 'package:analyzer/src/analysis_options/error/option_codes.dart'; | 9 export 'package:analyzer/src/analysis_options/error/option_codes.dart'; |
| 10 export 'package:analyzer/src/dart/error/hint_codes.dart'; | 10 export 'package:analyzer/src/dart/error/hint_codes.dart'; |
| (...skipping 4753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4764 | 4764 |
| 4765 static const StrongModeCode INVALID_PARAMETER_DECLARATION = | 4765 static const StrongModeCode INVALID_PARAMETER_DECLARATION = |
| 4766 const StrongModeCode( | 4766 const StrongModeCode( |
| 4767 ErrorType.COMPILE_TIME_ERROR, | 4767 ErrorType.COMPILE_TIME_ERROR, |
| 4768 'INVALID_PARAMETER_DECLARATION', | 4768 'INVALID_PARAMETER_DECLARATION', |
| 4769 "Type check failed: '{0}' isn't of type '{1}'."); | 4769 "Type check failed: '{0}' isn't of type '{1}'."); |
| 4770 | 4770 |
| 4771 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode( | 4771 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode( |
| 4772 ErrorType.COMPILE_TIME_ERROR, | 4772 ErrorType.COMPILE_TIME_ERROR, |
| 4773 'COULD_NOT_INFER', | 4773 'COULD_NOT_INFER', |
| 4774 "Couldn't infer type parameter '{0}'; '{1}' must be of type '{2}'."); | 4774 "Couldn't infer type parameter '{0}'.{1}"); |
| 4775 | 4775 |
| 4776 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( | 4776 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( |
| 4777 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); | 4777 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); |
| 4778 | 4778 |
| 4779 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( | 4779 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( |
| 4780 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); | 4780 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); |
| 4781 | 4781 |
| 4782 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( | 4782 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( |
| 4783 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); | 4783 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); |
| 4784 | 4784 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4957 * created from the optional [correction] template. | 4957 * created from the optional [correction] template. |
| 4958 */ | 4958 */ |
| 4959 const StrongModeCode(ErrorType type, String name, String message, | 4959 const StrongModeCode(ErrorType type, String name, String message, |
| 4960 [String correction]) | 4960 [String correction]) |
| 4961 : type = type, | 4961 : type = type, |
| 4962 super('STRONG_MODE_$name', message, correction); | 4962 super('STRONG_MODE_$name', message, correction); |
| 4963 | 4963 |
| 4964 @override | 4964 @override |
| 4965 ErrorSeverity get errorSeverity => type.severity; | 4965 ErrorSeverity get errorSeverity => type.severity; |
| 4966 } | 4966 } |
| OLD | NEW |