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

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

Issue 14205011: Issue 9845. Compare runtime types using ==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 3
4 library engine.error; 4 library engine.error;
5 5
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 import 'ast.dart' show ASTNode; 8 import 'ast.dart' show ASTNode;
9 import 'scanner.dart' show Token; 9 import 'scanner.dart' show Token;
10 10
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 static final CompileTimeErrorCode IMPORT_DUPLICATED_LIBRARY_NAME = new Compile TimeErrorCode('IMPORT_DUPLICATED_LIBRARY_NAME', 42, ""); 626 static final CompileTimeErrorCode IMPORT_DUPLICATED_LIBRARY_NAME = new Compile TimeErrorCode('IMPORT_DUPLICATED_LIBRARY_NAME', 42, "");
627 /** 627 /**
628 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is 628 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is
629 * not a library declaration. 629 * not a library declaration.
630 * @param uri the uri pointing to a non-library declaration 630 * @param uri the uri pointing to a non-library declaration
631 */ 631 */
632 static final CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = new CompileTimeError Code('IMPORT_OF_NON_LIBRARY', 43, "The imported library '%s' must not have a par t-of directive"); 632 static final CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = new CompileTimeError Code('IMPORT_OF_NON_LIBRARY', 43, "The imported library '%s' must not have a par t-of directive");
633 /** 633 /**
634 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s ub>k</sub></i> are 634 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s ub>k</sub></i> are
635 * not instances of the same class <i>C</i>, for all <i>1 &lt;= k &lt;= n</i>. 635 * not instances of the same class <i>C</i>, for all <i>1 &lt;= k &lt;= n</i>.
636 * @param expressionSource the expression source code that is the unexpected t ype
637 * @param expectedType the name of the expected type
636 */ 638 */
637 static final CompileTimeErrorCode INCONSITENT_CASE_EXPRESSION_TYPES = new Comp ileTimeErrorCode('INCONSITENT_CASE_EXPRESSION_TYPES', 44, ""); 639 static final CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = new Com pileTimeErrorCode('INCONSISTENT_CASE_EXPRESSION_TYPES', 44, "Case expressions mu st have the same types, '%s' is not a %s'");
638 /** 640 /**
639 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 641 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
640 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an 642 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an
641 * instance variable declared in the immediately surrounding class. 643 * instance variable declared in the immediately surrounding class.
642 * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD 644 * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD
643 */ 645 */
644 static final CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = new Com pileTimeErrorCode('INITIALIZER_FOR_NON_EXISTANT_FIELD', 45, ""); 646 static final CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = new Com pileTimeErrorCode('INITIALIZER_FOR_NON_EXISTANT_FIELD', 45, "");
645 /** 647 /**
646 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 648 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
647 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an 649 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 /** 1005 /**
1004 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g eneric type with 1006 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g eneric type with
1005 * <i>n</i> type parameters invoked by a new expression or a constant object e xpression is passed 1007 * <i>n</i> type parameters invoked by a new expression or a constant object e xpression is passed
1006 * <i>m</i> type arguments where <i>m != n</i>. 1008 * <i>m</i> type arguments where <i>m != n</i>.
1007 * <p> 1009 * <p>
1008 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized type of the form 1010 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized type of the form
1009 * <i>G&lt;T<sub>1</sub>, &hellip;, T<sub>n</sub>&gt;</i> and <i>G</i> is not a generic type with 1011 * <i>G&lt;T<sub>1</sub>, &hellip;, T<sub>n</sub>&gt;</i> and <i>G</i> is not a generic type with
1010 * <i>n</i> type parameters. 1012 * <i>n</i> type parameters.
1011 */ 1013 */
1012 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 105, ""); 1014 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 105, "");
1013 static final List<CompileTimeErrorCode> values = [AMBIGUOUS_EXPORT, AMBIGUOUS_ IMPORT, ARGUMENT_DEFINITION_TEST_NON_PARAMETER, BUILT_IN_IDENTIFIER_AS_TYPE, BUI LT_IN_IDENTIFIER_AS_TYPE_NAME, BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, BUILT_IN_IDE NTIFIER_AS_TYPE_VARIABLE_NAME, CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, COMPILE_T IME_CONSTANT_RAISES_EXCEPTION, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTI NG_CONSTRUCTOR_NAME_AND_METHOD, CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, CONST_FO RMAL_PARAMETER, CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_THROWS_EXC EPTION, CONST_WITH_INVALID_TYPE_PARAMETERS, CONST_WITH_NON_CONST, CONST_WITH_NON _CONSTANT_ARGUMENT, CONST_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS, CONST_WITH_ UNDEFINED_CONSTRUCTOR, DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_DEFINITIO N, DUPLICATE_MEMBER_NAME, DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED _ARGUMENT, EXPORT_OF_NON_LIBRARY, EXTENDS_NON_CLASS, EXTENDS_DISALLOWED_CLASS, I MPLEMENTS_DISALLOWED_CLASS, FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, FIELD_IN ITIALIZED_IN_INITIALIZER_AND_DECLARATION, FIELD_INITIALIZED_IN_PARAMETER_AND_INI TIALIZER, FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, FINAL_INITIALIZED_IN_DECLARATIO N_AND_CONSTRUCTOR, FINAL_INITIALIZED_MULTIPLE_TIMES, FINAL_NOT_INITIALIZED, GETT ER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMEN TS_REPEATED, IMPLEMENTS_SELF, IMPORT_DUPLICATED_LIBRARY_NAME, IMPORT_OF_NON_LIBR ARY, INCONSITENT_CASE_EXPRESSION_TYPES, INITIALIZER_FOR_NON_EXISTANT_FIELD, INIT IALIZER_FOR_STATIC_FIELD, INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD, INITIALIZI NG_FORMAL_FOR_STATIC_FIELD, INVALID_CONSTANT, INVALID_CONSTRUCTOR_NAME, INVALID_ FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALUE, INVALID_OVERRIDE_NAMED , INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRED, INVALID_REFERENCE_TO_T HIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUMENT_IN_CONST_LIST, INVALID _TYPE_ARGUMENT_IN_CONST_MAP, INVALID_URI, LABEL_IN_OUTER_SCOPE, LABEL_UNDEFINED, MEMBER_WITH_CLASS_NAME, MIXIN_DECLARES_CONSTRUCTOR, MIXIN_INHERITS_FROM_NOT_OBJ ECT, MIXIN_OF_NON_CLASS, MIXIN_OF_NON_MIXIN, MIXIN_REFERENCES_SUPER, MIXIN_WITH_ NON_CLASS_SUPERCLASS, MULTIPLE_SUPER_INITIALIZERS, NEW_WITH_INVALID_TYPE_PARAMET ERS, NON_CONST_MAP_AS_EXPRESSION_STATEMENT, NON_CONSTANT_CASE_EXPRESSION, NON_CO NSTANT_DEFAULT_VALUE, NON_CONSTANT_LIST_ELEMENT, NON_CONSTANT_MAP_KEY, NON_CONST ANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_INITIALIZER, OBJECT_CANNOT_EXTEND_ANOTHER_C LASS, OPTIONAL_PARAMETER_IN_OPERATOR, OVERRIDE_MISSING_NAMED_PARAMETERS, OVERRID E_MISSING_REQUIRED_PARAMETERS, PART_OF_NON_PART, PREFIX_COLLIDES_WITH_TOP_LEVEL_ MEMBER, PRIVATE_OPTIONAL_PARAMETER, RECURSIVE_COMPILE_TIME_CONSTANT, RECURSIVE_F ACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECURSIVE_INTERFACE_INHERITANCE, REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE R, RESERVED_WORD_AS_IDENTIFIER, RETHROW_OUTSIDE_CATCH, RETURN_IN_GENERATIVE_CONS TRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVEL_VARIABLE, SUPER_IN_INVALID_ CONTEXT, SUPER_INITIALIZER_IN_OBJECT, TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS, UNDE FINED_CONSTRUCTOR_IN_INITIALIZER, UNINITIALIZED_FINAL_FIELD, URI_WITH_INTERPOLAT ION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, WRONG_NUMBER_OF_PARAMETERS_FOR_SET TER, WRONG_NUMBER_OF_TYPE_ARGUMENTS]; 1015 static final List<CompileTimeErrorCode> values = [AMBIGUOUS_EXPORT, AMBIGUOUS_ IMPORT, ARGUMENT_DEFINITION_TEST_NON_PARAMETER, BUILT_IN_IDENTIFIER_AS_TYPE, BUI LT_IN_IDENTIFIER_AS_TYPE_NAME, BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, BUILT_IN_IDE NTIFIER_AS_TYPE_VARIABLE_NAME, CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, COMPILE_T IME_CONSTANT_RAISES_EXCEPTION, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTI NG_CONSTRUCTOR_NAME_AND_METHOD, CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, CONST_FO RMAL_PARAMETER, CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_THROWS_EXC EPTION, CONST_WITH_INVALID_TYPE_PARAMETERS, CONST_WITH_NON_CONST, CONST_WITH_NON _CONSTANT_ARGUMENT, CONST_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS, CONST_WITH_ UNDEFINED_CONSTRUCTOR, DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_DEFINITIO N, DUPLICATE_MEMBER_NAME, DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED _ARGUMENT, EXPORT_OF_NON_LIBRARY, EXTENDS_NON_CLASS, EXTENDS_DISALLOWED_CLASS, I MPLEMENTS_DISALLOWED_CLASS, FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, FIELD_IN ITIALIZED_IN_INITIALIZER_AND_DECLARATION, FIELD_INITIALIZED_IN_PARAMETER_AND_INI TIALIZER, FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, FINAL_INITIALIZED_IN_DECLARATIO N_AND_CONSTRUCTOR, FINAL_INITIALIZED_MULTIPLE_TIMES, FINAL_NOT_INITIALIZED, GETT ER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMEN TS_REPEATED, IMPLEMENTS_SELF, IMPORT_DUPLICATED_LIBRARY_NAME, IMPORT_OF_NON_LIBR ARY, INCONSISTENT_CASE_EXPRESSION_TYPES, INITIALIZER_FOR_NON_EXISTANT_FIELD, INI TIALIZER_FOR_STATIC_FIELD, INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD, INITIALIZ ING_FORMAL_FOR_STATIC_FIELD, INVALID_CONSTANT, INVALID_CONSTRUCTOR_NAME, INVALID _FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALUE, INVALID_OVERRIDE_NAME D, INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRED, INVALID_REFERENCE_TO_ THIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUMENT_IN_CONST_LIST, INVALI D_TYPE_ARGUMENT_IN_CONST_MAP, INVALID_URI, LABEL_IN_OUTER_SCOPE, LABEL_UNDEFINED , MEMBER_WITH_CLASS_NAME, MIXIN_DECLARES_CONSTRUCTOR, MIXIN_INHERITS_FROM_NOT_OB JECT, MIXIN_OF_NON_CLASS, MIXIN_OF_NON_MIXIN, MIXIN_REFERENCES_SUPER, MIXIN_WITH _NON_CLASS_SUPERCLASS, MULTIPLE_SUPER_INITIALIZERS, NEW_WITH_INVALID_TYPE_PARAME TERS, NON_CONST_MAP_AS_EXPRESSION_STATEMENT, NON_CONSTANT_CASE_EXPRESSION, NON_C ONSTANT_DEFAULT_VALUE, NON_CONSTANT_LIST_ELEMENT, NON_CONSTANT_MAP_KEY, NON_CONS TANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_INITIALIZER, OBJECT_CANNOT_EXTEND_ANOTHER_ CLASS, OPTIONAL_PARAMETER_IN_OPERATOR, OVERRIDE_MISSING_NAMED_PARAMETERS, OVERRI DE_MISSING_REQUIRED_PARAMETERS, PART_OF_NON_PART, PREFIX_COLLIDES_WITH_TOP_LEVEL _MEMBER, PRIVATE_OPTIONAL_PARAMETER, RECURSIVE_COMPILE_TIME_CONSTANT, RECURSIVE_ FACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECURSIVE_INTERFACE_INHERITANCE , REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZ ER, RESERVED_WORD_AS_IDENTIFIER, RETHROW_OUTSIDE_CATCH, RETURN_IN_GENERATIVE_CON STRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVEL_VARIABLE, SUPER_IN_INVALID _CONTEXT, SUPER_INITIALIZER_IN_OBJECT, TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS, UND EFINED_CONSTRUCTOR_IN_INITIALIZER, UNINITIALIZED_FINAL_FIELD, URI_WITH_INTERPOLA TION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, WRONG_NUMBER_OF_PARAMETERS_FOR_SE TTER, WRONG_NUMBER_OF_TYPE_ARGUMENTS];
1014 final String __name; 1016 final String __name;
1015 final int __ordinal; 1017 final int __ordinal;
1016 int get ordinal => __ordinal; 1018 int get ordinal => __ordinal;
1017 /** 1019 /**
1018 * The message template used to create the message to be displayed for this er ror. 1020 * The message template used to create the message to be displayed for this er ror.
1019 */ 1021 */
1020 String _message; 1022 String _message;
1021 /** 1023 /**
1022 * Initialize a newly created error code to have the given message. 1024 * Initialize a newly created error code to have the given message.
1023 * @param message the message template used to create the message to be displa yed for the error 1025 * @param message the message template used to create the message to be displa yed for the error
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { 1578 StaticTypeWarningCode(this.__name, this.__ordinal, String message) {
1577 this._message = message; 1579 this._message = message;
1578 } 1580 }
1579 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 1581 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
1580 String get message => _message; 1582 String get message => _message;
1581 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 1583 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
1582 bool needsRecompilation() => true; 1584 bool needsRecompilation() => true;
1583 int compareTo(StaticTypeWarningCode other) => __ordinal - other.__ordinal; 1585 int compareTo(StaticTypeWarningCode other) => __ordinal - other.__ordinal;
1584 String toString() => __name; 1586 String toString() => __name;
1585 } 1587 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698