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.generated.error; | 5 library analyzer.src.generated.error; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; | 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; |
10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
(...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2736 StaticTypeWarningCode.INACCESSIBLE_SETTER, | 2736 StaticTypeWarningCode.INACCESSIBLE_SETTER, |
2737 StaticTypeWarningCode.INCONSISTENT_METHOD_INHERITANCE, | 2737 StaticTypeWarningCode.INCONSISTENT_METHOD_INHERITANCE, |
2738 StaticTypeWarningCode.INSTANCE_ACCESS_TO_STATIC_MEMBER, | 2738 StaticTypeWarningCode.INSTANCE_ACCESS_TO_STATIC_MEMBER, |
2739 StaticTypeWarningCode.INVALID_ASSIGNMENT, | 2739 StaticTypeWarningCode.INVALID_ASSIGNMENT, |
2740 StaticTypeWarningCode.INVOCATION_OF_NON_FUNCTION, | 2740 StaticTypeWarningCode.INVOCATION_OF_NON_FUNCTION, |
2741 StaticTypeWarningCode.INVOCATION_OF_NON_FUNCTION_EXPRESSION, | 2741 StaticTypeWarningCode.INVOCATION_OF_NON_FUNCTION_EXPRESSION, |
2742 StaticTypeWarningCode.NON_BOOL_CONDITION, | 2742 StaticTypeWarningCode.NON_BOOL_CONDITION, |
2743 StaticTypeWarningCode.NON_BOOL_EXPRESSION, | 2743 StaticTypeWarningCode.NON_BOOL_EXPRESSION, |
2744 StaticTypeWarningCode.NON_BOOL_NEGATION_EXPRESSION, | 2744 StaticTypeWarningCode.NON_BOOL_NEGATION_EXPRESSION, |
2745 StaticTypeWarningCode.NON_BOOL_OPERAND, | 2745 StaticTypeWarningCode.NON_BOOL_OPERAND, |
| 2746 StaticTypeWarningCode.NON_NULLABLE_FIELD_NOT_INITIALIZED, |
2746 StaticTypeWarningCode.NON_TYPE_AS_TYPE_ARGUMENT, | 2747 StaticTypeWarningCode.NON_TYPE_AS_TYPE_ARGUMENT, |
2747 StaticTypeWarningCode.RETURN_OF_INVALID_TYPE, | 2748 StaticTypeWarningCode.RETURN_OF_INVALID_TYPE, |
2748 StaticTypeWarningCode.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, | 2749 StaticTypeWarningCode.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, |
2749 StaticTypeWarningCode.TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND, | 2750 StaticTypeWarningCode.TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND, |
2750 StaticTypeWarningCode.UNDEFINED_ENUM_CONSTANT, | 2751 StaticTypeWarningCode.UNDEFINED_ENUM_CONSTANT, |
2751 StaticTypeWarningCode.UNDEFINED_FUNCTION, | 2752 StaticTypeWarningCode.UNDEFINED_FUNCTION, |
2752 StaticTypeWarningCode.UNDEFINED_GETTER, | 2753 StaticTypeWarningCode.UNDEFINED_GETTER, |
2753 StaticTypeWarningCode.UNDEFINED_METHOD, | 2754 StaticTypeWarningCode.UNDEFINED_METHOD, |
2754 StaticTypeWarningCode.UNDEFINED_METHOD_WITH_CONSTRUCTOR, | 2755 StaticTypeWarningCode.UNDEFINED_METHOD_WITH_CONSTRUCTOR, |
2755 StaticTypeWarningCode.UNDEFINED_OPERATOR, | 2756 StaticTypeWarningCode.UNDEFINED_OPERATOR, |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4274 * not be assigned to bool. | 4275 * not be assigned to bool. |
4275 * | 4276 * |
4276 * Parameters: | 4277 * Parameters: |
4277 * 0: the lexeme of the logical operator | 4278 * 0: the lexeme of the logical operator |
4278 */ | 4279 */ |
4279 static const StaticTypeWarningCode NON_BOOL_OPERAND = | 4280 static const StaticTypeWarningCode NON_BOOL_OPERAND = |
4280 const StaticTypeWarningCode('NON_BOOL_OPERAND', | 4281 const StaticTypeWarningCode('NON_BOOL_OPERAND', |
4281 "The operands of the '{0}' operator must be assignable to 'bool'"); | 4282 "The operands of the '{0}' operator must be assignable to 'bool'"); |
4282 | 4283 |
4283 /** | 4284 /** |
| 4285 * |
| 4286 */ |
| 4287 static const StaticTypeWarningCode NON_NULLABLE_FIELD_NOT_INITIALIZED = |
| 4288 const StaticTypeWarningCode( |
| 4289 'NON_NULLABLE_FIELD_NOT_INITIALIZED', |
| 4290 "Variable '{0}' of non-nullable type '{1}' must be initialized"); |
| 4291 |
| 4292 /** |
4284 * 15.8 Parameterized Types: It is a static type warning if <i>A<sub>i</sub>, | 4293 * 15.8 Parameterized Types: It is a static type warning if <i>A<sub>i</sub>, |
4285 * 1 <= i <= n</i> does not denote a type in the enclosing lexical scope
. | 4294 * 1 <= i <= n</i> does not denote a type in the enclosing lexical scope
. |
4286 */ | 4295 */ |
4287 static const StaticTypeWarningCode NON_TYPE_AS_TYPE_ARGUMENT = | 4296 static const StaticTypeWarningCode NON_TYPE_AS_TYPE_ARGUMENT = |
4288 const StaticTypeWarningCode('NON_TYPE_AS_TYPE_ARGUMENT', | 4297 const StaticTypeWarningCode('NON_TYPE_AS_TYPE_ARGUMENT', |
4289 "The name '{0}' is not a type and cannot be used as a parameterized ty
pe"); | 4298 "The name '{0}' is not a type and cannot be used as a parameterized ty
pe"); |
4290 | 4299 |
4291 /** | 4300 /** |
4292 * 13.11 Return: It is a static type warning if the type of <i>e</i> may not | 4301 * 13.11 Return: It is a static type warning if the type of <i>e</i> may not |
4293 * be assigned to the declared return type of the immediately enclosing | 4302 * be assigned to the declared return type of the immediately enclosing |
(...skipping 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6113 * Initialize a newly created error code to have the given [name]. | 6122 * Initialize a newly created error code to have the given [name]. |
6114 */ | 6123 */ |
6115 const TodoCode(String name) : super(name, "{0}"); | 6124 const TodoCode(String name) : super(name, "{0}"); |
6116 | 6125 |
6117 @override | 6126 @override |
6118 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 6127 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
6119 | 6128 |
6120 @override | 6129 @override |
6121 ErrorType get type => ErrorType.TODO; | 6130 ErrorType get type => ErrorType.TODO; |
6122 } | 6131 } |
OLD | NEW |