| 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 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2678 HintCode.DIVISION_OPTIMIZATION, | 2678 HintCode.DIVISION_OPTIMIZATION, |
| 2679 HintCode.IS_DOUBLE, | 2679 HintCode.IS_DOUBLE, |
| 2680 HintCode.IS_INT, | 2680 HintCode.IS_INT, |
| 2681 HintCode.IS_NOT_DOUBLE, | 2681 HintCode.IS_NOT_DOUBLE, |
| 2682 HintCode.IS_NOT_INT, | 2682 HintCode.IS_NOT_INT, |
| 2683 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, | 2683 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, |
| 2684 HintCode.INVALID_ASSIGNMENT, | 2684 HintCode.INVALID_ASSIGNMENT, |
| 2685 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, | 2685 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, |
| 2686 HintCode.MISSING_JS_LIB_ANNOTATION, | 2686 HintCode.MISSING_JS_LIB_ANNOTATION, |
| 2687 HintCode.MISSING_REQUIRED_PARAM, | 2687 HintCode.MISSING_REQUIRED_PARAM, |
| 2688 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS, |
| 2688 HintCode.MISSING_RETURN, | 2689 HintCode.MISSING_RETURN, |
| 2689 HintCode.NULL_AWARE_IN_CONDITION, | 2690 HintCode.NULL_AWARE_IN_CONDITION, |
| 2690 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, | 2691 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, |
| 2691 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, | 2692 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, |
| 2692 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, | 2693 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, |
| 2693 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, | 2694 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, |
| 2694 HintCode.TYPE_CHECK_IS_NOT_NULL, | 2695 HintCode.TYPE_CHECK_IS_NOT_NULL, |
| 2695 HintCode.TYPE_CHECK_IS_NULL, | 2696 HintCode.TYPE_CHECK_IS_NULL, |
| 2696 HintCode.UNDEFINED_GETTER, | 2697 HintCode.UNDEFINED_GETTER, |
| 2697 HintCode.UNDEFINED_METHOD, | 2698 HintCode.UNDEFINED_METHOD, |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3573 static const HintCode INVALID_USE_OF_PROTECTED_MEMBER = const HintCode( | 3574 static const HintCode INVALID_USE_OF_PROTECTED_MEMBER = const HintCode( |
| 3574 'INVALID_USE_OF_PROTECTED_MEMBER', | 3575 'INVALID_USE_OF_PROTECTED_MEMBER', |
| 3575 "The member '{0}' can only be used within instance members of subclasses o
f '{1}'"); | 3576 "The member '{0}' can only be used within instance members of subclasses o
f '{1}'"); |
| 3576 | 3577 |
| 3577 /** | 3578 /** |
| 3578 * Generate a hint for a constructor, function or method invocation where a | 3579 * Generate a hint for a constructor, function or method invocation where a |
| 3579 * required parameter is missing. | 3580 * required parameter is missing. |
| 3580 * | 3581 * |
| 3581 * Parameters: | 3582 * Parameters: |
| 3582 * 0: the name of the parameter | 3583 * 0: the name of the parameter |
| 3583 * 1: an optional reason | |
| 3584 */ | 3584 */ |
| 3585 static const HintCode MISSING_REQUIRED_PARAM = const HintCode( | 3585 static const HintCode MISSING_REQUIRED_PARAM = const HintCode( |
| 3586 'MISSING_REQUIRED_PARAM', "The parameter '{0}' is required."); |
| 3587 |
| 3588 |
| 3589 /** |
| 3590 * Generate a hint for a constructor, function or method invocation where a |
| 3591 * required parameter is missing. |
| 3592 * |
| 3593 * Parameters: |
| 3594 * 0: the name of the parameter |
| 3595 * 1: message details |
| 3596 */ |
| 3597 static const HintCode MISSING_REQUIRED_PARAM_WITH_DETAILS = const HintCode( |
| 3586 'MISSING_REQUIRED_PARAM', "The parameter '{0}' is required. {1}"); | 3598 'MISSING_REQUIRED_PARAM', "The parameter '{0}' is required. {1}"); |
| 3587 | 3599 |
| 3588 /** | 3600 /** |
| 3589 * Generate a hint for an element that is annotated with `@JS(...)` whose | 3601 * Generate a hint for an element that is annotated with `@JS(...)` whose |
| 3590 * library declaration is not similarly annotated. | 3602 * library declaration is not similarly annotated. |
| 3591 */ | 3603 */ |
| 3592 static const HintCode MISSING_JS_LIB_ANNOTATION = const HintCode( | 3604 static const HintCode MISSING_JS_LIB_ANNOTATION = const HintCode( |
| 3593 'MISSING_JS_LIB_ANNOTATION', | 3605 'MISSING_JS_LIB_ANNOTATION', |
| 3594 "The @JS() annotation can only be used if it is also declared on the libra
ry directive."); | 3606 "The @JS() annotation can only be used if it is also declared on the libra
ry directive."); |
| 3595 | 3607 |
| (...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5783 * Initialize a newly created error code to have the given [name]. | 5795 * Initialize a newly created error code to have the given [name]. |
| 5784 */ | 5796 */ |
| 5785 const TodoCode(String name) : super(name, "{0}"); | 5797 const TodoCode(String name) : super(name, "{0}"); |
| 5786 | 5798 |
| 5787 @override | 5799 @override |
| 5788 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5800 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5789 | 5801 |
| 5790 @override | 5802 @override |
| 5791 ErrorType get type => ErrorType.TODO; | 5803 ErrorType get type => ErrorType.TODO; |
| 5792 } | 5804 } |
| OLD | NEW |