Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/error.dart

Issue 19590006: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.error; 3 library engine.error;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'source.dart'; 5 import 'source.dart';
6 import 'ast.dart' show ASTNode; 6 import 'ast.dart' show ASTNode;
7 import 'scanner.dart' show Token; 7 import 'scanner.dart' show Token;
8 /** 8 /**
9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er rorCode] 9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er rorCode]
10 * . 10 * .
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after
2610 /** 2610 /**
2611 * 10 Generics: However, a type parameter is considered to be a malformed type when referenced by 2611 * 10 Generics: However, a type parameter is considered to be a malformed type when referenced by
2612 * a static member. 2612 * a static member.
2613 * 2613 *
2614 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni ng. A malformed type 2614 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni ng. A malformed type
2615 * is then interpreted as dynamic by the static type checker and the runtime. 2615 * is then interpreted as dynamic by the static type checker and the runtime.
2616 */ 2616 */
2617 static final StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = new Stati cWarningCode('TYPE_PARAMETER_REFERENCED_BY_STATIC', 62, "Static members cannot r eference type parameters"); 2617 static final StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = new Stati cWarningCode('TYPE_PARAMETER_REFERENCED_BY_STATIC', 62, "Static members cannot r eference type parameters");
2618 2618
2619 /** 2619 /**
2620 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for m <i>id</i> or the
2621 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</ i> (respectively
2622 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type variabl e in the
2623 * enclosing lexical scope, but occurs in the signature or body of a static me mber. *
2624 * <i>T</i> is a parameterized type of the form <i>G&lt;S<sub>1</sub>, .., S<s ub>n</sub>&gt;</i>,
2625 * and <i>G</i> is malformed.
2626 *
2627 * Any use of a malformed type gives rise to a static warning.
2628 */
2629 static final StaticWarningCode TYPE_VARIABLE_IN_STATIC_SCOPE = new StaticWarni ngCode('TYPE_VARIABLE_IN_STATIC_SCOPE', 63, "");
2630
2631 /**
2632 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form 2620 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form
2633 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip; 2621 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip;
2634 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d oes not denote a 2622 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d oes not denote a
2635 * class in the current scope. 2623 * class in the current scope.
2636 * 2624 *
2637 * @param undefinedClassName the name of the undefined class 2625 * @param undefinedClassName the name of the undefined class
2638 */ 2626 */
2639 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI NED_CLASS', 64, "Undefined class '%s'"); 2627 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI NED_CLASS', 63, "Undefined class '%s'");
2640 2628
2641 /** 2629 /**
2642 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool". 2630 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool".
2643 */ 2631 */
2644 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode ('UNDEFINED_CLASS_BOOLEAN', 65, "Undefined class 'boolean'; did you mean 'bool'? "); 2632 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode ('UNDEFINED_CLASS_BOOLEAN', 64, "Undefined class 'boolean'; did you mean 'bool'? ");
2645 2633
2646 /** 2634 /**
2647 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing 2635 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing
2648 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter 2636 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter
2649 * named <i>m</i>. 2637 * named <i>m</i>.
2650 * 2638 *
2651 * @param getterName the name of the getter 2639 * @param getterName the name of the getter
2652 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 2640 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
2653 */ 2641 */
2654 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF INED_GETTER', 66, "There is no such getter '%s' in '%s'"); 2642 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF INED_GETTER', 65, "There is no such getter '%s' in '%s'");
2655 2643
2656 /** 2644 /**
2657 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 2645 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
2658 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 2646 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
2659 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 2647 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
2660 * lexical scope enclosing the expression. 2648 * lexical scope enclosing the expression.
2661 */ 2649 */
2662 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U NDEFINED_IDENTIFIER', 67, "Undefined name '%s'"); 2650 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U NDEFINED_IDENTIFIER', 66, "Undefined name '%s'");
2663 2651
2664 /** 2652 /**
2665 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 2653 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
2666 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 2654 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
2667 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 2655 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
2668 * 2656 *
2669 * @param name the name of the requested named parameter 2657 * @param name the name of the requested named parameter
2670 */ 2658 */
2671 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo de('UNDEFINED_NAMED_PARAMETER', 68, "The named parameter '%s' is not defined"); 2659 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo de('UNDEFINED_NAMED_PARAMETER', 67, "The named parameter '%s' is not defined");
2672 2660
2673 /** 2661 /**
2674 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs 2662 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
2675 * inside a top level or static function (be it function, method, getter, or s etter) or variable 2663 * inside a top level or static function (be it function, method, getter, or s etter) or variable
2676 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope 2664 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope
2677 * enclosing the assignment. 2665 * enclosing the assignment.
2678 * 2666 *
2679 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical 2667 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical
2680 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter 2668 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter
2681 * <i>v=</i>. 2669 * <i>v=</i>.
2682 * 2670 *
2683 * @param setterName the name of the getter 2671 * @param setterName the name of the getter
2684 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for 2672 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
2685 */ 2673 */
2686 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF INED_SETTER', 69, "There is no such setter '%s' in '%s'"); 2674 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF INED_SETTER', 68, "There is no such setter '%s' in '%s'");
2687 2675
2688 /** 2676 /**
2689 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method 2677 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method
2690 * or getter <i>m</i>. 2678 * or getter <i>m</i>.
2691 * 2679 *
2692 * @param methodName the name of the method 2680 * @param methodName the name of the method
2693 * @param enclosingType the name of the enclosing type where the method is bei ng looked for 2681 * @param enclosingType the name of the enclosing type where the method is bei ng looked for
2694 */ 2682 */
2695 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 70, "There is no such static met hod '%s' in '%s'"); 2683 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 69, "There is no such static met hod '%s' in '%s'");
2696 static final List<StaticWarningCode> values = [ 2684 static final List<StaticWarningCode> values = [
2697 AMBIGUOUS_IMPORT, 2685 AMBIGUOUS_IMPORT,
2698 ARGUMENT_TYPE_NOT_ASSIGNABLE, 2686 ARGUMENT_TYPE_NOT_ASSIGNABLE,
2699 ASSIGNMENT_TO_FINAL, 2687 ASSIGNMENT_TO_FINAL,
2700 ASSIGNMENT_TO_METHOD, 2688 ASSIGNMENT_TO_METHOD,
2701 CASE_BLOCK_NOT_TERMINATED, 2689 CASE_BLOCK_NOT_TERMINATED,
2702 CAST_TO_NON_TYPE, 2690 CAST_TO_NON_TYPE,
2703 COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, 2691 COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE,
2704 COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE, 2692 COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE,
2705 COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, 2693 COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 PART_OF_DIFFERENT_LIBRARY, 2738 PART_OF_DIFFERENT_LIBRARY,
2751 REDIRECT_TO_INVALID_FUNCTION_TYPE, 2739 REDIRECT_TO_INVALID_FUNCTION_TYPE,
2752 REDIRECT_TO_INVALID_RETURN_TYPE, 2740 REDIRECT_TO_INVALID_RETURN_TYPE,
2753 REDIRECT_TO_MISSING_CONSTRUCTOR, 2741 REDIRECT_TO_MISSING_CONSTRUCTOR,
2754 REDIRECT_TO_NON_CLASS, 2742 REDIRECT_TO_NON_CLASS,
2755 RETURN_WITHOUT_VALUE, 2743 RETURN_WITHOUT_VALUE,
2756 STATIC_ACCESS_TO_INSTANCE_MEMBER, 2744 STATIC_ACCESS_TO_INSTANCE_MEMBER,
2757 SWITCH_EXPRESSION_NOT_ASSIGNABLE, 2745 SWITCH_EXPRESSION_NOT_ASSIGNABLE,
2758 TYPE_TEST_NON_TYPE, 2746 TYPE_TEST_NON_TYPE,
2759 TYPE_PARAMETER_REFERENCED_BY_STATIC, 2747 TYPE_PARAMETER_REFERENCED_BY_STATIC,
2760 TYPE_VARIABLE_IN_STATIC_SCOPE,
2761 UNDEFINED_CLASS, 2748 UNDEFINED_CLASS,
2762 UNDEFINED_CLASS_BOOLEAN, 2749 UNDEFINED_CLASS_BOOLEAN,
2763 UNDEFINED_GETTER, 2750 UNDEFINED_GETTER,
2764 UNDEFINED_IDENTIFIER, 2751 UNDEFINED_IDENTIFIER,
2765 UNDEFINED_NAMED_PARAMETER, 2752 UNDEFINED_NAMED_PARAMETER,
2766 UNDEFINED_SETTER, 2753 UNDEFINED_SETTER,
2767 UNDEFINED_STATIC_METHOD_OR_GETTER]; 2754 UNDEFINED_STATIC_METHOD_OR_GETTER];
2768 2755
2769 /// The name of this enum constant, as declared in the enum declaration. 2756 /// The name of this enum constant, as declared in the enum declaration.
2770 final String name; 2757 final String name;
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 StaticTypeWarningCode(this.name, this.ordinal, String message) { 3115 StaticTypeWarningCode(this.name, this.ordinal, String message) {
3129 this._message = message; 3116 this._message = message;
3130 } 3117 }
3131 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3118 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3132 String get message => _message; 3119 String get message => _message;
3133 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3120 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3134 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal; 3121 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal;
3135 int get hashCode => ordinal; 3122 int get hashCode => ordinal;
3136 String toString() => name; 3123 String toString() => name;
3137 } 3124 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/engine.dart ('k') | pkg/analyzer_experimental/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698