OLD | NEW |
1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
3 | 3 |
4 library engine.parser; | 4 library engine.parser; |
5 | 5 |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'java_core.dart'; | 7 import 'java_core.dart'; |
8 import 'java_engine.dart'; | 8 import 'java_engine.dart'; |
9 import 'error.dart'; | 9 import 'error.dart'; |
10 import 'source.dart'; | 10 import 'source.dart'; |
11 import 'scanner.dart'; | 11 import 'scanner.dart'; |
12 import 'ast.dart'; | 12 import 'ast.dart'; |
13 import 'package:analyzer-experimental/src/generated/utilities_dart.dart'; | 13 import 'package:analyzer_experimental/src/generated/utilities_dart.dart'; |
14 | 14 |
15 /** | 15 /** |
16 * Instances of the class {@code CommentAndMetadata} implement a simple data-hol
der for a method | 16 * Instances of the class {@code CommentAndMetadata} implement a simple data-hol
der for a method |
17 * that needs to return multiple values. | 17 * that needs to return multiple values. |
18 * @coverage dart.engine.parser | 18 * @coverage dart.engine.parser |
19 */ | 19 */ |
20 class CommentAndMetadata { | 20 class CommentAndMetadata { |
21 /** | 21 /** |
22 * The documentation comment that was parsed, or {@code null} if none was give
n. | 22 * The documentation comment that was parsed, or {@code null} if none was give
n. |
23 */ | 23 */ |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 * @param keyword the keyword that is being tested for | 598 * @param keyword the keyword that is being tested for |
599 * @return {@code true} if the given token matches the given keyword | 599 * @return {@code true} if the given token matches the given keyword |
600 */ | 600 */ |
601 bool matches3(Token token, Keyword keyword37) => identical(token.type, TokenTy
pe.KEYWORD) && identical(((token as KeywordToken)).keyword, keyword37); | 601 bool matches3(Token token, Keyword keyword37) => identical(token.type, TokenTy
pe.KEYWORD) && identical(((token as KeywordToken)).keyword, keyword37); |
602 /** | 602 /** |
603 * Return {@code true} if the given token has the given type. | 603 * Return {@code true} if the given token has the given type. |
604 * @param token the token being tested | 604 * @param token the token being tested |
605 * @param type the type of token that is being tested for | 605 * @param type the type of token that is being tested for |
606 * @return {@code true} if the given token has the given type | 606 * @return {@code true} if the given token has the given type |
607 */ | 607 */ |
608 bool matches4(Token token, TokenType type30) => identical(token.type, type30); | 608 bool matches4(Token token, TokenType type31) => identical(token.type, type31); |
609 /** | 609 /** |
610 * Return {@code true} if the current token has the given type. Note that this
method, unlike | 610 * Return {@code true} if the current token has the given type. Note that this
method, unlike |
611 * other variants, will modify the token stream if possible to match a wider r
ange of tokens. In | 611 * other variants, will modify the token stream if possible to match a wider r
ange of tokens. In |
612 * particular, if we are attempting to match a '>' and the next token is eithe
r a '>>' or '>>>', | 612 * particular, if we are attempting to match a '>' and the next token is eithe
r a '>>' or '>>>', |
613 * the token stream will be re-written and {@code true} will be returned. | 613 * the token stream will be re-written and {@code true} will be returned. |
614 * @param type the type of token that can optionally appear in the current loc
ation | 614 * @param type the type of token that can optionally appear in the current loc
ation |
615 * @return {@code true} if the current token has the given type | 615 * @return {@code true} if the current token has the given type |
616 */ | 616 */ |
617 bool matches5(TokenType type31) { | 617 bool matches5(TokenType type32) { |
618 TokenType currentType = _currentToken.type; | 618 TokenType currentType = _currentToken.type; |
619 if (currentType != type31) { | 619 if (currentType != type32) { |
620 if (identical(type31, TokenType.GT)) { | 620 if (identical(type32, TokenType.GT)) { |
621 if (identical(currentType, TokenType.GT_GT)) { | 621 if (identical(currentType, TokenType.GT_GT)) { |
622 int offset6 = _currentToken.offset; | 622 int offset6 = _currentToken.offset; |
623 Token first = new Token(TokenType.GT, offset6); | 623 Token first = new Token(TokenType.GT, offset6); |
624 Token second = new Token(TokenType.GT, offset6 + 1); | 624 Token second = new Token(TokenType.GT, offset6 + 1); |
625 second.setNext(_currentToken.next); | 625 second.setNext(_currentToken.next); |
626 first.setNext(second); | 626 first.setNext(second); |
627 _currentToken.previous.setNext(first); | 627 _currentToken.previous.setNext(first); |
628 _currentToken = first; | 628 _currentToken = first; |
629 return true; | 629 return true; |
630 } else if (identical(currentType, TokenType.GT_EQ)) { | 630 } else if (identical(currentType, TokenType.GT_EQ)) { |
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2950 return new ExpressionStatement.full(parseExpression2(), expect2(TokenTyp
e.SEMICOLON)); | 2950 return new ExpressionStatement.full(parseExpression2(), expect2(TokenTyp
e.SEMICOLON)); |
2951 } else { | 2951 } else { |
2952 return null; | 2952 return null; |
2953 } | 2953 } |
2954 } else if (matches5(TokenType.SEMICOLON)) { | 2954 } else if (matches5(TokenType.SEMICOLON)) { |
2955 return parseEmptyStatement(); | 2955 return parseEmptyStatement(); |
2956 } else if (isInitializedVariableDeclaration()) { | 2956 } else if (isInitializedVariableDeclaration()) { |
2957 return parseVariableDeclarationStatement(); | 2957 return parseVariableDeclarationStatement(); |
2958 } else if (isFunctionDeclaration()) { | 2958 } else if (isFunctionDeclaration()) { |
2959 return parseFunctionDeclarationStatement(); | 2959 return parseFunctionDeclarationStatement(); |
| 2960 } else if (matches5(TokenType.CLOSE_CURLY_BRACKET)) { |
| 2961 reportError4(ParserErrorCode.MISSING_STATEMENT, []); |
| 2962 return new EmptyStatement.full(createSyntheticToken(TokenType.SEMICOLON)); |
2960 } else { | 2963 } else { |
2961 return new ExpressionStatement.full(parseExpression2(), expect2(TokenType.
SEMICOLON)); | 2964 return new ExpressionStatement.full(parseExpression2(), expect2(TokenType.
SEMICOLON)); |
2962 } | 2965 } |
2963 } | 2966 } |
2964 /** | 2967 /** |
2965 * Parse a normal formal parameter. | 2968 * Parse a normal formal parameter. |
2966 * <pre> | 2969 * <pre> |
2967 * normalFormalParameter ::= | 2970 * normalFormalParameter ::= |
2968 * functionSignature | 2971 * functionSignature |
2969 * | fieldFormalParameter | 2972 * | fieldFormalParameter |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3231 period = andAdvance; | 3234 period = andAdvance; |
3232 constructorName = parseSimpleIdentifier(); | 3235 constructorName = parseSimpleIdentifier(); |
3233 } | 3236 } |
3234 ArgumentList argumentList = parseArgumentList(); | 3237 ArgumentList argumentList = parseArgumentList(); |
3235 return new RedirectingConstructorInvocation.full(keyword, period, constructo
rName, argumentList); | 3238 return new RedirectingConstructorInvocation.full(keyword, period, constructo
rName, argumentList); |
3236 } | 3239 } |
3237 /** | 3240 /** |
3238 * Parse a relational expression. | 3241 * Parse a relational expression. |
3239 * <pre> | 3242 * <pre> |
3240 * relationalExpression ::= | 3243 * relationalExpression ::= |
3241 * shiftExpression ('is' type | 'as' type | relationalOperator shiftExpression
)? | 3244 * shiftExpression ('is' '!'? type | 'as' type | relationalOperator shiftExpre
ssion)? |
3242 * | 'super' relationalOperator shiftExpression | 3245 * | 'super' relationalOperator shiftExpression |
3243 * </pre> | 3246 * </pre> |
3244 * @return the relational expression that was parsed | 3247 * @return the relational expression that was parsed |
3245 */ | 3248 */ |
3246 Expression parseRelationalExpression() { | 3249 Expression parseRelationalExpression() { |
3247 if (matches(Keyword.SUPER) && _currentToken.next.type.isRelationalOperator()
) { | 3250 if (matches(Keyword.SUPER) && _currentToken.next.type.isRelationalOperator()
) { |
3248 Expression expression = new SuperExpression.full(andAdvance); | 3251 Expression expression = new SuperExpression.full(andAdvance); |
3249 Token operator = andAdvance; | 3252 Token operator = andAdvance; |
3250 expression = new BinaryExpression.full(expression, operator, parseShiftExp
ression()); | 3253 expression = new BinaryExpression.full(expression, operator, parseShiftExp
ression()); |
3251 return expression; | 3254 return expression; |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4658 static final ParserErrorCode CONST_TYPEDEF = new ParserErrorCode.con2('CONST_T
YPEDEF', 10, "Type aliases cannot be declared to be 'const'"); | 4661 static final ParserErrorCode CONST_TYPEDEF = new ParserErrorCode.con2('CONST_T
YPEDEF', 10, "Type aliases cannot be declared to be 'const'"); |
4659 static final ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = new ParserErrorCod
e.con2('CONSTRUCTOR_WITH_RETURN_TYPE', 11, "Constructors cannot have a return ty
pe"); | 4662 static final ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = new ParserErrorCod
e.con2('CONSTRUCTOR_WITH_RETURN_TYPE', 11, "Constructors cannot have a return ty
pe"); |
4660 static final ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = new ParserErrorCode.co
n2('CONTINUE_OUTSIDE_OF_LOOP', 12, "A continue statement cannot be used outside
of a loop or switch statement"); | 4663 static final ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = new ParserErrorCode.co
n2('CONTINUE_OUTSIDE_OF_LOOP', 12, "A continue statement cannot be used outside
of a loop or switch statement"); |
4661 static final ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = new ParserErrorC
ode.con2('CONTINUE_WITHOUT_LABEL_IN_CASE', 13, "A continue statement in a switch
statement must have a label as a target"); | 4664 static final ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = new ParserErrorC
ode.con2('CONTINUE_WITHOUT_LABEL_IN_CASE', 13, "A continue statement in a switch
statement must have a label as a target"); |
4662 static final ParserErrorCode DIRECTIVE_AFTER_DECLARATION = new ParserErrorCode
.con2('DIRECTIVE_AFTER_DECLARATION', 14, "Directives must appear before any decl
arations"); | 4665 static final ParserErrorCode DIRECTIVE_AFTER_DECLARATION = new ParserErrorCode
.con2('DIRECTIVE_AFTER_DECLARATION', 14, "Directives must appear before any decl
arations"); |
4663 static final ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = new ParserE
rrorCode.con2('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 15, "The label %s was alrea
dy used in this switch statement"); | 4666 static final ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = new ParserE
rrorCode.con2('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 15, "The label %s was alrea
dy used in this switch statement"); |
4664 static final ParserErrorCode DUPLICATED_MODIFIER = new ParserErrorCode.con2('D
UPLICATED_MODIFIER', 16, "The modifier '%s' was already specified."); | 4667 static final ParserErrorCode DUPLICATED_MODIFIER = new ParserErrorCode.con2('D
UPLICATED_MODIFIER', 16, "The modifier '%s' was already specified."); |
4665 static final ParserErrorCode EXPECTED_CASE_OR_DEFAULT = new ParserErrorCode.co
n2('EXPECTED_CASE_OR_DEFAULT', 17, "Expected 'case' or 'default'"); | 4668 static final ParserErrorCode EXPECTED_CASE_OR_DEFAULT = new ParserErrorCode.co
n2('EXPECTED_CASE_OR_DEFAULT', 17, "Expected 'case' or 'default'"); |
4666 static final ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = new ParserErrorCod
e.con2('EXPECTED_LIST_OR_MAP_LITERAL', 18, "Expected a list or map literal"); | 4669 static final ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = new ParserErrorCod
e.con2('EXPECTED_LIST_OR_MAP_LITERAL', 18, "Expected a list or map literal"); |
4667 static final ParserErrorCode EXPECTED_STRING_LITERAL = new ParserErrorCode.con
2('EXPECTED_STRING_LITERAL', 19, "Expected a string literal"); | 4670 static final ParserErrorCode EXPECTED_STRING_LITERAL = new ParserErrorCode.con
2('EXPECTED_STRING_LITERAL', 19, "Expected a string literal"); |
4668 static final ParserErrorCode EXPECTED_TOKEN = new ParserErrorCode.con2('EXPECT
ED_TOKEN', 20, "Expected to find: %s"); | 4671 static final ParserErrorCode EXPECTED_TOKEN = new ParserErrorCode.con2('EXPECT
ED_TOKEN', 20, "Expected to find '%s'"); |
4669 static final ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = new Parse
rErrorCode.con2('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 21, "Export directives
must preceed part directives"); | 4672 static final ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = new Parse
rErrorCode.con2('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 21, "Export directives
must preceed part directives"); |
4670 static final ParserErrorCode EXTERNAL_AFTER_CONST = new ParserErrorCode.con2('
EXTERNAL_AFTER_CONST', 22, "The modifier 'external' should be before the modifie
r 'const'"); | 4673 static final ParserErrorCode EXTERNAL_AFTER_CONST = new ParserErrorCode.con2('
EXTERNAL_AFTER_CONST', 22, "The modifier 'external' should be before the modifie
r 'const'"); |
4671 static final ParserErrorCode EXTERNAL_AFTER_FACTORY = new ParserErrorCode.con2
('EXTERNAL_AFTER_FACTORY', 23, "The modifier 'external' should be before the mod
ifier 'factory'"); | 4674 static final ParserErrorCode EXTERNAL_AFTER_FACTORY = new ParserErrorCode.con2
('EXTERNAL_AFTER_FACTORY', 23, "The modifier 'external' should be before the mod
ifier 'factory'"); |
4672 static final ParserErrorCode EXTERNAL_AFTER_STATIC = new ParserErrorCode.con2(
'EXTERNAL_AFTER_STATIC', 24, "The modifier 'external' should be before the modif
ier 'static'"); | 4675 static final ParserErrorCode EXTERNAL_AFTER_STATIC = new ParserErrorCode.con2(
'EXTERNAL_AFTER_STATIC', 24, "The modifier 'external' should be before the modif
ier 'static'"); |
4673 static final ParserErrorCode EXTERNAL_CLASS = new ParserErrorCode.con2('EXTERN
AL_CLASS', 25, "Classes cannot be declared to be 'external'"); | 4676 static final ParserErrorCode EXTERNAL_CLASS = new ParserErrorCode.con2('EXTERN
AL_CLASS', 25, "Classes cannot be declared to be 'external'"); |
4674 static final ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = new ParserErrorC
ode.con2('EXTERNAL_CONSTRUCTOR_WITH_BODY', 26, "External constructors cannot hav
e a body"); | 4677 static final ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = new ParserErrorC
ode.con2('EXTERNAL_CONSTRUCTOR_WITH_BODY', 26, "External constructors cannot hav
e a body"); |
4675 static final ParserErrorCode EXTERNAL_FIELD = new ParserErrorCode.con2('EXTERN
AL_FIELD', 27, "Fields cannot be declared to be 'external'"); | 4678 static final ParserErrorCode EXTERNAL_FIELD = new ParserErrorCode.con2('EXTERN
AL_FIELD', 27, "Fields cannot be declared to be 'external'"); |
4676 static final ParserErrorCode EXTERNAL_GETTER_WITH_BODY = new ParserErrorCode.c
on2('EXTERNAL_GETTER_WITH_BODY', 28, "External getters cannot have a body"); | 4679 static final ParserErrorCode EXTERNAL_GETTER_WITH_BODY = new ParserErrorCode.c
on2('EXTERNAL_GETTER_WITH_BODY', 28, "External getters cannot have a body"); |
4677 static final ParserErrorCode EXTERNAL_METHOD_WITH_BODY = new ParserErrorCode.c
on2('EXTERNAL_METHOD_WITH_BODY', 29, "External methods cannot have a body"); | 4680 static final ParserErrorCode EXTERNAL_METHOD_WITH_BODY = new ParserErrorCode.c
on2('EXTERNAL_METHOD_WITH_BODY', 29, "External methods cannot have a body"); |
4678 static final ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = new ParserErrorCode
.con2('EXTERNAL_OPERATOR_WITH_BODY', 30, "External operators cannot have a body"
); | 4681 static final ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = new ParserErrorCode
.con2('EXTERNAL_OPERATOR_WITH_BODY', 30, "External operators cannot have a body"
); |
(...skipping 20 matching lines...) Expand all Loading... |
4699 static final ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = new ParserErrorCode
.con2('LIBRARY_DIRECTIVE_NOT_FIRST', 51, "The library directive must appear befo
re all other directives"); | 4702 static final ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = new ParserErrorCode
.con2('LIBRARY_DIRECTIVE_NOT_FIRST', 51, "The library directive must appear befo
re all other directives"); |
4700 static final ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = new ParserErrorCode
.con2('MISSING_ASSIGNABLE_SELECTOR', 52, "Missing selector such as \".<identifie
r>\" or \"[0]\""); | 4703 static final ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = new ParserErrorCode
.con2('MISSING_ASSIGNABLE_SELECTOR', 52, "Missing selector such as \".<identifie
r>\" or \"[0]\""); |
4701 static final ParserErrorCode MISSING_CATCH_OR_FINALLY = new ParserErrorCode.co
n2('MISSING_CATCH_OR_FINALLY', 53, "A try statement must have either a catch or
finally clause"); | 4704 static final ParserErrorCode MISSING_CATCH_OR_FINALLY = new ParserErrorCode.co
n2('MISSING_CATCH_OR_FINALLY', 53, "A try statement must have either a catch or
finally clause"); |
4702 static final ParserErrorCode MISSING_CLASS_BODY = new ParserErrorCode.con2('MI
SSING_CLASS_BODY', 54, "A class definition must have a body, even if it is empty
"); | 4705 static final ParserErrorCode MISSING_CLASS_BODY = new ParserErrorCode.con2('MI
SSING_CLASS_BODY', 54, "A class definition must have a body, even if it is empty
"); |
4703 static final ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = new ParserError
Code.con2('MISSING_CONST_FINAL_VAR_OR_TYPE', 55, "Variables must be declared usi
ng the keywords 'const', 'final', 'var' or a type name"); | 4706 static final ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = new ParserError
Code.con2('MISSING_CONST_FINAL_VAR_OR_TYPE', 55, "Variables must be declared usi
ng the keywords 'const', 'final', 'var' or a type name"); |
4704 static final ParserErrorCode MISSING_FUNCTION_BODY = new ParserErrorCode.con2(
'MISSING_FUNCTION_BODY', 56, "A function body must be provided"); | 4707 static final ParserErrorCode MISSING_FUNCTION_BODY = new ParserErrorCode.con2(
'MISSING_FUNCTION_BODY', 56, "A function body must be provided"); |
4705 static final ParserErrorCode MISSING_FUNCTION_PARAMETERS = new ParserErrorCode
.con2('MISSING_FUNCTION_PARAMETERS', 57, "Functions must have an explicit list o
f parameters"); | 4708 static final ParserErrorCode MISSING_FUNCTION_PARAMETERS = new ParserErrorCode
.con2('MISSING_FUNCTION_PARAMETERS', 57, "Functions must have an explicit list o
f parameters"); |
4706 static final ParserErrorCode MISSING_IDENTIFIER = new ParserErrorCode.con2('MI
SSING_IDENTIFIER', 58, "Expected an identifier"); | 4709 static final ParserErrorCode MISSING_IDENTIFIER = new ParserErrorCode.con2('MI
SSING_IDENTIFIER', 58, "Expected an identifier"); |
4707 static final ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = new ParserErr
orCode.con2('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 59, "Library directives must in
clude a library name"); | 4710 static final ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = new ParserErr
orCode.con2('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 59, "Library directives must in
clude a library name"); |
4708 static final ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = new ParserErr
orCode.con2('MISSING_NAME_IN_PART_OF_DIRECTIVE', 60, "Library directives must in
clude a library name"); | 4711 static final ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = new ParserErr
orCode.con2('MISSING_NAME_IN_PART_OF_DIRECTIVE', 60, "Library directives must in
clude a library name"); |
4709 static final ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = new Pars
erErrorCode.con2('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 61, "There is no '%s'
to close the parameter group"); | 4712 static final ParserErrorCode MISSING_STATEMENT = new ParserErrorCode.con2('MIS
SING_STATEMENT', 61, "Expected a statement"); |
4710 static final ParserErrorCode MISSING_TYPEDEF_PARAMETERS = new ParserErrorCode.
con2('MISSING_TYPEDEF_PARAMETERS', 62, "Type aliases for functions must have an
explicit list of parameters"); | 4713 static final ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = new Pars
erErrorCode.con2('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 62, "There is no '%s'
to close the parameter group"); |
4711 static final ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = new ParserErrorCod
e.con2('MISSING_VARIABLE_IN_FOR_EACH', 63, "A loop variable must be declared in
a for-each loop before the 'in', but none were found"); | 4714 static final ParserErrorCode MISSING_TYPEDEF_PARAMETERS = new ParserErrorCode.
con2('MISSING_TYPEDEF_PARAMETERS', 63, "Type aliases for functions must have an
explicit list of parameters"); |
4712 static final ParserErrorCode MIXED_PARAMETER_GROUPS = new ParserErrorCode.con2
('MIXED_PARAMETER_GROUPS', 64, "Cannot have both positional and named parameters
in a single parameter list"); | 4715 static final ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = new ParserErrorCod
e.con2('MISSING_VARIABLE_IN_FOR_EACH', 64, "A loop variable must be declared in
a for-each loop before the 'in', but none were found"); |
4713 static final ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = new ParserErrorCode.co
n2('MULTIPLE_EXTENDS_CLAUSES', 65, "Each class definition can have at most one e
xtends clause"); | 4716 static final ParserErrorCode MIXED_PARAMETER_GROUPS = new ParserErrorCode.con2
('MIXED_PARAMETER_GROUPS', 65, "Cannot have both positional and named parameters
in a single parameter list"); |
4714 static final ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = new ParserErrorCode
.con2('MULTIPLE_IMPLEMENTS_CLAUSES', 66, "Each class definition can have at most
one implements clause"); | 4717 static final ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = new ParserErrorCode.co
n2('MULTIPLE_EXTENDS_CLAUSES', 66, "Each class definition can have at most one e
xtends clause"); |
4715 static final ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = new ParserErrorCode
.con2('MULTIPLE_LIBRARY_DIRECTIVES', 67, "Only one library directive may be decl
ared in a file"); | 4718 static final ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = new ParserErrorCode
.con2('MULTIPLE_IMPLEMENTS_CLAUSES', 67, "Each class definition can have at most
one implements clause"); |
4716 static final ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = new ParserError
Code.con2('MULTIPLE_NAMED_PARAMETER_GROUPS', 68, "Cannot have multiple groups of
named parameters in a single parameter list"); | 4719 static final ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = new ParserErrorCode
.con2('MULTIPLE_LIBRARY_DIRECTIVES', 68, "Only one library directive may be decl
ared in a file"); |
4717 static final ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = new ParserErrorCode
.con2('MULTIPLE_PART_OF_DIRECTIVES', 69, "Only one part-of directive may be decl
ared in a file"); | 4720 static final ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = new ParserError
Code.con2('MULTIPLE_NAMED_PARAMETER_GROUPS', 69, "Cannot have multiple groups of
named parameters in a single parameter list"); |
4718 static final ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = new Parser
ErrorCode.con2('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 70, "Cannot have multiple
groups of positional parameters in a single parameter list"); | 4721 static final ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = new ParserErrorCode
.con2('MULTIPLE_PART_OF_DIRECTIVES', 70, "Only one part-of directive may be decl
ared in a file"); |
4719 static final ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = new ParserErrorC
ode.con2('MULTIPLE_VARIABLES_IN_FOR_EACH', 71, "A single loop variable must be d
eclared in a for-each loop before the 'in', but %s were found"); | 4722 static final ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = new Parser
ErrorCode.con2('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 71, "Cannot have multiple
groups of positional parameters in a single parameter list"); |
4720 static final ParserErrorCode MULTIPLE_WITH_CLAUSES = new ParserErrorCode.con2(
'MULTIPLE_WITH_CLAUSES', 72, "Each class definition can have at most one with cl
ause"); | 4723 static final ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = new ParserErrorC
ode.con2('MULTIPLE_VARIABLES_IN_FOR_EACH', 72, "A single loop variable must be d
eclared in a for-each loop before the 'in', but %s were found"); |
4721 static final ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = new ParserErrorCo
de.con2('NAMED_PARAMETER_OUTSIDE_GROUP', 73, "Named parameters must be enclosed
in curly braces ('{' and '}')"); | 4724 static final ParserErrorCode MULTIPLE_WITH_CLAUSES = new ParserErrorCode.con2(
'MULTIPLE_WITH_CLAUSES', 73, "Each class definition can have at most one with cl
ause"); |
4722 static final ParserErrorCode NON_CONSTRUCTOR_FACTORY = new ParserErrorCode.con
2('NON_CONSTRUCTOR_FACTORY', 74, "Only constructors can be declared to be a 'fac
tory'"); | 4725 static final ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = new ParserErrorCo
de.con2('NAMED_PARAMETER_OUTSIDE_GROUP', 74, "Named parameters must be enclosed
in curly braces ('{' and '}')"); |
4723 static final ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = new ParserErrorCode
.con2('NON_IDENTIFIER_LIBRARY_NAME', 75, "The name of a library must be an ident
ifier"); | 4726 static final ParserErrorCode NON_CONSTRUCTOR_FACTORY = new ParserErrorCode.con
2('NON_CONSTRUCTOR_FACTORY', 75, "Only constructors can be declared to be a 'fac
tory'"); |
4724 static final ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = new ParserErrorCo
de.con2('NON_PART_OF_DIRECTIVE_IN_PART', 76, "The part-of directive must be the
only directive in a part"); | 4727 static final ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = new ParserErrorCode
.con2('NON_IDENTIFIER_LIBRARY_NAME', 76, "The name of a library must be an ident
ifier"); |
4725 static final ParserErrorCode NON_USER_DEFINABLE_OPERATOR = new ParserErrorCode
.con2('NON_USER_DEFINABLE_OPERATOR', 77, "The operator '%s' is not user definabl
e"); | 4728 static final ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = new ParserErrorCo
de.con2('NON_PART_OF_DIRECTIVE_IN_PART', 77, "The part-of directive must be the
only directive in a part"); |
4726 static final ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = new ParserError
Code.con2('POSITIONAL_AFTER_NAMED_ARGUMENT', 78, "Positional arguments must occu
r before named arguments"); | 4729 static final ParserErrorCode NON_USER_DEFINABLE_OPERATOR = new ParserErrorCode
.con2('NON_USER_DEFINABLE_OPERATOR', 78, "The operator '%s' is not user definabl
e"); |
4727 static final ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = new ParserEr
rorCode.con2('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 79, "Positional parameters mu
st be enclosed in square brackets ('[' and ']')"); | 4730 static final ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = new ParserError
Code.con2('POSITIONAL_AFTER_NAMED_ARGUMENT', 79, "Positional arguments must occu
r before named arguments"); |
4728 static final ParserErrorCode STATIC_AFTER_CONST = new ParserErrorCode.con2('ST
ATIC_AFTER_CONST', 80, "The modifier 'static' should be before the modifier 'con
st'"); | 4731 static final ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = new ParserEr
rorCode.con2('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 80, "Positional parameters mu
st be enclosed in square brackets ('[' and ']')"); |
4729 static final ParserErrorCode STATIC_AFTER_FINAL = new ParserErrorCode.con2('ST
ATIC_AFTER_FINAL', 81, "The modifier 'static' should be before the modifier 'fin
al'"); | 4732 static final ParserErrorCode STATIC_AFTER_CONST = new ParserErrorCode.con2('ST
ATIC_AFTER_CONST', 81, "The modifier 'static' should be before the modifier 'con
st'"); |
4730 static final ParserErrorCode STATIC_AFTER_VAR = new ParserErrorCode.con2('STAT
IC_AFTER_VAR', 82, "The modifier 'static' should be before the modifier 'var'"); | 4733 static final ParserErrorCode STATIC_AFTER_FINAL = new ParserErrorCode.con2('ST
ATIC_AFTER_FINAL', 82, "The modifier 'static' should be before the modifier 'fin
al'"); |
4731 static final ParserErrorCode STATIC_CONSTRUCTOR = new ParserErrorCode.con2('ST
ATIC_CONSTRUCTOR', 83, "Constructors cannot be static"); | 4734 static final ParserErrorCode STATIC_AFTER_VAR = new ParserErrorCode.con2('STAT
IC_AFTER_VAR', 83, "The modifier 'static' should be before the modifier 'var'"); |
4732 static final ParserErrorCode STATIC_OPERATOR = new ParserErrorCode.con2('STATI
C_OPERATOR', 84, "Operators cannot be static"); | 4735 static final ParserErrorCode STATIC_CONSTRUCTOR = new ParserErrorCode.con2('ST
ATIC_CONSTRUCTOR', 84, "Constructors cannot be static"); |
4733 static final ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = new ParserErrorCod
e.con2('STATIC_TOP_LEVEL_DECLARATION', 85, "Top-level declarations cannot be dec
lared to be 'static'"); | 4736 static final ParserErrorCode STATIC_OPERATOR = new ParserErrorCode.con2('STATI
C_OPERATOR', 85, "Operators cannot be static"); |
4734 static final ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = new P
arserErrorCode.con2('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 86, "There is n
o '%s' to open a parameter group"); | 4737 static final ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = new ParserErrorCod
e.con2('STATIC_TOP_LEVEL_DECLARATION', 86, "Top-level declarations cannot be dec
lared to be 'static'"); |
4735 static final ParserErrorCode UNEXPECTED_TOKEN = new ParserErrorCode.con2('UNEX
PECTED_TOKEN', 87, "Unexpected token '%s'"); | 4738 static final ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = new P
arserErrorCode.con2('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 87, "There is n
o '%s' to open a parameter group"); |
4736 static final ParserErrorCode USE_OF_UNARY_PLUS_OPERATOR = new ParserErrorCode.
con2('USE_OF_UNARY_PLUS_OPERATOR', 88, "There is no unary plus operator in Dart"
); | 4739 static final ParserErrorCode UNEXPECTED_TOKEN = new ParserErrorCode.con2('UNEX
PECTED_TOKEN', 88, "Unexpected token '%s'"); |
4737 static final ParserErrorCode WITH_BEFORE_EXTENDS = new ParserErrorCode.con2('W
ITH_BEFORE_EXTENDS', 89, "The extends clause must be before the with clause"); | 4740 static final ParserErrorCode USE_OF_UNARY_PLUS_OPERATOR = new ParserErrorCode.
con2('USE_OF_UNARY_PLUS_OPERATOR', 89, "There is no unary plus operator in Dart"
); |
4738 static final ParserErrorCode WITH_WITHOUT_EXTENDS = new ParserErrorCode.con2('
WITH_WITHOUT_EXTENDS', 90, "The with clause cannot be used without an extends cl
ause"); | 4741 static final ParserErrorCode WITH_BEFORE_EXTENDS = new ParserErrorCode.con2('W
ITH_BEFORE_EXTENDS', 90, "The extends clause must be before the with clause"); |
4739 static final ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = new ParserE
rrorCode.con2('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 91, "The default value of a
named parameter should be preceeded by ':'"); | 4742 static final ParserErrorCode WITH_WITHOUT_EXTENDS = new ParserErrorCode.con2('
WITH_WITHOUT_EXTENDS', 91, "The with clause cannot be used without an extends cl
ause"); |
4740 static final ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = new Pa
rserErrorCode.con2('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 92, "The default
value of a positional parameter should be preceeded by '='"); | 4743 static final ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = new ParserE
rrorCode.con2('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 92, "The default value of a
named parameter should be preceeded by ':'"); |
4741 static final ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = new Parser
ErrorCode.con2('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 93, "Expected '%s' to clo
se parameter group"); | 4744 static final ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = new Pa
rserErrorCode.con2('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 93, "The default
value of a positional parameter should be preceeded by '='"); |
4742 static final ParserErrorCode VAR_CLASS = new ParserErrorCode.con2('VAR_CLASS',
94, "Classes cannot be declared to be 'var'"); | 4745 static final ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = new Parser
ErrorCode.con2('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 94, "Expected '%s' to clo
se parameter group"); |
4743 static final ParserErrorCode VAR_RETURN_TYPE = new ParserErrorCode.con2('VAR_R
ETURN_TYPE', 95, "The return type cannot be 'var'"); | 4746 static final ParserErrorCode VAR_CLASS = new ParserErrorCode.con2('VAR_CLASS',
95, "Classes cannot be declared to be 'var'"); |
4744 static final ParserErrorCode VAR_TYPEDEF = new ParserErrorCode.con2('VAR_TYPED
EF', 96, "Type aliases cannot be declared to be 'var'"); | 4747 static final ParserErrorCode VAR_RETURN_TYPE = new ParserErrorCode.con2('VAR_R
ETURN_TYPE', 96, "The return type cannot be 'var'"); |
4745 static final ParserErrorCode VOID_PARAMETER = new ParserErrorCode.con2('VOID_P
ARAMETER', 97, "Parameters cannot have a type of 'void'"); | 4748 static final ParserErrorCode VAR_TYPEDEF = new ParserErrorCode.con2('VAR_TYPED
EF', 97, "Type aliases cannot be declared to be 'var'"); |
4746 static final ParserErrorCode VOID_VARIABLE = new ParserErrorCode.con2('VOID_VA
RIABLE', 98, "Variables cannot have a type of 'void'"); | 4749 static final ParserErrorCode VOID_PARAMETER = new ParserErrorCode.con2('VOID_P
ARAMETER', 98, "Parameters cannot have a type of 'void'"); |
4747 static final List<ParserErrorCode> values = [ABSTRACT_CLASS_MEMBER, ABSTRACT_S
TATIC_METHOD, ABSTRACT_TOP_LEVEL_FUNCTION, ABSTRACT_TOP_LEVEL_VARIABLE, ABSTRACT
_TYPEDEF, BREAK_OUTSIDE_OF_LOOP, CONST_AND_FINAL, CONST_AND_VAR, CONST_CLASS, CO
NST_METHOD, CONST_TYPEDEF, CONSTRUCTOR_WITH_RETURN_TYPE, CONTINUE_OUTSIDE_OF_LOO
P, CONTINUE_WITHOUT_LABEL_IN_CASE, DIRECTIVE_AFTER_DECLARATION, DUPLICATE_LABEL_
IN_SWITCH_STATEMENT, DUPLICATED_MODIFIER, EXPECTED_CASE_OR_DEFAULT, EXPECTED_LIS
T_OR_MAP_LITERAL, EXPECTED_STRING_LITERAL, EXPECTED_TOKEN, EXPORT_DIRECTIVE_AFTE
R_PART_DIRECTIVE, EXTERNAL_AFTER_CONST, EXTERNAL_AFTER_FACTORY, EXTERNAL_AFTER_S
TATIC, EXTERNAL_CLASS, EXTERNAL_CONSTRUCTOR_WITH_BODY, EXTERNAL_FIELD, EXTERNAL_
GETTER_WITH_BODY, EXTERNAL_METHOD_WITH_BODY, EXTERNAL_OPERATOR_WITH_BODY, EXTERN
AL_SETTER_WITH_BODY, EXTERNAL_TYPEDEF, FACTORY_TOP_LEVEL_DECLARATION, FIELD_INIT
IALIZER_OUTSIDE_CONSTRUCTOR, FINAL_AND_VAR, FINAL_CLASS, FINAL_CONSTRUCTOR, FINA
L_METHOD, FINAL_TYPEDEF, GETTER_WITH_PARAMETERS, ILLEGAL_ASSIGNMENT_TO_NON_ASSIG
NABLE, IMPLEMENTS_BEFORE_EXTENDS, IMPLEMENTS_BEFORE_WITH, IMPORT_DIRECTIVE_AFTER
_PART_DIRECTIVE, INITIALIZED_VARIABLE_IN_FOR_EACH, INVALID_CODE_POINT, INVALID_C
OMMENT_REFERENCE, INVALID_HEX_ESCAPE, INVALID_OPERATOR_FOR_SUPER, INVALID_UNICOD
E_ESCAPE, LIBRARY_DIRECTIVE_NOT_FIRST, MISSING_ASSIGNABLE_SELECTOR, MISSING_CATC
H_OR_FINALLY, MISSING_CLASS_BODY, MISSING_CONST_FINAL_VAR_OR_TYPE, MISSING_FUNCT
ION_BODY, MISSING_FUNCTION_PARAMETERS, MISSING_IDENTIFIER, MISSING_NAME_IN_LIBRA
RY_DIRECTIVE, MISSING_NAME_IN_PART_OF_DIRECTIVE, MISSING_TERMINATOR_FOR_PARAMETE
R_GROUP, MISSING_TYPEDEF_PARAMETERS, MISSING_VARIABLE_IN_FOR_EACH, MIXED_PARAMET
ER_GROUPS, MULTIPLE_EXTENDS_CLAUSES, MULTIPLE_IMPLEMENTS_CLAUSES, MULTIPLE_LIBRA
RY_DIRECTIVES, MULTIPLE_NAMED_PARAMETER_GROUPS, MULTIPLE_PART_OF_DIRECTIVES, MUL
TIPLE_POSITIONAL_PARAMETER_GROUPS, MULTIPLE_VARIABLES_IN_FOR_EACH, MULTIPLE_WITH
_CLAUSES, NAMED_PARAMETER_OUTSIDE_GROUP, NON_CONSTRUCTOR_FACTORY, NON_IDENTIFIER
_LIBRARY_NAME, NON_PART_OF_DIRECTIVE_IN_PART, NON_USER_DEFINABLE_OPERATOR, POSIT
IONAL_AFTER_NAMED_ARGUMENT, POSITIONAL_PARAMETER_OUTSIDE_GROUP, STATIC_AFTER_CON
ST, STATIC_AFTER_FINAL, STATIC_AFTER_VAR, STATIC_CONSTRUCTOR, STATIC_OPERATOR, S
TATIC_TOP_LEVEL_DECLARATION, UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP, UNEXPECT
ED_TOKEN, USE_OF_UNARY_PLUS_OPERATOR, WITH_BEFORE_EXTENDS, WITH_WITHOUT_EXTENDS,
WRONG_SEPARATOR_FOR_NAMED_PARAMETER, WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER,
WRONG_TERMINATOR_FOR_PARAMETER_GROUP, VAR_CLASS, VAR_RETURN_TYPE, VAR_TYPEDEF, V
OID_PARAMETER, VOID_VARIABLE]; | 4750 static final ParserErrorCode VOID_VARIABLE = new ParserErrorCode.con2('VOID_VA
RIABLE', 99, "Variables cannot have a type of 'void'"); |
| 4751 static final List<ParserErrorCode> values = [ABSTRACT_CLASS_MEMBER, ABSTRACT_S
TATIC_METHOD, ABSTRACT_TOP_LEVEL_FUNCTION, ABSTRACT_TOP_LEVEL_VARIABLE, ABSTRACT
_TYPEDEF, BREAK_OUTSIDE_OF_LOOP, CONST_AND_FINAL, CONST_AND_VAR, CONST_CLASS, CO
NST_METHOD, CONST_TYPEDEF, CONSTRUCTOR_WITH_RETURN_TYPE, CONTINUE_OUTSIDE_OF_LOO
P, CONTINUE_WITHOUT_LABEL_IN_CASE, DIRECTIVE_AFTER_DECLARATION, DUPLICATE_LABEL_
IN_SWITCH_STATEMENT, DUPLICATED_MODIFIER, EXPECTED_CASE_OR_DEFAULT, EXPECTED_LIS
T_OR_MAP_LITERAL, EXPECTED_STRING_LITERAL, EXPECTED_TOKEN, EXPORT_DIRECTIVE_AFTE
R_PART_DIRECTIVE, EXTERNAL_AFTER_CONST, EXTERNAL_AFTER_FACTORY, EXTERNAL_AFTER_S
TATIC, EXTERNAL_CLASS, EXTERNAL_CONSTRUCTOR_WITH_BODY, EXTERNAL_FIELD, EXTERNAL_
GETTER_WITH_BODY, EXTERNAL_METHOD_WITH_BODY, EXTERNAL_OPERATOR_WITH_BODY, EXTERN
AL_SETTER_WITH_BODY, EXTERNAL_TYPEDEF, FACTORY_TOP_LEVEL_DECLARATION, FIELD_INIT
IALIZER_OUTSIDE_CONSTRUCTOR, FINAL_AND_VAR, FINAL_CLASS, FINAL_CONSTRUCTOR, FINA
L_METHOD, FINAL_TYPEDEF, GETTER_WITH_PARAMETERS, ILLEGAL_ASSIGNMENT_TO_NON_ASSIG
NABLE, IMPLEMENTS_BEFORE_EXTENDS, IMPLEMENTS_BEFORE_WITH, IMPORT_DIRECTIVE_AFTER
_PART_DIRECTIVE, INITIALIZED_VARIABLE_IN_FOR_EACH, INVALID_CODE_POINT, INVALID_C
OMMENT_REFERENCE, INVALID_HEX_ESCAPE, INVALID_OPERATOR_FOR_SUPER, INVALID_UNICOD
E_ESCAPE, LIBRARY_DIRECTIVE_NOT_FIRST, MISSING_ASSIGNABLE_SELECTOR, MISSING_CATC
H_OR_FINALLY, MISSING_CLASS_BODY, MISSING_CONST_FINAL_VAR_OR_TYPE, MISSING_FUNCT
ION_BODY, MISSING_FUNCTION_PARAMETERS, MISSING_IDENTIFIER, MISSING_NAME_IN_LIBRA
RY_DIRECTIVE, MISSING_NAME_IN_PART_OF_DIRECTIVE, MISSING_STATEMENT, MISSING_TERM
INATOR_FOR_PARAMETER_GROUP, MISSING_TYPEDEF_PARAMETERS, MISSING_VARIABLE_IN_FOR_
EACH, MIXED_PARAMETER_GROUPS, MULTIPLE_EXTENDS_CLAUSES, MULTIPLE_IMPLEMENTS_CLAU
SES, MULTIPLE_LIBRARY_DIRECTIVES, MULTIPLE_NAMED_PARAMETER_GROUPS, MULTIPLE_PART
_OF_DIRECTIVES, MULTIPLE_POSITIONAL_PARAMETER_GROUPS, MULTIPLE_VARIABLES_IN_FOR_
EACH, MULTIPLE_WITH_CLAUSES, NAMED_PARAMETER_OUTSIDE_GROUP, NON_CONSTRUCTOR_FACT
ORY, NON_IDENTIFIER_LIBRARY_NAME, NON_PART_OF_DIRECTIVE_IN_PART, NON_USER_DEFINA
BLE_OPERATOR, POSITIONAL_AFTER_NAMED_ARGUMENT, POSITIONAL_PARAMETER_OUTSIDE_GROU
P, STATIC_AFTER_CONST, STATIC_AFTER_FINAL, STATIC_AFTER_VAR, STATIC_CONSTRUCTOR,
STATIC_OPERATOR, STATIC_TOP_LEVEL_DECLARATION, UNEXPECTED_TERMINATOR_FOR_PARAME
TER_GROUP, UNEXPECTED_TOKEN, USE_OF_UNARY_PLUS_OPERATOR, WITH_BEFORE_EXTENDS, WI
TH_WITHOUT_EXTENDS, WRONG_SEPARATOR_FOR_NAMED_PARAMETER, WRONG_SEPARATOR_FOR_POS
ITIONAL_PARAMETER, WRONG_TERMINATOR_FOR_PARAMETER_GROUP, VAR_CLASS, VAR_RETURN_T
YPE, VAR_TYPEDEF, VOID_PARAMETER, VOID_VARIABLE]; |
4748 String __name; | 4752 String __name; |
4749 int __ordinal = 0; | 4753 int __ordinal = 0; |
4750 int get ordinal => __ordinal; | 4754 int get ordinal => __ordinal; |
4751 /** | 4755 /** |
4752 * The severity of this error. | 4756 * The severity of this error. |
4753 */ | 4757 */ |
4754 ErrorSeverity _severity; | 4758 ErrorSeverity _severity; |
4755 /** | 4759 /** |
4756 * The message template used to create the message to be displayed for this er
ror. | 4760 * The message template used to create the message to be displayed for this er
ror. |
4757 */ | 4761 */ |
4758 String _message; | 4762 String _message; |
4759 /** | 4763 /** |
4760 * Initialize a newly created error code to have the given severity and messag
e. | 4764 * Initialize a newly created error code to have the given severity and messag
e. |
4761 * @param severity the severity of the error | 4765 * @param severity the severity of the error |
4762 * @param message the message template used to create the message to be displa
yed for the error | 4766 * @param message the message template used to create the message to be displa
yed for the error |
4763 */ | 4767 */ |
4764 ParserErrorCode.con1(String ___name, int ___ordinal, ErrorSeverity severity2,
String message2) { | 4768 ParserErrorCode.con1(String ___name, int ___ordinal, ErrorSeverity severity2,
String message2) { |
4765 _jtd_constructor_258_impl(___name, ___ordinal, severity2, message2); | 4769 _jtd_constructor_269_impl(___name, ___ordinal, severity2, message2); |
4766 } | 4770 } |
4767 _jtd_constructor_258_impl(String ___name, int ___ordinal, ErrorSeverity severi
ty2, String message2) { | 4771 _jtd_constructor_269_impl(String ___name, int ___ordinal, ErrorSeverity severi
ty2, String message2) { |
4768 __name = ___name; | 4772 __name = ___name; |
4769 __ordinal = ___ordinal; | 4773 __ordinal = ___ordinal; |
4770 this._severity = severity2; | 4774 this._severity = severity2; |
4771 this._message = message2; | 4775 this._message = message2; |
4772 } | 4776 } |
4773 /** | 4777 /** |
4774 * Initialize a newly created error code to have the given message and a sever
ity of ERROR. | 4778 * Initialize a newly created error code to have the given message and a sever
ity of ERROR. |
4775 * @param message the message template used to create the message to be displa
yed for the error | 4779 * @param message the message template used to create the message to be displa
yed for the error |
4776 */ | 4780 */ |
4777 ParserErrorCode.con2(String ___name, int ___ordinal, String message) { | 4781 ParserErrorCode.con2(String ___name, int ___ordinal, String message) { |
4778 _jtd_constructor_259_impl(___name, ___ordinal, message); | 4782 _jtd_constructor_270_impl(___name, ___ordinal, message); |
4779 } | 4783 } |
4780 _jtd_constructor_259_impl(String ___name, int ___ordinal, String message) { | 4784 _jtd_constructor_270_impl(String ___name, int ___ordinal, String message) { |
4781 _jtd_constructor_258_impl(___name, ___ordinal, ErrorSeverity.ERROR, message)
; | 4785 _jtd_constructor_269_impl(___name, ___ordinal, ErrorSeverity.ERROR, message)
; |
4782 } | 4786 } |
4783 ErrorSeverity get errorSeverity => _severity; | 4787 ErrorSeverity get errorSeverity => _severity; |
4784 String get message => _message; | 4788 String get message => _message; |
4785 ErrorType get type => ErrorType.SYNTACTIC_ERROR; | 4789 ErrorType get type => ErrorType.SYNTACTIC_ERROR; |
4786 bool needsRecompilation() => true; | 4790 bool needsRecompilation() => true; |
4787 String toString() => __name; | 4791 String toString() => __name; |
4788 } | 4792 } |
4789 /** | 4793 /** |
4790 * Instances of the class {link ToFormattedSourceVisitor} write a source represe
ntation of a visited | 4794 * Instances of the class {link ToFormattedSourceVisitor} write a source represe
ntation of a visited |
4791 * AST node (and all of it's children) to a writer. | 4795 * AST node (and all of it's children) to a writer. |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5652 for (int i = 0; i < size10; i++) { | 5656 for (int i = 0; i < size10; i++) { |
5653 if (i > 0) { | 5657 if (i > 0) { |
5654 _writer.print(separator); | 5658 _writer.print(separator); |
5655 } | 5659 } |
5656 nodes[i].accept(this); | 5660 nodes[i].accept(this); |
5657 } | 5661 } |
5658 } | 5662 } |
5659 } | 5663 } |
5660 } | 5664 } |
5661 } | 5665 } |
OLD | NEW |