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

Side by Side Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 475543002: New analyzer snapshot, add format/formatList. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 // 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.parser; 8 library engine.parser;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 7689 matching lines...) Expand 10 before | Expand all | Expand 10 after
7700 } 7700 }
7701 } 7701 }
7702 7702
7703 /** 7703 /**
7704 * The enumeration `ParserErrorCode` defines the error codes used for errors det ected by the 7704 * The enumeration `ParserErrorCode` defines the error codes used for errors det ected by the
7705 * parser. The convention for this class is for the name of the error code to in dicate the problem 7705 * parser. The convention for this class is for the name of the error code to in dicate the problem
7706 * that caused the error to be generated and for the error message to explain wh at is wrong and, 7706 * that caused the error to be generated and for the error message to explain wh at is wrong and,
7707 * when appropriate, how the problem can be corrected. 7707 * when appropriate, how the problem can be corrected.
7708 */ 7708 */
7709 class ParserErrorCode extends Enum<ParserErrorCode> implements ErrorCode { 7709 class ParserErrorCode extends Enum<ParserErrorCode> implements ErrorCode {
7710 static const ParserErrorCode ABSTRACT_CLASS_MEMBER = const ParserErrorCode.con 3('ABSTRACT_CLASS_MEMBER', 0, "Members of classes cannot be declared to be 'abst ract'"); 7710 static const ParserErrorCode ABSTRACT_CLASS_MEMBER = const ParserErrorCode.con 3("ABSTRACT_CLASS_MEMBER", 0, "Members of classes cannot be declared to be 'abst ract'");
7711 7711
7712 static const ParserErrorCode ABSTRACT_ENUM = const ParserErrorCode.con3('ABSTR ACT_ENUM', 1, "Enums cannot be declared to be 'abstract'"); 7712 static const ParserErrorCode ABSTRACT_ENUM = const ParserErrorCode.con3("ABSTR ACT_ENUM", 1, "Enums cannot be declared to be 'abstract'");
7713 7713
7714 static const ParserErrorCode ABSTRACT_STATIC_METHOD = const ParserErrorCode.co n3('ABSTRACT_STATIC_METHOD', 2, "Static methods cannot be declared to be 'abstra ct'"); 7714 static const ParserErrorCode ABSTRACT_STATIC_METHOD = const ParserErrorCode.co n3("ABSTRACT_STATIC_METHOD", 2, "Static methods cannot be declared to be 'abstra ct'");
7715 7715
7716 static const ParserErrorCode ABSTRACT_TOP_LEVEL_FUNCTION = const ParserErrorCo de.con3('ABSTRACT_TOP_LEVEL_FUNCTION', 3, "Top-level functions cannot be declare d to be 'abstract'"); 7716 static const ParserErrorCode ABSTRACT_TOP_LEVEL_FUNCTION = const ParserErrorCo de.con3("ABSTRACT_TOP_LEVEL_FUNCTION", 3, "Top-level functions cannot be declare d to be 'abstract'");
7717 7717
7718 static const ParserErrorCode ABSTRACT_TOP_LEVEL_VARIABLE = const ParserErrorCo de.con3('ABSTRACT_TOP_LEVEL_VARIABLE', 4, "Top-level variables cannot be declare d to be 'abstract'"); 7718 static const ParserErrorCode ABSTRACT_TOP_LEVEL_VARIABLE = const ParserErrorCo de.con3("ABSTRACT_TOP_LEVEL_VARIABLE", 4, "Top-level variables cannot be declare d to be 'abstract'");
7719 7719
7720 static const ParserErrorCode ABSTRACT_TYPEDEF = const ParserErrorCode.con3('AB STRACT_TYPEDEF', 5, "Type aliases cannot be declared to be 'abstract'"); 7720 static const ParserErrorCode ABSTRACT_TYPEDEF = const ParserErrorCode.con3("AB STRACT_TYPEDEF", 5, "Type aliases cannot be declared to be 'abstract'");
7721 7721
7722 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_ASSIGNMENT = const ParserErr orCode.con3('ASSERT_DOES_NOT_TAKE_ASSIGNMENT', 6, "Assert cannot be called on an assignment"); 7722 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_ASSIGNMENT = const ParserErr orCode.con3("ASSERT_DOES_NOT_TAKE_ASSIGNMENT", 6, "Assert cannot be called on an assignment");
7723 7723
7724 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_CASCADE = const ParserErrorC ode.con3('ASSERT_DOES_NOT_TAKE_CASCADE', 7, "Assert cannot be called on cascade" ); 7724 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_CASCADE = const ParserErrorC ode.con3("ASSERT_DOES_NOT_TAKE_CASCADE", 7, "Assert cannot be called on cascade" );
7725 7725
7726 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_THROW = const ParserErrorCod e.con3('ASSERT_DOES_NOT_TAKE_THROW', 8, "Assert cannot be called on throws"); 7726 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_THROW = const ParserErrorCod e.con3("ASSERT_DOES_NOT_TAKE_THROW", 8, "Assert cannot be called on throws");
7727 7727
7728 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_RETHROW = const ParserErrorC ode.con3('ASSERT_DOES_NOT_TAKE_RETHROW', 9, "Assert cannot be called on rethrows "); 7728 static const ParserErrorCode ASSERT_DOES_NOT_TAKE_RETHROW = const ParserErrorC ode.con3("ASSERT_DOES_NOT_TAKE_RETHROW", 9, "Assert cannot be called on rethrows ");
7729 7729
7730 static const ParserErrorCode BREAK_OUTSIDE_OF_LOOP = const ParserErrorCode.con 3('BREAK_OUTSIDE_OF_LOOP', 10, "A break statement cannot be used outside of a lo op or switch statement"); 7730 static const ParserErrorCode BREAK_OUTSIDE_OF_LOOP = const ParserErrorCode.con 3("BREAK_OUTSIDE_OF_LOOP", 10, "A break statement cannot be used outside of a lo op or switch statement");
7731 7731
7732 static const ParserErrorCode CONST_AND_FINAL = const ParserErrorCode.con3('CON ST_AND_FINAL', 11, "Members cannot be declared to be both 'const' and 'final'"); 7732 static const ParserErrorCode CONST_AND_FINAL = const ParserErrorCode.con3("CON ST_AND_FINAL", 11, "Members cannot be declared to be both 'const' and 'final'");
7733 7733
7734 static const ParserErrorCode CONST_AND_VAR = const ParserErrorCode.con3('CONST _AND_VAR', 12, "Members cannot be declared to be both 'const' and 'var'"); 7734 static const ParserErrorCode CONST_AND_VAR = const ParserErrorCode.con3("CONST _AND_VAR", 12, "Members cannot be declared to be both 'const' and 'var'");
7735 7735
7736 static const ParserErrorCode CONST_CLASS = const ParserErrorCode.con3('CONST_C LASS', 13, "Classes cannot be declared to be 'const'"); 7736 static const ParserErrorCode CONST_CLASS = const ParserErrorCode.con3("CONST_C LASS", 13, "Classes cannot be declared to be 'const'");
7737 7737
7738 static const ParserErrorCode CONST_CONSTRUCTOR_WITH_BODY = const ParserErrorCo de.con3('CONST_CONSTRUCTOR_WITH_BODY', 14, "'const' constructors cannot have a b ody"); 7738 static const ParserErrorCode CONST_CONSTRUCTOR_WITH_BODY = const ParserErrorCo de.con3("CONST_CONSTRUCTOR_WITH_BODY", 14, "'const' constructors cannot have a b ody");
7739 7739
7740 static const ParserErrorCode CONST_ENUM = const ParserErrorCode.con3('CONST_EN UM', 15, "Enums cannot be declared to be 'const'"); 7740 static const ParserErrorCode CONST_ENUM = const ParserErrorCode.con3("CONST_EN UM", 15, "Enums cannot be declared to be 'const'");
7741 7741
7742 static const ParserErrorCode CONST_FACTORY = const ParserErrorCode.con3('CONST _FACTORY', 16, "Only redirecting factory constructors can be declared to be 'con st'"); 7742 static const ParserErrorCode CONST_FACTORY = const ParserErrorCode.con3("CONST _FACTORY", 16, "Only redirecting factory constructors can be declared to be 'con st'");
7743 7743
7744 static const ParserErrorCode CONST_METHOD = const ParserErrorCode.con3('CONST_ METHOD', 17, "Getters, setters and methods cannot be declared to be 'const'"); 7744 static const ParserErrorCode CONST_METHOD = const ParserErrorCode.con3("CONST_ METHOD", 17, "Getters, setters and methods cannot be declared to be 'const'");
7745 7745
7746 static const ParserErrorCode CONST_TYPEDEF = const ParserErrorCode.con3('CONST _TYPEDEF', 18, "Type aliases cannot be declared to be 'const'"); 7746 static const ParserErrorCode CONST_TYPEDEF = const ParserErrorCode.con3("CONST _TYPEDEF", 18, "Type aliases cannot be declared to be 'const'");
7747 7747
7748 static const ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = const ParserErrorC ode.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 19, "Constructors cannot have a return type"); 7748 static const ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = const ParserErrorC ode.con3("CONSTRUCTOR_WITH_RETURN_TYPE", 19, "Constructors cannot have a return type");
7749 7749
7750 static const ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = const ParserErrorCode. con3('CONTINUE_OUTSIDE_OF_LOOP', 20, "A continue statement cannot be used outsid e of a loop or switch statement"); 7750 static const ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = const ParserErrorCode. con3("CONTINUE_OUTSIDE_OF_LOOP", 20, "A continue statement cannot be used outsid e of a loop or switch statement");
7751 7751
7752 static const ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = const ParserErro rCode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 21, "A continue statement in a swit ch statement must have a label as a target"); 7752 static const ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = const ParserErro rCode.con3("CONTINUE_WITHOUT_LABEL_IN_CASE", 21, "A continue statement in a swit ch statement must have a label as a target");
7753 7753
7754 static const ParserErrorCode DEFERRED_IMPORTS_NOT_SUPPORTED = const ParserErro rCode.con3('DEFERRED_IMPORTS_NOT_SUPPORTED', 22, "Deferred imports are not suppo rted by default"); 7754 static const ParserErrorCode DEFERRED_IMPORTS_NOT_SUPPORTED = const ParserErro rCode.con3("DEFERRED_IMPORTS_NOT_SUPPORTED", 22, "Deferred imports are not suppo rted by default");
7755 7755
7756 static const ParserErrorCode DEPRECATED_CLASS_TYPE_ALIAS = const ParserErrorCo de.con3('DEPRECATED_CLASS_TYPE_ALIAS', 23, "The 'typedef' mixin application was replaced with 'class'"); 7756 static const ParserErrorCode DEPRECATED_CLASS_TYPE_ALIAS = const ParserErrorCo de.con3("DEPRECATED_CLASS_TYPE_ALIAS", 23, "The 'typedef' mixin application was replaced with 'class'");
7757 7757
7758 static const ParserErrorCode DIRECTIVE_AFTER_DECLARATION = const ParserErrorCo de.con3('DIRECTIVE_AFTER_DECLARATION', 24, "Directives must appear before any de clarations"); 7758 static const ParserErrorCode DIRECTIVE_AFTER_DECLARATION = const ParserErrorCo de.con3("DIRECTIVE_AFTER_DECLARATION", 24, "Directives must appear before any de clarations");
7759 7759
7760 static const ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = const Parse rErrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 25, "The label %s was alr eady used in this switch statement"); 7760 static const ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = const Parse rErrorCode.con3("DUPLICATE_LABEL_IN_SWITCH_STATEMENT", 25, "The label {0} was al ready used in this switch statement");
7761 7761
7762 static const ParserErrorCode DUPLICATED_MODIFIER = const ParserErrorCode.con3( 'DUPLICATED_MODIFIER', 26, "The modifier '%s' was already specified."); 7762 static const ParserErrorCode DUPLICATED_MODIFIER = const ParserErrorCode.con3( "DUPLICATED_MODIFIER", 26, "The modifier '{0}' was already specified.");
7763 7763
7764 static const ParserErrorCode EMPTY_ENUM_BODY = const ParserErrorCode.con3('EMP TY_ENUM_BODY', 27, "An enum must declare at least one constant name"); 7764 static const ParserErrorCode EMPTY_ENUM_BODY = const ParserErrorCode.con3("EMP TY_ENUM_BODY", 27, "An enum must declare at least one constant name");
7765 7765
7766 static const ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = const Parse rErrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 28, "Equality expression cannot be operand of another equality expression."); 7766 static const ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = const Parse rErrorCode.con3("EQUALITY_CANNOT_BE_EQUALITY_OPERAND", 28, "Equality expression cannot be operand of another equality expression.");
7767 7767
7768 static const ParserErrorCode EXPECTED_CASE_OR_DEFAULT = const ParserErrorCode. con3('EXPECTED_CASE_OR_DEFAULT', 29, "Expected 'case' or 'default'"); 7768 static const ParserErrorCode EXPECTED_CASE_OR_DEFAULT = const ParserErrorCode. con3("EXPECTED_CASE_OR_DEFAULT", 29, "Expected 'case' or 'default'");
7769 7769
7770 static const ParserErrorCode EXPECTED_CLASS_MEMBER = const ParserErrorCode.con 3('EXPECTED_CLASS_MEMBER', 30, "Expected a class member"); 7770 static const ParserErrorCode EXPECTED_CLASS_MEMBER = const ParserErrorCode.con 3("EXPECTED_CLASS_MEMBER", 30, "Expected a class member");
7771 7771
7772 static const ParserErrorCode EXPECTED_EXECUTABLE = const ParserErrorCode.con3( 'EXPECTED_EXECUTABLE', 31, "Expected a method, getter, setter or operator declar ation"); 7772 static const ParserErrorCode EXPECTED_EXECUTABLE = const ParserErrorCode.con3( "EXPECTED_EXECUTABLE", 31, "Expected a method, getter, setter or operator declar ation");
7773 7773
7774 static const ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = const ParserErrorC ode.con3('EXPECTED_LIST_OR_MAP_LITERAL', 32, "Expected a list or map literal"); 7774 static const ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = const ParserErrorC ode.con3("EXPECTED_LIST_OR_MAP_LITERAL", 32, "Expected a list or map literal");
7775 7775
7776 static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode.c on3('EXPECTED_STRING_LITERAL', 33, "Expected a string literal"); 7776 static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode.c on3("EXPECTED_STRING_LITERAL", 33, "Expected a string literal");
7777 7777
7778 static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode.con3('EXPE CTED_TOKEN', 34, "Expected to find '%s'"); 7778 static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode.con3("EXPE CTED_TOKEN", 34, "Expected to find '{0}'");
7779 7779
7780 static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode.con3(' EXPECTED_TYPE_NAME', 35, "Expected a type name"); 7780 static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode.con3(" EXPECTED_TYPE_NAME", 35, "Expected a type name");
7781 7781
7782 static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par serErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 36, "Export directive s must preceed part directives"); 7782 static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par serErrorCode.con3("EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE", 36, "Export directive s must preceed part directives");
7783 7783
7784 static const ParserErrorCode EXTERNAL_AFTER_CONST = const ParserErrorCode.con3 ('EXTERNAL_AFTER_CONST', 37, "The modifier 'external' should be before the modif ier 'const'"); 7784 static const ParserErrorCode EXTERNAL_AFTER_CONST = const ParserErrorCode.con3 ("EXTERNAL_AFTER_CONST", 37, "The modifier 'external' should be before the modif ier 'const'");
7785 7785
7786 static const ParserErrorCode EXTERNAL_AFTER_FACTORY = const ParserErrorCode.co n3('EXTERNAL_AFTER_FACTORY', 38, "The modifier 'external' should be before the m odifier 'factory'"); 7786 static const ParserErrorCode EXTERNAL_AFTER_FACTORY = const ParserErrorCode.co n3("EXTERNAL_AFTER_FACTORY", 38, "The modifier 'external' should be before the m odifier 'factory'");
7787 7787
7788 static const ParserErrorCode EXTERNAL_AFTER_STATIC = const ParserErrorCode.con 3('EXTERNAL_AFTER_STATIC', 39, "The modifier 'external' should be before the mod ifier 'static'"); 7788 static const ParserErrorCode EXTERNAL_AFTER_STATIC = const ParserErrorCode.con 3("EXTERNAL_AFTER_STATIC", 39, "The modifier 'external' should be before the mod ifier 'static'");
7789 7789
7790 static const ParserErrorCode EXTERNAL_CLASS = const ParserErrorCode.con3('EXTE RNAL_CLASS', 40, "Classes cannot be declared to be 'external'"); 7790 static const ParserErrorCode EXTERNAL_CLASS = const ParserErrorCode.con3("EXTE RNAL_CLASS", 40, "Classes cannot be declared to be 'external'");
7791 7791
7792 static const ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = const ParserErro rCode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 41, "External constructors cannot h ave a body"); 7792 static const ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = const ParserErro rCode.con3("EXTERNAL_CONSTRUCTOR_WITH_BODY", 41, "External constructors cannot h ave a body");
7793 7793
7794 static const ParserErrorCode EXTERNAL_ENUM = const ParserErrorCode.con3('EXTER NAL_ENUM', 42, "Enums cannot be declared to be 'external'"); 7794 static const ParserErrorCode EXTERNAL_ENUM = const ParserErrorCode.con3("EXTER NAL_ENUM", 42, "Enums cannot be declared to be 'external'");
7795 7795
7796 static const ParserErrorCode EXTERNAL_FIELD = const ParserErrorCode.con3('EXTE RNAL_FIELD', 43, "Fields cannot be declared to be 'external'"); 7796 static const ParserErrorCode EXTERNAL_FIELD = const ParserErrorCode.con3("EXTE RNAL_FIELD", 43, "Fields cannot be declared to be 'external'");
7797 7797
7798 static const ParserErrorCode EXTERNAL_GETTER_WITH_BODY = const ParserErrorCode .con3('EXTERNAL_GETTER_WITH_BODY', 44, "External getters cannot have a body"); 7798 static const ParserErrorCode EXTERNAL_GETTER_WITH_BODY = const ParserErrorCode .con3("EXTERNAL_GETTER_WITH_BODY", 44, "External getters cannot have a body");
7799 7799
7800 static const ParserErrorCode EXTERNAL_METHOD_WITH_BODY = const ParserErrorCode .con3('EXTERNAL_METHOD_WITH_BODY', 45, "External methods cannot have a body"); 7800 static const ParserErrorCode EXTERNAL_METHOD_WITH_BODY = const ParserErrorCode .con3("EXTERNAL_METHOD_WITH_BODY", 45, "External methods cannot have a body");
7801 7801
7802 static const ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = const ParserErrorCo de.con3('EXTERNAL_OPERATOR_WITH_BODY', 46, "External operators cannot have a bod y"); 7802 static const ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = const ParserErrorCo de.con3("EXTERNAL_OPERATOR_WITH_BODY", 46, "External operators cannot have a bod y");
7803 7803
7804 static const ParserErrorCode EXTERNAL_SETTER_WITH_BODY = const ParserErrorCode .con3('EXTERNAL_SETTER_WITH_BODY', 47, "External setters cannot have a body"); 7804 static const ParserErrorCode EXTERNAL_SETTER_WITH_BODY = const ParserErrorCode .con3("EXTERNAL_SETTER_WITH_BODY", 47, "External setters cannot have a body");
7805 7805
7806 static const ParserErrorCode EXTERNAL_TYPEDEF = const ParserErrorCode.con3('EX TERNAL_TYPEDEF', 48, "Type aliases cannot be declared to be 'external'"); 7806 static const ParserErrorCode EXTERNAL_TYPEDEF = const ParserErrorCode.con3("EX TERNAL_TYPEDEF", 48, "Type aliases cannot be declared to be 'external'");
7807 7807
7808 static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = const ParserError Code.con3('FACTORY_TOP_LEVEL_DECLARATION', 49, "Top-level declarations cannot be declared to be 'factory'"); 7808 static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = const ParserError Code.con3("FACTORY_TOP_LEVEL_DECLARATION", 49, "Top-level declarations cannot be declared to be 'factory'");
7809 7809
7810 static const ParserErrorCode FACTORY_WITHOUT_BODY = const ParserErrorCode.con3 ('FACTORY_WITHOUT_BODY', 50, "A non-redirecting 'factory' constructor must have a body"); 7810 static const ParserErrorCode FACTORY_WITHOUT_BODY = const ParserErrorCode.con3 ("FACTORY_WITHOUT_BODY", 50, "A non-redirecting 'factory' constructor must have a body");
7811 7811
7812 static const ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const Par serErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 51, "Field initialize rs can only be used in a constructor"); 7812 static const ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const Par serErrorCode.con3("FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR", 51, "Field initialize rs can only be used in a constructor");
7813 7813
7814 static const ParserErrorCode FINAL_AND_VAR = const ParserErrorCode.con3('FINAL _AND_VAR', 52, "Members cannot be declared to be both 'final' and 'var'"); 7814 static const ParserErrorCode FINAL_AND_VAR = const ParserErrorCode.con3("FINAL _AND_VAR", 52, "Members cannot be declared to be both 'final' and 'var'");
7815 7815
7816 static const ParserErrorCode FINAL_CLASS = const ParserErrorCode.con3('FINAL_C LASS', 53, "Classes cannot be declared to be 'final'"); 7816 static const ParserErrorCode FINAL_CLASS = const ParserErrorCode.con3("FINAL_C LASS", 53, "Classes cannot be declared to be 'final'");
7817 7817
7818 static const ParserErrorCode FINAL_CONSTRUCTOR = const ParserErrorCode.con3('F INAL_CONSTRUCTOR', 54, "A constructor cannot be declared to be 'final'"); 7818 static const ParserErrorCode FINAL_CONSTRUCTOR = const ParserErrorCode.con3("F INAL_CONSTRUCTOR", 54, "A constructor cannot be declared to be 'final'");
7819 7819
7820 static const ParserErrorCode FINAL_ENUM = const ParserErrorCode.con3('FINAL_EN UM', 55, "Enums cannot be declared to be 'final'"); 7820 static const ParserErrorCode FINAL_ENUM = const ParserErrorCode.con3("FINAL_EN UM", 55, "Enums cannot be declared to be 'final'");
7821 7821
7822 static const ParserErrorCode FINAL_METHOD = const ParserErrorCode.con3('FINAL_ METHOD', 56, "Getters, setters and methods cannot be declared to be 'final'"); 7822 static const ParserErrorCode FINAL_METHOD = const ParserErrorCode.con3("FINAL_ METHOD", 56, "Getters, setters and methods cannot be declared to be 'final'");
7823 7823
7824 static const ParserErrorCode FINAL_TYPEDEF = const ParserErrorCode.con3('FINAL _TYPEDEF', 57, "Type aliases cannot be declared to be 'final'"); 7824 static const ParserErrorCode FINAL_TYPEDEF = const ParserErrorCode.con3("FINAL _TYPEDEF", 57, "Type aliases cannot be declared to be 'final'");
7825 7825
7826 static const ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = const ParserErrorC ode.con3('FUNCTION_TYPED_PARAMETER_VAR', 58, "Function typed parameters cannot s pecify 'const', 'final' or 'var' instead of return type"); 7826 static const ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = const ParserErrorC ode.con3("FUNCTION_TYPED_PARAMETER_VAR", 58, "Function typed parameters cannot s pecify 'const', 'final' or 'var' instead of return type");
7827 7827
7828 static const ParserErrorCode GETTER_IN_FUNCTION = const ParserErrorCode.con3(' GETTER_IN_FUNCTION', 59, "Getters cannot be defined within methods or functions" ); 7828 static const ParserErrorCode GETTER_IN_FUNCTION = const ParserErrorCode.con3(" GETTER_IN_FUNCTION", 59, "Getters cannot be defined within methods or functions" );
7829 7829
7830 static const ParserErrorCode GETTER_WITH_PARAMETERS = const ParserErrorCode.co n3('GETTER_WITH_PARAMETERS', 60, "Getter should be declared without a parameter list"); 7830 static const ParserErrorCode GETTER_WITH_PARAMETERS = const ParserErrorCode.co n3("GETTER_WITH_PARAMETERS", 60, "Getter should be declared without a parameter list");
7831 7831
7832 static const ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = const Pars erErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 61, "Illegal assignment to non-assignable expression"); 7832 static const ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = const Pars erErrorCode.con3("ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE", 61, "Illegal assignment to non-assignable expression");
7833 7833
7834 static const ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = const ParserErrorCode .con3('IMPLEMENTS_BEFORE_EXTENDS', 62, "The extends clause must be before the im plements clause"); 7834 static const ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = const ParserErrorCode .con3("IMPLEMENTS_BEFORE_EXTENDS", 62, "The extends clause must be before the im plements clause");
7835 7835
7836 static const ParserErrorCode IMPLEMENTS_BEFORE_WITH = const ParserErrorCode.co n3('IMPLEMENTS_BEFORE_WITH', 63, "The with clause must be before the implements clause"); 7836 static const ParserErrorCode IMPLEMENTS_BEFORE_WITH = const ParserErrorCode.co n3("IMPLEMENTS_BEFORE_WITH", 63, "The with clause must be before the implements clause");
7837 7837
7838 static const ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par serErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 64, "Import directive s must preceed part directives"); 7838 static const ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par serErrorCode.con3("IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE", 64, "Import directive s must preceed part directives");
7839 7839
7840 static const ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = const ParserEr rorCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 65, "The loop variable in a for -each loop cannot be initialized"); 7840 static const ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = const ParserEr rorCode.con3("INITIALIZED_VARIABLE_IN_FOR_EACH", 65, "The loop variable in a for -each loop cannot be initialized");
7841 7841
7842 static const ParserErrorCode INVALID_AWAIT_IN_FOR = const ParserErrorCode.con4 ('INVALID_AWAIT_IN_FOR', 66, "The modifier 'await' is not allowed for a normal ' for' statement", "Remove the keyword or use a for-each statement."); 7842 static const ParserErrorCode INVALID_AWAIT_IN_FOR = const ParserErrorCode.con4 ("INVALID_AWAIT_IN_FOR", 66, "The modifier 'await' is not allowed for a normal ' for' statement", "Remove the keyword or use a for-each statement.");
7843 7843
7844 static const ParserErrorCode INVALID_CODE_POINT = const ParserErrorCode.con3(' INVALID_CODE_POINT', 67, "The escape sequence '%s' is not a valid code point"); 7844 static const ParserErrorCode INVALID_CODE_POINT = const ParserErrorCode.con3(" INVALID_CODE_POINT", 67, "The escape sequence '{0}' is not a valid code point");
7845 7845
7846 static const ParserErrorCode INVALID_COMMENT_REFERENCE = const ParserErrorCode .con3('INVALID_COMMENT_REFERENCE', 68, "Comment references should contain a poss ibly prefixed identifier and can start with 'new', but should not contain anythi ng else"); 7846 static const ParserErrorCode INVALID_COMMENT_REFERENCE = const ParserErrorCode .con3("INVALID_COMMENT_REFERENCE", 68, "Comment references should contain a poss ibly prefixed identifier and can start with 'new', but should not contain anythi ng else");
7847 7847
7848 static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode.con3(' INVALID_HEX_ESCAPE', 69, "An escape sequence starting with '\\x' must be followe d by 2 hexidecimal digits"); 7848 static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode.con3(" INVALID_HEX_ESCAPE", 69, "An escape sequence starting with '\\x' must be followe d by 2 hexidecimal digits");
7849 7849
7850 static const ParserErrorCode INVALID_OPERATOR = const ParserErrorCode.con3('IN VALID_OPERATOR', 70, "The string '%s' is not a valid operator"); 7850 static const ParserErrorCode INVALID_OPERATOR = const ParserErrorCode.con3("IN VALID_OPERATOR", 70, "The string '{0}' is not a valid operator");
7851 7851
7852 static const ParserErrorCode INVALID_OPERATOR_FOR_SUPER = const ParserErrorCod e.con3('INVALID_OPERATOR_FOR_SUPER', 71, "The operator '%s' cannot be used with 'super'"); 7852 static const ParserErrorCode INVALID_OPERATOR_FOR_SUPER = const ParserErrorCod e.con3("INVALID_OPERATOR_FOR_SUPER", 71, "The operator '{0}' cannot be used with 'super'");
7853 7853
7854 static const ParserErrorCode INVALID_STAR_AFTER_ASYNC = const ParserErrorCode. con4('INVALID_STAR_AFTER_ASYNC', 72, "The modifier 'async*' is not allowed for a n expression function body", "Convert the body to a block."); 7854 static const ParserErrorCode INVALID_STAR_AFTER_ASYNC = const ParserErrorCode. con4("INVALID_STAR_AFTER_ASYNC", 72, "The modifier 'async*' is not allowed for a n expression function body", "Convert the body to a block.");
7855 7855
7856 static const ParserErrorCode INVALID_SYNC = const ParserErrorCode.con4('INVALI D_SYNC', 73, "The modifier 'sync' is not allowed for an exrpression function bod y", "Convert the body to a block."); 7856 static const ParserErrorCode INVALID_SYNC = const ParserErrorCode.con4("INVALI D_SYNC", 73, "The modifier 'sync' is not allowed for an exrpression function bod y", "Convert the body to a block.");
7857 7857
7858 static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode.co n3('INVALID_UNICODE_ESCAPE', 74, "An escape sequence starting with '\\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"); 7858 static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode.co n3("INVALID_UNICODE_ESCAPE", 74, "An escape sequence starting with '\\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'");
7859 7859
7860 static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = const ParserErrorCo de.con3('LIBRARY_DIRECTIVE_NOT_FIRST', 75, "The library directive must appear be fore all other directives"); 7860 static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = const ParserErrorCo de.con3("LIBRARY_DIRECTIVE_NOT_FIRST", 75, "The library directive must appear be fore all other directives");
7861 7861
7862 static const ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = const Parse rErrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 76, "Local function decla rations cannot specify any modifier"); 7862 static const ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = const Parse rErrorCode.con3("LOCAL_FUNCTION_DECLARATION_MODIFIER", 76, "Local function decla rations cannot specify any modifier");
7863 7863
7864 static const ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = const ParserErrorCo de.con3('MISSING_ASSIGNABLE_SELECTOR', 77, "Missing selector such as \".<identif ier>\" or \"[0]\""); 7864 static const ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = const ParserErrorCo de.con3("MISSING_ASSIGNABLE_SELECTOR", 77, "Missing selector such as \".<identif ier>\" or \"[0]\"");
7865 7865
7866 static const ParserErrorCode MISSING_CATCH_OR_FINALLY = const ParserErrorCode. con3('MISSING_CATCH_OR_FINALLY', 78, "A try statement must have either a catch o r finally clause"); 7866 static const ParserErrorCode MISSING_CATCH_OR_FINALLY = const ParserErrorCode. con3("MISSING_CATCH_OR_FINALLY", 78, "A try statement must have either a catch o r finally clause");
7867 7867
7868 static const ParserErrorCode MISSING_CLASS_BODY = const ParserErrorCode.con3(' MISSING_CLASS_BODY', 79, "A class definition must have a body, even if it is emp ty"); 7868 static const ParserErrorCode MISSING_CLASS_BODY = const ParserErrorCode.con3(" MISSING_CLASS_BODY", 79, "A class definition must have a body, even if it is emp ty");
7869 7869
7870 static const ParserErrorCode MISSING_CLOSING_PARENTHESIS = const ParserErrorCo de.con3('MISSING_CLOSING_PARENTHESIS', 80, "The closing parenthesis is missing") ; 7870 static const ParserErrorCode MISSING_CLOSING_PARENTHESIS = const ParserErrorCo de.con3("MISSING_CLOSING_PARENTHESIS", 80, "The closing parenthesis is missing") ;
7871 7871
7872 static const ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = const ParserErr orCode.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 81, "Variables must be declared u sing the keywords 'const', 'final', 'var' or a type name"); 7872 static const ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = const ParserErr orCode.con3("MISSING_CONST_FINAL_VAR_OR_TYPE", 81, "Variables must be declared u sing the keywords 'const', 'final', 'var' or a type name");
7873 7873
7874 static const ParserErrorCode MISSING_ENUM_BODY = const ParserErrorCode.con3('M ISSING_ENUM_BODY', 82, "An enum definition must have a body with at least one co nstant name"); 7874 static const ParserErrorCode MISSING_ENUM_BODY = const ParserErrorCode.con3("M ISSING_ENUM_BODY", 82, "An enum definition must have a body with at least one co nstant name");
7875 7875
7876 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = const ParserErrorCo de.con3('MISSING_EXPRESSION_IN_THROW', 83, "Throw expressions must compute the o bject to be thrown"); 7876 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = const ParserErrorCo de.con3("MISSING_EXPRESSION_IN_THROW", 83, "Throw expressions must compute the o bject to be thrown");
7877 7877
7878 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode.con 3('MISSING_FUNCTION_BODY', 84, "A function body must be provided"); 7878 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode.con 3("MISSING_FUNCTION_BODY", 84, "A function body must be provided");
7879 7879
7880 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = const ParserErrorCo de.con3('MISSING_FUNCTION_PARAMETERS', 85, "Functions must have an explicit list of parameters"); 7880 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = const ParserErrorCo de.con3("MISSING_FUNCTION_PARAMETERS", 85, "Functions must have an explicit list of parameters");
7881 7881
7882 static const ParserErrorCode MISSING_GET = const ParserErrorCode.con3('MISSING _GET', 86, "Getters must have the keyword 'get' before the getter name"); 7882 static const ParserErrorCode MISSING_GET = const ParserErrorCode.con3("MISSING _GET", 86, "Getters must have the keyword 'get' before the getter name");
7883 7883
7884 static const ParserErrorCode MISSING_IDENTIFIER = const ParserErrorCode.con3(' MISSING_IDENTIFIER', 87, "Expected an identifier"); 7884 static const ParserErrorCode MISSING_IDENTIFIER = const ParserErrorCode.con3(" MISSING_IDENTIFIER", 87, "Expected an identifier");
7885 7885
7886 static const ParserErrorCode MISSING_KEYWORD_OPERATOR = const ParserErrorCode. con3('MISSING_KEYWORD_OPERATOR', 88, "Operator declarations must be preceeded by the keyword 'operator'"); 7886 static const ParserErrorCode MISSING_KEYWORD_OPERATOR = const ParserErrorCode. con3("MISSING_KEYWORD_OPERATOR", 88, "Operator declarations must be preceeded by the keyword 'operator'");
7887 7887
7888 static const ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = const ParserE rrorCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 89, "Library directives must include a library name"); 7888 static const ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = const ParserE rrorCode.con3("MISSING_NAME_IN_LIBRARY_DIRECTIVE", 89, "Library directives must include a library name");
7889 7889
7890 static const ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = const ParserE rrorCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 90, "Library directives must include a library name"); 7890 static const ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = const ParserE rrorCode.con3("MISSING_NAME_IN_PART_OF_DIRECTIVE", 90, "Library directives must include a library name");
7891 7891
7892 static const ParserErrorCode MISSING_PREFIX_IN_DEFERRED_IMPORT = const ParserE rrorCode.con3('MISSING_PREFIX_IN_DEFERRED_IMPORT', 91, "Deferred imports must ha ve a prefix"); 7892 static const ParserErrorCode MISSING_PREFIX_IN_DEFERRED_IMPORT = const ParserE rrorCode.con3("MISSING_PREFIX_IN_DEFERRED_IMPORT", 91, "Deferred imports must ha ve a prefix");
7893 7893
7894 static const ParserErrorCode MISSING_STAR_AFTER_SYNC = const ParserErrorCode.c on4('MISSING_STAR_AFTER_SYNC', 92, "The modifier 'sync' must be followed by a st ar ('*')", "Remove the modifier or add a star."); 7894 static const ParserErrorCode MISSING_STAR_AFTER_SYNC = const ParserErrorCode.c on4("MISSING_STAR_AFTER_SYNC", 92, "The modifier 'sync' must be followed by a st ar ('*')", "Remove the modifier or add a star.");
7895 7895
7896 static const ParserErrorCode MISSING_STATEMENT = const ParserErrorCode.con3('M ISSING_STATEMENT', 93, "Expected a statement"); 7896 static const ParserErrorCode MISSING_STATEMENT = const ParserErrorCode.con3("M ISSING_STATEMENT", 93, "Expected a statement");
7897 7897
7898 static const ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = const Pa rserErrorCode.con3('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 94, "There is no '% s' to close the parameter group"); 7898 static const ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = const Pa rserErrorCode.con3("MISSING_TERMINATOR_FOR_PARAMETER_GROUP", 94, "There is no '{ 0}' to close the parameter group");
7899 7899
7900 static const ParserErrorCode MISSING_TYPEDEF_PARAMETERS = const ParserErrorCod e.con3('MISSING_TYPEDEF_PARAMETERS', 95, "Type aliases for functions must have a n explicit list of parameters"); 7900 static const ParserErrorCode MISSING_TYPEDEF_PARAMETERS = const ParserErrorCod e.con3("MISSING_TYPEDEF_PARAMETERS", 95, "Type aliases for functions must have a n explicit list of parameters");
7901 7901
7902 static const ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = const ParserErrorC ode.con3('MISSING_VARIABLE_IN_FOR_EACH', 96, "A loop variable must be declared i n a for-each loop before the 'in', but none were found"); 7902 static const ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = const ParserErrorC ode.con3("MISSING_VARIABLE_IN_FOR_EACH", 96, "A loop variable must be declared i n a for-each loop before the 'in', but none were found");
7903 7903
7904 static const ParserErrorCode MIXED_PARAMETER_GROUPS = const ParserErrorCode.co n3('MIXED_PARAMETER_GROUPS', 97, "Cannot have both positional and named paramete rs in a single parameter list"); 7904 static const ParserErrorCode MIXED_PARAMETER_GROUPS = const ParserErrorCode.co n3("MIXED_PARAMETER_GROUPS", 97, "Cannot have both positional and named paramete rs in a single parameter list");
7905 7905
7906 static const ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = const ParserErrorCode. con3('MULTIPLE_EXTENDS_CLAUSES', 98, "Each class definition can have at most one extends clause"); 7906 static const ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = const ParserErrorCode. con3("MULTIPLE_EXTENDS_CLAUSES", 98, "Each class definition can have at most one extends clause");
7907 7907
7908 static const ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = const ParserErrorCo de.con3('MULTIPLE_IMPLEMENTS_CLAUSES', 99, "Each class definition can have at mo st one implements clause"); 7908 static const ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = const ParserErrorCo de.con3("MULTIPLE_IMPLEMENTS_CLAUSES", 99, "Each class definition can have at mo st one implements clause");
7909 7909
7910 static const ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = const ParserErrorCo de.con3('MULTIPLE_LIBRARY_DIRECTIVES', 100, "Only one library directive may be d eclared in a file"); 7910 static const ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = const ParserErrorCo de.con3("MULTIPLE_LIBRARY_DIRECTIVES", 100, "Only one library directive may be d eclared in a file");
7911 7911
7912 static const ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = const ParserErr orCode.con3('MULTIPLE_NAMED_PARAMETER_GROUPS', 101, "Cannot have multiple groups of named parameters in a single parameter list"); 7912 static const ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = const ParserErr orCode.con3("MULTIPLE_NAMED_PARAMETER_GROUPS", 101, "Cannot have multiple groups of named parameters in a single parameter list");
7913 7913
7914 static const ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = const ParserErrorCo de.con3('MULTIPLE_PART_OF_DIRECTIVES', 102, "Only one part-of directive may be d eclared in a file"); 7914 static const ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = const ParserErrorCo de.con3("MULTIPLE_PART_OF_DIRECTIVES", 102, "Only one part-of directive may be d eclared in a file");
7915 7915
7916 static const ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = const Pars erErrorCode.con3('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 103, "Cannot have multi ple groups of positional parameters in a single parameter list"); 7916 static const ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = const Pars erErrorCode.con3("MULTIPLE_POSITIONAL_PARAMETER_GROUPS", 103, "Cannot have multi ple groups of positional parameters in a single parameter list");
7917 7917
7918 static const ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = const ParserErro rCode.con3('MULTIPLE_VARIABLES_IN_FOR_EACH', 104, "A single loop variable must b e declared in a for-each loop before the 'in', but %s were found"); 7918 static const ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = const ParserErro rCode.con3("MULTIPLE_VARIABLES_IN_FOR_EACH", 104, "A single loop variable must b e declared in a for-each loop before the 'in', but {0} were found");
7919 7919
7920 static const ParserErrorCode MULTIPLE_WITH_CLAUSES = const ParserErrorCode.con 3('MULTIPLE_WITH_CLAUSES', 105, "Each class definition can have at most one with clause"); 7920 static const ParserErrorCode MULTIPLE_WITH_CLAUSES = const ParserErrorCode.con 3("MULTIPLE_WITH_CLAUSES", 105, "Each class definition can have at most one with clause");
7921 7921
7922 static const ParserErrorCode NAMED_FUNCTION_EXPRESSION = const ParserErrorCode .con3('NAMED_FUNCTION_EXPRESSION', 106, "Function expressions cannot be named"); 7922 static const ParserErrorCode NAMED_FUNCTION_EXPRESSION = const ParserErrorCode .con3("NAMED_FUNCTION_EXPRESSION", 106, "Function expressions cannot be named");
7923 7923
7924 static const ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = const ParserError Code.con3('NAMED_PARAMETER_OUTSIDE_GROUP', 107, "Named parameters must be enclos ed in curly braces ('{' and '}')"); 7924 static const ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = const ParserError Code.con3("NAMED_PARAMETER_OUTSIDE_GROUP", 107, "Named parameters must be enclos ed in curly braces ('{' and '}')");
7925 7925
7926 static const ParserErrorCode NATIVE_CLAUSE_IN_NON_SDK_CODE = const ParserError Code.con3('NATIVE_CLAUSE_IN_NON_SDK_CODE', 108, "Native clause can only be used in the SDK and code that is loaded through native extensions"); 7926 static const ParserErrorCode NATIVE_CLAUSE_IN_NON_SDK_CODE = const ParserError Code.con3("NATIVE_CLAUSE_IN_NON_SDK_CODE", 108, "Native clause can only be used in the SDK and code that is loaded through native extensions");
7927 7927
7928 static const ParserErrorCode NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE = const Pars erErrorCode.con3('NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE', 109, "Native functions can only be declared in the SDK and code that is loaded through native extension s"); 7928 static const ParserErrorCode NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE = const Pars erErrorCode.con3("NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE", 109, "Native functions can only be declared in the SDK and code that is loaded through native extension s");
7929 7929
7930 static const ParserErrorCode NON_CONSTRUCTOR_FACTORY = const ParserErrorCode.c on3('NON_CONSTRUCTOR_FACTORY', 110, "Only constructors can be declared to be a ' factory'"); 7930 static const ParserErrorCode NON_CONSTRUCTOR_FACTORY = const ParserErrorCode.c on3("NON_CONSTRUCTOR_FACTORY", 110, "Only constructors can be declared to be a ' factory'");
7931 7931
7932 static const ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = const ParserErrorCo de.con3('NON_IDENTIFIER_LIBRARY_NAME', 111, "The name of a library must be an id entifier"); 7932 static const ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = const ParserErrorCo de.con3("NON_IDENTIFIER_LIBRARY_NAME", 111, "The name of a library must be an id entifier");
7933 7933
7934 static const ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = const ParserError Code.con3('NON_PART_OF_DIRECTIVE_IN_PART', 112, "The part-of directive must be t he only directive in a part"); 7934 static const ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = const ParserError Code.con3("NON_PART_OF_DIRECTIVE_IN_PART", 112, "The part-of directive must be t he only directive in a part");
7935 7935
7936 static const ParserErrorCode NON_USER_DEFINABLE_OPERATOR = const ParserErrorCo de.con3('NON_USER_DEFINABLE_OPERATOR', 113, "The operator '%s' is not user defin able"); 7936 static const ParserErrorCode NON_USER_DEFINABLE_OPERATOR = const ParserErrorCo de.con3("NON_USER_DEFINABLE_OPERATOR", 113, "The operator '{0}' is not user defi nable");
7937 7937
7938 static const ParserErrorCode NORMAL_BEFORE_OPTIONAL_PARAMETERS = const ParserE rrorCode.con3('NORMAL_BEFORE_OPTIONAL_PARAMETERS', 114, "Normal parameters must occur before optional parameters"); 7938 static const ParserErrorCode NORMAL_BEFORE_OPTIONAL_PARAMETERS = const ParserE rrorCode.con3("NORMAL_BEFORE_OPTIONAL_PARAMETERS", 114, "Normal parameters must occur before optional parameters");
7939 7939
7940 static const ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = const ParserErr orCode.con3('POSITIONAL_AFTER_NAMED_ARGUMENT', 115, "Positional arguments must o ccur before named arguments"); 7940 static const ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = const ParserErr orCode.con3("POSITIONAL_AFTER_NAMED_ARGUMENT", 115, "Positional arguments must o ccur before named arguments");
7941 7941
7942 static const ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = const Parser ErrorCode.con3('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 116, "Positional parameters must be enclosed in square brackets ('[' and ']')"); 7942 static const ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = const Parser ErrorCode.con3("POSITIONAL_PARAMETER_OUTSIDE_GROUP", 116, "Positional parameters must be enclosed in square brackets ('[' and ']')");
7943 7943
7944 static const ParserErrorCode REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR = const Pa rserErrorCode.con3('REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR', 117, "Only factory constructor can specify '=' redirection."); 7944 static const ParserErrorCode REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR = const Pa rserErrorCode.con3("REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR", 117, "Only factory constructor can specify '=' redirection.");
7945 7945
7946 static const ParserErrorCode SETTER_IN_FUNCTION = const ParserErrorCode.con3(' SETTER_IN_FUNCTION', 118, "Setters cannot be defined within methods or functions "); 7946 static const ParserErrorCode SETTER_IN_FUNCTION = const ParserErrorCode.con3(" SETTER_IN_FUNCTION", 118, "Setters cannot be defined within methods or functions ");
7947 7947
7948 static const ParserErrorCode STATIC_AFTER_CONST = const ParserErrorCode.con3(' STATIC_AFTER_CONST', 119, "The modifier 'static' should be before the modifier ' const'"); 7948 static const ParserErrorCode STATIC_AFTER_CONST = const ParserErrorCode.con3(" STATIC_AFTER_CONST", 119, "The modifier 'static' should be before the modifier ' const'");
7949 7949
7950 static const ParserErrorCode STATIC_AFTER_FINAL = const ParserErrorCode.con3(' STATIC_AFTER_FINAL', 120, "The modifier 'static' should be before the modifier ' final'"); 7950 static const ParserErrorCode STATIC_AFTER_FINAL = const ParserErrorCode.con3(" STATIC_AFTER_FINAL", 120, "The modifier 'static' should be before the modifier ' final'");
7951 7951
7952 static const ParserErrorCode STATIC_AFTER_VAR = const ParserErrorCode.con3('ST ATIC_AFTER_VAR', 121, "The modifier 'static' should be before the modifier 'var' "); 7952 static const ParserErrorCode STATIC_AFTER_VAR = const ParserErrorCode.con3("ST ATIC_AFTER_VAR", 121, "The modifier 'static' should be before the modifier 'var' ");
7953 7953
7954 static const ParserErrorCode STATIC_CONSTRUCTOR = const ParserErrorCode.con3(' STATIC_CONSTRUCTOR', 122, "Constructors cannot be static"); 7954 static const ParserErrorCode STATIC_CONSTRUCTOR = const ParserErrorCode.con3(" STATIC_CONSTRUCTOR", 122, "Constructors cannot be static");
7955 7955
7956 static const ParserErrorCode STATIC_GETTER_WITHOUT_BODY = const ParserErrorCod e.con3('STATIC_GETTER_WITHOUT_BODY', 123, "A 'static' getter must have a body"); 7956 static const ParserErrorCode STATIC_GETTER_WITHOUT_BODY = const ParserErrorCod e.con3("STATIC_GETTER_WITHOUT_BODY", 123, "A 'static' getter must have a body");
7957 7957
7958 static const ParserErrorCode STATIC_OPERATOR = const ParserErrorCode.con3('STA TIC_OPERATOR', 124, "Operators cannot be static"); 7958 static const ParserErrorCode STATIC_OPERATOR = const ParserErrorCode.con3("STA TIC_OPERATOR", 124, "Operators cannot be static");
7959 7959
7960 static const ParserErrorCode STATIC_SETTER_WITHOUT_BODY = const ParserErrorCod e.con3('STATIC_SETTER_WITHOUT_BODY', 125, "A 'static' setter must have a body"); 7960 static const ParserErrorCode STATIC_SETTER_WITHOUT_BODY = const ParserErrorCod e.con3("STATIC_SETTER_WITHOUT_BODY", 125, "A 'static' setter must have a body");
7961 7961
7962 static const ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = const ParserErrorC ode.con3('STATIC_TOP_LEVEL_DECLARATION', 126, "Top-level declarations cannot be declared to be 'static'"); 7962 static const ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = const ParserErrorC ode.con3("STATIC_TOP_LEVEL_DECLARATION", 126, "Top-level declarations cannot be declared to be 'static'");
7963 7963
7964 static const ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = const Parser ErrorCode.con3('SWITCH_HAS_CASE_AFTER_DEFAULT_CASE', 127, "The 'default' case sh ould be the last case in a switch statement"); 7964 static const ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = const Parser ErrorCode.con3("SWITCH_HAS_CASE_AFTER_DEFAULT_CASE", 127, "The 'default' case sh ould be the last case in a switch statement");
7965 7965
7966 static const ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = const ParserE rrorCode.con3('SWITCH_HAS_MULTIPLE_DEFAULT_CASES', 128, "The 'default' case can only be declared once"); 7966 static const ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = const ParserE rrorCode.con3("SWITCH_HAS_MULTIPLE_DEFAULT_CASES", 128, "The 'default' case can only be declared once");
7967 7967
7968 static const ParserErrorCode TOP_LEVEL_OPERATOR = const ParserErrorCode.con3(' TOP_LEVEL_OPERATOR', 129, "Operators must be declared within a class"); 7968 static const ParserErrorCode TOP_LEVEL_OPERATOR = const ParserErrorCode.con3(" TOP_LEVEL_OPERATOR", 129, "Operators must be declared within a class");
7969 7969
7970 static const ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = const ParserErrorCode.con3('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 130, "There i s no '%s' to open a parameter group"); 7970 static const ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = const ParserErrorCode.con3("UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP", 130, "There i s no '{0}' to open a parameter group");
7971 7971
7972 static const ParserErrorCode UNEXPECTED_TOKEN = const ParserErrorCode.con3('UN EXPECTED_TOKEN', 131, "Unexpected token '%s'"); 7972 static const ParserErrorCode UNEXPECTED_TOKEN = const ParserErrorCode.con3("UN EXPECTED_TOKEN", 131, "Unexpected token '{0}'");
7973 7973
7974 static const ParserErrorCode WITH_BEFORE_EXTENDS = const ParserErrorCode.con3( 'WITH_BEFORE_EXTENDS', 132, "The extends clause must be before the with clause") ; 7974 static const ParserErrorCode WITH_BEFORE_EXTENDS = const ParserErrorCode.con3( "WITH_BEFORE_EXTENDS", 132, "The extends clause must be before the with clause") ;
7975 7975
7976 static const ParserErrorCode WITH_WITHOUT_EXTENDS = const ParserErrorCode.con3 ('WITH_WITHOUT_EXTENDS', 133, "The with clause cannot be used without an extends clause"); 7976 static const ParserErrorCode WITH_WITHOUT_EXTENDS = const ParserErrorCode.con3 ("WITH_WITHOUT_EXTENDS", 133, "The with clause cannot be used without an extends clause");
7977 7977
7978 static const ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = const Parse rErrorCode.con3('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 134, "The default value o f a named parameter should be preceeded by ':'"); 7978 static const ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = const Parse rErrorCode.con3("WRONG_SEPARATOR_FOR_NAMED_PARAMETER", 134, "The default value o f a named parameter should be preceeded by ':'");
7979 7979
7980 static const ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = const ParserErrorCode.con3('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 135, "The defau lt value of a positional parameter should be preceeded by '='"); 7980 static const ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = const ParserErrorCode.con3("WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER", 135, "The defau lt value of a positional parameter should be preceeded by '='");
7981 7981
7982 static const ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = const Pars erErrorCode.con3('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 136, "Expected '%s' to close parameter group"); 7982 static const ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = const Pars erErrorCode.con3("WRONG_TERMINATOR_FOR_PARAMETER_GROUP", 136, "Expected '{0}' to close parameter group");
7983 7983
7984 static const ParserErrorCode VAR_AND_TYPE = const ParserErrorCode.con3('VAR_AN D_TYPE', 137, "Variables cannot be declared using both 'var' and a type name; re move the 'var'"); 7984 static const ParserErrorCode VAR_AND_TYPE = const ParserErrorCode.con3("VAR_AN D_TYPE", 137, "Variables cannot be declared using both 'var' and a type name; re move the 'var'");
7985 7985
7986 static const ParserErrorCode VAR_AS_TYPE_NAME = const ParserErrorCode.con3('VA R_AS_TYPE_NAME', 138, "The keyword 'var' cannot be used as a type name"); 7986 static const ParserErrorCode VAR_AS_TYPE_NAME = const ParserErrorCode.con3("VA R_AS_TYPE_NAME", 138, "The keyword 'var' cannot be used as a type name");
7987 7987
7988 static const ParserErrorCode VAR_CLASS = const ParserErrorCode.con3('VAR_CLASS ', 139, "Classes cannot be declared to be 'var'"); 7988 static const ParserErrorCode VAR_CLASS = const ParserErrorCode.con3("VAR_CLASS ", 139, "Classes cannot be declared to be 'var'");
7989 7989
7990 static const ParserErrorCode VAR_ENUM = const ParserErrorCode.con3('VAR_ENUM', 140, "Enums cannot be declared to be 'var'"); 7990 static const ParserErrorCode VAR_ENUM = const ParserErrorCode.con3("VAR_ENUM", 140, "Enums cannot be declared to be 'var'");
7991 7991
7992 static const ParserErrorCode VAR_RETURN_TYPE = const ParserErrorCode.con3('VAR _RETURN_TYPE', 141, "The return type cannot be 'var'"); 7992 static const ParserErrorCode VAR_RETURN_TYPE = const ParserErrorCode.con3("VAR _RETURN_TYPE", 141, "The return type cannot be 'var'");
7993 7993
7994 static const ParserErrorCode VAR_TYPEDEF = const ParserErrorCode.con3('VAR_TYP EDEF', 142, "Type aliases cannot be declared to be 'var'"); 7994 static const ParserErrorCode VAR_TYPEDEF = const ParserErrorCode.con3("VAR_TYP EDEF", 142, "Type aliases cannot be declared to be 'var'");
7995 7995
7996 static const ParserErrorCode VOID_PARAMETER = const ParserErrorCode.con3('VOID _PARAMETER', 143, "Parameters cannot have a type of 'void'"); 7996 static const ParserErrorCode VOID_PARAMETER = const ParserErrorCode.con3("VOID _PARAMETER", 143, "Parameters cannot have a type of 'void'");
7997 7997
7998 static const ParserErrorCode VOID_VARIABLE = const ParserErrorCode.con3('VOID_ VARIABLE', 144, "Variables cannot have a type of 'void'"); 7998 static const ParserErrorCode VOID_VARIABLE = const ParserErrorCode.con3("VOID_ VARIABLE", 144, "Variables cannot have a type of 'void'");
7999 7999
8000 static const List<ParserErrorCode> values = const [ 8000 static const List<ParserErrorCode> values = const [
8001 ABSTRACT_CLASS_MEMBER, 8001 ABSTRACT_CLASS_MEMBER,
8002 ABSTRACT_ENUM, 8002 ABSTRACT_ENUM,
8003 ABSTRACT_STATIC_METHOD, 8003 ABSTRACT_STATIC_METHOD,
8004 ABSTRACT_TOP_LEVEL_FUNCTION, 8004 ABSTRACT_TOP_LEVEL_FUNCTION,
8005 ABSTRACT_TOP_LEVEL_VARIABLE, 8005 ABSTRACT_TOP_LEVEL_VARIABLE,
8006 ABSTRACT_TYPEDEF, 8006 ABSTRACT_TYPEDEF,
8007 ASSERT_DOES_NOT_TAKE_ASSIGNMENT, 8007 ASSERT_DOES_NOT_TAKE_ASSIGNMENT,
8008 ASSERT_DOES_NOT_TAKE_CASCADE, 8008 ASSERT_DOES_NOT_TAKE_CASCADE,
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
9423 return trampoline(target, arguments[0], arguments[1]); 9423 return trampoline(target, arguments[0], arguments[1]);
9424 case 3: 9424 case 3:
9425 return trampoline(target, arguments[0], arguments[1], arguments[2]); 9425 return trampoline(target, arguments[0], arguments[1], arguments[2]);
9426 case 4: 9426 case 4:
9427 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]); 9427 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]);
9428 default: 9428 default:
9429 throw new IllegalArgumentException("Not implemented for > 4 arguments"); 9429 throw new IllegalArgumentException("Not implemented for > 4 arguments");
9430 } 9430 }
9431 } 9431 }
9432 } 9432 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698