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

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

Issue 26096002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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.parser; 3 library engine.parser;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'instrumentation.dart'; 6 import 'instrumentation.dart';
7 import 'error.dart'; 7 import 'error.dart';
8 import 'source.dart'; 8 import 'source.dart';
9 import 'scanner.dart'; 9 import 'scanner.dart';
10 import 'ast.dart'; 10 import 'ast.dart';
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 * <pre> 1064 * <pre>
1065 * assertStatement ::= 1065 * assertStatement ::=
1066 * 'assert' '(' conditionalExpression ')' ';' 1066 * 'assert' '(' conditionalExpression ')' ';'
1067 * </pre> 1067 * </pre>
1068 * 1068 *
1069 * @return the assert statement 1069 * @return the assert statement
1070 */ 1070 */
1071 AssertStatement parseAssertStatement() { 1071 AssertStatement parseAssertStatement() {
1072 Token keyword = expect(Keyword.ASSERT); 1072 Token keyword = expect(Keyword.ASSERT);
1073 Token leftParen = expect2(TokenType.OPEN_PAREN); 1073 Token leftParen = expect2(TokenType.OPEN_PAREN);
1074 Expression expression = parseConditionalExpression(); 1074 Expression expression = parseExpression2();
1075 if (expression is AssignmentExpression) {
1076 reportError(ParserErrorCode.ASSERT_DOES_NOT_TAKE_ASSIGNMENT, expression, [ ]);
1077 } else if (expression is CascadeExpression) {
1078 reportError(ParserErrorCode.ASSERT_DOES_NOT_TAKE_CASCADE, expression, []);
1079 } else if (expression is ThrowExpression) {
1080 reportError(ParserErrorCode.ASSERT_DOES_NOT_TAKE_THROW, expression, []);
1081 } else if (expression is RethrowExpression) {
1082 reportError(ParserErrorCode.ASSERT_DOES_NOT_TAKE_RETHROW, expression, []);
1083 }
1075 Token rightParen = expect2(TokenType.CLOSE_PAREN); 1084 Token rightParen = expect2(TokenType.CLOSE_PAREN);
1076 Token semicolon = expect2(TokenType.SEMICOLON); 1085 Token semicolon = expect2(TokenType.SEMICOLON);
1077 return new AssertStatement.full(keyword, leftParen, expression, rightParen, semicolon); 1086 return new AssertStatement.full(keyword, leftParen, expression, rightParen, semicolon);
1078 } 1087 }
1079 1088
1080 /** 1089 /**
1081 * Parse an assignable expression. 1090 * Parse an assignable expression.
1082 * 1091 *
1083 * <pre> 1092 * <pre>
1084 * assignableExpression ::= 1093 * assignableExpression ::=
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 identifier = new SimpleIdentifier.full(firstToken); 1741 identifier = new SimpleIdentifier.full(firstToken);
1733 nextToken = firstToken.next; 1742 nextToken = firstToken.next;
1734 } 1743 }
1735 if (nextToken.type != TokenType.EOF) { 1744 if (nextToken.type != TokenType.EOF) {
1736 return null; 1745 return null;
1737 } 1746 }
1738 return new CommentReference.full(newKeyword, identifier); 1747 return new CommentReference.full(newKeyword, identifier);
1739 } else if (matches3(firstToken, Keyword.THIS) || matches3(firstToken, Keyw ord.NULL) || matches3(firstToken, Keyword.TRUE) || matches3(firstToken, Keyword. FALSE)) { 1748 } else if (matches3(firstToken, Keyword.THIS) || matches3(firstToken, Keyw ord.NULL) || matches3(firstToken, Keyword.TRUE) || matches3(firstToken, Keyword. FALSE)) {
1740 return null; 1749 return null;
1741 } 1750 }
1742 } catch (exception) { 1751 } on JavaException catch (exception) {
1743 } 1752 }
1744 return null; 1753 return null;
1745 } 1754 }
1746 1755
1747 /** 1756 /**
1748 * Parse all of the comment references occurring in the given array of documen tation comments. 1757 * Parse all of the comment references occurring in the given array of documen tation comments.
1749 * 1758 *
1750 * <pre> 1759 * <pre>
1751 * commentReference ::= 1760 * commentReference ::=
1752 * '[' 'new'? qualified ']' libraryReference? 1761 * '[' 'new'? qualified ']' libraryReference?
(...skipping 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after
4327 * <pre> 4336 * <pre>
4328 * symbolLiteral ::= 4337 * symbolLiteral ::=
4329 * '#' identifier ('.' identifier)* 4338 * '#' identifier ('.' identifier)*
4330 * </pre> 4339 * </pre>
4331 * 4340 *
4332 * @return the symbol literal that was parsed 4341 * @return the symbol literal that was parsed
4333 */ 4342 */
4334 SymbolLiteral parseSymbolLiteral() { 4343 SymbolLiteral parseSymbolLiteral() {
4335 Token poundSign = andAdvance; 4344 Token poundSign = andAdvance;
4336 List<Token> components = new List<Token>(); 4345 List<Token> components = new List<Token>();
4337 if (matches5(TokenType.IDENTIFIER)) { 4346 if (matchesIdentifier()) {
4338 components.add(andAdvance); 4347 components.add(andAdvance);
4339 while (matches5(TokenType.PERIOD)) { 4348 while (matches5(TokenType.PERIOD)) {
4340 advance(); 4349 advance();
4341 if (matches5(TokenType.IDENTIFIER)) { 4350 if (matchesIdentifier()) {
4342 components.add(andAdvance); 4351 components.add(andAdvance);
4343 } else { 4352 } else {
4344 reportError8(ParserErrorCode.MISSING_IDENTIFIER, []); 4353 reportError8(ParserErrorCode.MISSING_IDENTIFIER, []);
4345 components.add(createSyntheticToken2(TokenType.IDENTIFIER)); 4354 components.add(createSyntheticToken2(TokenType.IDENTIFIER));
4346 break; 4355 break;
4347 } 4356 }
4348 } 4357 }
4349 } else if (_currentToken.isOperator) { 4358 } else if (_currentToken.isOperator) {
4350 components.add(andAdvance); 4359 components.add(andAdvance);
4351 } else { 4360 } else {
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
5659 * when appropriate, how the problem can be corrected. 5668 * when appropriate, how the problem can be corrected.
5660 * 5669 *
5661 * @coverage dart.engine.parser 5670 * @coverage dart.engine.parser
5662 */ 5671 */
5663 class ParserErrorCode extends Enum<ParserErrorCode> implements ErrorCode { 5672 class ParserErrorCode extends Enum<ParserErrorCode> implements ErrorCode {
5664 static final ParserErrorCode ABSTRACT_CLASS_MEMBER = new ParserErrorCode.con3( 'ABSTRACT_CLASS_MEMBER', 0, "Members of classes cannot be declared to be 'abstra ct'"); 5673 static final ParserErrorCode ABSTRACT_CLASS_MEMBER = new ParserErrorCode.con3( 'ABSTRACT_CLASS_MEMBER', 0, "Members of classes cannot be declared to be 'abstra ct'");
5665 static final ParserErrorCode ABSTRACT_STATIC_METHOD = new ParserErrorCode.con3 ('ABSTRACT_STATIC_METHOD', 1, "Static methods cannot be declared to be 'abstract '"); 5674 static final ParserErrorCode ABSTRACT_STATIC_METHOD = new ParserErrorCode.con3 ('ABSTRACT_STATIC_METHOD', 1, "Static methods cannot be declared to be 'abstract '");
5666 static final ParserErrorCode ABSTRACT_TOP_LEVEL_FUNCTION = new ParserErrorCode .con3('ABSTRACT_TOP_LEVEL_FUNCTION', 2, "Top-level functions cannot be declared to be 'abstract'"); 5675 static final ParserErrorCode ABSTRACT_TOP_LEVEL_FUNCTION = new ParserErrorCode .con3('ABSTRACT_TOP_LEVEL_FUNCTION', 2, "Top-level functions cannot be declared to be 'abstract'");
5667 static final ParserErrorCode ABSTRACT_TOP_LEVEL_VARIABLE = new ParserErrorCode .con3('ABSTRACT_TOP_LEVEL_VARIABLE', 3, "Top-level variables cannot be declared to be 'abstract'"); 5676 static final ParserErrorCode ABSTRACT_TOP_LEVEL_VARIABLE = new ParserErrorCode .con3('ABSTRACT_TOP_LEVEL_VARIABLE', 3, "Top-level variables cannot be declared to be 'abstract'");
5668 static final ParserErrorCode ABSTRACT_TYPEDEF = new ParserErrorCode.con3('ABST RACT_TYPEDEF', 4, "Type aliases cannot be declared to be 'abstract'"); 5677 static final ParserErrorCode ABSTRACT_TYPEDEF = new ParserErrorCode.con3('ABST RACT_TYPEDEF', 4, "Type aliases cannot be declared to be 'abstract'");
5669 static final ParserErrorCode BREAK_OUTSIDE_OF_LOOP = new ParserErrorCode.con3( 'BREAK_OUTSIDE_OF_LOOP', 5, "A break statement cannot be used outside of a loop or switch statement"); 5678 static final ParserErrorCode ASSERT_DOES_NOT_TAKE_ASSIGNMENT = new ParserError Code.con3('ASSERT_DOES_NOT_TAKE_ASSIGNMENT', 5, "Assert cannot be called on an a ssignment");
5670 static final ParserErrorCode CONST_AND_FINAL = new ParserErrorCode.con3('CONST _AND_FINAL', 6, "Members cannot be declared to be both 'const' and 'final'"); 5679 static final ParserErrorCode ASSERT_DOES_NOT_TAKE_CASCADE = new ParserErrorCod e.con3('ASSERT_DOES_NOT_TAKE_CASCADE', 6, "Assert cannot be called on cascade");
5671 static final ParserErrorCode CONST_AND_VAR = new ParserErrorCode.con3('CONST_A ND_VAR', 7, "Members cannot be declared to be both 'const' and 'var'"); 5680 static final ParserErrorCode ASSERT_DOES_NOT_TAKE_THROW = new ParserErrorCode. con3('ASSERT_DOES_NOT_TAKE_THROW', 7, "Assert cannot be called on throws");
5672 static final ParserErrorCode CONST_CLASS = new ParserErrorCode.con3('CONST_CLA SS', 8, "Classes cannot be declared to be 'const'"); 5681 static final ParserErrorCode ASSERT_DOES_NOT_TAKE_RETHROW = new ParserErrorCod e.con3('ASSERT_DOES_NOT_TAKE_RETHROW', 8, "Assert cannot be called on rethrows") ;
5673 static final ParserErrorCode CONST_CONSTRUCTOR_WITH_BODY = new ParserErrorCode .con3('CONST_CONSTRUCTOR_WITH_BODY', 9, "'const' constructors cannot have a body "); 5682 static final ParserErrorCode BREAK_OUTSIDE_OF_LOOP = new ParserErrorCode.con3( 'BREAK_OUTSIDE_OF_LOOP', 9, "A break statement cannot be used outside of a loop or switch statement");
5674 static final ParserErrorCode CONST_FACTORY = new ParserErrorCode.con3('CONST_F ACTORY', 10, "Only redirecting factory constructors can be declared to be 'const '"); 5683 static final ParserErrorCode CONST_AND_FINAL = new ParserErrorCode.con3('CONST _AND_FINAL', 10, "Members cannot be declared to be both 'const' and 'final'");
5675 static final ParserErrorCode CONST_METHOD = new ParserErrorCode.con3('CONST_ME THOD', 11, "Getters, setters and methods cannot be declared to be 'const'"); 5684 static final ParserErrorCode CONST_AND_VAR = new ParserErrorCode.con3('CONST_A ND_VAR', 11, "Members cannot be declared to be both 'const' and 'var'");
5676 static final ParserErrorCode CONST_TYPEDEF = new ParserErrorCode.con3('CONST_T YPEDEF', 12, "Type aliases cannot be declared to be 'const'"); 5685 static final ParserErrorCode CONST_CLASS = new ParserErrorCode.con3('CONST_CLA SS', 12, "Classes cannot be declared to be 'const'");
5677 static final ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = new ParserErrorCod e.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 13, "Constructors cannot have a return ty pe"); 5686 static final ParserErrorCode CONST_CONSTRUCTOR_WITH_BODY = new ParserErrorCode .con3('CONST_CONSTRUCTOR_WITH_BODY', 13, "'const' constructors cannot have a bod y");
5678 static final ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = new ParserErrorCode.co n3('CONTINUE_OUTSIDE_OF_LOOP', 14, "A continue statement cannot be used outside of a loop or switch statement"); 5687 static final ParserErrorCode CONST_FACTORY = new ParserErrorCode.con3('CONST_F ACTORY', 14, "Only redirecting factory constructors can be declared to be 'const '");
5679 static final ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = new ParserErrorC ode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 15, "A continue statement in a switch statement must have a label as a target"); 5688 static final ParserErrorCode CONST_METHOD = new ParserErrorCode.con3('CONST_ME THOD', 15, "Getters, setters and methods cannot be declared to be 'const'");
5680 static final ParserErrorCode DEPRECATED_ARGUMENT_DEFINITION_TEST = new ParserE rrorCode.con3('DEPRECATED_ARGUMENT_DEFINITION_TEST', 16, "The argument definitio n test ('?' operator) has been deprecated"); 5689 static final ParserErrorCode CONST_TYPEDEF = new ParserErrorCode.con3('CONST_T YPEDEF', 16, "Type aliases cannot be declared to be 'const'");
5681 static final ParserErrorCode DIRECTIVE_AFTER_DECLARATION = new ParserErrorCode .con3('DIRECTIVE_AFTER_DECLARATION', 17, "Directives must appear before any decl arations"); 5690 static final ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = new ParserErrorCod e.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 17, "Constructors cannot have a return ty pe");
5682 static final ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = new ParserE rrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 18, "The label %s was alrea dy used in this switch statement"); 5691 static final ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = new ParserErrorCode.co n3('CONTINUE_OUTSIDE_OF_LOOP', 18, "A continue statement cannot be used outside of a loop or switch statement");
5683 static final ParserErrorCode DUPLICATED_MODIFIER = new ParserErrorCode.con3('D UPLICATED_MODIFIER', 19, "The modifier '%s' was already specified."); 5692 static final ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = new ParserErrorC ode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 19, "A continue statement in a switch statement must have a label as a target");
5684 static final ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = new ParserE rrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 20, "Equality expression ca nnot be operand of another equality expression."); 5693 static final ParserErrorCode DEPRECATED_ARGUMENT_DEFINITION_TEST = new ParserE rrorCode.con3('DEPRECATED_ARGUMENT_DEFINITION_TEST', 20, "The argument definitio n test ('?' operator) has been deprecated");
5685 static final ParserErrorCode EXPECTED_CASE_OR_DEFAULT = new ParserErrorCode.co n3('EXPECTED_CASE_OR_DEFAULT', 21, "Expected 'case' or 'default'"); 5694 static final ParserErrorCode DIRECTIVE_AFTER_DECLARATION = new ParserErrorCode .con3('DIRECTIVE_AFTER_DECLARATION', 21, "Directives must appear before any decl arations");
5686 static final ParserErrorCode EXPECTED_CLASS_MEMBER = new ParserErrorCode.con3( 'EXPECTED_CLASS_MEMBER', 22, "Expected a class member"); 5695 static final ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = new ParserE rrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 22, "The label %s was alrea dy used in this switch statement");
5687 static final ParserErrorCode EXPECTED_EXECUTABLE = new ParserErrorCode.con3('E XPECTED_EXECUTABLE', 23, "Expected a method, getter, setter or operator declarat ion"); 5696 static final ParserErrorCode DUPLICATED_MODIFIER = new ParserErrorCode.con3('D UPLICATED_MODIFIER', 23, "The modifier '%s' was already specified.");
5688 static final ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = new ParserErrorCod e.con3('EXPECTED_LIST_OR_MAP_LITERAL', 24, "Expected a list or map literal"); 5697 static final ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = new ParserE rrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 24, "Equality expression ca nnot be operand of another equality expression.");
5689 static final ParserErrorCode EXPECTED_STRING_LITERAL = new ParserErrorCode.con 3('EXPECTED_STRING_LITERAL', 25, "Expected a string literal"); 5698 static final ParserErrorCode EXPECTED_CASE_OR_DEFAULT = new ParserErrorCode.co n3('EXPECTED_CASE_OR_DEFAULT', 25, "Expected 'case' or 'default'");
5690 static final ParserErrorCode EXPECTED_TOKEN = new ParserErrorCode.con3('EXPECT ED_TOKEN', 26, "Expected to find '%s'"); 5699 static final ParserErrorCode EXPECTED_CLASS_MEMBER = new ParserErrorCode.con3( 'EXPECTED_CLASS_MEMBER', 26, "Expected a class member");
5691 static final ParserErrorCode EXPECTED_ONE_LIST_TYPE_ARGUMENTS = new ParserErro rCode.con3('EXPECTED_ONE_LIST_TYPE_ARGUMENTS', 27, "List literal requires exactl y one type arguments or none, but %d found"); 5700 static final ParserErrorCode EXPECTED_EXECUTABLE = new ParserErrorCode.con3('E XPECTED_EXECUTABLE', 27, "Expected a method, getter, setter or operator declarat ion");
5692 static final ParserErrorCode EXPECTED_TWO_MAP_TYPE_ARGUMENTS = new ParserError Code.con3('EXPECTED_TWO_MAP_TYPE_ARGUMENTS', 28, "Map literal requires exactly t wo type arguments or none, but %d found"); 5701 static final ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = new ParserErrorCod e.con3('EXPECTED_LIST_OR_MAP_LITERAL', 28, "Expected a list or map literal");
5693 static final ParserErrorCode EXPECTED_TYPE_NAME = new ParserErrorCode.con3('EX PECTED_TYPE_NAME', 29, "Expected a type name"); 5702 static final ParserErrorCode EXPECTED_STRING_LITERAL = new ParserErrorCode.con 3('EXPECTED_STRING_LITERAL', 29, "Expected a string literal");
5694 static final ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = new Parse rErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 30, "Export directives must preceed part directives"); 5703 static final ParserErrorCode EXPECTED_TOKEN = new ParserErrorCode.con3('EXPECT ED_TOKEN', 30, "Expected to find '%s'");
5695 static final ParserErrorCode EXTERNAL_AFTER_CONST = new ParserErrorCode.con3(' EXTERNAL_AFTER_CONST', 31, "The modifier 'external' should be before the modifie r 'const'"); 5704 static final ParserErrorCode EXPECTED_ONE_LIST_TYPE_ARGUMENTS = new ParserErro rCode.con3('EXPECTED_ONE_LIST_TYPE_ARGUMENTS', 31, "List literal requires exactl y one type arguments or none, but %d found");
5696 static final ParserErrorCode EXTERNAL_AFTER_FACTORY = new ParserErrorCode.con3 ('EXTERNAL_AFTER_FACTORY', 32, "The modifier 'external' should be before the mod ifier 'factory'"); 5705 static final ParserErrorCode EXPECTED_TWO_MAP_TYPE_ARGUMENTS = new ParserError Code.con3('EXPECTED_TWO_MAP_TYPE_ARGUMENTS', 32, "Map literal requires exactly t wo type arguments or none, but %d found");
5697 static final ParserErrorCode EXTERNAL_AFTER_STATIC = new ParserErrorCode.con3( 'EXTERNAL_AFTER_STATIC', 33, "The modifier 'external' should be before the modif ier 'static'"); 5706 static final ParserErrorCode EXPECTED_TYPE_NAME = new ParserErrorCode.con3('EX PECTED_TYPE_NAME', 33, "Expected a type name");
5698 static final ParserErrorCode EXTERNAL_CLASS = new ParserErrorCode.con3('EXTERN AL_CLASS', 34, "Classes cannot be declared to be 'external'"); 5707 static final ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = new Parse rErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 34, "Export directives must preceed part directives");
5699 static final ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = new ParserErrorC ode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 35, "External constructors cannot hav e a body"); 5708 static final ParserErrorCode EXTERNAL_AFTER_CONST = new ParserErrorCode.con3(' EXTERNAL_AFTER_CONST', 35, "The modifier 'external' should be before the modifie r 'const'");
5700 static final ParserErrorCode EXTERNAL_FIELD = new ParserErrorCode.con3('EXTERN AL_FIELD', 36, "Fields cannot be declared to be 'external'"); 5709 static final ParserErrorCode EXTERNAL_AFTER_FACTORY = new ParserErrorCode.con3 ('EXTERNAL_AFTER_FACTORY', 36, "The modifier 'external' should be before the mod ifier 'factory'");
5701 static final ParserErrorCode EXTERNAL_GETTER_WITH_BODY = new ParserErrorCode.c on3('EXTERNAL_GETTER_WITH_BODY', 37, "External getters cannot have a body"); 5710 static final ParserErrorCode EXTERNAL_AFTER_STATIC = new ParserErrorCode.con3( 'EXTERNAL_AFTER_STATIC', 37, "The modifier 'external' should be before the modif ier 'static'");
5702 static final ParserErrorCode EXTERNAL_METHOD_WITH_BODY = new ParserErrorCode.c on3('EXTERNAL_METHOD_WITH_BODY', 38, "External methods cannot have a body"); 5711 static final ParserErrorCode EXTERNAL_CLASS = new ParserErrorCode.con3('EXTERN AL_CLASS', 38, "Classes cannot be declared to be 'external'");
5703 static final ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = new ParserErrorCode .con3('EXTERNAL_OPERATOR_WITH_BODY', 39, "External operators cannot have a body" ); 5712 static final ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = new ParserErrorC ode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 39, "External constructors cannot hav e a body");
5704 static final ParserErrorCode EXTERNAL_SETTER_WITH_BODY = new ParserErrorCode.c on3('EXTERNAL_SETTER_WITH_BODY', 40, "External setters cannot have a body"); 5713 static final ParserErrorCode EXTERNAL_FIELD = new ParserErrorCode.con3('EXTERN AL_FIELD', 40, "Fields cannot be declared to be 'external'");
5705 static final ParserErrorCode EXTERNAL_TYPEDEF = new ParserErrorCode.con3('EXTE RNAL_TYPEDEF', 41, "Type aliases cannot be declared to be 'external'"); 5714 static final ParserErrorCode EXTERNAL_GETTER_WITH_BODY = new ParserErrorCode.c on3('EXTERNAL_GETTER_WITH_BODY', 41, "External getters cannot have a body");
5706 static final ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = new ParserErrorCo de.con3('FACTORY_TOP_LEVEL_DECLARATION', 42, "Top-level declarations cannot be d eclared to be 'factory'"); 5715 static final ParserErrorCode EXTERNAL_METHOD_WITH_BODY = new ParserErrorCode.c on3('EXTERNAL_METHOD_WITH_BODY', 42, "External methods cannot have a body");
5707 static final ParserErrorCode FACTORY_WITHOUT_BODY = new ParserErrorCode.con3(' FACTORY_WITHOUT_BODY', 43, "A non-redirecting 'factory' constructor must have a body"); 5716 static final ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = new ParserErrorCode .con3('EXTERNAL_OPERATOR_WITH_BODY', 43, "External operators cannot have a body" );
5708 static final ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new Parse rErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 44, "Field initializers can only be used in a constructor"); 5717 static final ParserErrorCode EXTERNAL_SETTER_WITH_BODY = new ParserErrorCode.c on3('EXTERNAL_SETTER_WITH_BODY', 44, "External setters cannot have a body");
5709 static final ParserErrorCode FINAL_AND_VAR = new ParserErrorCode.con3('FINAL_A ND_VAR', 45, "Members cannot be declared to be both 'final' and 'var'"); 5718 static final ParserErrorCode EXTERNAL_TYPEDEF = new ParserErrorCode.con3('EXTE RNAL_TYPEDEF', 45, "Type aliases cannot be declared to be 'external'");
5710 static final ParserErrorCode FINAL_CLASS = new ParserErrorCode.con3('FINAL_CLA SS', 46, "Classes cannot be declared to be 'final'"); 5719 static final ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = new ParserErrorCo de.con3('FACTORY_TOP_LEVEL_DECLARATION', 46, "Top-level declarations cannot be d eclared to be 'factory'");
5711 static final ParserErrorCode FINAL_CONSTRUCTOR = new ParserErrorCode.con3('FIN AL_CONSTRUCTOR', 47, "A constructor cannot be declared to be 'final'"); 5720 static final ParserErrorCode FACTORY_WITHOUT_BODY = new ParserErrorCode.con3(' FACTORY_WITHOUT_BODY', 47, "A non-redirecting 'factory' constructor must have a body");
5712 static final ParserErrorCode FINAL_METHOD = new ParserErrorCode.con3('FINAL_ME THOD', 48, "Getters, setters and methods cannot be declared to be 'final'"); 5721 static final ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new Parse rErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 48, "Field initializers can only be used in a constructor");
5713 static final ParserErrorCode FINAL_TYPEDEF = new ParserErrorCode.con3('FINAL_T YPEDEF', 49, "Type aliases cannot be declared to be 'final'"); 5722 static final ParserErrorCode FINAL_AND_VAR = new ParserErrorCode.con3('FINAL_A ND_VAR', 49, "Members cannot be declared to be both 'final' and 'var'");
5714 static final ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = new ParserErrorCod e.con3('FUNCTION_TYPED_PARAMETER_VAR', 50, "Function typed parameters cannot spe cify 'const', 'final' or 'var' instead of return type"); 5723 static final ParserErrorCode FINAL_CLASS = new ParserErrorCode.con3('FINAL_CLA SS', 50, "Classes cannot be declared to be 'final'");
5715 static final ParserErrorCode GETTER_IN_FUNCTION = new ParserErrorCode.con3('GE TTER_IN_FUNCTION', 51, "Getters cannot be defined within methods or functions"); 5724 static final ParserErrorCode FINAL_CONSTRUCTOR = new ParserErrorCode.con3('FIN AL_CONSTRUCTOR', 51, "A constructor cannot be declared to be 'final'");
5716 static final ParserErrorCode GETTER_WITH_PARAMETERS = new ParserErrorCode.con3 ('GETTER_WITH_PARAMETERS', 52, "Getter should be declared without a parameter li st"); 5725 static final ParserErrorCode FINAL_METHOD = new ParserErrorCode.con3('FINAL_ME THOD', 52, "Getters, setters and methods cannot be declared to be 'final'");
5717 static final ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = new Parser ErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 53, "Illegal assignment t o non-assignable expression"); 5726 static final ParserErrorCode FINAL_TYPEDEF = new ParserErrorCode.con3('FINAL_T YPEDEF', 53, "Type aliases cannot be declared to be 'final'");
5718 static final ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = new ParserErrorCode.c on3('IMPLEMENTS_BEFORE_EXTENDS', 54, "The extends clause must be before the impl ements clause"); 5727 static final ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = new ParserErrorCod e.con3('FUNCTION_TYPED_PARAMETER_VAR', 54, "Function typed parameters cannot spe cify 'const', 'final' or 'var' instead of return type");
5719 static final ParserErrorCode IMPLEMENTS_BEFORE_WITH = new ParserErrorCode.con3 ('IMPLEMENTS_BEFORE_WITH', 55, "The with clause must be before the implements cl ause"); 5728 static final ParserErrorCode GETTER_IN_FUNCTION = new ParserErrorCode.con3('GE TTER_IN_FUNCTION', 55, "Getters cannot be defined within methods or functions");
5720 static final ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = new Parse rErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 56, "Import directives must preceed part directives"); 5729 static final ParserErrorCode GETTER_WITH_PARAMETERS = new ParserErrorCode.con3 ('GETTER_WITH_PARAMETERS', 56, "Getter should be declared without a parameter li st");
5721 static final ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = new ParserErro rCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 57, "The loop variable in a for-e ach loop cannot be initialized"); 5730 static final ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = new Parser ErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 57, "Illegal assignment t o non-assignable expression");
5722 static final ParserErrorCode INVALID_CODE_POINT = new ParserErrorCode.con3('IN VALID_CODE_POINT', 58, "The escape sequence '%s' is not a valid code point"); 5731 static final ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = new ParserErrorCode.c on3('IMPLEMENTS_BEFORE_EXTENDS', 58, "The extends clause must be before the impl ements clause");
5723 static final ParserErrorCode INVALID_COMMENT_REFERENCE = new ParserErrorCode.c on3('INVALID_COMMENT_REFERENCE', 59, "Comment references should contain a possib ly prefixed identifier and can start with 'new', but should not contain anything else"); 5732 static final ParserErrorCode IMPLEMENTS_BEFORE_WITH = new ParserErrorCode.con3 ('IMPLEMENTS_BEFORE_WITH', 59, "The with clause must be before the implements cl ause");
5724 static final ParserErrorCode INVALID_HEX_ESCAPE = new ParserErrorCode.con3('IN VALID_HEX_ESCAPE', 60, "An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits"); 5733 static final ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = new Parse rErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 60, "Import directives must preceed part directives");
5725 static final ParserErrorCode INVALID_OPERATOR = new ParserErrorCode.con3('INVA LID_OPERATOR', 61, "The string '%s' is not a valid operator"); 5734 static final ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = new ParserErro rCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 61, "The loop variable in a for-e ach loop cannot be initialized");
5726 static final ParserErrorCode INVALID_OPERATOR_FOR_SUPER = new ParserErrorCode. con3('INVALID_OPERATOR_FOR_SUPER', 62, "The operator '%s' cannot be used with 's uper'"); 5735 static final ParserErrorCode INVALID_CODE_POINT = new ParserErrorCode.con3('IN VALID_CODE_POINT', 62, "The escape sequence '%s' is not a valid code point");
5727 static final ParserErrorCode INVALID_UNICODE_ESCAPE = new ParserErrorCode.con3 ('INVALID_UNICODE_ESCAPE', 63, "An escape sequence starting with '\\u' must be f ollowed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"); 5736 static final ParserErrorCode INVALID_COMMENT_REFERENCE = new ParserErrorCode.c on3('INVALID_COMMENT_REFERENCE', 63, "Comment references should contain a possib ly prefixed identifier and can start with 'new', but should not contain anything else");
5728 static final ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = new ParserErrorCode .con3('LIBRARY_DIRECTIVE_NOT_FIRST', 64, "The library directive must appear befo re all other directives"); 5737 static final ParserErrorCode INVALID_HEX_ESCAPE = new ParserErrorCode.con3('IN VALID_HEX_ESCAPE', 64, "An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits");
5729 static final ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = new ParserE rrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 65, "Local function declara tions cannot specify any modifier"); 5738 static final ParserErrorCode INVALID_OPERATOR = new ParserErrorCode.con3('INVA LID_OPERATOR', 65, "The string '%s' is not a valid operator");
5730 static final ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = new ParserErrorCode .con3('MISSING_ASSIGNABLE_SELECTOR', 66, "Missing selector such as \".<identifie r>\" or \"[0]\""); 5739 static final ParserErrorCode INVALID_OPERATOR_FOR_SUPER = new ParserErrorCode. con3('INVALID_OPERATOR_FOR_SUPER', 66, "The operator '%s' cannot be used with 's uper'");
5731 static final ParserErrorCode MISSING_CATCH_OR_FINALLY = new ParserErrorCode.co n3('MISSING_CATCH_OR_FINALLY', 67, "A try statement must have either a catch or finally clause"); 5740 static final ParserErrorCode INVALID_UNICODE_ESCAPE = new ParserErrorCode.con3 ('INVALID_UNICODE_ESCAPE', 67, "An escape sequence starting with '\\u' must be f ollowed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'");
5732 static final ParserErrorCode MISSING_CLASS_BODY = new ParserErrorCode.con3('MI SSING_CLASS_BODY', 68, "A class definition must have a body, even if it is empty "); 5741 static final ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = new ParserErrorCode .con3('LIBRARY_DIRECTIVE_NOT_FIRST', 68, "The library directive must appear befo re all other directives");
5733 static final ParserErrorCode MISSING_CLOSING_PARENTHESIS = new ParserErrorCode .con3('MISSING_CLOSING_PARENTHESIS', 69, "The closing parenthesis is missing"); 5742 static final ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = new ParserE rrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 69, "Local function declara tions cannot specify any modifier");
5734 static final ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = new ParserError Code.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 70, "Variables must be declared usi ng the keywords 'const', 'final', 'var' or a type name"); 5743 static final ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = new ParserErrorCode .con3('MISSING_ASSIGNABLE_SELECTOR', 70, "Missing selector such as \".<identifie r>\" or \"[0]\"");
5735 static final ParserErrorCode MISSING_EXPRESSION_IN_THROW = new ParserErrorCode .con3('MISSING_EXPRESSION_IN_THROW', 71, "Throw expressions must compute the obj ect to be thrown"); 5744 static final ParserErrorCode MISSING_CATCH_OR_FINALLY = new ParserErrorCode.co n3('MISSING_CATCH_OR_FINALLY', 71, "A try statement must have either a catch or finally clause");
5736 static final ParserErrorCode MISSING_FUNCTION_BODY = new ParserErrorCode.con3( 'MISSING_FUNCTION_BODY', 72, "A function body must be provided"); 5745 static final ParserErrorCode MISSING_CLASS_BODY = new ParserErrorCode.con3('MI SSING_CLASS_BODY', 72, "A class definition must have a body, even if it is empty ");
5737 static final ParserErrorCode MISSING_FUNCTION_PARAMETERS = new ParserErrorCode .con3('MISSING_FUNCTION_PARAMETERS', 73, "Functions must have an explicit list o f parameters"); 5746 static final ParserErrorCode MISSING_CLOSING_PARENTHESIS = new ParserErrorCode .con3('MISSING_CLOSING_PARENTHESIS', 73, "The closing parenthesis is missing");
5738 static final ParserErrorCode MISSING_IDENTIFIER = new ParserErrorCode.con3('MI SSING_IDENTIFIER', 74, "Expected an identifier"); 5747 static final ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = new ParserError Code.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 74, "Variables must be declared usi ng the keywords 'const', 'final', 'var' or a type name");
5739 static final ParserErrorCode MISSING_KEYWORD_OPERATOR = new ParserErrorCode.co n3('MISSING_KEYWORD_OPERATOR', 75, "Operator declarations must be preceeded by t he keyword 'operator'"); 5748 static final ParserErrorCode MISSING_EXPRESSION_IN_THROW = new ParserErrorCode .con3('MISSING_EXPRESSION_IN_THROW', 75, "Throw expressions must compute the obj ect to be thrown");
5740 static final ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = new ParserErr orCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 76, "Library directives must in clude a library name"); 5749 static final ParserErrorCode MISSING_FUNCTION_BODY = new ParserErrorCode.con3( 'MISSING_FUNCTION_BODY', 76, "A function body must be provided");
5741 static final ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = new ParserErr orCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 77, "Library directives must in clude a library name"); 5750 static final ParserErrorCode MISSING_FUNCTION_PARAMETERS = new ParserErrorCode .con3('MISSING_FUNCTION_PARAMETERS', 77, "Functions must have an explicit list o f parameters");
5742 static final ParserErrorCode MISSING_STATEMENT = new ParserErrorCode.con3('MIS SING_STATEMENT', 78, "Expected a statement"); 5751 static final ParserErrorCode MISSING_IDENTIFIER = new ParserErrorCode.con3('MI SSING_IDENTIFIER', 78, "Expected an identifier");
5743 static final ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = new Pars erErrorCode.con3('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 79, "There is no '%s' to close the parameter group"); 5752 static final ParserErrorCode MISSING_KEYWORD_OPERATOR = new ParserErrorCode.co n3('MISSING_KEYWORD_OPERATOR', 79, "Operator declarations must be preceeded by t he keyword 'operator'");
5744 static final ParserErrorCode MISSING_TYPEDEF_PARAMETERS = new ParserErrorCode. con3('MISSING_TYPEDEF_PARAMETERS', 80, "Type aliases for functions must have an explicit list of parameters"); 5753 static final ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = new ParserErr orCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 80, "Library directives must in clude a library name");
5745 static final ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = new ParserErrorCod e.con3('MISSING_VARIABLE_IN_FOR_EACH', 81, "A loop variable must be declared in a for-each loop before the 'in', but none were found"); 5754 static final ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = new ParserErr orCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 81, "Library directives must in clude a library name");
5746 static final ParserErrorCode MIXED_PARAMETER_GROUPS = new ParserErrorCode.con3 ('MIXED_PARAMETER_GROUPS', 82, "Cannot have both positional and named parameters in a single parameter list"); 5755 static final ParserErrorCode MISSING_STATEMENT = new ParserErrorCode.con3('MIS SING_STATEMENT', 82, "Expected a statement");
5747 static final ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = new ParserErrorCode.co n3('MULTIPLE_EXTENDS_CLAUSES', 83, "Each class definition can have at most one e xtends clause"); 5756 static final ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = new Pars erErrorCode.con3('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 83, "There is no '%s' to close the parameter group");
5748 static final ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = new ParserErrorCode .con3('MULTIPLE_IMPLEMENTS_CLAUSES', 84, "Each class definition can have at most one implements clause"); 5757 static final ParserErrorCode MISSING_TYPEDEF_PARAMETERS = new ParserErrorCode. con3('MISSING_TYPEDEF_PARAMETERS', 84, "Type aliases for functions must have an explicit list of parameters");
5749 static final ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = new ParserErrorCode .con3('MULTIPLE_LIBRARY_DIRECTIVES', 85, "Only one library directive may be decl ared in a file"); 5758 static final ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = new ParserErrorCod e.con3('MISSING_VARIABLE_IN_FOR_EACH', 85, "A loop variable must be declared in a for-each loop before the 'in', but none were found");
5750 static final ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = new ParserError Code.con3('MULTIPLE_NAMED_PARAMETER_GROUPS', 86, "Cannot have multiple groups of named parameters in a single parameter list"); 5759 static final ParserErrorCode MIXED_PARAMETER_GROUPS = new ParserErrorCode.con3 ('MIXED_PARAMETER_GROUPS', 86, "Cannot have both positional and named parameters in a single parameter list");
5751 static final ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = new ParserErrorCode .con3('MULTIPLE_PART_OF_DIRECTIVES', 87, "Only one part-of directive may be decl ared in a file"); 5760 static final ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = new ParserErrorCode.co n3('MULTIPLE_EXTENDS_CLAUSES', 87, "Each class definition can have at most one e xtends clause");
5752 static final ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = new Parser ErrorCode.con3('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 88, "Cannot have multiple groups of positional parameters in a single parameter list"); 5761 static final ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = new ParserErrorCode .con3('MULTIPLE_IMPLEMENTS_CLAUSES', 88, "Each class definition can have at most one implements clause");
5753 static final ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = new ParserErrorC ode.con3('MULTIPLE_VARIABLES_IN_FOR_EACH', 89, "A single loop variable must be d eclared in a for-each loop before the 'in', but %s were found"); 5762 static final ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = new ParserErrorCode .con3('MULTIPLE_LIBRARY_DIRECTIVES', 89, "Only one library directive may be decl ared in a file");
5754 static final ParserErrorCode MULTIPLE_WITH_CLAUSES = new ParserErrorCode.con3( 'MULTIPLE_WITH_CLAUSES', 90, "Each class definition can have at most one with cl ause"); 5763 static final ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = new ParserError Code.con3('MULTIPLE_NAMED_PARAMETER_GROUPS', 90, "Cannot have multiple groups of named parameters in a single parameter list");
5755 static final ParserErrorCode NAMED_FUNCTION_EXPRESSION = new ParserErrorCode.c on3('NAMED_FUNCTION_EXPRESSION', 91, "Function expressions cannot be named"); 5764 static final ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = new ParserErrorCode .con3('MULTIPLE_PART_OF_DIRECTIVES', 91, "Only one part-of directive may be decl ared in a file");
5756 static final ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = new ParserErrorCo de.con3('NAMED_PARAMETER_OUTSIDE_GROUP', 92, "Named parameters must be enclosed in curly braces ('{' and '}')"); 5765 static final ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = new Parser ErrorCode.con3('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 92, "Cannot have multiple groups of positional parameters in a single parameter list");
5757 static final ParserErrorCode NATIVE_CLAUSE_IN_NON_SDK_CODE = new ParserErrorCo de.con3('NATIVE_CLAUSE_IN_NON_SDK_CODE', 93, "Native clause can only be used in the SDK and code that is loaded through native extensions"); 5766 static final ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = new ParserErrorC ode.con3('MULTIPLE_VARIABLES_IN_FOR_EACH', 93, "A single loop variable must be d eclared in a for-each loop before the 'in', but %s were found");
5758 static final ParserErrorCode NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE = new Parser ErrorCode.con3('NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE', 94, "Native functions can only be declared in the SDK and code that is loaded through native extensions") ; 5767 static final ParserErrorCode MULTIPLE_WITH_CLAUSES = new ParserErrorCode.con3( 'MULTIPLE_WITH_CLAUSES', 94, "Each class definition can have at most one with cl ause");
5759 static final ParserErrorCode NON_CONSTRUCTOR_FACTORY = new ParserErrorCode.con 3('NON_CONSTRUCTOR_FACTORY', 95, "Only constructors can be declared to be a 'fac tory'"); 5768 static final ParserErrorCode NAMED_FUNCTION_EXPRESSION = new ParserErrorCode.c on3('NAMED_FUNCTION_EXPRESSION', 95, "Function expressions cannot be named");
5760 static final ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = new ParserErrorCode .con3('NON_IDENTIFIER_LIBRARY_NAME', 96, "The name of a library must be an ident ifier"); 5769 static final ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = new ParserErrorCo de.con3('NAMED_PARAMETER_OUTSIDE_GROUP', 96, "Named parameters must be enclosed in curly braces ('{' and '}')");
5761 static final ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = new ParserErrorCo de.con3('NON_PART_OF_DIRECTIVE_IN_PART', 97, "The part-of directive must be the only directive in a part"); 5770 static final ParserErrorCode NATIVE_CLAUSE_IN_NON_SDK_CODE = new ParserErrorCo de.con3('NATIVE_CLAUSE_IN_NON_SDK_CODE', 97, "Native clause can only be used in the SDK and code that is loaded through native extensions");
5762 static final ParserErrorCode NON_USER_DEFINABLE_OPERATOR = new ParserErrorCode .con3('NON_USER_DEFINABLE_OPERATOR', 98, "The operator '%s' is not user definabl e"); 5771 static final ParserErrorCode NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE = new Parser ErrorCode.con3('NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE', 98, "Native functions can only be declared in the SDK and code that is loaded through native extensions") ;
5763 static final ParserErrorCode NORMAL_BEFORE_OPTIONAL_PARAMETERS = new ParserErr orCode.con3('NORMAL_BEFORE_OPTIONAL_PARAMETERS', 99, "Normal parameters must occ ur before optional parameters"); 5772 static final ParserErrorCode NON_CONSTRUCTOR_FACTORY = new ParserErrorCode.con 3('NON_CONSTRUCTOR_FACTORY', 99, "Only constructors can be declared to be a 'fac tory'");
5764 static final ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = new ParserError Code.con3('POSITIONAL_AFTER_NAMED_ARGUMENT', 100, "Positional arguments must occ ur before named arguments"); 5773 static final ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = new ParserErrorCode .con3('NON_IDENTIFIER_LIBRARY_NAME', 100, "The name of a library must be an iden tifier");
5765 static final ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = new ParserEr rorCode.con3('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 101, "Positional parameters m ust be enclosed in square brackets ('[' and ']')"); 5774 static final ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = new ParserErrorCo de.con3('NON_PART_OF_DIRECTIVE_IN_PART', 101, "The part-of directive must be the only directive in a part");
5766 static final ParserErrorCode REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR = new Pars erErrorCode.con3('REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR', 102, "Only factory co nstructor can specify '=' redirection."); 5775 static final ParserErrorCode NON_USER_DEFINABLE_OPERATOR = new ParserErrorCode .con3('NON_USER_DEFINABLE_OPERATOR', 102, "The operator '%s' is not user definab le");
5767 static final ParserErrorCode SETTER_IN_FUNCTION = new ParserErrorCode.con3('SE TTER_IN_FUNCTION', 103, "Setters cannot be defined within methods or functions") ; 5776 static final ParserErrorCode NORMAL_BEFORE_OPTIONAL_PARAMETERS = new ParserErr orCode.con3('NORMAL_BEFORE_OPTIONAL_PARAMETERS', 103, "Normal parameters must oc cur before optional parameters");
5768 static final ParserErrorCode STATIC_AFTER_CONST = new ParserErrorCode.con3('ST ATIC_AFTER_CONST', 104, "The modifier 'static' should be before the modifier 'co nst'"); 5777 static final ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = new ParserError Code.con3('POSITIONAL_AFTER_NAMED_ARGUMENT', 104, "Positional arguments must occ ur before named arguments");
5769 static final ParserErrorCode STATIC_AFTER_FINAL = new ParserErrorCode.con3('ST ATIC_AFTER_FINAL', 105, "The modifier 'static' should be before the modifier 'fi nal'"); 5778 static final ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = new ParserEr rorCode.con3('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 105, "Positional parameters m ust be enclosed in square brackets ('[' and ']')");
5770 static final ParserErrorCode STATIC_AFTER_VAR = new ParserErrorCode.con3('STAT IC_AFTER_VAR', 106, "The modifier 'static' should be before the modifier 'var'") ; 5779 static final ParserErrorCode REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR = new Pars erErrorCode.con3('REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR', 106, "Only factory co nstructor can specify '=' redirection.");
5771 static final ParserErrorCode STATIC_CONSTRUCTOR = new ParserErrorCode.con3('ST ATIC_CONSTRUCTOR', 107, "Constructors cannot be static"); 5780 static final ParserErrorCode SETTER_IN_FUNCTION = new ParserErrorCode.con3('SE TTER_IN_FUNCTION', 107, "Setters cannot be defined within methods or functions") ;
5772 static final ParserErrorCode STATIC_GETTER_WITHOUT_BODY = new ParserErrorCode. con3('STATIC_GETTER_WITHOUT_BODY', 108, "A 'static' getter must have a body"); 5781 static final ParserErrorCode STATIC_AFTER_CONST = new ParserErrorCode.con3('ST ATIC_AFTER_CONST', 108, "The modifier 'static' should be before the modifier 'co nst'");
5773 static final ParserErrorCode STATIC_OPERATOR = new ParserErrorCode.con3('STATI C_OPERATOR', 109, "Operators cannot be static"); 5782 static final ParserErrorCode STATIC_AFTER_FINAL = new ParserErrorCode.con3('ST ATIC_AFTER_FINAL', 109, "The modifier 'static' should be before the modifier 'fi nal'");
5774 static final ParserErrorCode STATIC_SETTER_WITHOUT_BODY = new ParserErrorCode. con3('STATIC_SETTER_WITHOUT_BODY', 110, "A 'static' setter must have a body"); 5783 static final ParserErrorCode STATIC_AFTER_VAR = new ParserErrorCode.con3('STAT IC_AFTER_VAR', 110, "The modifier 'static' should be before the modifier 'var'") ;
5775 static final ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = new ParserErrorCod e.con3('STATIC_TOP_LEVEL_DECLARATION', 111, "Top-level declarations cannot be de clared to be 'static'"); 5784 static final ParserErrorCode STATIC_CONSTRUCTOR = new ParserErrorCode.con3('ST ATIC_CONSTRUCTOR', 111, "Constructors cannot be static");
5776 static final ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = new ParserEr rorCode.con3('SWITCH_HAS_CASE_AFTER_DEFAULT_CASE', 112, "The 'default' case shou ld be the last case in a switch statement"); 5785 static final ParserErrorCode STATIC_GETTER_WITHOUT_BODY = new ParserErrorCode. con3('STATIC_GETTER_WITHOUT_BODY', 112, "A 'static' getter must have a body");
5777 static final ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = new ParserErr orCode.con3('SWITCH_HAS_MULTIPLE_DEFAULT_CASES', 113, "The 'default' case can on ly be declared once"); 5786 static final ParserErrorCode STATIC_OPERATOR = new ParserErrorCode.con3('STATI C_OPERATOR', 113, "Operators cannot be static");
5778 static final ParserErrorCode TOP_LEVEL_OPERATOR = new ParserErrorCode.con3('TO P_LEVEL_OPERATOR', 114, "Operators must be declared within a class"); 5787 static final ParserErrorCode STATIC_SETTER_WITHOUT_BODY = new ParserErrorCode. con3('STATIC_SETTER_WITHOUT_BODY', 114, "A 'static' setter must have a body");
5779 static final ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = new P arserErrorCode.con3('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 115, "There is no '%s' to open a parameter group"); 5788 static final ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = new ParserErrorCod e.con3('STATIC_TOP_LEVEL_DECLARATION', 115, "Top-level declarations cannot be de clared to be 'static'");
5780 static final ParserErrorCode UNEXPECTED_TOKEN = new ParserErrorCode.con3('UNEX PECTED_TOKEN', 116, "Unexpected token '%s'"); 5789 static final ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = new ParserEr rorCode.con3('SWITCH_HAS_CASE_AFTER_DEFAULT_CASE', 116, "The 'default' case shou ld be the last case in a switch statement");
5781 static final ParserErrorCode WITH_BEFORE_EXTENDS = new ParserErrorCode.con3('W ITH_BEFORE_EXTENDS', 117, "The extends clause must be before the with clause"); 5790 static final ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = new ParserErr orCode.con3('SWITCH_HAS_MULTIPLE_DEFAULT_CASES', 117, "The 'default' case can on ly be declared once");
5782 static final ParserErrorCode WITH_WITHOUT_EXTENDS = new ParserErrorCode.con3(' WITH_WITHOUT_EXTENDS', 118, "The with clause cannot be used without an extends c lause"); 5791 static final ParserErrorCode TOP_LEVEL_OPERATOR = new ParserErrorCode.con3('TO P_LEVEL_OPERATOR', 118, "Operators must be declared within a class");
5783 static final ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = new ParserE rrorCode.con3('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 119, "The default value of a named parameter should be preceeded by ':'"); 5792 static final ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = new P arserErrorCode.con3('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 119, "There is no '%s' to open a parameter group");
5784 static final ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = new Pa rserErrorCode.con3('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 120, "The default value of a positional parameter should be preceeded by '='"); 5793 static final ParserErrorCode UNEXPECTED_TOKEN = new ParserErrorCode.con3('UNEX PECTED_TOKEN', 120, "Unexpected token '%s'");
5785 static final ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = new Parser ErrorCode.con3('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 121, "Expected '%s' to cl ose parameter group"); 5794 static final ParserErrorCode WITH_BEFORE_EXTENDS = new ParserErrorCode.con3('W ITH_BEFORE_EXTENDS', 121, "The extends clause must be before the with clause");
5786 static final ParserErrorCode VAR_AND_TYPE = new ParserErrorCode.con3('VAR_AND_ TYPE', 122, "Variables cannot be declared using both 'var' and a type name; remo ve the 'var'"); 5795 static final ParserErrorCode WITH_WITHOUT_EXTENDS = new ParserErrorCode.con3(' WITH_WITHOUT_EXTENDS', 122, "The with clause cannot be used without an extends c lause");
5787 static final ParserErrorCode VAR_AS_TYPE_NAME = new ParserErrorCode.con3('VAR_ AS_TYPE_NAME', 123, "The keyword 'var' cannot be used as a type name"); 5796 static final ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = new ParserE rrorCode.con3('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 123, "The default value of a named parameter should be preceeded by ':'");
5788 static final ParserErrorCode VAR_CLASS = new ParserErrorCode.con3('VAR_CLASS', 124, "Classes cannot be declared to be 'var'"); 5797 static final ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = new Pa rserErrorCode.con3('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 124, "The default value of a positional parameter should be preceeded by '='");
5789 static final ParserErrorCode VAR_RETURN_TYPE = new ParserErrorCode.con3('VAR_R ETURN_TYPE', 125, "The return type cannot be 'var'"); 5798 static final ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = new Parser ErrorCode.con3('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 125, "Expected '%s' to cl ose parameter group");
5790 static final ParserErrorCode VAR_TYPEDEF = new ParserErrorCode.con3('VAR_TYPED EF', 126, "Type aliases cannot be declared to be 'var'"); 5799 static final ParserErrorCode VAR_AND_TYPE = new ParserErrorCode.con3('VAR_AND_ TYPE', 126, "Variables cannot be declared using both 'var' and a type name; remo ve the 'var'");
5791 static final ParserErrorCode VOID_PARAMETER = new ParserErrorCode.con3('VOID_P ARAMETER', 127, "Parameters cannot have a type of 'void'"); 5800 static final ParserErrorCode VAR_AS_TYPE_NAME = new ParserErrorCode.con3('VAR_ AS_TYPE_NAME', 127, "The keyword 'var' cannot be used as a type name");
5792 static final ParserErrorCode VOID_VARIABLE = new ParserErrorCode.con3('VOID_VA RIABLE', 128, "Variables cannot have a type of 'void'"); 5801 static final ParserErrorCode VAR_CLASS = new ParserErrorCode.con3('VAR_CLASS', 128, "Classes cannot be declared to be 'var'");
5802 static final ParserErrorCode VAR_RETURN_TYPE = new ParserErrorCode.con3('VAR_R ETURN_TYPE', 129, "The return type cannot be 'var'");
5803 static final ParserErrorCode VAR_TYPEDEF = new ParserErrorCode.con3('VAR_TYPED EF', 130, "Type aliases cannot be declared to be 'var'");
5804 static final ParserErrorCode VOID_PARAMETER = new ParserErrorCode.con3('VOID_P ARAMETER', 131, "Parameters cannot have a type of 'void'");
5805 static final ParserErrorCode VOID_VARIABLE = new ParserErrorCode.con3('VOID_VA RIABLE', 132, "Variables cannot have a type of 'void'");
5793 static final List<ParserErrorCode> values = [ 5806 static final List<ParserErrorCode> values = [
5794 ABSTRACT_CLASS_MEMBER, 5807 ABSTRACT_CLASS_MEMBER,
5795 ABSTRACT_STATIC_METHOD, 5808 ABSTRACT_STATIC_METHOD,
5796 ABSTRACT_TOP_LEVEL_FUNCTION, 5809 ABSTRACT_TOP_LEVEL_FUNCTION,
5797 ABSTRACT_TOP_LEVEL_VARIABLE, 5810 ABSTRACT_TOP_LEVEL_VARIABLE,
5798 ABSTRACT_TYPEDEF, 5811 ABSTRACT_TYPEDEF,
5812 ASSERT_DOES_NOT_TAKE_ASSIGNMENT,
5813 ASSERT_DOES_NOT_TAKE_CASCADE,
5814 ASSERT_DOES_NOT_TAKE_THROW,
5815 ASSERT_DOES_NOT_TAKE_RETHROW,
5799 BREAK_OUTSIDE_OF_LOOP, 5816 BREAK_OUTSIDE_OF_LOOP,
5800 CONST_AND_FINAL, 5817 CONST_AND_FINAL,
5801 CONST_AND_VAR, 5818 CONST_AND_VAR,
5802 CONST_CLASS, 5819 CONST_CLASS,
5803 CONST_CONSTRUCTOR_WITH_BODY, 5820 CONST_CONSTRUCTOR_WITH_BODY,
5804 CONST_FACTORY, 5821 CONST_FACTORY,
5805 CONST_METHOD, 5822 CONST_METHOD,
5806 CONST_TYPEDEF, 5823 CONST_TYPEDEF,
5807 CONSTRUCTOR_WITH_RETURN_TYPE, 5824 CONSTRUCTOR_WITH_RETURN_TYPE,
5808 CONTINUE_OUTSIDE_OF_LOOP, 5825 CONTINUE_OUTSIDE_OF_LOOP,
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
6915 if ("\n" == separator) { 6932 if ("\n" == separator) {
6916 _writer.print("\n"); 6933 _writer.print("\n");
6917 indent(); 6934 indent();
6918 } else if (i > 0) { 6935 } else if (i > 0) {
6919 _writer.print(separator); 6936 _writer.print(separator);
6920 } 6937 }
6921 _writer.print(tokens[i].lexeme); 6938 _writer.print(tokens[i].lexeme);
6922 } 6939 }
6923 } 6940 }
6924 } 6941 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/java_core.dart ('k') | pkg/analyzer_experimental/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698