| 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 import 'package:analyzer/src/dart/element/element.dart'; | 8 import 'package:analyzer/src/dart/element/element.dart'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 4650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4661 ", or enable implicit-dynamic in your Analyzer options."; | 4661 ", or enable implicit-dynamic in your Analyzer options."; |
| 4662 | 4662 |
| 4663 static const String _inferredTypeMessage = '{0} has inferred type {1}'; | 4663 static const String _inferredTypeMessage = '{0} has inferred type {1}'; |
| 4664 | 4664 |
| 4665 static const StrongModeCode DOWN_CAST_COMPOSITE = const StrongModeCode( | 4665 static const StrongModeCode DOWN_CAST_COMPOSITE = const StrongModeCode( |
| 4666 ErrorType.STATIC_WARNING, 'DOWN_CAST_COMPOSITE', _implicitCastMessage); | 4666 ErrorType.STATIC_WARNING, 'DOWN_CAST_COMPOSITE', _implicitCastMessage); |
| 4667 | 4667 |
| 4668 static const StrongModeCode DOWN_CAST_IMPLICIT = const StrongModeCode( | 4668 static const StrongModeCode DOWN_CAST_IMPLICIT = const StrongModeCode( |
| 4669 ErrorType.HINT, 'DOWN_CAST_IMPLICIT', _implicitCastMessage); | 4669 ErrorType.HINT, 'DOWN_CAST_IMPLICIT', _implicitCastMessage); |
| 4670 | 4670 |
| 4671 static const StrongModeCode DOWN_CAST_IMPLICIT_ASSIGN = const StrongModeCode( |
| 4672 ErrorType.HINT, 'DOWN_CAST_IMPLICIT_ASSIGN', _implicitCastMessage); |
| 4673 |
| 4671 static const StrongModeCode DYNAMIC_CAST = const StrongModeCode( | 4674 static const StrongModeCode DYNAMIC_CAST = const StrongModeCode( |
| 4672 ErrorType.HINT, 'DYNAMIC_CAST', _implicitCastMessage); | 4675 ErrorType.HINT, 'DYNAMIC_CAST', _implicitCastMessage); |
| 4673 | 4676 |
| 4674 static const StrongModeCode ASSIGNMENT_CAST = const StrongModeCode( | 4677 static const StrongModeCode ASSIGNMENT_CAST = const StrongModeCode( |
| 4675 ErrorType.HINT, 'ASSIGNMENT_CAST', _implicitCastMessage); | 4678 ErrorType.HINT, 'ASSIGNMENT_CAST', _implicitCastMessage); |
| 4676 | 4679 |
| 4677 static const StrongModeCode INVALID_PARAMETER_DECLARATION = | 4680 static const StrongModeCode INVALID_PARAMETER_DECLARATION = |
| 4678 const StrongModeCode(ErrorType.COMPILE_TIME_ERROR, | 4681 const StrongModeCode(ErrorType.COMPILE_TIME_ERROR, |
| 4679 'INVALID_PARAMETER_DECLARATION', _typeCheckMessage); | 4682 'INVALID_PARAMETER_DECLARATION', _typeCheckMessage); |
| 4680 | 4683 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4849 * Initialize a newly created error code to have the given [name]. | 4852 * Initialize a newly created error code to have the given [name]. |
| 4850 */ | 4853 */ |
| 4851 const TodoCode(String name) : super(name, "{0}"); | 4854 const TodoCode(String name) : super(name, "{0}"); |
| 4852 | 4855 |
| 4853 @override | 4856 @override |
| 4854 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4857 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4855 | 4858 |
| 4856 @override | 4859 @override |
| 4857 ErrorType get type => ErrorType.TODO; | 4860 ErrorType get type => ErrorType.TODO; |
| 4858 } | 4861 } |
| OLD | NEW |