| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser; | 8 library engine.parser; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 throw new InsufficientContextException(); | 106 throw new InsufficientContextException(); |
| 107 } else if (identical(_oldNode, node.constructorName)) { | 107 } else if (identical(_oldNode, node.constructorName)) { |
| 108 throw new InsufficientContextException(); | 108 throw new InsufficientContextException(); |
| 109 } else if (identical(_oldNode, node.arguments)) { | 109 } else if (identical(_oldNode, node.arguments)) { |
| 110 return _parser.parseArgumentList(); | 110 return _parser.parseArgumentList(); |
| 111 } | 111 } |
| 112 return _notAChild(node); | 112 return _notAChild(node); |
| 113 } | 113 } |
| 114 | 114 |
| 115 @override | 115 @override |
| 116 AstNode visitArgumentDefinitionTest(ArgumentDefinitionTest node) { | |
| 117 if (identical(_oldNode, node.identifier)) { | |
| 118 return _parser.parseSimpleIdentifier(); | |
| 119 } | |
| 120 return _notAChild(node); | |
| 121 } | |
| 122 | |
| 123 @override | |
| 124 AstNode visitArgumentList(ArgumentList node) { | 116 AstNode visitArgumentList(ArgumentList node) { |
| 125 if (node.arguments.contains(_oldNode)) { | 117 if (node.arguments.contains(_oldNode)) { |
| 126 return _parser.parseArgument(); | 118 return _parser.parseArgument(); |
| 127 } | 119 } |
| 128 return _notAChild(node); | 120 return _notAChild(node); |
| 129 } | 121 } |
| 130 | 122 |
| 131 @override | 123 @override |
| 132 AstNode visitAsExpression(AsExpression node) { | 124 AstNode visitAsExpression(AsExpression node) { |
| 133 if (identical(_oldNode, node.expression)) { | 125 if (identical(_oldNode, node.expression)) { |
| (...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1879 } else if (_tokenMatches(_peek(), TokenType.OPEN_PAREN)) { | 1871 } else if (_tokenMatches(_peek(), TokenType.OPEN_PAREN)) { |
| 1880 SimpleIdentifier methodName = parseSimpleIdentifier(); | 1872 SimpleIdentifier methodName = parseSimpleIdentifier(); |
| 1881 FormalParameterList parameters = parseFormalParameterList(); | 1873 FormalParameterList parameters = parseFormalParameterList(); |
| 1882 if (methodName.name == className) { | 1874 if (methodName.name == className) { |
| 1883 _reportErrorForNode(ParserErrorCode.CONSTRUCTOR_WITH_RETURN_TYPE, type,
[]); | 1875 _reportErrorForNode(ParserErrorCode.CONSTRUCTOR_WITH_RETURN_TYPE, type,
[]); |
| 1884 return _parseConstructor(commentAndMetadata, modifiers.externalKeyword,
_validateModifiersForConstructor(modifiers), modifiers.factoryKeyword, methodNam
e, null, null, parameters); | 1876 return _parseConstructor(commentAndMetadata, modifiers.externalKeyword,
_validateModifiersForConstructor(modifiers), modifiers.factoryKeyword, methodNam
e, null, null, parameters); |
| 1885 } | 1877 } |
| 1886 _validateModifiersForGetterOrSetterOrMethod(modifiers); | 1878 _validateModifiersForGetterOrSetterOrMethod(modifiers); |
| 1887 _validateFormalParameterList(parameters); | 1879 _validateFormalParameterList(parameters); |
| 1888 return _parseMethodDeclarationAfterParameters(commentAndMetadata, modifier
s.externalKeyword, modifiers.staticKeyword, type, methodName, parameters); | 1880 return _parseMethodDeclarationAfterParameters(commentAndMetadata, modifier
s.externalKeyword, modifiers.staticKeyword, type, methodName, parameters); |
| 1881 } else if (_tokenMatches(_peek(), TokenType.OPEN_CURLY_BRACKET)) { |
| 1882 // We have found "TypeName identifier {", and are guessing that this is a
getter without the |
| 1883 // keyword 'get'. |
| 1884 _validateModifiersForGetterOrSetterOrMethod(modifiers); |
| 1885 _reportErrorForCurrentToken(ParserErrorCode.MISSING_GET, []); |
| 1886 _currentToken = _injectToken(new Parser_SyntheticKeywordToken(Keyword.GET,
_currentToken.offset)); |
| 1887 return _parseGetter(commentAndMetadata, modifiers.externalKeyword, modifie
rs.staticKeyword, type); |
| 1889 } | 1888 } |
| 1890 return _parseInitializedIdentifierList(commentAndMetadata, modifiers.staticK
eyword, _validateModifiersForField(modifiers), type); | 1889 return _parseInitializedIdentifierList(commentAndMetadata, modifiers.staticK
eyword, _validateModifiersForField(modifiers), type); |
| 1891 } | 1890 } |
| 1892 | 1891 |
| 1893 /** | 1892 /** |
| 1894 * Parse a compilation unit. | 1893 * Parse a compilation unit. |
| 1895 * | 1894 * |
| 1896 * Specified: | 1895 * Specified: |
| 1897 * | 1896 * |
| 1898 * <pre> | 1897 * <pre> |
| (...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3415 expression = _parseMultiplicativeExpression(); | 3414 expression = _parseMultiplicativeExpression(); |
| 3416 } | 3415 } |
| 3417 while (_currentToken.type.isAdditiveOperator) { | 3416 while (_currentToken.type.isAdditiveOperator) { |
| 3418 Token operator = andAdvance; | 3417 Token operator = andAdvance; |
| 3419 expression = new BinaryExpression(expression, operator, _parseMultiplicati
veExpression()); | 3418 expression = new BinaryExpression(expression, operator, _parseMultiplicati
veExpression()); |
| 3420 } | 3419 } |
| 3421 return expression; | 3420 return expression; |
| 3422 } | 3421 } |
| 3423 | 3422 |
| 3424 /** | 3423 /** |
| 3425 * Parse an argument definition test. | |
| 3426 * | |
| 3427 * <pre> | |
| 3428 * argumentDefinitionTest ::= | |
| 3429 * '?' identifier | |
| 3430 * </pre> | |
| 3431 * | |
| 3432 * @return the argument definition test that was parsed | |
| 3433 */ | |
| 3434 ArgumentDefinitionTest _parseArgumentDefinitionTest() { | |
| 3435 Token question = _expect(TokenType.QUESTION); | |
| 3436 SimpleIdentifier identifier = parseSimpleIdentifier(); | |
| 3437 _reportErrorForToken(ParserErrorCode.DEPRECATED_ARGUMENT_DEFINITION_TEST, qu
estion, []); | |
| 3438 return new ArgumentDefinitionTest(question, identifier); | |
| 3439 } | |
| 3440 | |
| 3441 /** | |
| 3442 * Parse an assert statement. | 3424 * Parse an assert statement. |
| 3443 * | 3425 * |
| 3444 * <pre> | 3426 * <pre> |
| 3445 * assertStatement ::= | 3427 * assertStatement ::= |
| 3446 * 'assert' '(' conditionalExpression ')' ';' | 3428 * 'assert' '(' conditionalExpression ')' ';' |
| 3447 * </pre> | 3429 * </pre> |
| 3448 * | 3430 * |
| 3449 * @return the assert statement | 3431 * @return the assert statement |
| 3450 */ | 3432 */ |
| 3451 AssertStatement _parseAssertStatement() { | 3433 AssertStatement _parseAssertStatement() { |
| (...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5781 _inInitializer = false; | 5763 _inInitializer = false; |
| 5782 try { | 5764 try { |
| 5783 Expression expression = parseExpression2(); | 5765 Expression expression = parseExpression2(); |
| 5784 Token rightParenthesis = _expect(TokenType.CLOSE_PAREN); | 5766 Token rightParenthesis = _expect(TokenType.CLOSE_PAREN); |
| 5785 return new ParenthesizedExpression(leftParenthesis, expression, rightPar
enthesis); | 5767 return new ParenthesizedExpression(leftParenthesis, expression, rightPar
enthesis); |
| 5786 } finally { | 5768 } finally { |
| 5787 _inInitializer = wasInInitializer; | 5769 _inInitializer = wasInInitializer; |
| 5788 } | 5770 } |
| 5789 } else if (_matches(TokenType.LT)) { | 5771 } else if (_matches(TokenType.LT)) { |
| 5790 return _parseListOrMapLiteral(null); | 5772 return _parseListOrMapLiteral(null); |
| 5791 } else if (_matches(TokenType.QUESTION)) { | 5773 } else if (_matches(TokenType.QUESTION) && _tokenMatches(_peek(), TokenType.
IDENTIFIER)) { |
| 5792 return _parseArgumentDefinitionTest(); | 5774 _reportErrorForCurrentToken(ParserErrorCode.UNEXPECTED_TOKEN, [_currentTok
en.lexeme]); |
| 5775 _advance(); |
| 5776 return _parsePrimaryExpression(); |
| 5793 } else if (_matchesKeyword(Keyword.VOID)) { | 5777 } else if (_matchesKeyword(Keyword.VOID)) { |
| 5794 // | 5778 // |
| 5795 // Recover from having a return type of "void" where a return type is not
expected. | 5779 // Recover from having a return type of "void" where a return type is not
expected. |
| 5796 // | 5780 // |
| 5797 // TODO(brianwilkerson) Improve this error message. | 5781 // TODO(brianwilkerson) Improve this error message. |
| 5798 _reportErrorForCurrentToken(ParserErrorCode.UNEXPECTED_TOKEN, [_currentTok
en.lexeme]); | 5782 _reportErrorForCurrentToken(ParserErrorCode.UNEXPECTED_TOKEN, [_currentTok
en.lexeme]); |
| 5799 _advance(); | 5783 _advance(); |
| 5800 return _parsePrimaryExpression(); | 5784 return _parsePrimaryExpression(); |
| 5801 } else if (_matches(TokenType.HASH)) { | 5785 } else if (_matches(TokenType.HASH)) { |
| 5802 return _parseSymbolLiteral(); | 5786 return _parseSymbolLiteral(); |
| (...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7465 static const ParserErrorCode CONST_METHOD = const ParserErrorCode.con3('CONST_
METHOD', 15, "Getters, setters and methods cannot be declared to be 'const'"); | 7449 static const ParserErrorCode CONST_METHOD = const ParserErrorCode.con3('CONST_
METHOD', 15, "Getters, setters and methods cannot be declared to be 'const'"); |
| 7466 | 7450 |
| 7467 static const ParserErrorCode CONST_TYPEDEF = const ParserErrorCode.con3('CONST
_TYPEDEF', 16, "Type aliases cannot be declared to be 'const'"); | 7451 static const ParserErrorCode CONST_TYPEDEF = const ParserErrorCode.con3('CONST
_TYPEDEF', 16, "Type aliases cannot be declared to be 'const'"); |
| 7468 | 7452 |
| 7469 static const ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = const ParserErrorC
ode.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 17, "Constructors cannot have a return
type"); | 7453 static const ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = const ParserErrorC
ode.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 17, "Constructors cannot have a return
type"); |
| 7470 | 7454 |
| 7471 static const ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = const ParserErrorCode.
con3('CONTINUE_OUTSIDE_OF_LOOP', 18, "A continue statement cannot be used outsid
e of a loop or switch statement"); | 7455 static const ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = const ParserErrorCode.
con3('CONTINUE_OUTSIDE_OF_LOOP', 18, "A continue statement cannot be used outsid
e of a loop or switch statement"); |
| 7472 | 7456 |
| 7473 static const ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = const ParserErro
rCode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 19, "A continue statement in a swit
ch statement must have a label as a target"); | 7457 static const ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = const ParserErro
rCode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 19, "A continue statement in a swit
ch statement must have a label as a target"); |
| 7474 | 7458 |
| 7475 static const ParserErrorCode DEPRECATED_ARGUMENT_DEFINITION_TEST = const Parse
rErrorCode.con3('DEPRECATED_ARGUMENT_DEFINITION_TEST', 20, "The argument definit
ion test ('?' operator) has been deprecated"); | 7459 static const ParserErrorCode DEPRECATED_CLASS_TYPE_ALIAS = const ParserErrorCo
de.con3('DEPRECATED_CLASS_TYPE_ALIAS', 20, "The 'typedef' mixin application was
replaced with 'class'"); |
| 7476 | 7460 |
| 7477 static const ParserErrorCode DEPRECATED_CLASS_TYPE_ALIAS = const ParserErrorCo
de.con3('DEPRECATED_CLASS_TYPE_ALIAS', 21, "The 'typedef' mixin application was
replaced with 'class'"); | 7461 static const ParserErrorCode DIRECTIVE_AFTER_DECLARATION = const ParserErrorCo
de.con3('DIRECTIVE_AFTER_DECLARATION', 21, "Directives must appear before any de
clarations"); |
| 7478 | 7462 |
| 7479 static const ParserErrorCode DIRECTIVE_AFTER_DECLARATION = const ParserErrorCo
de.con3('DIRECTIVE_AFTER_DECLARATION', 22, "Directives must appear before any de
clarations"); | 7463 static const ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = const Parse
rErrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 22, "The label %s was alr
eady used in this switch statement"); |
| 7480 | 7464 |
| 7481 static const ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = const Parse
rErrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 23, "The label %s was alr
eady used in this switch statement"); | 7465 static const ParserErrorCode DUPLICATED_MODIFIER = const ParserErrorCode.con3(
'DUPLICATED_MODIFIER', 23, "The modifier '%s' was already specified."); |
| 7482 | 7466 |
| 7483 static const ParserErrorCode DUPLICATED_MODIFIER = const ParserErrorCode.con3(
'DUPLICATED_MODIFIER', 24, "The modifier '%s' was already specified."); | 7467 static const ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = const Parse
rErrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 24, "Equality expression
cannot be operand of another equality expression."); |
| 7484 | 7468 |
| 7485 static const ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = const Parse
rErrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 25, "Equality expression
cannot be operand of another equality expression."); | 7469 static const ParserErrorCode EXPECTED_CASE_OR_DEFAULT = const ParserErrorCode.
con3('EXPECTED_CASE_OR_DEFAULT', 25, "Expected 'case' or 'default'"); |
| 7486 | 7470 |
| 7487 static const ParserErrorCode EXPECTED_CASE_OR_DEFAULT = const ParserErrorCode.
con3('EXPECTED_CASE_OR_DEFAULT', 26, "Expected 'case' or 'default'"); | 7471 static const ParserErrorCode EXPECTED_CLASS_MEMBER = const ParserErrorCode.con
3('EXPECTED_CLASS_MEMBER', 26, "Expected a class member"); |
| 7488 | 7472 |
| 7489 static const ParserErrorCode EXPECTED_CLASS_MEMBER = const ParserErrorCode.con
3('EXPECTED_CLASS_MEMBER', 27, "Expected a class member"); | 7473 static const ParserErrorCode EXPECTED_EXECUTABLE = const ParserErrorCode.con3(
'EXPECTED_EXECUTABLE', 27, "Expected a method, getter, setter or operator declar
ation"); |
| 7490 | 7474 |
| 7491 static const ParserErrorCode EXPECTED_EXECUTABLE = const ParserErrorCode.con3(
'EXPECTED_EXECUTABLE', 28, "Expected a method, getter, setter or operator declar
ation"); | 7475 static const ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = const ParserErrorC
ode.con3('EXPECTED_LIST_OR_MAP_LITERAL', 28, "Expected a list or map literal"); |
| 7492 | 7476 |
| 7493 static const ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = const ParserErrorC
ode.con3('EXPECTED_LIST_OR_MAP_LITERAL', 29, "Expected a list or map literal"); | 7477 static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode.c
on3('EXPECTED_STRING_LITERAL', 29, "Expected a string literal"); |
| 7494 | 7478 |
| 7495 static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode.c
on3('EXPECTED_STRING_LITERAL', 30, "Expected a string literal"); | 7479 static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode.con3('EXPE
CTED_TOKEN', 30, "Expected to find '%s'"); |
| 7496 | 7480 |
| 7497 static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode.con3('EXPE
CTED_TOKEN', 31, "Expected to find '%s'"); | 7481 static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode.con3('
EXPECTED_TYPE_NAME', 31, "Expected a type name"); |
| 7498 | 7482 |
| 7499 static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode.con3('
EXPECTED_TYPE_NAME', 32, "Expected a type name"); | 7483 static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 32, "Export directive
s must preceed part directives"); |
| 7500 | 7484 |
| 7501 static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 33, "Export directive
s must preceed part directives"); | 7485 static const ParserErrorCode EXTERNAL_AFTER_CONST = const ParserErrorCode.con3
('EXTERNAL_AFTER_CONST', 33, "The modifier 'external' should be before the modif
ier 'const'"); |
| 7502 | 7486 |
| 7503 static const ParserErrorCode EXTERNAL_AFTER_CONST = const ParserErrorCode.con3
('EXTERNAL_AFTER_CONST', 34, "The modifier 'external' should be before the modif
ier 'const'"); | 7487 static const ParserErrorCode EXTERNAL_AFTER_FACTORY = const ParserErrorCode.co
n3('EXTERNAL_AFTER_FACTORY', 34, "The modifier 'external' should be before the m
odifier 'factory'"); |
| 7504 | 7488 |
| 7505 static const ParserErrorCode EXTERNAL_AFTER_FACTORY = const ParserErrorCode.co
n3('EXTERNAL_AFTER_FACTORY', 35, "The modifier 'external' should be before the m
odifier 'factory'"); | 7489 static const ParserErrorCode EXTERNAL_AFTER_STATIC = const ParserErrorCode.con
3('EXTERNAL_AFTER_STATIC', 35, "The modifier 'external' should be before the mod
ifier 'static'"); |
| 7506 | 7490 |
| 7507 static const ParserErrorCode EXTERNAL_AFTER_STATIC = const ParserErrorCode.con
3('EXTERNAL_AFTER_STATIC', 36, "The modifier 'external' should be before the mod
ifier 'static'"); | 7491 static const ParserErrorCode EXTERNAL_CLASS = const ParserErrorCode.con3('EXTE
RNAL_CLASS', 36, "Classes cannot be declared to be 'external'"); |
| 7508 | 7492 |
| 7509 static const ParserErrorCode EXTERNAL_CLASS = const ParserErrorCode.con3('EXTE
RNAL_CLASS', 37, "Classes cannot be declared to be 'external'"); | 7493 static const ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = const ParserErro
rCode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 37, "External constructors cannot h
ave a body"); |
| 7510 | 7494 |
| 7511 static const ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = const ParserErro
rCode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 38, "External constructors cannot h
ave a body"); | 7495 static const ParserErrorCode EXTERNAL_FIELD = const ParserErrorCode.con3('EXTE
RNAL_FIELD', 38, "Fields cannot be declared to be 'external'"); |
| 7512 | 7496 |
| 7513 static const ParserErrorCode EXTERNAL_FIELD = const ParserErrorCode.con3('EXTE
RNAL_FIELD', 39, "Fields cannot be declared to be 'external'"); | 7497 static const ParserErrorCode EXTERNAL_GETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_GETTER_WITH_BODY', 39, "External getters cannot have a body"); |
| 7514 | 7498 |
| 7515 static const ParserErrorCode EXTERNAL_GETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_GETTER_WITH_BODY', 40, "External getters cannot have a body"); | 7499 static const ParserErrorCode EXTERNAL_METHOD_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_METHOD_WITH_BODY', 40, "External methods cannot have a body"); |
| 7516 | 7500 |
| 7517 static const ParserErrorCode EXTERNAL_METHOD_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_METHOD_WITH_BODY', 41, "External methods cannot have a body"); | 7501 static const ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = const ParserErrorCo
de.con3('EXTERNAL_OPERATOR_WITH_BODY', 41, "External operators cannot have a bod
y"); |
| 7518 | 7502 |
| 7519 static const ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = const ParserErrorCo
de.con3('EXTERNAL_OPERATOR_WITH_BODY', 42, "External operators cannot have a bod
y"); | 7503 static const ParserErrorCode EXTERNAL_SETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_SETTER_WITH_BODY', 42, "External setters cannot have a body"); |
| 7520 | 7504 |
| 7521 static const ParserErrorCode EXTERNAL_SETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_SETTER_WITH_BODY', 43, "External setters cannot have a body"); | 7505 static const ParserErrorCode EXTERNAL_TYPEDEF = const ParserErrorCode.con3('EX
TERNAL_TYPEDEF', 43, "Type aliases cannot be declared to be 'external'"); |
| 7522 | 7506 |
| 7523 static const ParserErrorCode EXTERNAL_TYPEDEF = const ParserErrorCode.con3('EX
TERNAL_TYPEDEF', 44, "Type aliases cannot be declared to be 'external'"); | 7507 static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = const ParserError
Code.con3('FACTORY_TOP_LEVEL_DECLARATION', 44, "Top-level declarations cannot be
declared to be 'factory'"); |
| 7524 | 7508 |
| 7525 static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = const ParserError
Code.con3('FACTORY_TOP_LEVEL_DECLARATION', 45, "Top-level declarations cannot be
declared to be 'factory'"); | 7509 static const ParserErrorCode FACTORY_WITHOUT_BODY = const ParserErrorCode.con3
('FACTORY_WITHOUT_BODY', 45, "A non-redirecting 'factory' constructor must have
a body"); |
| 7526 | 7510 |
| 7527 static const ParserErrorCode FACTORY_WITHOUT_BODY = const ParserErrorCode.con3
('FACTORY_WITHOUT_BODY', 46, "A non-redirecting 'factory' constructor must have
a body"); | 7511 static const ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const Par
serErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 46, "Field initialize
rs can only be used in a constructor"); |
| 7528 | 7512 |
| 7529 static const ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const Par
serErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 47, "Field initialize
rs can only be used in a constructor"); | 7513 static const ParserErrorCode FINAL_AND_VAR = const ParserErrorCode.con3('FINAL
_AND_VAR', 47, "Members cannot be declared to be both 'final' and 'var'"); |
| 7530 | 7514 |
| 7531 static const ParserErrorCode FINAL_AND_VAR = const ParserErrorCode.con3('FINAL
_AND_VAR', 48, "Members cannot be declared to be both 'final' and 'var'"); | 7515 static const ParserErrorCode FINAL_CLASS = const ParserErrorCode.con3('FINAL_C
LASS', 48, "Classes cannot be declared to be 'final'"); |
| 7532 | 7516 |
| 7533 static const ParserErrorCode FINAL_CLASS = const ParserErrorCode.con3('FINAL_C
LASS', 49, "Classes cannot be declared to be 'final'"); | 7517 static const ParserErrorCode FINAL_CONSTRUCTOR = const ParserErrorCode.con3('F
INAL_CONSTRUCTOR', 49, "A constructor cannot be declared to be 'final'"); |
| 7534 | 7518 |
| 7535 static const ParserErrorCode FINAL_CONSTRUCTOR = const ParserErrorCode.con3('F
INAL_CONSTRUCTOR', 50, "A constructor cannot be declared to be 'final'"); | 7519 static const ParserErrorCode FINAL_METHOD = const ParserErrorCode.con3('FINAL_
METHOD', 50, "Getters, setters and methods cannot be declared to be 'final'"); |
| 7536 | 7520 |
| 7537 static const ParserErrorCode FINAL_METHOD = const ParserErrorCode.con3('FINAL_
METHOD', 51, "Getters, setters and methods cannot be declared to be 'final'"); | 7521 static const ParserErrorCode FINAL_TYPEDEF = const ParserErrorCode.con3('FINAL
_TYPEDEF', 51, "Type aliases cannot be declared to be 'final'"); |
| 7538 | 7522 |
| 7539 static const ParserErrorCode FINAL_TYPEDEF = const ParserErrorCode.con3('FINAL
_TYPEDEF', 52, "Type aliases cannot be declared to be 'final'"); | 7523 static const ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = const ParserErrorC
ode.con3('FUNCTION_TYPED_PARAMETER_VAR', 52, "Function typed parameters cannot s
pecify 'const', 'final' or 'var' instead of return type"); |
| 7540 | 7524 |
| 7541 static const ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = const ParserErrorC
ode.con3('FUNCTION_TYPED_PARAMETER_VAR', 53, "Function typed parameters cannot s
pecify 'const', 'final' or 'var' instead of return type"); | 7525 static const ParserErrorCode GETTER_IN_FUNCTION = const ParserErrorCode.con3('
GETTER_IN_FUNCTION', 53, "Getters cannot be defined within methods or functions"
); |
| 7542 | 7526 |
| 7543 static const ParserErrorCode GETTER_IN_FUNCTION = const ParserErrorCode.con3('
GETTER_IN_FUNCTION', 54, "Getters cannot be defined within methods or functions"
); | 7527 static const ParserErrorCode GETTER_WITH_PARAMETERS = const ParserErrorCode.co
n3('GETTER_WITH_PARAMETERS', 54, "Getter should be declared without a parameter
list"); |
| 7544 | 7528 |
| 7545 static const ParserErrorCode GETTER_WITH_PARAMETERS = const ParserErrorCode.co
n3('GETTER_WITH_PARAMETERS', 55, "Getter should be declared without a parameter
list"); | 7529 static const ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = const Pars
erErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 55, "Illegal assignment
to non-assignable expression"); |
| 7546 | 7530 |
| 7547 static const ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = const Pars
erErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 56, "Illegal assignment
to non-assignable expression"); | 7531 static const ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = const ParserErrorCode
.con3('IMPLEMENTS_BEFORE_EXTENDS', 56, "The extends clause must be before the im
plements clause"); |
| 7548 | 7532 |
| 7549 static const ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = const ParserErrorCode
.con3('IMPLEMENTS_BEFORE_EXTENDS', 57, "The extends clause must be before the im
plements clause"); | 7533 static const ParserErrorCode IMPLEMENTS_BEFORE_WITH = const ParserErrorCode.co
n3('IMPLEMENTS_BEFORE_WITH', 57, "The with clause must be before the implements
clause"); |
| 7550 | 7534 |
| 7551 static const ParserErrorCode IMPLEMENTS_BEFORE_WITH = const ParserErrorCode.co
n3('IMPLEMENTS_BEFORE_WITH', 58, "The with clause must be before the implements
clause"); | 7535 static const ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 58, "Import directive
s must preceed part directives"); |
| 7552 | 7536 |
| 7553 static const ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 59, "Import directive
s must preceed part directives"); | 7537 static const ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = const ParserEr
rorCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 59, "The loop variable in a for
-each loop cannot be initialized"); |
| 7554 | 7538 |
| 7555 static const ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = const ParserEr
rorCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 60, "The loop variable in a for
-each loop cannot be initialized"); | 7539 static const ParserErrorCode INVALID_CODE_POINT = const ParserErrorCode.con3('
INVALID_CODE_POINT', 60, "The escape sequence '%s' is not a valid code point"); |
| 7556 | 7540 |
| 7557 static const ParserErrorCode INVALID_CODE_POINT = const ParserErrorCode.con3('
INVALID_CODE_POINT', 61, "The escape sequence '%s' is not a valid code point"); | 7541 static const ParserErrorCode INVALID_COMMENT_REFERENCE = const ParserErrorCode
.con3('INVALID_COMMENT_REFERENCE', 61, "Comment references should contain a poss
ibly prefixed identifier and can start with 'new', but should not contain anythi
ng else"); |
| 7558 | 7542 |
| 7559 static const ParserErrorCode INVALID_COMMENT_REFERENCE = const ParserErrorCode
.con3('INVALID_COMMENT_REFERENCE', 62, "Comment references should contain a poss
ibly prefixed identifier and can start with 'new', but should not contain anythi
ng else"); | 7543 static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode.con3('
INVALID_HEX_ESCAPE', 62, "An escape sequence starting with '\\x' must be followe
d by 2 hexidecimal digits"); |
| 7560 | 7544 |
| 7561 static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode.con3('
INVALID_HEX_ESCAPE', 63, "An escape sequence starting with '\\x' must be followe
d by 2 hexidecimal digits"); | 7545 static const ParserErrorCode INVALID_OPERATOR = const ParserErrorCode.con3('IN
VALID_OPERATOR', 63, "The string '%s' is not a valid operator"); |
| 7562 | 7546 |
| 7563 static const ParserErrorCode INVALID_OPERATOR = const ParserErrorCode.con3('IN
VALID_OPERATOR', 64, "The string '%s' is not a valid operator"); | 7547 static const ParserErrorCode INVALID_OPERATOR_FOR_SUPER = const ParserErrorCod
e.con3('INVALID_OPERATOR_FOR_SUPER', 64, "The operator '%s' cannot be used with
'super'"); |
| 7564 | 7548 |
| 7565 static const ParserErrorCode INVALID_OPERATOR_FOR_SUPER = const ParserErrorCod
e.con3('INVALID_OPERATOR_FOR_SUPER', 65, "The operator '%s' cannot be used with
'super'"); | 7549 static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode.co
n3('INVALID_UNICODE_ESCAPE', 65, "An escape sequence starting with '\\u' must be
followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"); |
| 7566 | 7550 |
| 7567 static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode.co
n3('INVALID_UNICODE_ESCAPE', 66, "An escape sequence starting with '\\u' must be
followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"); | 7551 static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = const ParserErrorCo
de.con3('LIBRARY_DIRECTIVE_NOT_FIRST', 66, "The library directive must appear be
fore all other directives"); |
| 7568 | 7552 |
| 7569 static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = const ParserErrorCo
de.con3('LIBRARY_DIRECTIVE_NOT_FIRST', 67, "The library directive must appear be
fore all other directives"); | 7553 static const ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = const Parse
rErrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 67, "Local function decla
rations cannot specify any modifier"); |
| 7570 | 7554 |
| 7571 static const ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = const Parse
rErrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 68, "Local function decla
rations cannot specify any modifier"); | 7555 static const ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = const ParserErrorCo
de.con3('MISSING_ASSIGNABLE_SELECTOR', 68, "Missing selector such as \".<identif
ier>\" or \"[0]\""); |
| 7572 | 7556 |
| 7573 static const ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = const ParserErrorCo
de.con3('MISSING_ASSIGNABLE_SELECTOR', 69, "Missing selector such as \".<identif
ier>\" or \"[0]\""); | 7557 static const ParserErrorCode MISSING_CATCH_OR_FINALLY = const ParserErrorCode.
con3('MISSING_CATCH_OR_FINALLY', 69, "A try statement must have either a catch o
r finally clause"); |
| 7574 | 7558 |
| 7575 static const ParserErrorCode MISSING_CATCH_OR_FINALLY = const ParserErrorCode.
con3('MISSING_CATCH_OR_FINALLY', 70, "A try statement must have either a catch o
r finally clause"); | 7559 static const ParserErrorCode MISSING_CLASS_BODY = const ParserErrorCode.con3('
MISSING_CLASS_BODY', 70, "A class definition must have a body, even if it is emp
ty"); |
| 7576 | 7560 |
| 7577 static const ParserErrorCode MISSING_CLASS_BODY = const ParserErrorCode.con3('
MISSING_CLASS_BODY', 71, "A class definition must have a body, even if it is emp
ty"); | 7561 static const ParserErrorCode MISSING_CLOSING_PARENTHESIS = const ParserErrorCo
de.con3('MISSING_CLOSING_PARENTHESIS', 71, "The closing parenthesis is missing")
; |
| 7578 | 7562 |
| 7579 static const ParserErrorCode MISSING_CLOSING_PARENTHESIS = const ParserErrorCo
de.con3('MISSING_CLOSING_PARENTHESIS', 72, "The closing parenthesis is missing")
; | 7563 static const ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = const ParserErr
orCode.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 72, "Variables must be declared u
sing the keywords 'const', 'final', 'var' or a type name"); |
| 7580 | 7564 |
| 7581 static const ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = const ParserErr
orCode.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 73, "Variables must be declared u
sing the keywords 'const', 'final', 'var' or a type name"); | 7565 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = const ParserErrorCo
de.con3('MISSING_EXPRESSION_IN_THROW', 73, "Throw expressions must compute the o
bject to be thrown"); |
| 7582 | 7566 |
| 7583 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = const ParserErrorCo
de.con3('MISSING_EXPRESSION_IN_THROW', 74, "Throw expressions must compute the o
bject to be thrown"); | 7567 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode.con
3('MISSING_FUNCTION_BODY', 74, "A function body must be provided"); |
| 7584 | 7568 |
| 7585 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode.con
3('MISSING_FUNCTION_BODY', 75, "A function body must be provided"); | 7569 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = const ParserErrorCo
de.con3('MISSING_FUNCTION_PARAMETERS', 75, "Functions must have an explicit list
of parameters"); |
| 7586 | 7570 |
| 7587 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = const ParserErrorCo
de.con3('MISSING_FUNCTION_PARAMETERS', 76, "Functions must have an explicit list
of parameters"); | 7571 static const ParserErrorCode MISSING_GET = const ParserErrorCode.con3('MISSING
_GET', 76, "Getters must have the keyword 'get' before the getter name"); |
| 7588 | 7572 |
| 7589 static const ParserErrorCode MISSING_IDENTIFIER = const ParserErrorCode.con3('
MISSING_IDENTIFIER', 77, "Expected an identifier"); | 7573 static const ParserErrorCode MISSING_IDENTIFIER = const ParserErrorCode.con3('
MISSING_IDENTIFIER', 77, "Expected an identifier"); |
| 7590 | 7574 |
| 7591 static const ParserErrorCode MISSING_KEYWORD_OPERATOR = const ParserErrorCode.
con3('MISSING_KEYWORD_OPERATOR', 78, "Operator declarations must be preceeded by
the keyword 'operator'"); | 7575 static const ParserErrorCode MISSING_KEYWORD_OPERATOR = const ParserErrorCode.
con3('MISSING_KEYWORD_OPERATOR', 78, "Operator declarations must be preceeded by
the keyword 'operator'"); |
| 7592 | 7576 |
| 7593 static const ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 79, "Library directives must
include a library name"); | 7577 static const ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 79, "Library directives must
include a library name"); |
| 7594 | 7578 |
| 7595 static const ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 80, "Library directives must
include a library name"); | 7579 static const ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 80, "Library directives must
include a library name"); |
| 7596 | 7580 |
| 7597 static const ParserErrorCode MISSING_PREFIX_IN_DEFERRED_IMPORT = const ParserE
rrorCode.con3('MISSING_PREFIX_IN_DEFERRED_IMPORT', 81, "Deferred imports must ha
ve a prefix"); | 7581 static const ParserErrorCode MISSING_PREFIX_IN_DEFERRED_IMPORT = const ParserE
rrorCode.con3('MISSING_PREFIX_IN_DEFERRED_IMPORT', 81, "Deferred imports must ha
ve a prefix"); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7712 CONST_AND_FINAL, | 7696 CONST_AND_FINAL, |
| 7713 CONST_AND_VAR, | 7697 CONST_AND_VAR, |
| 7714 CONST_CLASS, | 7698 CONST_CLASS, |
| 7715 CONST_CONSTRUCTOR_WITH_BODY, | 7699 CONST_CONSTRUCTOR_WITH_BODY, |
| 7716 CONST_FACTORY, | 7700 CONST_FACTORY, |
| 7717 CONST_METHOD, | 7701 CONST_METHOD, |
| 7718 CONST_TYPEDEF, | 7702 CONST_TYPEDEF, |
| 7719 CONSTRUCTOR_WITH_RETURN_TYPE, | 7703 CONSTRUCTOR_WITH_RETURN_TYPE, |
| 7720 CONTINUE_OUTSIDE_OF_LOOP, | 7704 CONTINUE_OUTSIDE_OF_LOOP, |
| 7721 CONTINUE_WITHOUT_LABEL_IN_CASE, | 7705 CONTINUE_WITHOUT_LABEL_IN_CASE, |
| 7722 DEPRECATED_ARGUMENT_DEFINITION_TEST, | |
| 7723 DEPRECATED_CLASS_TYPE_ALIAS, | 7706 DEPRECATED_CLASS_TYPE_ALIAS, |
| 7724 DIRECTIVE_AFTER_DECLARATION, | 7707 DIRECTIVE_AFTER_DECLARATION, |
| 7725 DUPLICATE_LABEL_IN_SWITCH_STATEMENT, | 7708 DUPLICATE_LABEL_IN_SWITCH_STATEMENT, |
| 7726 DUPLICATED_MODIFIER, | 7709 DUPLICATED_MODIFIER, |
| 7727 EQUALITY_CANNOT_BE_EQUALITY_OPERAND, | 7710 EQUALITY_CANNOT_BE_EQUALITY_OPERAND, |
| 7728 EXPECTED_CASE_OR_DEFAULT, | 7711 EXPECTED_CASE_OR_DEFAULT, |
| 7729 EXPECTED_CLASS_MEMBER, | 7712 EXPECTED_CLASS_MEMBER, |
| 7730 EXPECTED_EXECUTABLE, | 7713 EXPECTED_EXECUTABLE, |
| 7731 EXPECTED_LIST_OR_MAP_LITERAL, | 7714 EXPECTED_LIST_OR_MAP_LITERAL, |
| 7732 EXPECTED_STRING_LITERAL, | 7715 EXPECTED_STRING_LITERAL, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7769 LIBRARY_DIRECTIVE_NOT_FIRST, | 7752 LIBRARY_DIRECTIVE_NOT_FIRST, |
| 7770 LOCAL_FUNCTION_DECLARATION_MODIFIER, | 7753 LOCAL_FUNCTION_DECLARATION_MODIFIER, |
| 7771 MISSING_ASSIGNABLE_SELECTOR, | 7754 MISSING_ASSIGNABLE_SELECTOR, |
| 7772 MISSING_CATCH_OR_FINALLY, | 7755 MISSING_CATCH_OR_FINALLY, |
| 7773 MISSING_CLASS_BODY, | 7756 MISSING_CLASS_BODY, |
| 7774 MISSING_CLOSING_PARENTHESIS, | 7757 MISSING_CLOSING_PARENTHESIS, |
| 7775 MISSING_CONST_FINAL_VAR_OR_TYPE, | 7758 MISSING_CONST_FINAL_VAR_OR_TYPE, |
| 7776 MISSING_EXPRESSION_IN_THROW, | 7759 MISSING_EXPRESSION_IN_THROW, |
| 7777 MISSING_FUNCTION_BODY, | 7760 MISSING_FUNCTION_BODY, |
| 7778 MISSING_FUNCTION_PARAMETERS, | 7761 MISSING_FUNCTION_PARAMETERS, |
| 7762 MISSING_GET, |
| 7779 MISSING_IDENTIFIER, | 7763 MISSING_IDENTIFIER, |
| 7780 MISSING_KEYWORD_OPERATOR, | 7764 MISSING_KEYWORD_OPERATOR, |
| 7781 MISSING_NAME_IN_LIBRARY_DIRECTIVE, | 7765 MISSING_NAME_IN_LIBRARY_DIRECTIVE, |
| 7782 MISSING_NAME_IN_PART_OF_DIRECTIVE, | 7766 MISSING_NAME_IN_PART_OF_DIRECTIVE, |
| 7783 MISSING_PREFIX_IN_DEFERRED_IMPORT, | 7767 MISSING_PREFIX_IN_DEFERRED_IMPORT, |
| 7784 MISSING_STATEMENT, | 7768 MISSING_STATEMENT, |
| 7785 MISSING_TERMINATOR_FOR_PARAMETER_GROUP, | 7769 MISSING_TERMINATOR_FOR_PARAMETER_GROUP, |
| 7786 MISSING_TYPEDEF_PARAMETERS, | 7770 MISSING_TYPEDEF_PARAMETERS, |
| 7787 MISSING_VARIABLE_IN_FOR_EACH, | 7771 MISSING_VARIABLE_IN_FOR_EACH, |
| 7788 MIXED_PARAMETER_GROUPS, | 7772 MIXED_PARAMETER_GROUPS, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7929 bool visitAnnotation(Annotation node) { | 7913 bool visitAnnotation(Annotation node) { |
| 7930 Annotation toNode = this._toNode as Annotation; | 7914 Annotation toNode = this._toNode as Annotation; |
| 7931 if (javaBooleanAnd(javaBooleanAnd(javaBooleanAnd(javaBooleanAnd(_isEqualToke
ns(node.atSign, toNode.atSign), _isEqualNodes(node.name, toNode.name)), _isEqual
Tokens(node.period, toNode.period)), _isEqualNodes(node.constructorName, toNode.
constructorName)), _isEqualNodes(node.arguments, toNode.arguments))) { | 7915 if (javaBooleanAnd(javaBooleanAnd(javaBooleanAnd(javaBooleanAnd(_isEqualToke
ns(node.atSign, toNode.atSign), _isEqualNodes(node.name, toNode.name)), _isEqual
Tokens(node.period, toNode.period)), _isEqualNodes(node.constructorName, toNode.
constructorName)), _isEqualNodes(node.arguments, toNode.arguments))) { |
| 7932 toNode.element = node.element; | 7916 toNode.element = node.element; |
| 7933 return true; | 7917 return true; |
| 7934 } | 7918 } |
| 7935 return false; | 7919 return false; |
| 7936 } | 7920 } |
| 7937 | 7921 |
| 7938 @override | 7922 @override |
| 7939 bool visitArgumentDefinitionTest(ArgumentDefinitionTest node) { | |
| 7940 ArgumentDefinitionTest toNode = this._toNode as ArgumentDefinitionTest; | |
| 7941 if (javaBooleanAnd(_isEqualTokens(node.question, toNode.question), _isEqualN
odes(node.identifier, toNode.identifier))) { | |
| 7942 toNode.propagatedType = node.propagatedType; | |
| 7943 toNode.staticType = node.staticType; | |
| 7944 return true; | |
| 7945 } | |
| 7946 return false; | |
| 7947 } | |
| 7948 | |
| 7949 @override | |
| 7950 bool visitArgumentList(ArgumentList node) { | 7923 bool visitArgumentList(ArgumentList node) { |
| 7951 ArgumentList toNode = this._toNode as ArgumentList; | 7924 ArgumentList toNode = this._toNode as ArgumentList; |
| 7952 return javaBooleanAnd(javaBooleanAnd(_isEqualTokens(node.leftParenthesis, to
Node.leftParenthesis), _isEqualNodeLists(node.arguments, toNode.arguments)), _is
EqualTokens(node.rightParenthesis, toNode.rightParenthesis)); | 7925 return javaBooleanAnd(javaBooleanAnd(_isEqualTokens(node.leftParenthesis, to
Node.leftParenthesis), _isEqualNodeLists(node.arguments, toNode.arguments)), _is
EqualTokens(node.rightParenthesis, toNode.rightParenthesis)); |
| 7953 } | 7926 } |
| 7954 | 7927 |
| 7955 @override | 7928 @override |
| 7956 bool visitAsExpression(AsExpression node) { | 7929 bool visitAsExpression(AsExpression node) { |
| 7957 AsExpression toNode = this._toNode as AsExpression; | 7930 AsExpression toNode = this._toNode as AsExpression; |
| 7958 if (javaBooleanAnd(javaBooleanAnd(_isEqualNodes(node.expression, toNode.expr
ession), _isEqualTokens(node.asOperator, toNode.asOperator)), _isEqualNodes(node
.type, toNode.type))) { | 7931 if (javaBooleanAnd(javaBooleanAnd(_isEqualNodes(node.expression, toNode.expr
ession), _isEqualTokens(node.asOperator, toNode.asOperator)), _isEqualNodes(node
.type, toNode.type))) { |
| 7959 toNode.propagatedType = node.propagatedType; | 7932 toNode.propagatedType = node.propagatedType; |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8931 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target
._isTypedIdentifier(arg0)), | 8904 'isTypedIdentifier_1': new MethodTrampoline(1, (Parser target, arg0) => target
._isTypedIdentifier(arg0)), |
| 8932 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target._l
exicallyFirst(arg0)), | 8905 'lexicallyFirst_1': new MethodTrampoline(1, (Parser target, arg0) => target._l
exicallyFirst(arg0)), |
| 8933 'lockErrorListener_0': new MethodTrampoline(0, (Parser target) => target._lock
ErrorListener()), | 8906 'lockErrorListener_0': new MethodTrampoline(0, (Parser target) => target._lock
ErrorListener()), |
| 8934 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target._matches(
arg0)), | 8907 'matches_1': new MethodTrampoline(1, (Parser target, arg0) => target._matches(
arg0)), |
| 8935 'matchesGt_0': new MethodTrampoline(0, (Parser target) => target._matchesGt())
, | 8908 'matchesGt_0': new MethodTrampoline(0, (Parser target) => target._matchesGt())
, |
| 8936 'matchesIdentifier_0': new MethodTrampoline(0, (Parser target) => target._matc
hesIdentifier()), | 8909 'matchesIdentifier_0': new MethodTrampoline(0, (Parser target) => target._matc
hesIdentifier()), |
| 8937 'matchesKeyword_1': new MethodTrampoline(1, (Parser target, arg0) => target._m
atchesKeyword(arg0)), | 8910 'matchesKeyword_1': new MethodTrampoline(1, (Parser target, arg0) => target._m
atchesKeyword(arg0)), |
| 8938 'matchesString_1': new MethodTrampoline(1, (Parser target, arg0) => target._ma
tchesString(arg0)), | 8911 'matchesString_1': new MethodTrampoline(1, (Parser target, arg0) => target._ma
tchesString(arg0)), |
| 8939 'optional_1': new MethodTrampoline(1, (Parser target, arg0) => target._optiona
l(arg0)), | 8912 'optional_1': new MethodTrampoline(1, (Parser target, arg0) => target._optiona
l(arg0)), |
| 8940 'parseAdditiveExpression_0': new MethodTrampoline(0, (Parser target) => target
._parseAdditiveExpression()), | 8913 'parseAdditiveExpression_0': new MethodTrampoline(0, (Parser target) => target
._parseAdditiveExpression()), |
| 8941 'parseArgumentDefinitionTest_0': new MethodTrampoline(0, (Parser target) => ta
rget._parseArgumentDefinitionTest()), | |
| 8942 'parseAssertStatement_0': new MethodTrampoline(0, (Parser target) => target._p
arseAssertStatement()), | 8914 'parseAssertStatement_0': new MethodTrampoline(0, (Parser target) => target._p
arseAssertStatement()), |
| 8943 'parseAssignableExpression_1': new MethodTrampoline(1, (Parser target, arg0) =
> target._parseAssignableExpression(arg0)), | 8915 'parseAssignableExpression_1': new MethodTrampoline(1, (Parser target, arg0) =
> target._parseAssignableExpression(arg0)), |
| 8944 'parseAssignableSelector_2': new MethodTrampoline(2, (Parser target, arg0, arg
1) => target._parseAssignableSelector(arg0, arg1)), | 8916 'parseAssignableSelector_2': new MethodTrampoline(2, (Parser target, arg0, arg
1) => target._parseAssignableSelector(arg0, arg1)), |
| 8945 'parseBitwiseAndExpression_0': new MethodTrampoline(0, (Parser target) => targ
et._parseBitwiseAndExpression()), | 8917 'parseBitwiseAndExpression_0': new MethodTrampoline(0, (Parser target) => targ
et._parseBitwiseAndExpression()), |
| 8946 'parseBitwiseXorExpression_0': new MethodTrampoline(0, (Parser target) => targ
et._parseBitwiseXorExpression()), | 8918 'parseBitwiseXorExpression_0': new MethodTrampoline(0, (Parser target) => targ
et._parseBitwiseXorExpression()), |
| 8947 'parseBreakStatement_0': new MethodTrampoline(0, (Parser target) => target._pa
rseBreakStatement()), | 8919 'parseBreakStatement_0': new MethodTrampoline(0, (Parser target) => target._pa
rseBreakStatement()), |
| 8948 'parseCascadeSection_0': new MethodTrampoline(0, (Parser target) => target._pa
rseCascadeSection()), | 8920 'parseCascadeSection_0': new MethodTrampoline(0, (Parser target) => target._pa
rseCascadeSection()), |
| 8949 'parseClassDeclaration_2': new MethodTrampoline(2, (Parser target, arg0, arg1)
=> target._parseClassDeclaration(arg0, arg1)), | 8921 'parseClassDeclaration_2': new MethodTrampoline(2, (Parser target, arg0, arg1)
=> target._parseClassDeclaration(arg0, arg1)), |
| 8950 'parseClassMembers_2': new MethodTrampoline(2, (Parser target, arg0, arg1) =>
target._parseClassMembers(arg0, arg1)), | 8922 'parseClassMembers_2': new MethodTrampoline(2, (Parser target, arg0, arg1) =>
target._parseClassMembers(arg0, arg1)), |
| 8951 'parseClassTypeAlias_3': new MethodTrampoline(3, (Parser target, arg0, arg1, a
rg2) => target._parseClassTypeAlias(arg0, arg1, arg2)), | 8923 'parseClassTypeAlias_3': new MethodTrampoline(3, (Parser target, arg0, arg1, a
rg2) => target._parseClassTypeAlias(arg0, arg1, arg2)), |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9083 return trampoline(target, arguments[0], arguments[1]); | 9055 return trampoline(target, arguments[0], arguments[1]); |
| 9084 case 3: | 9056 case 3: |
| 9085 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 9057 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 9086 case 4: | 9058 case 4: |
| 9087 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 9059 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 9088 default: | 9060 default: |
| 9089 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 9061 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 9090 } | 9062 } |
| 9091 } | 9063 } |
| 9092 } | 9064 } |
| OLD | NEW |