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 4713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4724 | 4724 |
4725 static const StrongModeCode INVALID_PARAMETER_DECLARATION = | 4725 static const StrongModeCode INVALID_PARAMETER_DECLARATION = |
4726 const StrongModeCode( | 4726 const StrongModeCode( |
4727 ErrorType.COMPILE_TIME_ERROR, | 4727 ErrorType.COMPILE_TIME_ERROR, |
4728 'INVALID_PARAMETER_DECLARATION', | 4728 'INVALID_PARAMETER_DECLARATION', |
4729 "Type check failed: '{0}' isn't of type '{1}'."); | 4729 "Type check failed: '{0}' isn't of type '{1}'."); |
4730 | 4730 |
4731 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode( | 4731 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode( |
4732 ErrorType.COMPILE_TIME_ERROR, | 4732 ErrorType.COMPILE_TIME_ERROR, |
4733 'COULD_NOT_INFER', | 4733 'COULD_NOT_INFER', |
4734 "Couldn't infer type parameter '{0}'; '{1}' must be of type '{2}'."); | 4734 "Couldn't infer type parameter '{0}'.{1}"); |
4735 | 4735 |
4736 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( | 4736 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( |
4737 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); | 4737 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); |
4738 | 4738 |
4739 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( | 4739 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( |
4740 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); | 4740 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); |
4741 | 4741 |
4742 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( | 4742 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( |
4743 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); | 4743 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); |
4744 | 4744 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4905 * created from the optional [correction] template. | 4905 * created from the optional [correction] template. |
4906 */ | 4906 */ |
4907 const StrongModeCode(ErrorType type, String name, String message, | 4907 const StrongModeCode(ErrorType type, String name, String message, |
4908 [String correction]) | 4908 [String correction]) |
4909 : type = type, | 4909 : type = type, |
4910 super('STRONG_MODE_$name', message, correction); | 4910 super('STRONG_MODE_$name', message, correction); |
4911 | 4911 |
4912 @override | 4912 @override |
4913 ErrorSeverity get errorSeverity => type.severity; | 4913 ErrorSeverity get errorSeverity => type.severity; |
4914 } | 4914 } |
OLD | NEW |