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 4724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4735 | 4735 |
4736 static const StrongModeCode INVALID_PARAMETER_DECLARATION = | 4736 static const StrongModeCode INVALID_PARAMETER_DECLARATION = |
4737 const StrongModeCode( | 4737 const StrongModeCode( |
4738 ErrorType.COMPILE_TIME_ERROR, | 4738 ErrorType.COMPILE_TIME_ERROR, |
4739 'INVALID_PARAMETER_DECLARATION', | 4739 'INVALID_PARAMETER_DECLARATION', |
4740 "Type check failed: '{0}' isn't of type '{1}'."); | 4740 "Type check failed: '{0}' isn't of type '{1}'."); |
4741 | 4741 |
4742 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode( | 4742 static const StrongModeCode COULD_NOT_INFER = const StrongModeCode( |
4743 ErrorType.COMPILE_TIME_ERROR, | 4743 ErrorType.COMPILE_TIME_ERROR, |
4744 'COULD_NOT_INFER', | 4744 'COULD_NOT_INFER', |
4745 "Couldn't infer type parameter '{0}'; '{1}' must be of type '{2}'."); | 4745 "Couldn't infer type parameter '{0}'.{1}"); |
4746 | 4746 |
4747 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( | 4747 static const StrongModeCode INFERRED_TYPE = const StrongModeCode( |
4748 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); | 4748 ErrorType.HINT, 'INFERRED_TYPE', _inferredTypeMessage); |
4749 | 4749 |
4750 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( | 4750 static const StrongModeCode INFERRED_TYPE_LITERAL = const StrongModeCode( |
4751 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); | 4751 ErrorType.HINT, 'INFERRED_TYPE_LITERAL', _inferredTypeMessage); |
4752 | 4752 |
4753 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( | 4753 static const StrongModeCode INFERRED_TYPE_ALLOCATION = const StrongModeCode( |
4754 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); | 4754 ErrorType.HINT, 'INFERRED_TYPE_ALLOCATION', _inferredTypeMessage); |
4755 | 4755 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4916 * created from the optional [correction] template. | 4916 * created from the optional [correction] template. |
4917 */ | 4917 */ |
4918 const StrongModeCode(ErrorType type, String name, String message, | 4918 const StrongModeCode(ErrorType type, String name, String message, |
4919 [String correction]) | 4919 [String correction]) |
4920 : type = type, | 4920 : type = type, |
4921 super('STRONG_MODE_$name', message, correction); | 4921 super('STRONG_MODE_$name', message, correction); |
4922 | 4922 |
4923 @override | 4923 @override |
4924 ErrorSeverity get errorSeverity => type.severity; | 4924 ErrorSeverity get errorSeverity => type.severity; |
4925 } | 4925 } |
OLD | NEW |