| 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.ast; | 4 library engine.ast; |
| 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' show LineInfo; | 10 import 'source.dart' show LineInfo; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 82 } |
| 83 return endToken2.offset + endToken2.length - beginToken2.offset; | 83 return endToken2.offset + endToken2.length - beginToken2.offset; |
| 84 } | 84 } |
| 85 /** | 85 /** |
| 86 * Return the offset from the beginning of the file to the first character in
the node's source | 86 * Return the offset from the beginning of the file to the first character in
the node's source |
| 87 * range. | 87 * range. |
| 88 * @return the offset from the beginning of the file to the first character in
the node's source | 88 * @return the offset from the beginning of the file to the first character in
the node's source |
| 89 * range | 89 * range |
| 90 */ | 90 */ |
| 91 int get offset { | 91 int get offset { |
| 92 Token beginToken3 = beginToken; | 92 Token beginToken2 = beginToken; |
| 93 if (beginToken3 == null) { | 93 if (beginToken2 == null) { |
| 94 return -1; | 94 return -1; |
| 95 } | 95 } |
| 96 return beginToken.offset; | 96 return beginToken.offset; |
| 97 } | 97 } |
| 98 /** | 98 /** |
| 99 * Return this node's parent node, or {@code null} if this node is the root of
an AST structure. | 99 * Return this node's parent node, or {@code null} if this node is the root of
an AST structure. |
| 100 * <p> | 100 * <p> |
| 101 * Note that the relationship between an AST node and its parent node may chan
ge over the lifetime | 101 * Note that the relationship between an AST node and its parent node may chan
ge over the lifetime |
| 102 * of a node. | 102 * of a node. |
| 103 * @return the parent of this node, or {@code null} if none | 103 * @return the parent of this node, or {@code null} if none |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 * @param constructorName the name of the constructor being invoked | 594 * @param constructorName the name of the constructor being invoked |
| 595 */ | 595 */ |
| 596 void set constructorName(SimpleIdentifier constructorName2) { | 596 void set constructorName(SimpleIdentifier constructorName2) { |
| 597 this._constructorName = becomeParentOf(constructorName2); | 597 this._constructorName = becomeParentOf(constructorName2); |
| 598 } | 598 } |
| 599 /** | 599 /** |
| 600 * Set the name of the class defining the constructor that is being invoked or
the name of the | 600 * Set the name of the class defining the constructor that is being invoked or
the name of the |
| 601 * field that is being referenced to the given name. | 601 * field that is being referenced to the given name. |
| 602 * @param name the name of the constructor being invoked or the name of the fi
eld being referenced | 602 * @param name the name of the constructor being invoked or the name of the fi
eld being referenced |
| 603 */ | 603 */ |
| 604 void set name(Identifier name3) { | 604 void set name(Identifier name2) { |
| 605 this._name = becomeParentOf(name3); | 605 this._name = becomeParentOf(name2); |
| 606 } | 606 } |
| 607 /** | 607 /** |
| 608 * Set the period before the constructor name to the given token. | 608 * Set the period before the constructor name to the given token. |
| 609 * @param period the period before the constructor name | 609 * @param period the period before the constructor name |
| 610 */ | 610 */ |
| 611 void set period(Token period2) { | 611 void set period(Token period2) { |
| 612 this._period = period2; | 612 this._period = period2; |
| 613 } | 613 } |
| 614 void visitChildren(ASTVisitor<Object> visitor) { | 614 void visitChildren(ASTVisitor<Object> visitor) { |
| 615 safelyVisitChild(_name, visitor); | 615 safelyVisitChild(_name, visitor); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 SimpleIdentifier get identifier => _identifier; | 658 SimpleIdentifier get identifier => _identifier; |
| 659 /** | 659 /** |
| 660 * Return the token representing the question mark. | 660 * Return the token representing the question mark. |
| 661 * @return the token representing the question mark | 661 * @return the token representing the question mark |
| 662 */ | 662 */ |
| 663 Token get question => _question; | 663 Token get question => _question; |
| 664 /** | 664 /** |
| 665 * Set the identifier representing the argument being tested to the given iden
tifier. | 665 * Set the identifier representing the argument being tested to the given iden
tifier. |
| 666 * @param identifier the identifier representing the argument being tested | 666 * @param identifier the identifier representing the argument being tested |
| 667 */ | 667 */ |
| 668 void set identifier(SimpleIdentifier identifier8) { | 668 void set identifier(SimpleIdentifier identifier2) { |
| 669 this._identifier = becomeParentOf(identifier8); | 669 this._identifier = becomeParentOf(identifier2); |
| 670 } | 670 } |
| 671 /** | 671 /** |
| 672 * Set the token representing the question mark to the given token. | 672 * Set the token representing the question mark to the given token. |
| 673 * @param question the token representing the question mark | 673 * @param question the token representing the question mark |
| 674 */ | 674 */ |
| 675 void set question(Token question2) { | 675 void set question(Token question2) { |
| 676 this._question = question2; | 676 this._question = question2; |
| 677 } | 677 } |
| 678 void visitChildren(ASTVisitor<Object> visitor) { | 678 void visitChildren(ASTVisitor<Object> visitor) { |
| 679 safelyVisitChild(_identifier, visitor); | 679 safelyVisitChild(_identifier, visitor); |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 * Set the condition that is being asserted to be {@code true} to the given ex
pression. | 968 * Set the condition that is being asserted to be {@code true} to the given ex
pression. |
| 969 * @param the condition that is being asserted to be {@code true} | 969 * @param the condition that is being asserted to be {@code true} |
| 970 */ | 970 */ |
| 971 void set condition(Expression condition2) { | 971 void set condition(Expression condition2) { |
| 972 this._condition = becomeParentOf(condition2); | 972 this._condition = becomeParentOf(condition2); |
| 973 } | 973 } |
| 974 /** | 974 /** |
| 975 * Set the token representing the 'assert' keyword to the given token. | 975 * Set the token representing the 'assert' keyword to the given token. |
| 976 * @param keyword the token representing the 'assert' keyword | 976 * @param keyword the token representing the 'assert' keyword |
| 977 */ | 977 */ |
| 978 void set keyword(Token keyword3) { | 978 void set keyword(Token keyword2) { |
| 979 this._keyword = keyword3; | 979 this._keyword = keyword2; |
| 980 } | 980 } |
| 981 /** | 981 /** |
| 982 * Set the left parenthesis to the given token. | 982 * Set the left parenthesis to the given token. |
| 983 * @param the left parenthesis | 983 * @param the left parenthesis |
| 984 */ | 984 */ |
| 985 void set leftParenthesis(Token leftParenthesis2) { | 985 void set leftParenthesis(Token leftParenthesis2) { |
| 986 this._leftParenthesis = leftParenthesis2; | 986 this._leftParenthesis = leftParenthesis2; |
| 987 } | 987 } |
| 988 /** | 988 /** |
| 989 * Set the right parenthesis to the given token. | 989 * Set the right parenthesis to the given token. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 Token get operator => _operator; | 1068 Token get operator => _operator; |
| 1069 /** | 1069 /** |
| 1070 * Return the expression used to compute the right hand side. | 1070 * Return the expression used to compute the right hand side. |
| 1071 * @return the expression used to compute the right hand side | 1071 * @return the expression used to compute the right hand side |
| 1072 */ | 1072 */ |
| 1073 Expression get rightHandSide => _rightHandSide; | 1073 Expression get rightHandSide => _rightHandSide; |
| 1074 /** | 1074 /** |
| 1075 * Set the element associated with the operator to the given element. | 1075 * Set the element associated with the operator to the given element. |
| 1076 * @param element the element associated with the operator | 1076 * @param element the element associated with the operator |
| 1077 */ | 1077 */ |
| 1078 void set element(MethodElement element3) { | 1078 void set element(MethodElement element2) { |
| 1079 this._element = element3; | 1079 this._element = element2; |
| 1080 } | 1080 } |
| 1081 /** | 1081 /** |
| 1082 * Return the expression used to compute the left hand side. | 1082 * Return the expression used to compute the left hand side. |
| 1083 * @param expression the expression used to compute the left hand side | 1083 * @param expression the expression used to compute the left hand side |
| 1084 */ | 1084 */ |
| 1085 void set leftHandSide(Expression expression) { | 1085 void set leftHandSide(Expression expression) { |
| 1086 _leftHandSide = becomeParentOf(expression); | 1086 _leftHandSide = becomeParentOf(expression); |
| 1087 } | 1087 } |
| 1088 /** | 1088 /** |
| 1089 * Set the assignment operator being applied to the given operator. | 1089 * Set the assignment operator being applied to the given operator. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 Token get operator => _operator; | 1169 Token get operator => _operator; |
| 1170 /** | 1170 /** |
| 1171 * Return the expression used to compute the right operand. | 1171 * Return the expression used to compute the right operand. |
| 1172 * @return the expression used to compute the right operand | 1172 * @return the expression used to compute the right operand |
| 1173 */ | 1173 */ |
| 1174 Expression get rightOperand => _rightOperand; | 1174 Expression get rightOperand => _rightOperand; |
| 1175 /** | 1175 /** |
| 1176 * Set the element associated with the operator to the given element. | 1176 * Set the element associated with the operator to the given element. |
| 1177 * @param element the element associated with the operator | 1177 * @param element the element associated with the operator |
| 1178 */ | 1178 */ |
| 1179 void set element(MethodElement element4) { | 1179 void set element(MethodElement element2) { |
| 1180 this._element = element4; | 1180 this._element = element2; |
| 1181 } | 1181 } |
| 1182 /** | 1182 /** |
| 1183 * Set the expression used to compute the left operand to the given expression
. | 1183 * Set the expression used to compute the left operand to the given expression
. |
| 1184 * @param expression the expression used to compute the left operand | 1184 * @param expression the expression used to compute the left operand |
| 1185 */ | 1185 */ |
| 1186 void set leftOperand(Expression expression) { | 1186 void set leftOperand(Expression expression) { |
| 1187 _leftOperand = becomeParentOf(expression); | 1187 _leftOperand = becomeParentOf(expression); |
| 1188 } | 1188 } |
| 1189 /** | 1189 /** |
| 1190 * Set the binary operator being applied to the given operator. | 1190 * Set the binary operator being applied to the given operator. |
| 1191 * @return the binary operator being applied | 1191 * @return the binary operator being applied |
| 1192 */ | 1192 */ |
| 1193 void set operator(Token operator3) { | 1193 void set operator(Token operator2) { |
| 1194 this._operator = operator3; | 1194 this._operator = operator2; |
| 1195 } | 1195 } |
| 1196 /** | 1196 /** |
| 1197 * Set the expression used to compute the right operand to the given expressio
n. | 1197 * Set the expression used to compute the right operand to the given expressio
n. |
| 1198 * @param expression the expression used to compute the right operand | 1198 * @param expression the expression used to compute the right operand |
| 1199 */ | 1199 */ |
| 1200 void set rightOperand(Expression expression) { | 1200 void set rightOperand(Expression expression) { |
| 1201 _rightOperand = becomeParentOf(expression); | 1201 _rightOperand = becomeParentOf(expression); |
| 1202 } | 1202 } |
| 1203 void visitChildren(ASTVisitor<Object> visitor) { | 1203 void visitChildren(ASTVisitor<Object> visitor) { |
| 1204 safelyVisitChild(_leftOperand, visitor); | 1204 safelyVisitChild(_leftOperand, visitor); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1374 * Set the token representing the literal to the given token. | 1374 * Set the token representing the literal to the given token. |
| 1375 * @param literal the token representing the literal | 1375 * @param literal the token representing the literal |
| 1376 */ | 1376 */ |
| 1377 void set literal(Token literal2) { | 1377 void set literal(Token literal2) { |
| 1378 this._literal = literal2; | 1378 this._literal = literal2; |
| 1379 } | 1379 } |
| 1380 /** | 1380 /** |
| 1381 * Set the value of the literal to the given value. | 1381 * Set the value of the literal to the given value. |
| 1382 * @param value the value of the literal | 1382 * @param value the value of the literal |
| 1383 */ | 1383 */ |
| 1384 void set value(bool value4) { | 1384 void set value(bool value2) { |
| 1385 this._value = value4; | 1385 this._value = value2; |
| 1386 } | 1386 } |
| 1387 void visitChildren(ASTVisitor<Object> visitor) { | 1387 void visitChildren(ASTVisitor<Object> visitor) { |
| 1388 } | 1388 } |
| 1389 } | 1389 } |
| 1390 /** | 1390 /** |
| 1391 * Instances of the class {@code BreakStatement} represent a break statement. | 1391 * Instances of the class {@code BreakStatement} represent a break statement. |
| 1392 * <pre> | 1392 * <pre> |
| 1393 * breakStatement ::= | 1393 * breakStatement ::= |
| 1394 * 'break' {@link SimpleIdentifier label}? ';' | 1394 * 'break' {@link SimpleIdentifier label}? ';' |
| 1395 * </pre> | 1395 * </pre> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 SimpleIdentifier get label => _label; | 1441 SimpleIdentifier get label => _label; |
| 1442 /** | 1442 /** |
| 1443 * Return the semicolon terminating the statement. | 1443 * Return the semicolon terminating the statement. |
| 1444 * @return the semicolon terminating the statement | 1444 * @return the semicolon terminating the statement |
| 1445 */ | 1445 */ |
| 1446 Token get semicolon => _semicolon; | 1446 Token get semicolon => _semicolon; |
| 1447 /** | 1447 /** |
| 1448 * Set the token representing the 'break' keyword to the given token. | 1448 * Set the token representing the 'break' keyword to the given token. |
| 1449 * @param keyword the token representing the 'break' keyword | 1449 * @param keyword the token representing the 'break' keyword |
| 1450 */ | 1450 */ |
| 1451 void set keyword(Token keyword4) { | 1451 void set keyword(Token keyword2) { |
| 1452 this._keyword = keyword4; | 1452 this._keyword = keyword2; |
| 1453 } | 1453 } |
| 1454 /** | 1454 /** |
| 1455 * Set the label associated with the statement to the given identifier. | 1455 * Set the label associated with the statement to the given identifier. |
| 1456 * @param identifier the label associated with the statement | 1456 * @param identifier the label associated with the statement |
| 1457 */ | 1457 */ |
| 1458 void set label(SimpleIdentifier identifier) { | 1458 void set label(SimpleIdentifier identifier) { |
| 1459 _label = becomeParentOf(identifier); | 1459 _label = becomeParentOf(identifier); |
| 1460 } | 1460 } |
| 1461 /** | 1461 /** |
| 1462 * Set the semicolon terminating the statement to the given token. | 1462 * Set the semicolon terminating the statement to the given token. |
| 1463 * @param semicolon the semicolon terminating the statement | 1463 * @param semicolon the semicolon terminating the statement |
| 1464 */ | 1464 */ |
| 1465 void set semicolon(Token semicolon3) { | 1465 void set semicolon(Token semicolon2) { |
| 1466 this._semicolon = semicolon3; | 1466 this._semicolon = semicolon2; |
| 1467 } | 1467 } |
| 1468 void visitChildren(ASTVisitor<Object> visitor) { | 1468 void visitChildren(ASTVisitor<Object> visitor) { |
| 1469 safelyVisitChild(_label, visitor); | 1469 safelyVisitChild(_label, visitor); |
| 1470 } | 1470 } |
| 1471 } | 1471 } |
| 1472 /** | 1472 /** |
| 1473 * Instances of the class {@code CascadeExpression} represent a sequence of casc
aded expressions: | 1473 * Instances of the class {@code CascadeExpression} represent a sequence of casc
aded expressions: |
| 1474 * expressions that share a common target. There are three kinds of expressions
that can be used in | 1474 * expressions that share a common target. There are three kinds of expressions
that can be used in |
| 1475 * a cascade expression: {@link IndexExpression}, {@link MethodInvocation} and{@
link PropertyAccess}. | 1475 * a cascade expression: {@link IndexExpression}, {@link MethodInvocation} and{@
link PropertyAccess}. |
| 1476 * <pre> | 1476 * <pre> |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 * Set the token representing the 'class' keyword to the given token. | 1907 * Set the token representing the 'class' keyword to the given token. |
| 1908 * @param classKeyword the token representing the 'class' keyword | 1908 * @param classKeyword the token representing the 'class' keyword |
| 1909 */ | 1909 */ |
| 1910 void set classKeyword(Token classKeyword2) { | 1910 void set classKeyword(Token classKeyword2) { |
| 1911 this._classKeyword = classKeyword2; | 1911 this._classKeyword = classKeyword2; |
| 1912 } | 1912 } |
| 1913 /** | 1913 /** |
| 1914 * Set the extends clause for this class to the given clause. | 1914 * Set the extends clause for this class to the given clause. |
| 1915 * @param extendsClause the extends clause for this class | 1915 * @param extendsClause the extends clause for this class |
| 1916 */ | 1916 */ |
| 1917 void set extendsClause(ExtendsClause extendsClause3) { | 1917 void set extendsClause(ExtendsClause extendsClause2) { |
| 1918 this._extendsClause = becomeParentOf(extendsClause3); | 1918 this._extendsClause = becomeParentOf(extendsClause2); |
| 1919 } | 1919 } |
| 1920 /** | 1920 /** |
| 1921 * Set the implements clause for the class to the given clause. | 1921 * Set the implements clause for the class to the given clause. |
| 1922 * @param implementsClause the implements clause for the class | 1922 * @param implementsClause the implements clause for the class |
| 1923 */ | 1923 */ |
| 1924 void set implementsClause(ImplementsClause implementsClause4) { | 1924 void set implementsClause(ImplementsClause implementsClause2) { |
| 1925 this._implementsClause = becomeParentOf(implementsClause4); | 1925 this._implementsClause = becomeParentOf(implementsClause2); |
| 1926 } | 1926 } |
| 1927 /** | 1927 /** |
| 1928 * Set the left curly bracket to the given token. | 1928 * Set the left curly bracket to the given token. |
| 1929 * @param leftBracket the left curly bracket | 1929 * @param leftBracket the left curly bracket |
| 1930 */ | 1930 */ |
| 1931 void set leftBracket(Token leftBracket3) { | 1931 void set leftBracket(Token leftBracket2) { |
| 1932 this._leftBracket = leftBracket3; | 1932 this._leftBracket = leftBracket2; |
| 1933 } | 1933 } |
| 1934 /** | 1934 /** |
| 1935 * Set the name of the class being declared to the given identifier. | 1935 * Set the name of the class being declared to the given identifier. |
| 1936 * @param identifier the name of the class being declared | 1936 * @param identifier the name of the class being declared |
| 1937 */ | 1937 */ |
| 1938 void set name(SimpleIdentifier identifier) { | 1938 void set name(SimpleIdentifier identifier) { |
| 1939 _name = becomeParentOf(identifier); | 1939 _name = becomeParentOf(identifier); |
| 1940 } | 1940 } |
| 1941 /** | 1941 /** |
| 1942 * Set the right curly bracket to the given token. | 1942 * Set the right curly bracket to the given token. |
| 1943 * @param rightBracket the right curly bracket | 1943 * @param rightBracket the right curly bracket |
| 1944 */ | 1944 */ |
| 1945 void set rightBracket(Token rightBracket3) { | 1945 void set rightBracket(Token rightBracket2) { |
| 1946 this._rightBracket = rightBracket3; | 1946 this._rightBracket = rightBracket2; |
| 1947 } | 1947 } |
| 1948 /** | 1948 /** |
| 1949 * Set the type parameters for the class to the given list of type parameters. | 1949 * Set the type parameters for the class to the given list of type parameters. |
| 1950 * @param typeParameters the type parameters for the class | 1950 * @param typeParameters the type parameters for the class |
| 1951 */ | 1951 */ |
| 1952 void set typeParameters(TypeParameterList typeParameters2) { | 1952 void set typeParameters(TypeParameterList typeParameters2) { |
| 1953 this._typeParameters = typeParameters2; | 1953 this._typeParameters = typeParameters2; |
| 1954 } | 1954 } |
| 1955 /** | 1955 /** |
| 1956 * Set the with clause for the class to the given clause. | 1956 * Set the with clause for the class to the given clause. |
| 1957 * @param withClause the with clause for the class | 1957 * @param withClause the with clause for the class |
| 1958 */ | 1958 */ |
| 1959 void set withClause(WithClause withClause4) { | 1959 void set withClause(WithClause withClause2) { |
| 1960 this._withClause = becomeParentOf(withClause4); | 1960 this._withClause = becomeParentOf(withClause2); |
| 1961 } | 1961 } |
| 1962 void visitChildren(ASTVisitor<Object> visitor) { | 1962 void visitChildren(ASTVisitor<Object> visitor) { |
| 1963 safelyVisitChild(documentationComment, visitor); | 1963 safelyVisitChild(documentationComment, visitor); |
| 1964 safelyVisitChild(_name, visitor); | 1964 safelyVisitChild(_name, visitor); |
| 1965 safelyVisitChild(_typeParameters, visitor); | 1965 safelyVisitChild(_typeParameters, visitor); |
| 1966 safelyVisitChild(_extendsClause, visitor); | 1966 safelyVisitChild(_extendsClause, visitor); |
| 1967 safelyVisitChild(_withClause, visitor); | 1967 safelyVisitChild(_withClause, visitor); |
| 1968 safelyVisitChild(_implementsClause, visitor); | 1968 safelyVisitChild(_implementsClause, visitor); |
| 1969 members.accept(visitor); | 1969 members.accept(visitor); |
| 1970 } | 1970 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2108 TypeParameterList get typeParameters => _typeParameters; | 2108 TypeParameterList get typeParameters => _typeParameters; |
| 2109 /** | 2109 /** |
| 2110 * Return the with clause for this class. | 2110 * Return the with clause for this class. |
| 2111 * @return the with clause for this class | 2111 * @return the with clause for this class |
| 2112 */ | 2112 */ |
| 2113 WithClause get withClause => _withClause; | 2113 WithClause get withClause => _withClause; |
| 2114 /** | 2114 /** |
| 2115 * Set the token for the 'abstract' keyword to the given token. | 2115 * Set the token for the 'abstract' keyword to the given token. |
| 2116 * @param abstractKeyword the token for the 'abstract' keyword | 2116 * @param abstractKeyword the token for the 'abstract' keyword |
| 2117 */ | 2117 */ |
| 2118 void set abstractKeyword(Token abstractKeyword3) { | 2118 void set abstractKeyword(Token abstractKeyword2) { |
| 2119 this._abstractKeyword = abstractKeyword3; | 2119 this._abstractKeyword = abstractKeyword2; |
| 2120 } | 2120 } |
| 2121 /** | 2121 /** |
| 2122 * Set the token for the '=' separating the name from the definition to the gi
ven token. | 2122 * Set the token for the '=' separating the name from the definition to the gi
ven token. |
| 2123 * @param equals the token for the '=' separating the name from the definition | 2123 * @param equals the token for the '=' separating the name from the definition |
| 2124 */ | 2124 */ |
| 2125 void set equals(Token equals4) { | 2125 void set equals(Token equals2) { |
| 2126 this._equals = equals4; | 2126 this._equals = equals2; |
| 2127 } | 2127 } |
| 2128 /** | 2128 /** |
| 2129 * Set the implements clause for this class to the given implements clause. | 2129 * Set the implements clause for this class to the given implements clause. |
| 2130 * @param implementsClause the implements clause for this class | 2130 * @param implementsClause the implements clause for this class |
| 2131 */ | 2131 */ |
| 2132 void set implementsClause(ImplementsClause implementsClause5) { | 2132 void set implementsClause(ImplementsClause implementsClause2) { |
| 2133 this._implementsClause = becomeParentOf(implementsClause5); | 2133 this._implementsClause = becomeParentOf(implementsClause2); |
| 2134 } | 2134 } |
| 2135 /** | 2135 /** |
| 2136 * Set the name of the class being declared to the given identifier. | 2136 * Set the name of the class being declared to the given identifier. |
| 2137 * @param name the name of the class being declared | 2137 * @param name the name of the class being declared |
| 2138 */ | 2138 */ |
| 2139 void set name(SimpleIdentifier name4) { | 2139 void set name(SimpleIdentifier name2) { |
| 2140 this._name = becomeParentOf(name4); | 2140 this._name = becomeParentOf(name2); |
| 2141 } | 2141 } |
| 2142 /** | 2142 /** |
| 2143 * Set the name of the superclass of the class being declared to the given nam
e. | 2143 * Set the name of the superclass of the class being declared to the given nam
e. |
| 2144 * @param superclass the name of the superclass of the class being declared | 2144 * @param superclass the name of the superclass of the class being declared |
| 2145 */ | 2145 */ |
| 2146 void set superclass(TypeName superclass2) { | 2146 void set superclass(TypeName superclass2) { |
| 2147 this._superclass = becomeParentOf(superclass2); | 2147 this._superclass = becomeParentOf(superclass2); |
| 2148 } | 2148 } |
| 2149 /** | 2149 /** |
| 2150 * Set the type parameters for the class to the given list of parameters. | 2150 * Set the type parameters for the class to the given list of parameters. |
| 2151 * @param typeParameters the type parameters for the class | 2151 * @param typeParameters the type parameters for the class |
| 2152 */ | 2152 */ |
| 2153 void set typeParameters(TypeParameterList typeParameters3) { | 2153 void set typeParameters(TypeParameterList typeParameters2) { |
| 2154 this._typeParameters = becomeParentOf(typeParameters3); | 2154 this._typeParameters = becomeParentOf(typeParameters2); |
| 2155 } | 2155 } |
| 2156 /** | 2156 /** |
| 2157 * Set the with clause for this class to the given with clause. | 2157 * Set the with clause for this class to the given with clause. |
| 2158 * @param withClause the with clause for this class | 2158 * @param withClause the with clause for this class |
| 2159 */ | 2159 */ |
| 2160 void set withClause(WithClause withClause5) { | 2160 void set withClause(WithClause withClause2) { |
| 2161 this._withClause = becomeParentOf(withClause5); | 2161 this._withClause = becomeParentOf(withClause2); |
| 2162 } | 2162 } |
| 2163 void visitChildren(ASTVisitor<Object> visitor) { | 2163 void visitChildren(ASTVisitor<Object> visitor) { |
| 2164 super.visitChildren(visitor); | 2164 super.visitChildren(visitor); |
| 2165 safelyVisitChild(_name, visitor); | 2165 safelyVisitChild(_name, visitor); |
| 2166 safelyVisitChild(_typeParameters, visitor); | 2166 safelyVisitChild(_typeParameters, visitor); |
| 2167 safelyVisitChild(_superclass, visitor); | 2167 safelyVisitChild(_superclass, visitor); |
| 2168 safelyVisitChild(_withClause, visitor); | 2168 safelyVisitChild(_withClause, visitor); |
| 2169 safelyVisitChild(_implementsClause, visitor); | 2169 safelyVisitChild(_implementsClause, visitor); |
| 2170 } | 2170 } |
| 2171 } | 2171 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2200 * Return the keyword specifying what kind of processing is to be done on the
imported names. | 2200 * Return the keyword specifying what kind of processing is to be done on the
imported names. |
| 2201 * @return the keyword specifying what kind of processing is to be done on the
imported names | 2201 * @return the keyword specifying what kind of processing is to be done on the
imported names |
| 2202 */ | 2202 */ |
| 2203 Token get keyword => _keyword; | 2203 Token get keyword => _keyword; |
| 2204 /** | 2204 /** |
| 2205 * Set the keyword specifying what kind of processing is to be done on the imp
orted names to the | 2205 * Set the keyword specifying what kind of processing is to be done on the imp
orted names to the |
| 2206 * given token. | 2206 * given token. |
| 2207 * @param keyword the keyword specifying what kind of processing is to be done
on the imported | 2207 * @param keyword the keyword specifying what kind of processing is to be done
on the imported |
| 2208 * names | 2208 * names |
| 2209 */ | 2209 */ |
| 2210 void set keyword(Token keyword5) { | 2210 void set keyword(Token keyword2) { |
| 2211 this._keyword = keyword5; | 2211 this._keyword = keyword2; |
| 2212 } | 2212 } |
| 2213 } | 2213 } |
| 2214 /** | 2214 /** |
| 2215 * Instances of the class {@code Comment} represent a comment within the source
code. | 2215 * Instances of the class {@code Comment} represent a comment within the source
code. |
| 2216 * <pre> | 2216 * <pre> |
| 2217 * comment ::= | 2217 * comment ::= |
| 2218 * endOfLineComment | 2218 * endOfLineComment |
| 2219 * | blockComment | 2219 * | blockComment |
| 2220 * | documentationComment | 2220 * | documentationComment |
| 2221 * endOfLineComment ::= | 2221 * endOfLineComment ::= |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 Identifier get identifier => _identifier; | 2387 Identifier get identifier => _identifier; |
| 2388 /** | 2388 /** |
| 2389 * Return the token representing the 'new' keyword, or {@code null} if there w
as no 'new' keyword. | 2389 * Return the token representing the 'new' keyword, or {@code null} if there w
as no 'new' keyword. |
| 2390 * @return the token representing the 'new' keyword | 2390 * @return the token representing the 'new' keyword |
| 2391 */ | 2391 */ |
| 2392 Token get newKeyword => _newKeyword; | 2392 Token get newKeyword => _newKeyword; |
| 2393 /** | 2393 /** |
| 2394 * Set the identifier being referenced to the given identifier. | 2394 * Set the identifier being referenced to the given identifier. |
| 2395 * @param identifier the identifier being referenced | 2395 * @param identifier the identifier being referenced |
| 2396 */ | 2396 */ |
| 2397 void set identifier(Identifier identifier26) { | 2397 void set identifier(Identifier identifier2) { |
| 2398 identifier26 = becomeParentOf(identifier26); | 2398 identifier2 = becomeParentOf(identifier2); |
| 2399 } | 2399 } |
| 2400 /** | 2400 /** |
| 2401 * Set the token representing the 'new' keyword to the given token. | 2401 * Set the token representing the 'new' keyword to the given token. |
| 2402 * @param newKeyword the token representing the 'new' keyword | 2402 * @param newKeyword the token representing the 'new' keyword |
| 2403 */ | 2403 */ |
| 2404 void set newKeyword(Token newKeyword2) { | 2404 void set newKeyword(Token newKeyword2) { |
| 2405 this._newKeyword = newKeyword2; | 2405 this._newKeyword = newKeyword2; |
| 2406 } | 2406 } |
| 2407 void visitChildren(ASTVisitor<Object> visitor) { | 2407 void visitChildren(ASTVisitor<Object> visitor) { |
| 2408 safelyVisitChild(_identifier, visitor); | 2408 safelyVisitChild(_identifier, visitor); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2520 } else if (parserErrors.length == 0) { | 2520 } else if (parserErrors.length == 0) { |
| 2521 return resolverErrors; | 2521 return resolverErrors; |
| 2522 } else { | 2522 } else { |
| 2523 List<AnalysisError> allErrors = new List<AnalysisError>(parserErrors.lengt
h + resolverErrors.length); | 2523 List<AnalysisError> allErrors = new List<AnalysisError>(parserErrors.lengt
h + resolverErrors.length); |
| 2524 JavaSystem.arraycopy(parserErrors, 0, allErrors, 0, parserErrors.length); | 2524 JavaSystem.arraycopy(parserErrors, 0, allErrors, 0, parserErrors.length); |
| 2525 JavaSystem.arraycopy(resolverErrors, 0, allErrors, parserErrors.length, re
solverErrors.length); | 2525 JavaSystem.arraycopy(resolverErrors, 0, allErrors, parserErrors.length, re
solverErrors.length); |
| 2526 return allErrors; | 2526 return allErrors; |
| 2527 } | 2527 } |
| 2528 } | 2528 } |
| 2529 int get length { | 2529 int get length { |
| 2530 Token endToken3 = endToken; | 2530 Token endToken2 = endToken; |
| 2531 if (endToken3 == null) { | 2531 if (endToken2 == null) { |
| 2532 return 0; | 2532 return 0; |
| 2533 } | 2533 } |
| 2534 return endToken3.offset + endToken3.length; | 2534 return endToken2.offset + endToken2.length; |
| 2535 } | 2535 } |
| 2536 /** | 2536 /** |
| 2537 * Get the {@link LineInfo} object for this compilation unit. | 2537 * Get the {@link LineInfo} object for this compilation unit. |
| 2538 * @return the associated {@link LineInfo} | 2538 * @return the associated {@link LineInfo} |
| 2539 */ | 2539 */ |
| 2540 LineInfo get lineInfo => _lineInfo; | 2540 LineInfo get lineInfo => _lineInfo; |
| 2541 int get offset => 0; | 2541 int get offset => 0; |
| 2542 /** | 2542 /** |
| 2543 * Return an array containing all of the parsing errors associated with the re
ceiver. | 2543 * Return an array containing all of the parsing errors associated with the re
ceiver. |
| 2544 * @return an array of errors (not {@code null}, contains no {@code null}s). | 2544 * @return an array of errors (not {@code null}, contains no {@code null}s). |
| 2545 */ | 2545 */ |
| 2546 List<AnalysisError> get parsingErrors => _parsingErrors; | 2546 List<AnalysisError> get parsingErrors => _parsingErrors; |
| 2547 /** | 2547 /** |
| 2548 * Return an array containing all of the resolution errors associated with the
receiver. If the | 2548 * Return an array containing all of the resolution errors associated with the
receiver. If the |
| 2549 * receiver has not been resolved, then return {@code null}. | 2549 * receiver has not been resolved, then return {@code null}. |
| 2550 * @return an array of errors (contains no {@code null}s) or {@code null} if t
he receiver has not | 2550 * @return an array of errors (contains no {@code null}s) or {@code null} if t
he receiver has not |
| 2551 * been resolved | 2551 * been resolved |
| 2552 */ | 2552 */ |
| 2553 List<AnalysisError> get resolutionErrors => _resolutionErrors; | 2553 List<AnalysisError> get resolutionErrors => _resolutionErrors; |
| 2554 /** | 2554 /** |
| 2555 * Return the script tag at the beginning of the compilation unit, or {@code n
ull} if there is no | 2555 * Return the script tag at the beginning of the compilation unit, or {@code n
ull} if there is no |
| 2556 * script tag in this compilation unit. | 2556 * script tag in this compilation unit. |
| 2557 * @return the script tag at the beginning of the compilation unit | 2557 * @return the script tag at the beginning of the compilation unit |
| 2558 */ | 2558 */ |
| 2559 ScriptTag get scriptTag => _scriptTag; | 2559 ScriptTag get scriptTag => _scriptTag; |
| 2560 /** | 2560 /** |
| 2561 * Set the element associated with this compilation unit to the given element. | 2561 * Set the element associated with this compilation unit to the given element. |
| 2562 * @param element the element associated with this compilation unit | 2562 * @param element the element associated with this compilation unit |
| 2563 */ | 2563 */ |
| 2564 void set element(CompilationUnitElement element5) { | 2564 void set element(CompilationUnitElement element2) { |
| 2565 this._element = element5; | 2565 this._element = element2; |
| 2566 } | 2566 } |
| 2567 /** | 2567 /** |
| 2568 * Set the {@link LineInfo} object for this compilation unit. | 2568 * Set the {@link LineInfo} object for this compilation unit. |
| 2569 * @param errors LineInfo to associate with this compilation unit | 2569 * @param errors LineInfo to associate with this compilation unit |
| 2570 */ | 2570 */ |
| 2571 void set lineInfo(LineInfo lineInfo2) { | 2571 void set lineInfo(LineInfo lineInfo2) { |
| 2572 this._lineInfo = lineInfo2; | 2572 this._lineInfo = lineInfo2; |
| 2573 } | 2573 } |
| 2574 /** | 2574 /** |
| 2575 * Called to cache the parsing errors when the unit is parsed. | 2575 * Called to cache the parsing errors when the unit is parsed. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2753 * expression. | 2753 * expression. |
| 2754 * @param expression the expression that is executed if the condition evaluate
s to {@code false} | 2754 * @param expression the expression that is executed if the condition evaluate
s to {@code false} |
| 2755 */ | 2755 */ |
| 2756 void set elseExpression(Expression expression) { | 2756 void set elseExpression(Expression expression) { |
| 2757 _elseExpression = becomeParentOf(expression); | 2757 _elseExpression = becomeParentOf(expression); |
| 2758 } | 2758 } |
| 2759 /** | 2759 /** |
| 2760 * Set the token used to separate the condition from the then expression to th
e given token. | 2760 * Set the token used to separate the condition from the then expression to th
e given token. |
| 2761 * @param question the token used to separate the condition from the then expr
ession | 2761 * @param question the token used to separate the condition from the then expr
ession |
| 2762 */ | 2762 */ |
| 2763 void set question(Token question3) { | 2763 void set question(Token question2) { |
| 2764 this._question = question3; | 2764 this._question = question2; |
| 2765 } | 2765 } |
| 2766 /** | 2766 /** |
| 2767 * Set the expression that is executed if the condition evaluates to {@code tr
ue} to the given | 2767 * Set the expression that is executed if the condition evaluates to {@code tr
ue} to the given |
| 2768 * expression. | 2768 * expression. |
| 2769 * @param expression the expression that is executed if the condition evaluate
s to {@code true} | 2769 * @param expression the expression that is executed if the condition evaluate
s to {@code true} |
| 2770 */ | 2770 */ |
| 2771 void set thenExpression(Expression expression) { | 2771 void set thenExpression(Expression expression) { |
| 2772 _thenExpression = becomeParentOf(expression); | 2772 _thenExpression = becomeParentOf(expression); |
| 2773 } | 2773 } |
| 2774 void visitChildren(ASTVisitor<Object> visitor) { | 2774 void visitChildren(ASTVisitor<Object> visitor) { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 * Set the token for the 'const' keyword to the given token. | 2980 * Set the token for the 'const' keyword to the given token. |
| 2981 * @param constKeyword the token for the 'const' keyword | 2981 * @param constKeyword the token for the 'const' keyword |
| 2982 */ | 2982 */ |
| 2983 void set constKeyword(Token constKeyword2) { | 2983 void set constKeyword(Token constKeyword2) { |
| 2984 this._constKeyword = constKeyword2; | 2984 this._constKeyword = constKeyword2; |
| 2985 } | 2985 } |
| 2986 /** | 2986 /** |
| 2987 * Set the element associated with this constructor to the given element. | 2987 * Set the element associated with this constructor to the given element. |
| 2988 * @param element the element associated with this constructor | 2988 * @param element the element associated with this constructor |
| 2989 */ | 2989 */ |
| 2990 void set element(ConstructorElement element6) { | 2990 void set element(ConstructorElement element2) { |
| 2991 this._element = element6; | 2991 this._element = element2; |
| 2992 } | 2992 } |
| 2993 /** | 2993 /** |
| 2994 * Set the token for the 'external' keyword to the given token. | 2994 * Set the token for the 'external' keyword to the given token. |
| 2995 * @param externalKeyword the token for the 'external' keyword | 2995 * @param externalKeyword the token for the 'external' keyword |
| 2996 */ | 2996 */ |
| 2997 void set externalKeyword(Token externalKeyword2) { | 2997 void set externalKeyword(Token externalKeyword2) { |
| 2998 this._externalKeyword = externalKeyword2; | 2998 this._externalKeyword = externalKeyword2; |
| 2999 } | 2999 } |
| 3000 /** | 3000 /** |
| 3001 * Set the token for the 'factory' keyword to the given token. | 3001 * Set the token for the 'factory' keyword to the given token. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3015 * Set the parameters associated with the constructor to the given list of par
ameters. | 3015 * Set the parameters associated with the constructor to the given list of par
ameters. |
| 3016 * @param parameters the parameters associated with the constructor | 3016 * @param parameters the parameters associated with the constructor |
| 3017 */ | 3017 */ |
| 3018 void set parameters(FormalParameterList parameters2) { | 3018 void set parameters(FormalParameterList parameters2) { |
| 3019 this._parameters = becomeParentOf(parameters2); | 3019 this._parameters = becomeParentOf(parameters2); |
| 3020 } | 3020 } |
| 3021 /** | 3021 /** |
| 3022 * Set the token for the period before the constructor name to the given token
. | 3022 * Set the token for the period before the constructor name to the given token
. |
| 3023 * @param period the token for the period before the constructor name | 3023 * @param period the token for the period before the constructor name |
| 3024 */ | 3024 */ |
| 3025 void set period(Token period3) { | 3025 void set period(Token period2) { |
| 3026 this._period = period3; | 3026 this._period = period2; |
| 3027 } | 3027 } |
| 3028 /** | 3028 /** |
| 3029 * Set the name of the constructor to which this constructor will be redirecte
d to the given | 3029 * Set the name of the constructor to which this constructor will be redirecte
d to the given |
| 3030 * constructor name. | 3030 * constructor name. |
| 3031 * @param redirectedConstructor the name of the constructor to which this cons
tructor will be | 3031 * @param redirectedConstructor the name of the constructor to which this cons
tructor will be |
| 3032 * redirected | 3032 * redirected |
| 3033 */ | 3033 */ |
| 3034 void set redirectedConstructor(ConstructorName redirectedConstructor2) { | 3034 void set redirectedConstructor(ConstructorName redirectedConstructor2) { |
| 3035 this._redirectedConstructor = becomeParentOf(redirectedConstructor2); | 3035 this._redirectedConstructor = becomeParentOf(redirectedConstructor2); |
| 3036 } | 3036 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3168 /** | 3168 /** |
| 3169 * Return the token for the period after the 'this' keyword, or {@code null} i
f there is no 'this' | 3169 * Return the token for the period after the 'this' keyword, or {@code null} i
f there is no 'this' |
| 3170 * keyword. | 3170 * keyword. |
| 3171 * @return the token for the period after the 'this' keyword | 3171 * @return the token for the period after the 'this' keyword |
| 3172 */ | 3172 */ |
| 3173 Token get period => _period; | 3173 Token get period => _period; |
| 3174 /** | 3174 /** |
| 3175 * Set the token for the equal sign between the field name and the expression
to the given token. | 3175 * Set the token for the equal sign between the field name and the expression
to the given token. |
| 3176 * @param equals the token for the equal sign between the field name and the e
xpression | 3176 * @param equals the token for the equal sign between the field name and the e
xpression |
| 3177 */ | 3177 */ |
| 3178 void set equals(Token equals5) { | 3178 void set equals(Token equals2) { |
| 3179 this._equals = equals5; | 3179 this._equals = equals2; |
| 3180 } | 3180 } |
| 3181 /** | 3181 /** |
| 3182 * Set the expression computing the value to which the field will be initializ
ed to the given | 3182 * Set the expression computing the value to which the field will be initializ
ed to the given |
| 3183 * expression. | 3183 * expression. |
| 3184 * @param expression the expression computing the value to which the field wil
l be initialized | 3184 * @param expression the expression computing the value to which the field wil
l be initialized |
| 3185 */ | 3185 */ |
| 3186 void set expression(Expression expression3) { | 3186 void set expression(Expression expression2) { |
| 3187 this._expression = becomeParentOf(expression3); | 3187 this._expression = becomeParentOf(expression2); |
| 3188 } | 3188 } |
| 3189 /** | 3189 /** |
| 3190 * Set the name of the field being initialized to the given identifier. | 3190 * Set the name of the field being initialized to the given identifier. |
| 3191 * @param identifier the name of the field being initialized | 3191 * @param identifier the name of the field being initialized |
| 3192 */ | 3192 */ |
| 3193 void set fieldName(SimpleIdentifier identifier) { | 3193 void set fieldName(SimpleIdentifier identifier) { |
| 3194 _fieldName = becomeParentOf(identifier); | 3194 _fieldName = becomeParentOf(identifier); |
| 3195 } | 3195 } |
| 3196 /** | 3196 /** |
| 3197 * Set the token for the 'this' keyword to the given token. | 3197 * Set the token for the 'this' keyword to the given token. |
| 3198 * @param keyword the token for the 'this' keyword | 3198 * @param keyword the token for the 'this' keyword |
| 3199 */ | 3199 */ |
| 3200 void set keyword(Token keyword6) { | 3200 void set keyword(Token keyword2) { |
| 3201 this._keyword = keyword6; | 3201 this._keyword = keyword2; |
| 3202 } | 3202 } |
| 3203 /** | 3203 /** |
| 3204 * Set the token for the period after the 'this' keyword to the given token. | 3204 * Set the token for the period after the 'this' keyword to the given token. |
| 3205 * @param period the token for the period after the 'this' keyword | 3205 * @param period the token for the period after the 'this' keyword |
| 3206 */ | 3206 */ |
| 3207 void set period(Token period4) { | 3207 void set period(Token period2) { |
| 3208 this._period = period4; | 3208 this._period = period2; |
| 3209 } | 3209 } |
| 3210 void visitChildren(ASTVisitor<Object> visitor) { | 3210 void visitChildren(ASTVisitor<Object> visitor) { |
| 3211 safelyVisitChild(_fieldName, visitor); | 3211 safelyVisitChild(_fieldName, visitor); |
| 3212 safelyVisitChild(_expression, visitor); | 3212 safelyVisitChild(_expression, visitor); |
| 3213 } | 3213 } |
| 3214 } | 3214 } |
| 3215 /** | 3215 /** |
| 3216 * Instances of the class {@code ConstructorInitializer} defines the behavior of
nodes that can | 3216 * Instances of the class {@code ConstructorInitializer} defines the behavior of
nodes that can |
| 3217 * occur in the initializer list of a constructor declaration. | 3217 * occur in the initializer list of a constructor declaration. |
| 3218 * <pre> | 3218 * <pre> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3295 Token get period => _period; | 3295 Token get period => _period; |
| 3296 /** | 3296 /** |
| 3297 * Return the name of the type defining the constructor. | 3297 * Return the name of the type defining the constructor. |
| 3298 * @return the name of the type defining the constructor | 3298 * @return the name of the type defining the constructor |
| 3299 */ | 3299 */ |
| 3300 TypeName get type => _type; | 3300 TypeName get type => _type; |
| 3301 /** | 3301 /** |
| 3302 * Set the element associated with this constructor name to the given element. | 3302 * Set the element associated with this constructor name to the given element. |
| 3303 * @param element the element associated with this constructor name | 3303 * @param element the element associated with this constructor name |
| 3304 */ | 3304 */ |
| 3305 void set element(ConstructorElement element7) { | 3305 void set element(ConstructorElement element2) { |
| 3306 this._element = element7; | 3306 this._element = element2; |
| 3307 } | 3307 } |
| 3308 /** | 3308 /** |
| 3309 * Set the name of the constructor to the given name. | 3309 * Set the name of the constructor to the given name. |
| 3310 * @param name the name of the constructor | 3310 * @param name the name of the constructor |
| 3311 */ | 3311 */ |
| 3312 void set name(SimpleIdentifier name5) { | 3312 void set name(SimpleIdentifier name2) { |
| 3313 this._name = becomeParentOf(name5); | 3313 this._name = becomeParentOf(name2); |
| 3314 } | 3314 } |
| 3315 /** | 3315 /** |
| 3316 * Return the token for the period before the constructor name to the given to
ken. | 3316 * Return the token for the period before the constructor name to the given to
ken. |
| 3317 * @param period the token for the period before the constructor name | 3317 * @param period the token for the period before the constructor name |
| 3318 */ | 3318 */ |
| 3319 void set period(Token period5) { | 3319 void set period(Token period2) { |
| 3320 this._period = period5; | 3320 this._period = period2; |
| 3321 } | 3321 } |
| 3322 /** | 3322 /** |
| 3323 * Set the name of the type defining the constructor to the given type name. | 3323 * Set the name of the type defining the constructor to the given type name. |
| 3324 * @param type the name of the type defining the constructor | 3324 * @param type the name of the type defining the constructor |
| 3325 */ | 3325 */ |
| 3326 void set type(TypeName type2) { | 3326 void set type(TypeName type2) { |
| 3327 this._type = becomeParentOf(type2); | 3327 this._type = becomeParentOf(type2); |
| 3328 } | 3328 } |
| 3329 void visitChildren(ASTVisitor<Object> visitor) { | 3329 void visitChildren(ASTVisitor<Object> visitor) { |
| 3330 safelyVisitChild(_type, visitor); | 3330 safelyVisitChild(_type, visitor); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3385 SimpleIdentifier get label => _label; | 3385 SimpleIdentifier get label => _label; |
| 3386 /** | 3386 /** |
| 3387 * Return the semicolon terminating the statement. | 3387 * Return the semicolon terminating the statement. |
| 3388 * @return the semicolon terminating the statement | 3388 * @return the semicolon terminating the statement |
| 3389 */ | 3389 */ |
| 3390 Token get semicolon => _semicolon; | 3390 Token get semicolon => _semicolon; |
| 3391 /** | 3391 /** |
| 3392 * Set the token representing the 'continue' keyword to the given token. | 3392 * Set the token representing the 'continue' keyword to the given token. |
| 3393 * @param keyword the token representing the 'continue' keyword | 3393 * @param keyword the token representing the 'continue' keyword |
| 3394 */ | 3394 */ |
| 3395 void set keyword(Token keyword7) { | 3395 void set keyword(Token keyword2) { |
| 3396 this._keyword = keyword7; | 3396 this._keyword = keyword2; |
| 3397 } | 3397 } |
| 3398 /** | 3398 /** |
| 3399 * Set the label associated with the statement to the given label. | 3399 * Set the label associated with the statement to the given label. |
| 3400 * @param identifier the label associated with the statement | 3400 * @param identifier the label associated with the statement |
| 3401 */ | 3401 */ |
| 3402 void set label(SimpleIdentifier identifier) { | 3402 void set label(SimpleIdentifier identifier) { |
| 3403 _label = becomeParentOf(identifier); | 3403 _label = becomeParentOf(identifier); |
| 3404 } | 3404 } |
| 3405 /** | 3405 /** |
| 3406 * Set the semicolon terminating the statement to the given token. | 3406 * Set the semicolon terminating the statement to the given token. |
| 3407 * @param semicolon the semicolon terminating the statement | 3407 * @param semicolon the semicolon terminating the statement |
| 3408 */ | 3408 */ |
| 3409 void set semicolon(Token semicolon4) { | 3409 void set semicolon(Token semicolon2) { |
| 3410 this._semicolon = semicolon4; | 3410 this._semicolon = semicolon2; |
| 3411 } | 3411 } |
| 3412 void visitChildren(ASTVisitor<Object> visitor) { | 3412 void visitChildren(ASTVisitor<Object> visitor) { |
| 3413 safelyVisitChild(_label, visitor); | 3413 safelyVisitChild(_label, visitor); |
| 3414 } | 3414 } |
| 3415 } | 3415 } |
| 3416 /** | 3416 /** |
| 3417 * The abstract class {@code Declaration} defines the behavior common to nodes t
hat represent the | 3417 * The abstract class {@code Declaration} defines the behavior common to nodes t
hat represent the |
| 3418 * declaration of a name. Each declared name is visible within a name scope. | 3418 * declaration of a name. Each declared name is visible within a name scope. |
| 3419 * @coverage dart.engine.ast | 3419 * @coverage dart.engine.ast |
| 3420 */ | 3420 */ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3479 * Initialize a newly created formal parameter. | 3479 * Initialize a newly created formal parameter. |
| 3480 * @param comment the documentation comment associated with this parameter | 3480 * @param comment the documentation comment associated with this parameter |
| 3481 * @param metadata the annotations associated with this parameter | 3481 * @param metadata the annotations associated with this parameter |
| 3482 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword | 3482 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword |
| 3483 * @param type the name of the declared type of the parameter | 3483 * @param type the name of the declared type of the parameter |
| 3484 * @param identifier the name of the parameter being declared | 3484 * @param identifier the name of the parameter being declared |
| 3485 */ | 3485 */ |
| 3486 DeclaredIdentifier({Comment comment, List<Annotation> metadata, Token keyword,
TypeName type, SimpleIdentifier identifier}) : this.full(comment, metadata, key
word, type, identifier); | 3486 DeclaredIdentifier({Comment comment, List<Annotation> metadata, Token keyword,
TypeName type, SimpleIdentifier identifier}) : this.full(comment, metadata, key
word, type, identifier); |
| 3487 accept(ASTVisitor visitor) => visitor.visitDeclaredIdentifier(this); | 3487 accept(ASTVisitor visitor) => visitor.visitDeclaredIdentifier(this); |
| 3488 LocalVariableElement get element { | 3488 LocalVariableElement get element { |
| 3489 SimpleIdentifier identifier12 = identifier; | 3489 SimpleIdentifier identifier2 = identifier; |
| 3490 if (identifier12 == null) { | 3490 if (identifier2 == null) { |
| 3491 return null; | 3491 return null; |
| 3492 } | 3492 } |
| 3493 return identifier12.element as LocalVariableElement; | 3493 return identifier2.element as LocalVariableElement; |
| 3494 } | 3494 } |
| 3495 Token get endToken => _identifier.endToken; | 3495 Token get endToken => _identifier.endToken; |
| 3496 /** | 3496 /** |
| 3497 * Return the name of the variable being declared. | 3497 * Return the name of the variable being declared. |
| 3498 * @return the name of the variable being declared | 3498 * @return the name of the variable being declared |
| 3499 */ | 3499 */ |
| 3500 SimpleIdentifier get identifier => _identifier; | 3500 SimpleIdentifier get identifier => _identifier; |
| 3501 /** | 3501 /** |
| 3502 * Return the token representing either the 'final', 'const' or 'var' keyword. | 3502 * Return the token representing either the 'final', 'const' or 'var' keyword. |
| 3503 * @return the token representing either the 'final', 'const' or 'var' keyword | 3503 * @return the token representing either the 'final', 'const' or 'var' keyword |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3518 * Return {@code true} if this variable was declared with the 'final' modifier
. Variables that are | 3518 * Return {@code true} if this variable was declared with the 'final' modifier
. Variables that are |
| 3519 * declared with the 'const' modifier will return {@code false} even though th
ey are implicitly | 3519 * declared with the 'const' modifier will return {@code false} even though th
ey are implicitly |
| 3520 * final. | 3520 * final. |
| 3521 * @return {@code true} if this variable was declared with the 'final' modifie
r | 3521 * @return {@code true} if this variable was declared with the 'final' modifie
r |
| 3522 */ | 3522 */ |
| 3523 bool isFinal() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.FINAL); | 3523 bool isFinal() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.FINAL); |
| 3524 /** | 3524 /** |
| 3525 * Set the token representing either the 'final', 'const' or 'var' keyword to
the given token. | 3525 * Set the token representing either the 'final', 'const' or 'var' keyword to
the given token. |
| 3526 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword | 3526 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword |
| 3527 */ | 3527 */ |
| 3528 void set keyword(Token keyword8) { | 3528 void set keyword(Token keyword2) { |
| 3529 this._keyword = keyword8; | 3529 this._keyword = keyword2; |
| 3530 } | 3530 } |
| 3531 /** | 3531 /** |
| 3532 * Set the name of the declared type of the parameter to the given type name. | 3532 * Set the name of the declared type of the parameter to the given type name. |
| 3533 * @param typeName the name of the declared type of the parameter | 3533 * @param typeName the name of the declared type of the parameter |
| 3534 */ | 3534 */ |
| 3535 void set type(TypeName typeName) { | 3535 void set type(TypeName typeName) { |
| 3536 _type = becomeParentOf(typeName); | 3536 _type = becomeParentOf(typeName); |
| 3537 } | 3537 } |
| 3538 void visitChildren(ASTVisitor<Object> visitor) { | 3538 void visitChildren(ASTVisitor<Object> visitor) { |
| 3539 super.visitChildren(visitor); | 3539 super.visitChildren(visitor); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3656 * Set the formal parameter with which the default value is associated to the
given parameter. | 3656 * Set the formal parameter with which the default value is associated to the
given parameter. |
| 3657 * @param formalParameter the formal parameter with which the default value is
associated | 3657 * @param formalParameter the formal parameter with which the default value is
associated |
| 3658 */ | 3658 */ |
| 3659 void set parameter(NormalFormalParameter formalParameter) { | 3659 void set parameter(NormalFormalParameter formalParameter) { |
| 3660 _parameter = becomeParentOf(formalParameter); | 3660 _parameter = becomeParentOf(formalParameter); |
| 3661 } | 3661 } |
| 3662 /** | 3662 /** |
| 3663 * Set the token separating the parameter from the default value to the given
token. | 3663 * Set the token separating the parameter from the default value to the given
token. |
| 3664 * @param separator the token separating the parameter from the default value | 3664 * @param separator the token separating the parameter from the default value |
| 3665 */ | 3665 */ |
| 3666 void set separator(Token separator3) { | 3666 void set separator(Token separator2) { |
| 3667 this._separator = separator3; | 3667 this._separator = separator2; |
| 3668 } | 3668 } |
| 3669 void visitChildren(ASTVisitor<Object> visitor) { | 3669 void visitChildren(ASTVisitor<Object> visitor) { |
| 3670 safelyVisitChild(_parameter, visitor); | 3670 safelyVisitChild(_parameter, visitor); |
| 3671 safelyVisitChild(_defaultValue, visitor); | 3671 safelyVisitChild(_defaultValue, visitor); |
| 3672 } | 3672 } |
| 3673 } | 3673 } |
| 3674 /** | 3674 /** |
| 3675 * The abstract class {@code Directive} defines the behavior common to nodes tha
t represent a | 3675 * The abstract class {@code Directive} defines the behavior common to nodes tha
t represent a |
| 3676 * directive. | 3676 * directive. |
| 3677 * <pre> | 3677 * <pre> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3707 /** | 3707 /** |
| 3708 * Return the token representing the keyword that introduces this directive ('
import', 'export', | 3708 * Return the token representing the keyword that introduces this directive ('
import', 'export', |
| 3709 * 'library' or 'part'). | 3709 * 'library' or 'part'). |
| 3710 * @return the token representing the keyword that introduces this directive | 3710 * @return the token representing the keyword that introduces this directive |
| 3711 */ | 3711 */ |
| 3712 Token get keyword; | 3712 Token get keyword; |
| 3713 /** | 3713 /** |
| 3714 * Set the element associated with this directive to the given element. | 3714 * Set the element associated with this directive to the given element. |
| 3715 * @param element the element associated with this directive | 3715 * @param element the element associated with this directive |
| 3716 */ | 3716 */ |
| 3717 void set element(Element element8) { | 3717 void set element(Element element2) { |
| 3718 this._element = element8; | 3718 this._element = element2; |
| 3719 } | 3719 } |
| 3720 } | 3720 } |
| 3721 /** | 3721 /** |
| 3722 * Instances of the class {@code DoStatement} represent a do statement. | 3722 * Instances of the class {@code DoStatement} represent a do statement. |
| 3723 * <pre> | 3723 * <pre> |
| 3724 * doStatement ::= | 3724 * doStatement ::= |
| 3725 * 'do' {@link Statement body} 'while' '(' {@link Expression condition} ')' ';' | 3725 * 'do' {@link Statement body} 'while' '(' {@link Expression condition} ')' ';' |
| 3726 * </pre> | 3726 * </pre> |
| 3727 * @coverage dart.engine.ast | 3727 * @coverage dart.engine.ast |
| 3728 */ | 3728 */ |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3855 * Set the right parenthesis to the given token. | 3855 * Set the right parenthesis to the given token. |
| 3856 * @param parenthesis the right parenthesis | 3856 * @param parenthesis the right parenthesis |
| 3857 */ | 3857 */ |
| 3858 void set rightParenthesis(Token parenthesis) { | 3858 void set rightParenthesis(Token parenthesis) { |
| 3859 _rightParenthesis = parenthesis; | 3859 _rightParenthesis = parenthesis; |
| 3860 } | 3860 } |
| 3861 /** | 3861 /** |
| 3862 * Set the semicolon terminating the statement to the given token. | 3862 * Set the semicolon terminating the statement to the given token. |
| 3863 * @param semicolon the semicolon terminating the statement | 3863 * @param semicolon the semicolon terminating the statement |
| 3864 */ | 3864 */ |
| 3865 void set semicolon(Token semicolon5) { | 3865 void set semicolon(Token semicolon2) { |
| 3866 this._semicolon = semicolon5; | 3866 this._semicolon = semicolon2; |
| 3867 } | 3867 } |
| 3868 /** | 3868 /** |
| 3869 * Set the token representing the 'while' keyword to the given token. | 3869 * Set the token representing the 'while' keyword to the given token. |
| 3870 * @param whileKeyword the token representing the 'while' keyword | 3870 * @param whileKeyword the token representing the 'while' keyword |
| 3871 */ | 3871 */ |
| 3872 void set whileKeyword(Token whileKeyword2) { | 3872 void set whileKeyword(Token whileKeyword2) { |
| 3873 this._whileKeyword = whileKeyword2; | 3873 this._whileKeyword = whileKeyword2; |
| 3874 } | 3874 } |
| 3875 void visitChildren(ASTVisitor<Object> visitor) { | 3875 void visitChildren(ASTVisitor<Object> visitor) { |
| 3876 safelyVisitChild(_body, visitor); | 3876 safelyVisitChild(_body, visitor); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3922 Token get literal => _literal; | 3922 Token get literal => _literal; |
| 3923 /** | 3923 /** |
| 3924 * Return the value of the literal. | 3924 * Return the value of the literal. |
| 3925 * @return the value of the literal | 3925 * @return the value of the literal |
| 3926 */ | 3926 */ |
| 3927 double get value => _value; | 3927 double get value => _value; |
| 3928 /** | 3928 /** |
| 3929 * Set the token representing the literal to the given token. | 3929 * Set the token representing the literal to the given token. |
| 3930 * @param literal the token representing the literal | 3930 * @param literal the token representing the literal |
| 3931 */ | 3931 */ |
| 3932 void set literal(Token literal3) { | 3932 void set literal(Token literal2) { |
| 3933 this._literal = literal3; | 3933 this._literal = literal2; |
| 3934 } | 3934 } |
| 3935 /** | 3935 /** |
| 3936 * Set the value of the literal to the given value. | 3936 * Set the value of the literal to the given value. |
| 3937 * @param value the value of the literal | 3937 * @param value the value of the literal |
| 3938 */ | 3938 */ |
| 3939 void set value(double value5) { | 3939 void set value(double value2) { |
| 3940 this._value = value5; | 3940 this._value = value2; |
| 3941 } | 3941 } |
| 3942 void visitChildren(ASTVisitor<Object> visitor) { | 3942 void visitChildren(ASTVisitor<Object> visitor) { |
| 3943 } | 3943 } |
| 3944 } | 3944 } |
| 3945 /** | 3945 /** |
| 3946 * Instances of the class {@code EmptyFunctionBody} represent an empty function
body, which can only | 3946 * Instances of the class {@code EmptyFunctionBody} represent an empty function
body, which can only |
| 3947 * appear in constructors or abstract methods. | 3947 * appear in constructors or abstract methods. |
| 3948 * <pre> | 3948 * <pre> |
| 3949 * emptyFunctionBody ::= | 3949 * emptyFunctionBody ::= |
| 3950 * ';' | 3950 * ';' |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3974 /** | 3974 /** |
| 3975 * Return the token representing the semicolon that marks the end of the funct
ion body. | 3975 * Return the token representing the semicolon that marks the end of the funct
ion body. |
| 3976 * @return the token representing the semicolon that marks the end of the func
tion body | 3976 * @return the token representing the semicolon that marks the end of the func
tion body |
| 3977 */ | 3977 */ |
| 3978 Token get semicolon => _semicolon; | 3978 Token get semicolon => _semicolon; |
| 3979 /** | 3979 /** |
| 3980 * Set the token representing the semicolon that marks the end of the function
body to the given | 3980 * Set the token representing the semicolon that marks the end of the function
body to the given |
| 3981 * token. | 3981 * token. |
| 3982 * @param semicolon the token representing the semicolon that marks the end of
the function body | 3982 * @param semicolon the token representing the semicolon that marks the end of
the function body |
| 3983 */ | 3983 */ |
| 3984 void set semicolon(Token semicolon6) { | 3984 void set semicolon(Token semicolon2) { |
| 3985 this._semicolon = semicolon6; | 3985 this._semicolon = semicolon2; |
| 3986 } | 3986 } |
| 3987 void visitChildren(ASTVisitor<Object> visitor) { | 3987 void visitChildren(ASTVisitor<Object> visitor) { |
| 3988 } | 3988 } |
| 3989 } | 3989 } |
| 3990 /** | 3990 /** |
| 3991 * Instances of the class {@code EmptyStatement} represent an empty statement. | 3991 * Instances of the class {@code EmptyStatement} represent an empty statement. |
| 3992 * <pre> | 3992 * <pre> |
| 3993 * emptyStatement ::= | 3993 * emptyStatement ::= |
| 3994 * ';' | 3994 * ';' |
| 3995 * </pre> | 3995 * </pre> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4017 Token get endToken => _semicolon; | 4017 Token get endToken => _semicolon; |
| 4018 /** | 4018 /** |
| 4019 * Return the semicolon terminating the statement. | 4019 * Return the semicolon terminating the statement. |
| 4020 * @return the semicolon terminating the statement | 4020 * @return the semicolon terminating the statement |
| 4021 */ | 4021 */ |
| 4022 Token get semicolon => _semicolon; | 4022 Token get semicolon => _semicolon; |
| 4023 /** | 4023 /** |
| 4024 * Set the semicolon terminating the statement to the given token. | 4024 * Set the semicolon terminating the statement to the given token. |
| 4025 * @param semicolon the semicolon terminating the statement | 4025 * @param semicolon the semicolon terminating the statement |
| 4026 */ | 4026 */ |
| 4027 void set semicolon(Token semicolon7) { | 4027 void set semicolon(Token semicolon2) { |
| 4028 this._semicolon = semicolon7; | 4028 this._semicolon = semicolon2; |
| 4029 } | 4029 } |
| 4030 void visitChildren(ASTVisitor<Object> visitor) { | 4030 void visitChildren(ASTVisitor<Object> visitor) { |
| 4031 } | 4031 } |
| 4032 } | 4032 } |
| 4033 /** | 4033 /** |
| 4034 * Ephemeral identifiers are created as needed to mimic the presence of an empty
identifier. | 4034 * Ephemeral identifiers are created as needed to mimic the presence of an empty
identifier. |
| 4035 * @coverage dart.engine.ast | 4035 * @coverage dart.engine.ast |
| 4036 */ | 4036 */ |
| 4037 class EphemeralIdentifier extends SimpleIdentifier { | 4037 class EphemeralIdentifier extends SimpleIdentifier { |
| 4038 EphemeralIdentifier.full(ASTNode parent, int location) : super.full(new Token(
TokenType.IDENTIFIER, location)) { | 4038 EphemeralIdentifier.full(ASTNode parent, int location) : super.full(new Token(
TokenType.IDENTIFIER, location)) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4095 Type2 _propagatedType; | 4095 Type2 _propagatedType; |
| 4096 /** | 4096 /** |
| 4097 * If this expression is an argument to an invocation, and the AST structure h
as been resolved, | 4097 * If this expression is an argument to an invocation, and the AST structure h
as been resolved, |
| 4098 * and the function being invoked is known, and this expression corresponds to
one of the | 4098 * and the function being invoked is known, and this expression corresponds to
one of the |
| 4099 * parameters of the function being invoked, then return the parameter element
representing the | 4099 * parameters of the function being invoked, then return the parameter element
representing the |
| 4100 * parameter to which the value of this expression will be bound. Otherwise, r
eturn {@code null}. | 4100 * parameter to which the value of this expression will be bound. Otherwise, r
eturn {@code null}. |
| 4101 * @return the parameter element representing the parameter to which the value
of this expression | 4101 * @return the parameter element representing the parameter to which the value
of this expression |
| 4102 * will be bound | 4102 * will be bound |
| 4103 */ | 4103 */ |
| 4104 ParameterElement get parameterElement { | 4104 ParameterElement get parameterElement { |
| 4105 ASTNode parent3 = parent; | 4105 ASTNode parent2 = parent; |
| 4106 if (parent3 is ArgumentList) { | 4106 if (parent2 is ArgumentList) { |
| 4107 return ((parent3 as ArgumentList)).getParameterElementFor(this); | 4107 return ((parent2 as ArgumentList)).getParameterElementFor(this); |
| 4108 } | 4108 } |
| 4109 return null; | 4109 return null; |
| 4110 } | 4110 } |
| 4111 /** | 4111 /** |
| 4112 * Return the propagated type of this expression, or {@code null} if type prop
agation has not been | 4112 * Return the propagated type of this expression, or {@code null} if type prop
agation has not been |
| 4113 * performed on the AST structure. | 4113 * performed on the AST structure. |
| 4114 * @return the propagated type of this expression | 4114 * @return the propagated type of this expression |
| 4115 */ | 4115 */ |
| 4116 Type2 get propagatedType => _propagatedType; | 4116 Type2 get propagatedType => _propagatedType; |
| 4117 /** | 4117 /** |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4202 Token get functionDefinition => _functionDefinition; | 4202 Token get functionDefinition => _functionDefinition; |
| 4203 /** | 4203 /** |
| 4204 * Return the semicolon terminating the statement. | 4204 * Return the semicolon terminating the statement. |
| 4205 * @return the semicolon terminating the statement | 4205 * @return the semicolon terminating the statement |
| 4206 */ | 4206 */ |
| 4207 Token get semicolon => _semicolon; | 4207 Token get semicolon => _semicolon; |
| 4208 /** | 4208 /** |
| 4209 * Set the expression representing the body of the function to the given expre
ssion. | 4209 * Set the expression representing the body of the function to the given expre
ssion. |
| 4210 * @param expression the expression representing the body of the function | 4210 * @param expression the expression representing the body of the function |
| 4211 */ | 4211 */ |
| 4212 void set expression(Expression expression4) { | 4212 void set expression(Expression expression2) { |
| 4213 this._expression = becomeParentOf(expression4); | 4213 this._expression = becomeParentOf(expression2); |
| 4214 } | 4214 } |
| 4215 /** | 4215 /** |
| 4216 * Set the token introducing the expression that represents the body of the fu
nction to the given | 4216 * Set the token introducing the expression that represents the body of the fu
nction to the given |
| 4217 * token. | 4217 * token. |
| 4218 * @param functionDefinition the function definition token | 4218 * @param functionDefinition the function definition token |
| 4219 */ | 4219 */ |
| 4220 void set functionDefinition(Token functionDefinition2) { | 4220 void set functionDefinition(Token functionDefinition2) { |
| 4221 this._functionDefinition = functionDefinition2; | 4221 this._functionDefinition = functionDefinition2; |
| 4222 } | 4222 } |
| 4223 /** | 4223 /** |
| 4224 * Set the semicolon terminating the statement to the given token. | 4224 * Set the semicolon terminating the statement to the given token. |
| 4225 * @param semicolon the semicolon terminating the statement | 4225 * @param semicolon the semicolon terminating the statement |
| 4226 */ | 4226 */ |
| 4227 void set semicolon(Token semicolon8) { | 4227 void set semicolon(Token semicolon2) { |
| 4228 this._semicolon = semicolon8; | 4228 this._semicolon = semicolon2; |
| 4229 } | 4229 } |
| 4230 void visitChildren(ASTVisitor<Object> visitor) { | 4230 void visitChildren(ASTVisitor<Object> visitor) { |
| 4231 safelyVisitChild(_expression, visitor); | 4231 safelyVisitChild(_expression, visitor); |
| 4232 } | 4232 } |
| 4233 } | 4233 } |
| 4234 /** | 4234 /** |
| 4235 * Instances of the class {@code ExpressionStatement} wrap an expression as a st
atement. | 4235 * Instances of the class {@code ExpressionStatement} wrap an expression as a st
atement. |
| 4236 * <pre> | 4236 * <pre> |
| 4237 * expressionStatement ::={@link Expression expression}? ';' | 4237 * expressionStatement ::={@link Expression expression}? ';' |
| 4238 * </pre> | 4238 * </pre> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4279 /** | 4279 /** |
| 4280 * Return the semicolon terminating the statement. | 4280 * Return the semicolon terminating the statement. |
| 4281 * @return the semicolon terminating the statement | 4281 * @return the semicolon terminating the statement |
| 4282 */ | 4282 */ |
| 4283 Token get semicolon => _semicolon; | 4283 Token get semicolon => _semicolon; |
| 4284 bool isSynthetic() => _expression.isSynthetic() && _semicolon.isSynthetic(); | 4284 bool isSynthetic() => _expression.isSynthetic() && _semicolon.isSynthetic(); |
| 4285 /** | 4285 /** |
| 4286 * Set the expression that comprises the statement to the given expression. | 4286 * Set the expression that comprises the statement to the given expression. |
| 4287 * @param expression the expression that comprises the statement | 4287 * @param expression the expression that comprises the statement |
| 4288 */ | 4288 */ |
| 4289 void set expression(Expression expression5) { | 4289 void set expression(Expression expression2) { |
| 4290 this._expression = becomeParentOf(expression5); | 4290 this._expression = becomeParentOf(expression2); |
| 4291 } | 4291 } |
| 4292 /** | 4292 /** |
| 4293 * Set the semicolon terminating the statement to the given token. | 4293 * Set the semicolon terminating the statement to the given token. |
| 4294 * @param semicolon the semicolon terminating the statement | 4294 * @param semicolon the semicolon terminating the statement |
| 4295 */ | 4295 */ |
| 4296 void set semicolon(Token semicolon9) { | 4296 void set semicolon(Token semicolon2) { |
| 4297 this._semicolon = semicolon9; | 4297 this._semicolon = semicolon2; |
| 4298 } | 4298 } |
| 4299 void visitChildren(ASTVisitor<Object> visitor) { | 4299 void visitChildren(ASTVisitor<Object> visitor) { |
| 4300 safelyVisitChild(_expression, visitor); | 4300 safelyVisitChild(_expression, visitor); |
| 4301 } | 4301 } |
| 4302 } | 4302 } |
| 4303 /** | 4303 /** |
| 4304 * Instances of the class {@code ExtendsClause} represent the "extends" clause i
n a class | 4304 * Instances of the class {@code ExtendsClause} represent the "extends" clause i
n a class |
| 4305 * declaration. | 4305 * declaration. |
| 4306 * <pre> | 4306 * <pre> |
| 4307 * extendsClause ::= | 4307 * extendsClause ::= |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4342 Token get keyword => _keyword; | 4342 Token get keyword => _keyword; |
| 4343 /** | 4343 /** |
| 4344 * Return the name of the class that is being extended. | 4344 * Return the name of the class that is being extended. |
| 4345 * @return the name of the class that is being extended | 4345 * @return the name of the class that is being extended |
| 4346 */ | 4346 */ |
| 4347 TypeName get superclass => _superclass; | 4347 TypeName get superclass => _superclass; |
| 4348 /** | 4348 /** |
| 4349 * Set the token representing the 'extends' keyword to the given token. | 4349 * Set the token representing the 'extends' keyword to the given token. |
| 4350 * @param keyword the token representing the 'extends' keyword | 4350 * @param keyword the token representing the 'extends' keyword |
| 4351 */ | 4351 */ |
| 4352 void set keyword(Token keyword9) { | 4352 void set keyword(Token keyword2) { |
| 4353 this._keyword = keyword9; | 4353 this._keyword = keyword2; |
| 4354 } | 4354 } |
| 4355 /** | 4355 /** |
| 4356 * Set the name of the class that is being extended to the given name. | 4356 * Set the name of the class that is being extended to the given name. |
| 4357 * @param name the name of the class that is being extended | 4357 * @param name the name of the class that is being extended |
| 4358 */ | 4358 */ |
| 4359 void set superclass(TypeName name) { | 4359 void set superclass(TypeName name) { |
| 4360 _superclass = becomeParentOf(name); | 4360 _superclass = becomeParentOf(name); |
| 4361 } | 4361 } |
| 4362 void visitChildren(ASTVisitor<Object> visitor) { | 4362 void visitChildren(ASTVisitor<Object> visitor) { |
| 4363 safelyVisitChild(_superclass, visitor); | 4363 safelyVisitChild(_superclass, visitor); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4430 * Set the fields being declared to the given list of variables. | 4430 * Set the fields being declared to the given list of variables. |
| 4431 * @param fieldList the fields being declared | 4431 * @param fieldList the fields being declared |
| 4432 */ | 4432 */ |
| 4433 void set fields(VariableDeclarationList fieldList) { | 4433 void set fields(VariableDeclarationList fieldList) { |
| 4434 fieldList = becomeParentOf(fieldList); | 4434 fieldList = becomeParentOf(fieldList); |
| 4435 } | 4435 } |
| 4436 /** | 4436 /** |
| 4437 * Set the token representing the 'static' keyword to the given token. | 4437 * Set the token representing the 'static' keyword to the given token. |
| 4438 * @param keyword the token representing the 'static' keyword | 4438 * @param keyword the token representing the 'static' keyword |
| 4439 */ | 4439 */ |
| 4440 void set keyword(Token keyword10) { | 4440 void set keyword(Token keyword2) { |
| 4441 this._keyword = keyword10; | 4441 this._keyword = keyword2; |
| 4442 } | 4442 } |
| 4443 /** | 4443 /** |
| 4444 * Set the semicolon terminating the declaration to the given token. | 4444 * Set the semicolon terminating the declaration to the given token. |
| 4445 * @param semicolon the semicolon terminating the declaration | 4445 * @param semicolon the semicolon terminating the declaration |
| 4446 */ | 4446 */ |
| 4447 void set semicolon(Token semicolon10) { | 4447 void set semicolon(Token semicolon2) { |
| 4448 this._semicolon = semicolon10; | 4448 this._semicolon = semicolon2; |
| 4449 } | 4449 } |
| 4450 void visitChildren(ASTVisitor<Object> visitor) { | 4450 void visitChildren(ASTVisitor<Object> visitor) { |
| 4451 super.visitChildren(visitor); | 4451 super.visitChildren(visitor); |
| 4452 safelyVisitChild(_fieldList, visitor); | 4452 safelyVisitChild(_fieldList, visitor); |
| 4453 } | 4453 } |
| 4454 Token get firstTokenAfterCommentAndMetadata { | 4454 Token get firstTokenAfterCommentAndMetadata { |
| 4455 if (_keyword != null) { | 4455 if (_keyword != null) { |
| 4456 return _keyword; | 4456 return _keyword; |
| 4457 } | 4457 } |
| 4458 return _fieldList.beginToken; | 4458 return _fieldList.beginToken; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4541 * not have a declared type. | 4541 * not have a declared type. |
| 4542 * @return the name of the declared type of the parameter | 4542 * @return the name of the declared type of the parameter |
| 4543 */ | 4543 */ |
| 4544 TypeName get type => _type; | 4544 TypeName get type => _type; |
| 4545 bool isConst() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.CONST); | 4545 bool isConst() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.CONST); |
| 4546 bool isFinal() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.FINAL); | 4546 bool isFinal() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.FINAL); |
| 4547 /** | 4547 /** |
| 4548 * Set the token representing either the 'final', 'const' or 'var' keyword to
the given token. | 4548 * Set the token representing either the 'final', 'const' or 'var' keyword to
the given token. |
| 4549 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword | 4549 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword |
| 4550 */ | 4550 */ |
| 4551 void set keyword(Token keyword11) { | 4551 void set keyword(Token keyword2) { |
| 4552 this._keyword = keyword11; | 4552 this._keyword = keyword2; |
| 4553 } | 4553 } |
| 4554 /** | 4554 /** |
| 4555 * Set the token representing the period to the given token. | 4555 * Set the token representing the period to the given token. |
| 4556 * @param period the token representing the period | 4556 * @param period the token representing the period |
| 4557 */ | 4557 */ |
| 4558 void set period(Token period6) { | 4558 void set period(Token period2) { |
| 4559 this._period = period6; | 4559 this._period = period2; |
| 4560 } | 4560 } |
| 4561 /** | 4561 /** |
| 4562 * Set the token representing the 'this' keyword to the given token. | 4562 * Set the token representing the 'this' keyword to the given token. |
| 4563 * @param thisToken the token representing the 'this' keyword | 4563 * @param thisToken the token representing the 'this' keyword |
| 4564 */ | 4564 */ |
| 4565 void set thisToken(Token thisToken2) { | 4565 void set thisToken(Token thisToken2) { |
| 4566 this._thisToken = thisToken2; | 4566 this._thisToken = thisToken2; |
| 4567 } | 4567 } |
| 4568 /** | 4568 /** |
| 4569 * Set the name of the declared type of the parameter to the given type name. | 4569 * Set the name of the declared type of the parameter to the given type name. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4705 * Set the expression evaluated to produce the iterator to the given expressio
n. | 4705 * Set the expression evaluated to produce the iterator to the given expressio
n. |
| 4706 * @param expression the expression evaluated to produce the iterator | 4706 * @param expression the expression evaluated to produce the iterator |
| 4707 */ | 4707 */ |
| 4708 void set iterator(Expression expression) { | 4708 void set iterator(Expression expression) { |
| 4709 _iterator = becomeParentOf(expression); | 4709 _iterator = becomeParentOf(expression); |
| 4710 } | 4710 } |
| 4711 /** | 4711 /** |
| 4712 * Set the left parenthesis to the given token. | 4712 * Set the left parenthesis to the given token. |
| 4713 * @param leftParenthesis the left parenthesis | 4713 * @param leftParenthesis the left parenthesis |
| 4714 */ | 4714 */ |
| 4715 void set leftParenthesis(Token leftParenthesis3) { | 4715 void set leftParenthesis(Token leftParenthesis2) { |
| 4716 this._leftParenthesis = leftParenthesis3; | 4716 this._leftParenthesis = leftParenthesis2; |
| 4717 } | 4717 } |
| 4718 /** | 4718 /** |
| 4719 * Set the declaration of the loop variable to the given variable. | 4719 * Set the declaration of the loop variable to the given variable. |
| 4720 * @param variable the declaration of the loop variable | 4720 * @param variable the declaration of the loop variable |
| 4721 */ | 4721 */ |
| 4722 void set loopVariable(DeclaredIdentifier variable) { | 4722 void set loopVariable(DeclaredIdentifier variable) { |
| 4723 _loopVariable = becomeParentOf(variable); | 4723 _loopVariable = becomeParentOf(variable); |
| 4724 } | 4724 } |
| 4725 /** | 4725 /** |
| 4726 * Set the right parenthesis to the given token. | 4726 * Set the right parenthesis to the given token. |
| 4727 * @param rightParenthesis the right parenthesis | 4727 * @param rightParenthesis the right parenthesis |
| 4728 */ | 4728 */ |
| 4729 void set rightParenthesis(Token rightParenthesis3) { | 4729 void set rightParenthesis(Token rightParenthesis2) { |
| 4730 this._rightParenthesis = rightParenthesis3; | 4730 this._rightParenthesis = rightParenthesis2; |
| 4731 } | 4731 } |
| 4732 void visitChildren(ASTVisitor<Object> visitor) { | 4732 void visitChildren(ASTVisitor<Object> visitor) { |
| 4733 safelyVisitChild(_loopVariable, visitor); | 4733 safelyVisitChild(_loopVariable, visitor); |
| 4734 safelyVisitChild(_iterator, visitor); | 4734 safelyVisitChild(_iterator, visitor); |
| 4735 safelyVisitChild(_body, visitor); | 4735 safelyVisitChild(_body, visitor); |
| 4736 } | 4736 } |
| 4737 } | 4737 } |
| 4738 /** | 4738 /** |
| 4739 * Instances of the class {@code ForStatement} represent a for statement. | 4739 * Instances of the class {@code ForStatement} represent a for statement. |
| 4740 * <pre> | 4740 * <pre> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4880 NodeList<Expression> get updaters => _updaters; | 4880 NodeList<Expression> get updaters => _updaters; |
| 4881 /** | 4881 /** |
| 4882 * Return the declaration of the loop variables, or {@code null} if there are
no variables. | 4882 * Return the declaration of the loop variables, or {@code null} if there are
no variables. |
| 4883 * @return the declaration of the loop variables, or {@code null} if there are
no variables | 4883 * @return the declaration of the loop variables, or {@code null} if there are
no variables |
| 4884 */ | 4884 */ |
| 4885 VariableDeclarationList get variables => _variableList; | 4885 VariableDeclarationList get variables => _variableList; |
| 4886 /** | 4886 /** |
| 4887 * Set the body of the loop to the given statement. | 4887 * Set the body of the loop to the given statement. |
| 4888 * @param body the body of the loop | 4888 * @param body the body of the loop |
| 4889 */ | 4889 */ |
| 4890 void set body(Statement body3) { | 4890 void set body(Statement body2) { |
| 4891 this._body = becomeParentOf(body3); | 4891 this._body = becomeParentOf(body2); |
| 4892 } | 4892 } |
| 4893 /** | 4893 /** |
| 4894 * Set the condition used to determine when to terminate the loop to the given
expression. | 4894 * Set the condition used to determine when to terminate the loop to the given
expression. |
| 4895 * @param expression the condition used to determine when to terminate the loo
p | 4895 * @param expression the condition used to determine when to terminate the loo
p |
| 4896 */ | 4896 */ |
| 4897 void set condition(Expression expression) { | 4897 void set condition(Expression expression) { |
| 4898 _condition = becomeParentOf(expression); | 4898 _condition = becomeParentOf(expression); |
| 4899 } | 4899 } |
| 4900 /** | 4900 /** |
| 4901 * Set the token representing the 'for' keyword to the given token. | 4901 * Set the token representing the 'for' keyword to the given token. |
| 4902 * @param forKeyword the token representing the 'for' keyword | 4902 * @param forKeyword the token representing the 'for' keyword |
| 4903 */ | 4903 */ |
| 4904 void set forKeyword(Token forKeyword3) { | 4904 void set forKeyword(Token forKeyword2) { |
| 4905 this._forKeyword = forKeyword3; | 4905 this._forKeyword = forKeyword2; |
| 4906 } | 4906 } |
| 4907 /** | 4907 /** |
| 4908 * Set the initialization expression to the given expression. | 4908 * Set the initialization expression to the given expression. |
| 4909 * @param initialization the initialization expression | 4909 * @param initialization the initialization expression |
| 4910 */ | 4910 */ |
| 4911 void set initialization(Expression initialization2) { | 4911 void set initialization(Expression initialization2) { |
| 4912 this._initialization = becomeParentOf(initialization2); | 4912 this._initialization = becomeParentOf(initialization2); |
| 4913 } | 4913 } |
| 4914 /** | 4914 /** |
| 4915 * Set the left parenthesis to the given token. | 4915 * Set the left parenthesis to the given token. |
| 4916 * @param leftParenthesis the left parenthesis | 4916 * @param leftParenthesis the left parenthesis |
| 4917 */ | 4917 */ |
| 4918 void set leftParenthesis(Token leftParenthesis4) { | 4918 void set leftParenthesis(Token leftParenthesis2) { |
| 4919 this._leftParenthesis = leftParenthesis4; | 4919 this._leftParenthesis = leftParenthesis2; |
| 4920 } | 4920 } |
| 4921 /** | 4921 /** |
| 4922 * Set the semicolon separating the initializer and the condition to the given
token. | 4922 * Set the semicolon separating the initializer and the condition to the given
token. |
| 4923 * @param leftSeparator the semicolon separating the initializer and the condi
tion | 4923 * @param leftSeparator the semicolon separating the initializer and the condi
tion |
| 4924 */ | 4924 */ |
| 4925 void set leftSeparator(Token leftSeparator2) { | 4925 void set leftSeparator(Token leftSeparator2) { |
| 4926 this._leftSeparator = leftSeparator2; | 4926 this._leftSeparator = leftSeparator2; |
| 4927 } | 4927 } |
| 4928 /** | 4928 /** |
| 4929 * Set the right parenthesis to the given token. | 4929 * Set the right parenthesis to the given token. |
| 4930 * @param rightParenthesis the right parenthesis | 4930 * @param rightParenthesis the right parenthesis |
| 4931 */ | 4931 */ |
| 4932 void set rightParenthesis(Token rightParenthesis4) { | 4932 void set rightParenthesis(Token rightParenthesis2) { |
| 4933 this._rightParenthesis = rightParenthesis4; | 4933 this._rightParenthesis = rightParenthesis2; |
| 4934 } | 4934 } |
| 4935 /** | 4935 /** |
| 4936 * Set the semicolon separating the condition and the updater to the given tok
en. | 4936 * Set the semicolon separating the condition and the updater to the given tok
en. |
| 4937 * @param rightSeparator the semicolon separating the condition and the update
r | 4937 * @param rightSeparator the semicolon separating the condition and the update
r |
| 4938 */ | 4938 */ |
| 4939 void set rightSeparator(Token rightSeparator2) { | 4939 void set rightSeparator(Token rightSeparator2) { |
| 4940 this._rightSeparator = rightSeparator2; | 4940 this._rightSeparator = rightSeparator2; |
| 4941 } | 4941 } |
| 4942 /** | 4942 /** |
| 4943 * Set the declaration of the loop variables to the given parameter. | 4943 * Set the declaration of the loop variables to the given parameter. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4961 * formalParameter ::={@link NormalFormalParameter normalFormalParameter}| {@lin
k DefaultFormalParameter namedFormalParameter}| {@link DefaultFormalParameter op
tionalFormalParameter}</pre> | 4961 * formalParameter ::={@link NormalFormalParameter normalFormalParameter}| {@lin
k DefaultFormalParameter namedFormalParameter}| {@link DefaultFormalParameter op
tionalFormalParameter}</pre> |
| 4962 * @coverage dart.engine.ast | 4962 * @coverage dart.engine.ast |
| 4963 */ | 4963 */ |
| 4964 abstract class FormalParameter extends ASTNode { | 4964 abstract class FormalParameter extends ASTNode { |
| 4965 /** | 4965 /** |
| 4966 * Return the element representing this parameter, or {@code null} if this par
ameter has not been | 4966 * Return the element representing this parameter, or {@code null} if this par
ameter has not been |
| 4967 * resolved. | 4967 * resolved. |
| 4968 * @return the element representing this parameter | 4968 * @return the element representing this parameter |
| 4969 */ | 4969 */ |
| 4970 ParameterElement get element { | 4970 ParameterElement get element { |
| 4971 SimpleIdentifier identifier13 = identifier; | 4971 SimpleIdentifier identifier2 = identifier; |
| 4972 if (identifier13 == null) { | 4972 if (identifier2 == null) { |
| 4973 return null; | 4973 return null; |
| 4974 } | 4974 } |
| 4975 return identifier13.element as ParameterElement; | 4975 return identifier2.element as ParameterElement; |
| 4976 } | 4976 } |
| 4977 /** | 4977 /** |
| 4978 * Return the name of the parameter being declared. | 4978 * Return the name of the parameter being declared. |
| 4979 * @return the name of the parameter being declared | 4979 * @return the name of the parameter being declared |
| 4980 */ | 4980 */ |
| 4981 SimpleIdentifier get identifier; | 4981 SimpleIdentifier get identifier; |
| 4982 /** | 4982 /** |
| 4983 * Return the kind of this parameter. | 4983 * Return the kind of this parameter. |
| 4984 * @return the kind of this parameter | 4984 * @return the kind of this parameter |
| 4985 */ | 4985 */ |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5230 Token get propertyKeyword => _propertyKeyword; | 5230 Token get propertyKeyword => _propertyKeyword; |
| 5231 /** | 5231 /** |
| 5232 * Return the return type of the function, or {@code null} if no return type w
as declared. | 5232 * Return the return type of the function, or {@code null} if no return type w
as declared. |
| 5233 * @return the return type of the function | 5233 * @return the return type of the function |
| 5234 */ | 5234 */ |
| 5235 TypeName get returnType => _returnType; | 5235 TypeName get returnType => _returnType; |
| 5236 /** | 5236 /** |
| 5237 * Set the token representing the 'external' keyword to the given token. | 5237 * Set the token representing the 'external' keyword to the given token. |
| 5238 * @param externalKeyword the token representing the 'external' keyword | 5238 * @param externalKeyword the token representing the 'external' keyword |
| 5239 */ | 5239 */ |
| 5240 void set externalKeyword(Token externalKeyword3) { | 5240 void set externalKeyword(Token externalKeyword2) { |
| 5241 this._externalKeyword = externalKeyword3; | 5241 this._externalKeyword = externalKeyword2; |
| 5242 } | 5242 } |
| 5243 /** | 5243 /** |
| 5244 * Set the function expression being wrapped to the given function expression. | 5244 * Set the function expression being wrapped to the given function expression. |
| 5245 * @param functionExpression the function expression being wrapped | 5245 * @param functionExpression the function expression being wrapped |
| 5246 */ | 5246 */ |
| 5247 void set functionExpression(FunctionExpression functionExpression3) { | 5247 void set functionExpression(FunctionExpression functionExpression2) { |
| 5248 functionExpression3 = becomeParentOf(functionExpression3); | 5248 functionExpression2 = becomeParentOf(functionExpression2); |
| 5249 } | 5249 } |
| 5250 /** | 5250 /** |
| 5251 * Set the name of the function to the given identifier. | 5251 * Set the name of the function to the given identifier. |
| 5252 * @param identifier the name of the function | 5252 * @param identifier the name of the function |
| 5253 */ | 5253 */ |
| 5254 void set name(SimpleIdentifier identifier) { | 5254 void set name(SimpleIdentifier identifier) { |
| 5255 _name = becomeParentOf(identifier); | 5255 _name = becomeParentOf(identifier); |
| 5256 } | 5256 } |
| 5257 /** | 5257 /** |
| 5258 * Set the token representing the 'get' or 'set' keyword to the given token. | 5258 * Set the token representing the 'get' or 'set' keyword to the given token. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5400 * Set the body of the function to the given function body. | 5400 * Set the body of the function to the given function body. |
| 5401 * @param functionBody the body of the function | 5401 * @param functionBody the body of the function |
| 5402 */ | 5402 */ |
| 5403 void set body(FunctionBody functionBody) { | 5403 void set body(FunctionBody functionBody) { |
| 5404 _body = becomeParentOf(functionBody); | 5404 _body = becomeParentOf(functionBody); |
| 5405 } | 5405 } |
| 5406 /** | 5406 /** |
| 5407 * Set the element associated with this function to the given element. | 5407 * Set the element associated with this function to the given element. |
| 5408 * @param element the element associated with this function | 5408 * @param element the element associated with this function |
| 5409 */ | 5409 */ |
| 5410 void set element(ExecutableElement element9) { | 5410 void set element(ExecutableElement element2) { |
| 5411 this._element = element9; | 5411 this._element = element2; |
| 5412 } | 5412 } |
| 5413 /** | 5413 /** |
| 5414 * Set the parameters associated with the function to the given list of parame
ters. | 5414 * Set the parameters associated with the function to the given list of parame
ters. |
| 5415 * @param parameters the parameters associated with the function | 5415 * @param parameters the parameters associated with the function |
| 5416 */ | 5416 */ |
| 5417 void set parameters(FormalParameterList parameters3) { | 5417 void set parameters(FormalParameterList parameters2) { |
| 5418 this._parameters = becomeParentOf(parameters3); | 5418 this._parameters = becomeParentOf(parameters2); |
| 5419 } | 5419 } |
| 5420 void visitChildren(ASTVisitor<Object> visitor) { | 5420 void visitChildren(ASTVisitor<Object> visitor) { |
| 5421 safelyVisitChild(_parameters, visitor); | 5421 safelyVisitChild(_parameters, visitor); |
| 5422 safelyVisitChild(_body, visitor); | 5422 safelyVisitChild(_body, visitor); |
| 5423 } | 5423 } |
| 5424 } | 5424 } |
| 5425 /** | 5425 /** |
| 5426 * Instances of the class {@code FunctionExpressionInvocation} represent the inv
ocation of a | 5426 * Instances of the class {@code FunctionExpressionInvocation} represent the inv
ocation of a |
| 5427 * function resulting from evaluating an expression. Invocations of methods and
other forms of | 5427 * function resulting from evaluating an expression. Invocations of methods and
other forms of |
| 5428 * functions are represented by {@link MethodInvocation method invocation} nodes
. Invocations of | 5428 * functions are represented by {@link MethodInvocation method invocation} nodes
. Invocations of |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5477 Token get endToken => _argumentList.endToken; | 5477 Token get endToken => _argumentList.endToken; |
| 5478 /** | 5478 /** |
| 5479 * Return the expression producing the function being invoked. | 5479 * Return the expression producing the function being invoked. |
| 5480 * @return the expression producing the function being invoked | 5480 * @return the expression producing the function being invoked |
| 5481 */ | 5481 */ |
| 5482 Expression get function => _function; | 5482 Expression get function => _function; |
| 5483 /** | 5483 /** |
| 5484 * Set the list of arguments to the method to the given list. | 5484 * Set the list of arguments to the method to the given list. |
| 5485 * @param argumentList the list of arguments to the method | 5485 * @param argumentList the list of arguments to the method |
| 5486 */ | 5486 */ |
| 5487 void set argumentList(ArgumentList argumentList5) { | 5487 void set argumentList(ArgumentList argumentList2) { |
| 5488 this._argumentList = becomeParentOf(argumentList5); | 5488 this._argumentList = becomeParentOf(argumentList2); |
| 5489 } | 5489 } |
| 5490 /** | 5490 /** |
| 5491 * Set the element associated with the function being invoked to the given ele
ment. | 5491 * Set the element associated with the function being invoked to the given ele
ment. |
| 5492 * @param element the element associated with the function being invoked | 5492 * @param element the element associated with the function being invoked |
| 5493 */ | 5493 */ |
| 5494 void set element(ExecutableElement element10) { | 5494 void set element(ExecutableElement element2) { |
| 5495 this._element = element10; | 5495 this._element = element2; |
| 5496 } | 5496 } |
| 5497 /** | 5497 /** |
| 5498 * Set the expression producing the function being invoked to the given expres
sion. | 5498 * Set the expression producing the function being invoked to the given expres
sion. |
| 5499 * @param function the expression producing the function being invoked | 5499 * @param function the expression producing the function being invoked |
| 5500 */ | 5500 */ |
| 5501 void set function(Expression function2) { | 5501 void set function(Expression function2) { |
| 5502 function2 = becomeParentOf(function2); | 5502 function2 = becomeParentOf(function2); |
| 5503 } | 5503 } |
| 5504 void visitChildren(ASTVisitor<Object> visitor) { | 5504 void visitChildren(ASTVisitor<Object> visitor) { |
| 5505 safelyVisitChild(_function, visitor); | 5505 safelyVisitChild(_function, visitor); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5583 /** | 5583 /** |
| 5584 * Return the type parameters for the function type, or {@code null} if the fu
nction type does not | 5584 * Return the type parameters for the function type, or {@code null} if the fu
nction type does not |
| 5585 * have any type parameters. | 5585 * have any type parameters. |
| 5586 * @return the type parameters for the function type | 5586 * @return the type parameters for the function type |
| 5587 */ | 5587 */ |
| 5588 TypeParameterList get typeParameters => _typeParameters; | 5588 TypeParameterList get typeParameters => _typeParameters; |
| 5589 /** | 5589 /** |
| 5590 * Set the name of the function type being declared to the given identifier. | 5590 * Set the name of the function type being declared to the given identifier. |
| 5591 * @param name the name of the function type being declared | 5591 * @param name the name of the function type being declared |
| 5592 */ | 5592 */ |
| 5593 void set name(SimpleIdentifier name6) { | 5593 void set name(SimpleIdentifier name2) { |
| 5594 this._name = becomeParentOf(name6); | 5594 this._name = becomeParentOf(name2); |
| 5595 } | 5595 } |
| 5596 /** | 5596 /** |
| 5597 * Set the parameters associated with the function type to the given list of p
arameters. | 5597 * Set the parameters associated with the function type to the given list of p
arameters. |
| 5598 * @param parameters the parameters associated with the function type | 5598 * @param parameters the parameters associated with the function type |
| 5599 */ | 5599 */ |
| 5600 void set parameters(FormalParameterList parameters4) { | 5600 void set parameters(FormalParameterList parameters2) { |
| 5601 this._parameters = becomeParentOf(parameters4); | 5601 this._parameters = becomeParentOf(parameters2); |
| 5602 } | 5602 } |
| 5603 /** | 5603 /** |
| 5604 * Set the name of the return type of the function type being defined to the g
iven type name. | 5604 * Set the name of the return type of the function type being defined to the g
iven type name. |
| 5605 * @param typeName the name of the return type of the function type being defi
ned | 5605 * @param typeName the name of the return type of the function type being defi
ned |
| 5606 */ | 5606 */ |
| 5607 void set returnType(TypeName typeName) { | 5607 void set returnType(TypeName typeName) { |
| 5608 _returnType = becomeParentOf(typeName); | 5608 _returnType = becomeParentOf(typeName); |
| 5609 } | 5609 } |
| 5610 /** | 5610 /** |
| 5611 * Set the type parameters for the function type to the given list of paramete
rs. | 5611 * Set the type parameters for the function type to the given list of paramete
rs. |
| 5612 * @param typeParameters the type parameters for the function type | 5612 * @param typeParameters the type parameters for the function type |
| 5613 */ | 5613 */ |
| 5614 void set typeParameters(TypeParameterList typeParameters4) { | 5614 void set typeParameters(TypeParameterList typeParameters2) { |
| 5615 this._typeParameters = becomeParentOf(typeParameters4); | 5615 this._typeParameters = becomeParentOf(typeParameters2); |
| 5616 } | 5616 } |
| 5617 void visitChildren(ASTVisitor<Object> visitor) { | 5617 void visitChildren(ASTVisitor<Object> visitor) { |
| 5618 super.visitChildren(visitor); | 5618 super.visitChildren(visitor); |
| 5619 safelyVisitChild(_returnType, visitor); | 5619 safelyVisitChild(_returnType, visitor); |
| 5620 safelyVisitChild(_name, visitor); | 5620 safelyVisitChild(_name, visitor); |
| 5621 safelyVisitChild(_typeParameters, visitor); | 5621 safelyVisitChild(_typeParameters, visitor); |
| 5622 safelyVisitChild(_parameters, visitor); | 5622 safelyVisitChild(_parameters, visitor); |
| 5623 } | 5623 } |
| 5624 } | 5624 } |
| 5625 /** | 5625 /** |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5679 * type. | 5679 * type. |
| 5680 * @return the return type of the function | 5680 * @return the return type of the function |
| 5681 */ | 5681 */ |
| 5682 TypeName get returnType => _returnType; | 5682 TypeName get returnType => _returnType; |
| 5683 bool isConst() => false; | 5683 bool isConst() => false; |
| 5684 bool isFinal() => false; | 5684 bool isFinal() => false; |
| 5685 /** | 5685 /** |
| 5686 * Set the parameters of the function-typed parameter to the given parameters. | 5686 * Set the parameters of the function-typed parameter to the given parameters. |
| 5687 * @param parameters the parameters of the function-typed parameter | 5687 * @param parameters the parameters of the function-typed parameter |
| 5688 */ | 5688 */ |
| 5689 void set parameters(FormalParameterList parameters5) { | 5689 void set parameters(FormalParameterList parameters2) { |
| 5690 this._parameters = becomeParentOf(parameters5); | 5690 this._parameters = becomeParentOf(parameters2); |
| 5691 } | 5691 } |
| 5692 /** | 5692 /** |
| 5693 * Set the return type of the function to the given type. | 5693 * Set the return type of the function to the given type. |
| 5694 * @param returnType the return type of the function | 5694 * @param returnType the return type of the function |
| 5695 */ | 5695 */ |
| 5696 void set returnType(TypeName returnType2) { | 5696 void set returnType(TypeName returnType2) { |
| 5697 this._returnType = becomeParentOf(returnType2); | 5697 this._returnType = becomeParentOf(returnType2); |
| 5698 } | 5698 } |
| 5699 void visitChildren(ASTVisitor<Object> visitor) { | 5699 void visitChildren(ASTVisitor<Object> visitor) { |
| 5700 super.visitChildren(visitor); | 5700 super.visitChildren(visitor); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5910 * Set the token representing the 'if' keyword to the given token. | 5910 * Set the token representing the 'if' keyword to the given token. |
| 5911 * @param ifKeyword the token representing the 'if' keyword | 5911 * @param ifKeyword the token representing the 'if' keyword |
| 5912 */ | 5912 */ |
| 5913 void set ifKeyword(Token ifKeyword2) { | 5913 void set ifKeyword(Token ifKeyword2) { |
| 5914 this._ifKeyword = ifKeyword2; | 5914 this._ifKeyword = ifKeyword2; |
| 5915 } | 5915 } |
| 5916 /** | 5916 /** |
| 5917 * Set the left parenthesis to the given token. | 5917 * Set the left parenthesis to the given token. |
| 5918 * @param leftParenthesis the left parenthesis | 5918 * @param leftParenthesis the left parenthesis |
| 5919 */ | 5919 */ |
| 5920 void set leftParenthesis(Token leftParenthesis5) { | 5920 void set leftParenthesis(Token leftParenthesis2) { |
| 5921 this._leftParenthesis = leftParenthesis5; | 5921 this._leftParenthesis = leftParenthesis2; |
| 5922 } | 5922 } |
| 5923 /** | 5923 /** |
| 5924 * Set the right parenthesis to the given token. | 5924 * Set the right parenthesis to the given token. |
| 5925 * @param rightParenthesis the right parenthesis | 5925 * @param rightParenthesis the right parenthesis |
| 5926 */ | 5926 */ |
| 5927 void set rightParenthesis(Token rightParenthesis5) { | 5927 void set rightParenthesis(Token rightParenthesis2) { |
| 5928 this._rightParenthesis = rightParenthesis5; | 5928 this._rightParenthesis = rightParenthesis2; |
| 5929 } | 5929 } |
| 5930 /** | 5930 /** |
| 5931 * Set the statement that is executed if the condition evaluates to {@code tru
e} to the given | 5931 * Set the statement that is executed if the condition evaluates to {@code tru
e} to the given |
| 5932 * statement. | 5932 * statement. |
| 5933 * @param statement the statement that is executed if the condition evaluates
to {@code true} | 5933 * @param statement the statement that is executed if the condition evaluates
to {@code true} |
| 5934 */ | 5934 */ |
| 5935 void set thenStatement(Statement statement) { | 5935 void set thenStatement(Statement statement) { |
| 5936 _thenStatement = becomeParentOf(statement); | 5936 _thenStatement = becomeParentOf(statement); |
| 5937 } | 5937 } |
| 5938 void visitChildren(ASTVisitor<Object> visitor) { | 5938 void visitChildren(ASTVisitor<Object> visitor) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5985 NodeList<TypeName> get interfaces => _interfaces; | 5985 NodeList<TypeName> get interfaces => _interfaces; |
| 5986 /** | 5986 /** |
| 5987 * Return the token representing the 'implements' keyword. | 5987 * Return the token representing the 'implements' keyword. |
| 5988 * @return the token representing the 'implements' keyword | 5988 * @return the token representing the 'implements' keyword |
| 5989 */ | 5989 */ |
| 5990 Token get keyword => _keyword; | 5990 Token get keyword => _keyword; |
| 5991 /** | 5991 /** |
| 5992 * Set the token representing the 'implements' keyword to the given token. | 5992 * Set the token representing the 'implements' keyword to the given token. |
| 5993 * @param keyword the token representing the 'implements' keyword | 5993 * @param keyword the token representing the 'implements' keyword |
| 5994 */ | 5994 */ |
| 5995 void set keyword(Token keyword12) { | 5995 void set keyword(Token keyword2) { |
| 5996 this._keyword = keyword12; | 5996 this._keyword = keyword2; |
| 5997 } | 5997 } |
| 5998 void visitChildren(ASTVisitor<Object> visitor) { | 5998 void visitChildren(ASTVisitor<Object> visitor) { |
| 5999 _interfaces.accept(visitor); | 5999 _interfaces.accept(visitor); |
| 6000 } | 6000 } |
| 6001 } | 6001 } |
| 6002 /** | 6002 /** |
| 6003 * Instances of the class {@code ImportDirective} represent an import directive. | 6003 * Instances of the class {@code ImportDirective} represent an import directive. |
| 6004 * <pre> | 6004 * <pre> |
| 6005 * importDirective ::={@link Annotation metadata} 'import' {@link StringLiteral
libraryUri} ('as' identifier)? {@link Combinator combinator}* ';' | 6005 * importDirective ::={@link Annotation metadata} 'import' {@link StringLiteral
libraryUri} ('as' identifier)? {@link Combinator combinator}* ';' |
| 6006 * </pre> | 6006 * </pre> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6111 * resolved or if the operator could not be resolved. | 6111 * resolved or if the operator could not be resolved. |
| 6112 */ | 6112 */ |
| 6113 MethodElement _element; | 6113 MethodElement _element; |
| 6114 /** | 6114 /** |
| 6115 * Initialize a newly created index expression. | 6115 * Initialize a newly created index expression. |
| 6116 * @param target the expression used to compute the object being indexed | 6116 * @param target the expression used to compute the object being indexed |
| 6117 * @param leftBracket the left square bracket | 6117 * @param leftBracket the left square bracket |
| 6118 * @param index the expression used to compute the index | 6118 * @param index the expression used to compute the index |
| 6119 * @param rightBracket the right square bracket | 6119 * @param rightBracket the right square bracket |
| 6120 */ | 6120 */ |
| 6121 IndexExpression.forTarget_full(Expression target3, Token leftBracket4, Express
ion index2, Token rightBracket4) { | 6121 IndexExpression.forTarget_full(Expression target2, Token leftBracket2, Express
ion index2, Token rightBracket2) { |
| 6122 _jtd_constructor_58_impl(target3, leftBracket4, index2, rightBracket4); | 6122 _jtd_constructor_58_impl(target2, leftBracket2, index2, rightBracket2); |
| 6123 } | 6123 } |
| 6124 /** | 6124 /** |
| 6125 * Initialize a newly created index expression. | 6125 * Initialize a newly created index expression. |
| 6126 * @param target the expression used to compute the object being indexed | 6126 * @param target the expression used to compute the object being indexed |
| 6127 * @param leftBracket the left square bracket | 6127 * @param leftBracket the left square bracket |
| 6128 * @param index the expression used to compute the index | 6128 * @param index the expression used to compute the index |
| 6129 * @param rightBracket the right square bracket | 6129 * @param rightBracket the right square bracket |
| 6130 */ | 6130 */ |
| 6131 IndexExpression.forTarget({Expression target3, Token leftBracket4, Expression
index2, Token rightBracket4}) : this.forTarget_full(target3, leftBracket4, index
2, rightBracket4); | 6131 IndexExpression.forTarget({Expression target2, Token leftBracket2, Expression
index2, Token rightBracket2}) : this.forTarget_full(target2, leftBracket2, index
2, rightBracket2); |
| 6132 _jtd_constructor_58_impl(Expression target3, Token leftBracket4, Expression in
dex2, Token rightBracket4) { | 6132 _jtd_constructor_58_impl(Expression target2, Token leftBracket2, Expression in
dex2, Token rightBracket2) { |
| 6133 this._target = becomeParentOf(target3); | 6133 this._target = becomeParentOf(target2); |
| 6134 this._leftBracket = leftBracket4; | 6134 this._leftBracket = leftBracket2; |
| 6135 this._index = becomeParentOf(index2); | 6135 this._index = becomeParentOf(index2); |
| 6136 this._rightBracket = rightBracket4; | 6136 this._rightBracket = rightBracket2; |
| 6137 } | 6137 } |
| 6138 /** | 6138 /** |
| 6139 * Initialize a newly created index expression. | 6139 * Initialize a newly created index expression. |
| 6140 * @param period the period ("..") before a cascaded index expression | 6140 * @param period the period ("..") before a cascaded index expression |
| 6141 * @param leftBracket the left square bracket | 6141 * @param leftBracket the left square bracket |
| 6142 * @param index the expression used to compute the index | 6142 * @param index the expression used to compute the index |
| 6143 * @param rightBracket the right square bracket | 6143 * @param rightBracket the right square bracket |
| 6144 */ | 6144 */ |
| 6145 IndexExpression.forCascade_full(Token period7, Token leftBracket5, Expression
index3, Token rightBracket5) { | 6145 IndexExpression.forCascade_full(Token period2, Token leftBracket2, Expression
index2, Token rightBracket2) { |
| 6146 _jtd_constructor_59_impl(period7, leftBracket5, index3, rightBracket5); | 6146 _jtd_constructor_59_impl(period2, leftBracket2, index2, rightBracket2); |
| 6147 } | 6147 } |
| 6148 /** | 6148 /** |
| 6149 * Initialize a newly created index expression. | 6149 * Initialize a newly created index expression. |
| 6150 * @param period the period ("..") before a cascaded index expression | 6150 * @param period the period ("..") before a cascaded index expression |
| 6151 * @param leftBracket the left square bracket | 6151 * @param leftBracket the left square bracket |
| 6152 * @param index the expression used to compute the index | 6152 * @param index the expression used to compute the index |
| 6153 * @param rightBracket the right square bracket | 6153 * @param rightBracket the right square bracket |
| 6154 */ | 6154 */ |
| 6155 IndexExpression.forCascade({Token period7, Token leftBracket5, Expression inde
x3, Token rightBracket5}) : this.forCascade_full(period7, leftBracket5, index3,
rightBracket5); | 6155 IndexExpression.forCascade({Token period2, Token leftBracket2, Expression inde
x2, Token rightBracket2}) : this.forCascade_full(period2, leftBracket2, index2,
rightBracket2); |
| 6156 _jtd_constructor_59_impl(Token period7, Token leftBracket5, Expression index3,
Token rightBracket5) { | 6156 _jtd_constructor_59_impl(Token period2, Token leftBracket2, Expression index2,
Token rightBracket2) { |
| 6157 this._period = period7; | 6157 this._period = period2; |
| 6158 this._leftBracket = leftBracket5; | 6158 this._leftBracket = leftBracket2; |
| 6159 this._index = becomeParentOf(index3); | 6159 this._index = becomeParentOf(index2); |
| 6160 this._rightBracket = rightBracket5; | 6160 this._rightBracket = rightBracket2; |
| 6161 } | 6161 } |
| 6162 accept(ASTVisitor visitor) => visitor.visitIndexExpression(this); | 6162 accept(ASTVisitor visitor) => visitor.visitIndexExpression(this); |
| 6163 /** | 6163 /** |
| 6164 * Return the expression used to compute the object being indexed, or {@code n
ull} if this index | 6164 * Return the expression used to compute the object being indexed, or {@code n
ull} if this index |
| 6165 * expression is part of a cascade expression. | 6165 * expression is part of a cascade expression. |
| 6166 * @return the expression used to compute the object being indexed | 6166 * @return the expression used to compute the object being indexed |
| 6167 * @see #getRealTarget() | 6167 * @see #getRealTarget() |
| 6168 */ | 6168 */ |
| 6169 Expression get array => _target; | 6169 Expression get array => _target; |
| 6170 Token get beginToken { | 6170 Token get beginToken { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6224 */ | 6224 */ |
| 6225 Token get rightBracket => _rightBracket; | 6225 Token get rightBracket => _rightBracket; |
| 6226 /** | 6226 /** |
| 6227 * Return {@code true} if this expression is computing a right-hand value. | 6227 * Return {@code true} if this expression is computing a right-hand value. |
| 6228 * <p> | 6228 * <p> |
| 6229 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are | 6229 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are |
| 6230 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. | 6230 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. |
| 6231 * @return {@code true} if this expression is in a context where the operator
'[]' will be invoked | 6231 * @return {@code true} if this expression is in a context where the operator
'[]' will be invoked |
| 6232 */ | 6232 */ |
| 6233 bool inGetterContext() { | 6233 bool inGetterContext() { |
| 6234 ASTNode parent4 = parent; | 6234 ASTNode parent2 = parent; |
| 6235 if (parent4 is AssignmentExpression) { | 6235 if (parent2 is AssignmentExpression) { |
| 6236 AssignmentExpression assignment = parent4 as AssignmentExpression; | 6236 AssignmentExpression assignment = parent2 as AssignmentExpression; |
| 6237 if (identical(assignment.leftHandSide, this) && identical(assignment.opera
tor.type, TokenType.EQ)) { | 6237 if (identical(assignment.leftHandSide, this) && identical(assignment.opera
tor.type, TokenType.EQ)) { |
| 6238 return false; | 6238 return false; |
| 6239 } | 6239 } |
| 6240 } | 6240 } |
| 6241 return true; | 6241 return true; |
| 6242 } | 6242 } |
| 6243 /** | 6243 /** |
| 6244 * Return {@code true} if this expression is computing a left-hand value. | 6244 * Return {@code true} if this expression is computing a left-hand value. |
| 6245 * <p> | 6245 * <p> |
| 6246 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are | 6246 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are |
| 6247 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. | 6247 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. |
| 6248 * @return {@code true} if this expression is in a context where the operator
'[]=' will be | 6248 * @return {@code true} if this expression is in a context where the operator
'[]=' will be |
| 6249 * invoked | 6249 * invoked |
| 6250 */ | 6250 */ |
| 6251 bool inSetterContext() { | 6251 bool inSetterContext() { |
| 6252 ASTNode parent5 = parent; | 6252 ASTNode parent2 = parent; |
| 6253 if (parent5 is PrefixExpression) { | 6253 if (parent2 is PrefixExpression) { |
| 6254 return ((parent5 as PrefixExpression)).operator.type.isIncrementOperator()
; | 6254 return ((parent2 as PrefixExpression)).operator.type.isIncrementOperator()
; |
| 6255 } else if (parent5 is PostfixExpression) { | 6255 } else if (parent2 is PostfixExpression) { |
| 6256 return true; | 6256 return true; |
| 6257 } else if (parent5 is AssignmentExpression) { | 6257 } else if (parent2 is AssignmentExpression) { |
| 6258 return identical(((parent5 as AssignmentExpression)).leftHandSide, this); | 6258 return identical(((parent2 as AssignmentExpression)).leftHandSide, this); |
| 6259 } | 6259 } |
| 6260 return false; | 6260 return false; |
| 6261 } | 6261 } |
| 6262 bool isAssignable() => true; | 6262 bool isAssignable() => true; |
| 6263 /** | 6263 /** |
| 6264 * Return {@code true} if this expression is cascaded. If it is, then the targ
et of this | 6264 * Return {@code true} if this expression is cascaded. If it is, then the targ
et of this |
| 6265 * expression is not stored locally but is stored in the nearest ancestor that
is a{@link CascadeExpression}. | 6265 * expression is not stored locally but is stored in the nearest ancestor that
is a{@link CascadeExpression}. |
| 6266 * @return {@code true} if this expression is cascaded | 6266 * @return {@code true} if this expression is cascaded |
| 6267 */ | 6267 */ |
| 6268 bool isCascaded() => _period != null; | 6268 bool isCascaded() => _period != null; |
| 6269 /** | 6269 /** |
| 6270 * Set the expression used to compute the object being indexed to the given ex
pression. | 6270 * Set the expression used to compute the object being indexed to the given ex
pression. |
| 6271 * @param expression the expression used to compute the object being indexed | 6271 * @param expression the expression used to compute the object being indexed |
| 6272 */ | 6272 */ |
| 6273 void set array(Expression expression) { | 6273 void set array(Expression expression) { |
| 6274 _target = becomeParentOf(expression); | 6274 _target = becomeParentOf(expression); |
| 6275 } | 6275 } |
| 6276 /** | 6276 /** |
| 6277 * Set the element associated with the operator to the given element. | 6277 * Set the element associated with the operator to the given element. |
| 6278 * @param element the element associated with this operator | 6278 * @param element the element associated with this operator |
| 6279 */ | 6279 */ |
| 6280 void set element(MethodElement element11) { | 6280 void set element(MethodElement element2) { |
| 6281 this._element = element11; | 6281 this._element = element2; |
| 6282 } | 6282 } |
| 6283 /** | 6283 /** |
| 6284 * Set the expression used to compute the index to the given expression. | 6284 * Set the expression used to compute the index to the given expression. |
| 6285 * @param expression the expression used to compute the index | 6285 * @param expression the expression used to compute the index |
| 6286 */ | 6286 */ |
| 6287 void set index(Expression expression) { | 6287 void set index(Expression expression) { |
| 6288 _index = becomeParentOf(expression); | 6288 _index = becomeParentOf(expression); |
| 6289 } | 6289 } |
| 6290 /** | 6290 /** |
| 6291 * Set the left square bracket to the given token. | 6291 * Set the left square bracket to the given token. |
| 6292 * @param bracket the left square bracket | 6292 * @param bracket the left square bracket |
| 6293 */ | 6293 */ |
| 6294 void set leftBracket(Token bracket) { | 6294 void set leftBracket(Token bracket) { |
| 6295 _leftBracket = bracket; | 6295 _leftBracket = bracket; |
| 6296 } | 6296 } |
| 6297 /** | 6297 /** |
| 6298 * Set the period ("..") before a cascaded index expression to the given token
. | 6298 * Set the period ("..") before a cascaded index expression to the given token
. |
| 6299 * @param period the period ("..") before a cascaded index expression | 6299 * @param period the period ("..") before a cascaded index expression |
| 6300 */ | 6300 */ |
| 6301 void set period(Token period8) { | 6301 void set period(Token period2) { |
| 6302 this._period = period8; | 6302 this._period = period2; |
| 6303 } | 6303 } |
| 6304 /** | 6304 /** |
| 6305 * Set the right square bracket to the given token. | 6305 * Set the right square bracket to the given token. |
| 6306 * @param bracket the right square bracket | 6306 * @param bracket the right square bracket |
| 6307 */ | 6307 */ |
| 6308 void set rightBracket(Token bracket) { | 6308 void set rightBracket(Token bracket) { |
| 6309 _rightBracket = bracket; | 6309 _rightBracket = bracket; |
| 6310 } | 6310 } |
| 6311 void visitChildren(ASTVisitor<Object> visitor) { | 6311 void visitChildren(ASTVisitor<Object> visitor) { |
| 6312 safelyVisitChild(_target, visitor); | 6312 safelyVisitChild(_target, visitor); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6383 Token get keyword => _keyword; | 6383 Token get keyword => _keyword; |
| 6384 /** | 6384 /** |
| 6385 * Return {@code true} if this creation expression is used to invoke a constan
t constructor. | 6385 * Return {@code true} if this creation expression is used to invoke a constan
t constructor. |
| 6386 * @return {@code true} if this creation expression is used to invoke a consta
nt constructor | 6386 * @return {@code true} if this creation expression is used to invoke a consta
nt constructor |
| 6387 */ | 6387 */ |
| 6388 bool isConst() => _keyword is KeywordToken && identical(((_keyword as KeywordT
oken)).keyword, Keyword.CONST); | 6388 bool isConst() => _keyword is KeywordToken && identical(((_keyword as KeywordT
oken)).keyword, Keyword.CONST); |
| 6389 /** | 6389 /** |
| 6390 * Set the list of arguments to the constructor to the given list. | 6390 * Set the list of arguments to the constructor to the given list. |
| 6391 * @param argumentList the list of arguments to the constructor | 6391 * @param argumentList the list of arguments to the constructor |
| 6392 */ | 6392 */ |
| 6393 void set argumentList(ArgumentList argumentList6) { | 6393 void set argumentList(ArgumentList argumentList2) { |
| 6394 this._argumentList = becomeParentOf(argumentList6); | 6394 this._argumentList = becomeParentOf(argumentList2); |
| 6395 } | 6395 } |
| 6396 /** | 6396 /** |
| 6397 * Set the name of the constructor to be invoked to the given name. | 6397 * Set the name of the constructor to be invoked to the given name. |
| 6398 * @param constructorName the name of the constructor to be invoked | 6398 * @param constructorName the name of the constructor to be invoked |
| 6399 */ | 6399 */ |
| 6400 void set constructorName(ConstructorName constructorName3) { | 6400 void set constructorName(ConstructorName constructorName2) { |
| 6401 this._constructorName = constructorName3; | 6401 this._constructorName = constructorName2; |
| 6402 } | 6402 } |
| 6403 /** | 6403 /** |
| 6404 * Set the element associated with the constructor to the given element. | 6404 * Set the element associated with the constructor to the given element. |
| 6405 * @param element the element associated with the constructor | 6405 * @param element the element associated with the constructor |
| 6406 */ | 6406 */ |
| 6407 void set element(ConstructorElement element12) { | 6407 void set element(ConstructorElement element2) { |
| 6408 this._element = element12; | 6408 this._element = element2; |
| 6409 } | 6409 } |
| 6410 /** | 6410 /** |
| 6411 * Set the keyword used to indicate how an object should be created to the giv
en keyword. | 6411 * Set the keyword used to indicate how an object should be created to the giv
en keyword. |
| 6412 * @param keyword the keyword used to indicate how an object should be created | 6412 * @param keyword the keyword used to indicate how an object should be created |
| 6413 */ | 6413 */ |
| 6414 void set keyword(Token keyword13) { | 6414 void set keyword(Token keyword2) { |
| 6415 this._keyword = keyword13; | 6415 this._keyword = keyword2; |
| 6416 } | 6416 } |
| 6417 void visitChildren(ASTVisitor<Object> visitor) { | 6417 void visitChildren(ASTVisitor<Object> visitor) { |
| 6418 safelyVisitChild(_constructorName, visitor); | 6418 safelyVisitChild(_constructorName, visitor); |
| 6419 safelyVisitChild(_argumentList, visitor); | 6419 safelyVisitChild(_argumentList, visitor); |
| 6420 } | 6420 } |
| 6421 } | 6421 } |
| 6422 /** | 6422 /** |
| 6423 * Instances of the class {@code IntegerLiteral} represent an integer literal ex
pression. | 6423 * Instances of the class {@code IntegerLiteral} represent an integer literal ex
pression. |
| 6424 * <pre> | 6424 * <pre> |
| 6425 * integerLiteral ::= | 6425 * integerLiteral ::= |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6467 Token get literal => _literal; | 6467 Token get literal => _literal; |
| 6468 /** | 6468 /** |
| 6469 * Return the value of the literal. | 6469 * Return the value of the literal. |
| 6470 * @return the value of the literal | 6470 * @return the value of the literal |
| 6471 */ | 6471 */ |
| 6472 int get value => _value; | 6472 int get value => _value; |
| 6473 /** | 6473 /** |
| 6474 * Set the token representing the literal to the given token. | 6474 * Set the token representing the literal to the given token. |
| 6475 * @param literal the token representing the literal | 6475 * @param literal the token representing the literal |
| 6476 */ | 6476 */ |
| 6477 void set literal(Token literal4) { | 6477 void set literal(Token literal2) { |
| 6478 this._literal = literal4; | 6478 this._literal = literal2; |
| 6479 } | 6479 } |
| 6480 /** | 6480 /** |
| 6481 * Set the value of the literal to the given value. | 6481 * Set the value of the literal to the given value. |
| 6482 * @param value the value of the literal | 6482 * @param value the value of the literal |
| 6483 */ | 6483 */ |
| 6484 void set value(int value6) { | 6484 void set value(int value2) { |
| 6485 this._value = value6; | 6485 this._value = value2; |
| 6486 } | 6486 } |
| 6487 void visitChildren(ASTVisitor<Object> visitor) { | 6487 void visitChildren(ASTVisitor<Object> visitor) { |
| 6488 } | 6488 } |
| 6489 } | 6489 } |
| 6490 /** | 6490 /** |
| 6491 * The abstract class {@code InterpolationElement} defines the behavior common t
o elements within a{@link StringInterpolation string interpolation}. | 6491 * The abstract class {@code InterpolationElement} defines the behavior common t
o elements within a{@link StringInterpolation string interpolation}. |
| 6492 * <pre> | 6492 * <pre> |
| 6493 * interpolationElement ::={@link InterpolationExpression interpolationExpressio
n}| {@link InterpolationString interpolationString}</pre> | 6493 * interpolationElement ::={@link InterpolationExpression interpolationExpressio
n}| {@link InterpolationString interpolationString}</pre> |
| 6494 * @coverage dart.engine.ast | 6494 * @coverage dart.engine.ast |
| 6495 */ | 6495 */ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6557 /** | 6557 /** |
| 6558 * Return the right curly bracket. | 6558 * Return the right curly bracket. |
| 6559 * @return the right curly bracket | 6559 * @return the right curly bracket |
| 6560 */ | 6560 */ |
| 6561 Token get rightBracket => _rightBracket; | 6561 Token get rightBracket => _rightBracket; |
| 6562 /** | 6562 /** |
| 6563 * Set the expression to be evaluated for the value to be converted into a str
ing to the given | 6563 * Set the expression to be evaluated for the value to be converted into a str
ing to the given |
| 6564 * expression. | 6564 * expression. |
| 6565 * @param expression the expression to be evaluated for the value to be conver
ted into a string | 6565 * @param expression the expression to be evaluated for the value to be conver
ted into a string |
| 6566 */ | 6566 */ |
| 6567 void set expression(Expression expression6) { | 6567 void set expression(Expression expression2) { |
| 6568 this._expression = becomeParentOf(expression6); | 6568 this._expression = becomeParentOf(expression2); |
| 6569 } | 6569 } |
| 6570 /** | 6570 /** |
| 6571 * Set the left curly bracket to the given token. | 6571 * Set the left curly bracket to the given token. |
| 6572 * @param leftBracket the left curly bracket | 6572 * @param leftBracket the left curly bracket |
| 6573 */ | 6573 */ |
| 6574 void set leftBracket(Token leftBracket6) { | 6574 void set leftBracket(Token leftBracket2) { |
| 6575 this._leftBracket = leftBracket6; | 6575 this._leftBracket = leftBracket2; |
| 6576 } | 6576 } |
| 6577 /** | 6577 /** |
| 6578 * Set the right curly bracket to the given token. | 6578 * Set the right curly bracket to the given token. |
| 6579 * @param rightBracket the right curly bracket | 6579 * @param rightBracket the right curly bracket |
| 6580 */ | 6580 */ |
| 6581 void set rightBracket(Token rightBracket6) { | 6581 void set rightBracket(Token rightBracket2) { |
| 6582 this._rightBracket = rightBracket6; | 6582 this._rightBracket = rightBracket2; |
| 6583 } | 6583 } |
| 6584 void visitChildren(ASTVisitor<Object> visitor) { | 6584 void visitChildren(ASTVisitor<Object> visitor) { |
| 6585 safelyVisitChild(_expression, visitor); | 6585 safelyVisitChild(_expression, visitor); |
| 6586 } | 6586 } |
| 6587 } | 6587 } |
| 6588 /** | 6588 /** |
| 6589 * Instances of the class {@code InterpolationString} represent a non-empty subs
tring of an | 6589 * Instances of the class {@code InterpolationString} represent a non-empty subs
tring of an |
| 6590 * interpolated string. | 6590 * interpolated string. |
| 6591 * <pre> | 6591 * <pre> |
| 6592 * interpolationString ::= | 6592 * interpolationString ::= |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6713 /** | 6713 /** |
| 6714 * Return the name of the type being tested for. | 6714 * Return the name of the type being tested for. |
| 6715 * @return the name of the type being tested for | 6715 * @return the name of the type being tested for |
| 6716 */ | 6716 */ |
| 6717 TypeName get type => _type; | 6717 TypeName get type => _type; |
| 6718 /** | 6718 /** |
| 6719 * Set the expression used to compute the value whose type is being tested to
the given | 6719 * Set the expression used to compute the value whose type is being tested to
the given |
| 6720 * expression. | 6720 * expression. |
| 6721 * @param expression the expression used to compute the value whose type is be
ing tested | 6721 * @param expression the expression used to compute the value whose type is be
ing tested |
| 6722 */ | 6722 */ |
| 6723 void set expression(Expression expression7) { | 6723 void set expression(Expression expression2) { |
| 6724 this._expression = becomeParentOf(expression7); | 6724 this._expression = becomeParentOf(expression2); |
| 6725 } | 6725 } |
| 6726 /** | 6726 /** |
| 6727 * Set the is operator being applied to the given operator. | 6727 * Set the is operator being applied to the given operator. |
| 6728 * @param isOperator the is operator being applied | 6728 * @param isOperator the is operator being applied |
| 6729 */ | 6729 */ |
| 6730 void set isOperator(Token isOperator2) { | 6730 void set isOperator(Token isOperator2) { |
| 6731 this._isOperator = isOperator2; | 6731 this._isOperator = isOperator2; |
| 6732 } | 6732 } |
| 6733 /** | 6733 /** |
| 6734 * Set the not operator being applied to the given operator. | 6734 * Set the not operator being applied to the given operator. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6790 Token get endToken => _colon; | 6790 Token get endToken => _colon; |
| 6791 /** | 6791 /** |
| 6792 * Return the label being associated with the statement. | 6792 * Return the label being associated with the statement. |
| 6793 * @return the label being associated with the statement | 6793 * @return the label being associated with the statement |
| 6794 */ | 6794 */ |
| 6795 SimpleIdentifier get label => _label; | 6795 SimpleIdentifier get label => _label; |
| 6796 /** | 6796 /** |
| 6797 * Set the colon that separates the label from the statement to the given toke
n. | 6797 * Set the colon that separates the label from the statement to the given toke
n. |
| 6798 * @param colon the colon that separates the label from the statement | 6798 * @param colon the colon that separates the label from the statement |
| 6799 */ | 6799 */ |
| 6800 void set colon(Token colon3) { | 6800 void set colon(Token colon2) { |
| 6801 this._colon = colon3; | 6801 this._colon = colon2; |
| 6802 } | 6802 } |
| 6803 /** | 6803 /** |
| 6804 * Set the label being associated with the statement to the given label. | 6804 * Set the label being associated with the statement to the given label. |
| 6805 * @param label the label being associated with the statement | 6805 * @param label the label being associated with the statement |
| 6806 */ | 6806 */ |
| 6807 void set label(SimpleIdentifier label3) { | 6807 void set label(SimpleIdentifier label2) { |
| 6808 this._label = becomeParentOf(label3); | 6808 this._label = becomeParentOf(label2); |
| 6809 } | 6809 } |
| 6810 void visitChildren(ASTVisitor<Object> visitor) { | 6810 void visitChildren(ASTVisitor<Object> visitor) { |
| 6811 safelyVisitChild(_label, visitor); | 6811 safelyVisitChild(_label, visitor); |
| 6812 } | 6812 } |
| 6813 } | 6813 } |
| 6814 /** | 6814 /** |
| 6815 * Instances of the class {@code LabeledStatement} represent a statement that ha
s a label associated | 6815 * Instances of the class {@code LabeledStatement} represent a statement that ha
s a label associated |
| 6816 * with them. | 6816 * with them. |
| 6817 * <pre> | 6817 * <pre> |
| 6818 * labeledStatement ::={@link Label label}+ {@link Statement statement}</pre> | 6818 * labeledStatement ::={@link Label label}+ {@link Statement statement}</pre> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6937 * Set the token representing the 'library' token to the given token. | 6937 * Set the token representing the 'library' token to the given token. |
| 6938 * @param libraryToken the token representing the 'library' token | 6938 * @param libraryToken the token representing the 'library' token |
| 6939 */ | 6939 */ |
| 6940 void set libraryToken(Token libraryToken2) { | 6940 void set libraryToken(Token libraryToken2) { |
| 6941 this._libraryToken = libraryToken2; | 6941 this._libraryToken = libraryToken2; |
| 6942 } | 6942 } |
| 6943 /** | 6943 /** |
| 6944 * Set the name of the library being defined to the given name. | 6944 * Set the name of the library being defined to the given name. |
| 6945 * @param name the name of the library being defined | 6945 * @param name the name of the library being defined |
| 6946 */ | 6946 */ |
| 6947 void set name(LibraryIdentifier name7) { | 6947 void set name(LibraryIdentifier name2) { |
| 6948 this._name = becomeParentOf(name7); | 6948 this._name = becomeParentOf(name2); |
| 6949 } | 6949 } |
| 6950 /** | 6950 /** |
| 6951 * Set the semicolon terminating the directive to the given token. | 6951 * Set the semicolon terminating the directive to the given token. |
| 6952 * @param semicolon the semicolon terminating the directive | 6952 * @param semicolon the semicolon terminating the directive |
| 6953 */ | 6953 */ |
| 6954 void set semicolon(Token semicolon11) { | 6954 void set semicolon(Token semicolon2) { |
| 6955 this._semicolon = semicolon11; | 6955 this._semicolon = semicolon2; |
| 6956 } | 6956 } |
| 6957 void visitChildren(ASTVisitor<Object> visitor) { | 6957 void visitChildren(ASTVisitor<Object> visitor) { |
| 6958 super.visitChildren(visitor); | 6958 super.visitChildren(visitor); |
| 6959 safelyVisitChild(_name, visitor); | 6959 safelyVisitChild(_name, visitor); |
| 6960 } | 6960 } |
| 6961 Token get firstTokenAfterCommentAndMetadata => _libraryToken; | 6961 Token get firstTokenAfterCommentAndMetadata => _libraryToken; |
| 6962 } | 6962 } |
| 6963 /** | 6963 /** |
| 6964 * Instances of the class {@code LibraryIdentifier} represent the identifier for
a library. | 6964 * Instances of the class {@code LibraryIdentifier} represent the identifier for
a library. |
| 6965 * <pre> | 6965 * <pre> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7056 * @param elements the expressions used to compute the elements of the list | 7056 * @param elements the expressions used to compute the elements of the list |
| 7057 * @param rightBracket the right square bracket | 7057 * @param rightBracket the right square bracket |
| 7058 */ | 7058 */ |
| 7059 ListLiteral({Token modifier, TypeArgumentList typeArguments, Token leftBracket
, List<Expression> elements, Token rightBracket}) : this.full(modifier, typeArgu
ments, leftBracket, elements, rightBracket); | 7059 ListLiteral({Token modifier, TypeArgumentList typeArguments, Token leftBracket
, List<Expression> elements, Token rightBracket}) : this.full(modifier, typeArgu
ments, leftBracket, elements, rightBracket); |
| 7060 accept(ASTVisitor visitor) => visitor.visitListLiteral(this); | 7060 accept(ASTVisitor visitor) => visitor.visitListLiteral(this); |
| 7061 Token get beginToken { | 7061 Token get beginToken { |
| 7062 Token token = modifier; | 7062 Token token = modifier; |
| 7063 if (token != null) { | 7063 if (token != null) { |
| 7064 return token; | 7064 return token; |
| 7065 } | 7065 } |
| 7066 TypeArgumentList typeArguments6 = typeArguments; | 7066 TypeArgumentList typeArguments2 = typeArguments; |
| 7067 if (typeArguments6 != null) { | 7067 if (typeArguments2 != null) { |
| 7068 return typeArguments6.beginToken; | 7068 return typeArguments2.beginToken; |
| 7069 } | 7069 } |
| 7070 return _leftBracket; | 7070 return _leftBracket; |
| 7071 } | 7071 } |
| 7072 /** | 7072 /** |
| 7073 * Return the expressions used to compute the elements of the list. | 7073 * Return the expressions used to compute the elements of the list. |
| 7074 * @return the expressions used to compute the elements of the list | 7074 * @return the expressions used to compute the elements of the list |
| 7075 */ | 7075 */ |
| 7076 NodeList<Expression> get elements => _elements; | 7076 NodeList<Expression> get elements => _elements; |
| 7077 Token get endToken => _rightBracket; | 7077 Token get endToken => _rightBracket; |
| 7078 /** | 7078 /** |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7158 * @param entries the entries in the map | 7158 * @param entries the entries in the map |
| 7159 * @param rightBracket the right curly bracket | 7159 * @param rightBracket the right curly bracket |
| 7160 */ | 7160 */ |
| 7161 MapLiteral({Token modifier, TypeArgumentList typeArguments, Token leftBracket,
List<MapLiteralEntry> entries, Token rightBracket}) : this.full(modifier, typeA
rguments, leftBracket, entries, rightBracket); | 7161 MapLiteral({Token modifier, TypeArgumentList typeArguments, Token leftBracket,
List<MapLiteralEntry> entries, Token rightBracket}) : this.full(modifier, typeA
rguments, leftBracket, entries, rightBracket); |
| 7162 accept(ASTVisitor visitor) => visitor.visitMapLiteral(this); | 7162 accept(ASTVisitor visitor) => visitor.visitMapLiteral(this); |
| 7163 Token get beginToken { | 7163 Token get beginToken { |
| 7164 Token token = modifier; | 7164 Token token = modifier; |
| 7165 if (token != null) { | 7165 if (token != null) { |
| 7166 return token; | 7166 return token; |
| 7167 } | 7167 } |
| 7168 TypeArgumentList typeArguments7 = typeArguments; | 7168 TypeArgumentList typeArguments2 = typeArguments; |
| 7169 if (typeArguments7 != null) { | 7169 if (typeArguments2 != null) { |
| 7170 return typeArguments7.beginToken; | 7170 return typeArguments2.beginToken; |
| 7171 } | 7171 } |
| 7172 return _leftBracket; | 7172 return _leftBracket; |
| 7173 } | 7173 } |
| 7174 Token get endToken => _rightBracket; | 7174 Token get endToken => _rightBracket; |
| 7175 /** | 7175 /** |
| 7176 * Return the entries in the map. | 7176 * Return the entries in the map. |
| 7177 * @return the entries in the map | 7177 * @return the entries in the map |
| 7178 */ | 7178 */ |
| 7179 NodeList<MapLiteralEntry> get entries => _entries; | 7179 NodeList<MapLiteralEntry> get entries => _entries; |
| 7180 /** | 7180 /** |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7266 * Set the key with which the value will be associated to the given string. | 7266 * Set the key with which the value will be associated to the given string. |
| 7267 * @param string the key with which the value will be associated | 7267 * @param string the key with which the value will be associated |
| 7268 */ | 7268 */ |
| 7269 void set key(StringLiteral string) { | 7269 void set key(StringLiteral string) { |
| 7270 _key = becomeParentOf(string); | 7270 _key = becomeParentOf(string); |
| 7271 } | 7271 } |
| 7272 /** | 7272 /** |
| 7273 * Set the colon that separates the key from the value to the given token. | 7273 * Set the colon that separates the key from the value to the given token. |
| 7274 * @param separator the colon that separates the key from the value | 7274 * @param separator the colon that separates the key from the value |
| 7275 */ | 7275 */ |
| 7276 void set separator(Token separator4) { | 7276 void set separator(Token separator2) { |
| 7277 this._separator = separator4; | 7277 this._separator = separator2; |
| 7278 } | 7278 } |
| 7279 /** | 7279 /** |
| 7280 * Set the expression computing the value that will be associated with the key
to the given | 7280 * Set the expression computing the value that will be associated with the key
to the given |
| 7281 * expression. | 7281 * expression. |
| 7282 * @param expression the expression computing the value that will be associate
d with the key | 7282 * @param expression the expression computing the value that will be associate
d with the key |
| 7283 */ | 7283 */ |
| 7284 void set value(Expression expression) { | 7284 void set value(Expression expression) { |
| 7285 _value = becomeParentOf(expression); | 7285 _value = becomeParentOf(expression); |
| 7286 } | 7286 } |
| 7287 void visitChildren(ASTVisitor<Object> visitor) { | 7287 void visitChildren(ASTVisitor<Object> visitor) { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7456 * Set the body of the method to the given function body. | 7456 * Set the body of the method to the given function body. |
| 7457 * @param functionBody the body of the method | 7457 * @param functionBody the body of the method |
| 7458 */ | 7458 */ |
| 7459 void set body(FunctionBody functionBody) { | 7459 void set body(FunctionBody functionBody) { |
| 7460 _body = becomeParentOf(functionBody); | 7460 _body = becomeParentOf(functionBody); |
| 7461 } | 7461 } |
| 7462 /** | 7462 /** |
| 7463 * Set the token for the 'external' keyword to the given token. | 7463 * Set the token for the 'external' keyword to the given token. |
| 7464 * @param externalKeyword the token for the 'external' keyword | 7464 * @param externalKeyword the token for the 'external' keyword |
| 7465 */ | 7465 */ |
| 7466 void set externalKeyword(Token externalKeyword4) { | 7466 void set externalKeyword(Token externalKeyword2) { |
| 7467 this._externalKeyword = externalKeyword4; | 7467 this._externalKeyword = externalKeyword2; |
| 7468 } | 7468 } |
| 7469 /** | 7469 /** |
| 7470 * Set the token representing the 'abstract' or 'static' keyword to the given
token. | 7470 * Set the token representing the 'abstract' or 'static' keyword to the given
token. |
| 7471 * @param modifierKeyword the token representing the 'abstract' or 'static' ke
yword | 7471 * @param modifierKeyword the token representing the 'abstract' or 'static' ke
yword |
| 7472 */ | 7472 */ |
| 7473 void set modifierKeyword(Token modifierKeyword2) { | 7473 void set modifierKeyword(Token modifierKeyword2) { |
| 7474 this._modifierKeyword = modifierKeyword2; | 7474 this._modifierKeyword = modifierKeyword2; |
| 7475 } | 7475 } |
| 7476 /** | 7476 /** |
| 7477 * Set the name of the method to the given identifier. | 7477 * Set the name of the method to the given identifier. |
| 7478 * @param identifier the name of the method | 7478 * @param identifier the name of the method |
| 7479 */ | 7479 */ |
| 7480 void set name(SimpleIdentifier identifier) { | 7480 void set name(SimpleIdentifier identifier) { |
| 7481 _name = becomeParentOf(identifier); | 7481 _name = becomeParentOf(identifier); |
| 7482 } | 7482 } |
| 7483 /** | 7483 /** |
| 7484 * Set the token representing the 'operator' keyword to the given token. | 7484 * Set the token representing the 'operator' keyword to the given token. |
| 7485 * @param operatorKeyword the token representing the 'operator' keyword | 7485 * @param operatorKeyword the token representing the 'operator' keyword |
| 7486 */ | 7486 */ |
| 7487 void set operatorKeyword(Token operatorKeyword2) { | 7487 void set operatorKeyword(Token operatorKeyword2) { |
| 7488 this._operatorKeyword = operatorKeyword2; | 7488 this._operatorKeyword = operatorKeyword2; |
| 7489 } | 7489 } |
| 7490 /** | 7490 /** |
| 7491 * Set the parameters associated with the method to the given list of paramete
rs. | 7491 * Set the parameters associated with the method to the given list of paramete
rs. |
| 7492 * @param parameters the parameters associated with the method | 7492 * @param parameters the parameters associated with the method |
| 7493 */ | 7493 */ |
| 7494 void set parameters(FormalParameterList parameters6) { | 7494 void set parameters(FormalParameterList parameters2) { |
| 7495 this._parameters = becomeParentOf(parameters6); | 7495 this._parameters = becomeParentOf(parameters2); |
| 7496 } | 7496 } |
| 7497 /** | 7497 /** |
| 7498 * Set the token representing the 'get' or 'set' keyword to the given token. | 7498 * Set the token representing the 'get' or 'set' keyword to the given token. |
| 7499 * @param propertyKeyword the token representing the 'get' or 'set' keyword | 7499 * @param propertyKeyword the token representing the 'get' or 'set' keyword |
| 7500 */ | 7500 */ |
| 7501 void set propertyKeyword(Token propertyKeyword3) { | 7501 void set propertyKeyword(Token propertyKeyword2) { |
| 7502 this._propertyKeyword = propertyKeyword3; | 7502 this._propertyKeyword = propertyKeyword2; |
| 7503 } | 7503 } |
| 7504 /** | 7504 /** |
| 7505 * Set the return type of the method to the given type name. | 7505 * Set the return type of the method to the given type name. |
| 7506 * @param typeName the return type of the method | 7506 * @param typeName the return type of the method |
| 7507 */ | 7507 */ |
| 7508 void set returnType(TypeName typeName) { | 7508 void set returnType(TypeName typeName) { |
| 7509 _returnType = becomeParentOf(typeName); | 7509 _returnType = becomeParentOf(typeName); |
| 7510 } | 7510 } |
| 7511 void visitChildren(ASTVisitor<Object> visitor) { | 7511 void visitChildren(ASTVisitor<Object> visitor) { |
| 7512 super.visitChildren(visitor); | 7512 super.visitChildren(visitor); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7635 /** | 7635 /** |
| 7636 * Return {@code true} if this expression is cascaded. If it is, then the targ
et of this | 7636 * Return {@code true} if this expression is cascaded. If it is, then the targ
et of this |
| 7637 * expression is not stored locally but is stored in the nearest ancestor that
is a{@link CascadeExpression}. | 7637 * expression is not stored locally but is stored in the nearest ancestor that
is a{@link CascadeExpression}. |
| 7638 * @return {@code true} if this expression is cascaded | 7638 * @return {@code true} if this expression is cascaded |
| 7639 */ | 7639 */ |
| 7640 bool isCascaded() => _period != null && identical(_period.type, TokenType.PERI
OD_PERIOD); | 7640 bool isCascaded() => _period != null && identical(_period.type, TokenType.PERI
OD_PERIOD); |
| 7641 /** | 7641 /** |
| 7642 * Set the list of arguments to the method to the given list. | 7642 * Set the list of arguments to the method to the given list. |
| 7643 * @param argumentList the list of arguments to the method | 7643 * @param argumentList the list of arguments to the method |
| 7644 */ | 7644 */ |
| 7645 void set argumentList(ArgumentList argumentList7) { | 7645 void set argumentList(ArgumentList argumentList2) { |
| 7646 this._argumentList = becomeParentOf(argumentList7); | 7646 this._argumentList = becomeParentOf(argumentList2); |
| 7647 } | 7647 } |
| 7648 /** | 7648 /** |
| 7649 * Set the name of the method being invoked to the given identifier. | 7649 * Set the name of the method being invoked to the given identifier. |
| 7650 * @param identifier the name of the method being invoked | 7650 * @param identifier the name of the method being invoked |
| 7651 */ | 7651 */ |
| 7652 void set methodName(SimpleIdentifier identifier) { | 7652 void set methodName(SimpleIdentifier identifier) { |
| 7653 _methodName = becomeParentOf(identifier); | 7653 _methodName = becomeParentOf(identifier); |
| 7654 } | 7654 } |
| 7655 /** | 7655 /** |
| 7656 * Set the period that separates the target from the method name to the given
token. | 7656 * Set the period that separates the target from the method name to the given
token. |
| 7657 * @param period the period that separates the target from the method name | 7657 * @param period the period that separates the target from the method name |
| 7658 */ | 7658 */ |
| 7659 void set period(Token period9) { | 7659 void set period(Token period2) { |
| 7660 this._period = period9; | 7660 this._period = period2; |
| 7661 } | 7661 } |
| 7662 /** | 7662 /** |
| 7663 * Set the expression producing the object on which the method is defined to t
he given expression. | 7663 * Set the expression producing the object on which the method is defined to t
he given expression. |
| 7664 * @param expression the expression producing the object on which the method i
s defined | 7664 * @param expression the expression producing the object on which the method i
s defined |
| 7665 */ | 7665 */ |
| 7666 void set target(Expression expression) { | 7666 void set target(Expression expression) { |
| 7667 _target = becomeParentOf(expression); | 7667 _target = becomeParentOf(expression); |
| 7668 } | 7668 } |
| 7669 void visitChildren(ASTVisitor<Object> visitor) { | 7669 void visitChildren(ASTVisitor<Object> visitor) { |
| 7670 safelyVisitChild(_target, visitor); | 7670 safelyVisitChild(_target, visitor); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7704 */ | 7704 */ |
| 7705 NamedExpression({Label name, Expression expression}) : this.full(name, express
ion); | 7705 NamedExpression({Label name, Expression expression}) : this.full(name, express
ion); |
| 7706 accept(ASTVisitor visitor) => visitor.visitNamedExpression(this); | 7706 accept(ASTVisitor visitor) => visitor.visitNamedExpression(this); |
| 7707 Token get beginToken => _name.beginToken; | 7707 Token get beginToken => _name.beginToken; |
| 7708 /** | 7708 /** |
| 7709 * Return the element representing the parameter being named by this expressio
n, or {@code null}if the AST structure has not been resolved or if there is no p
arameter with the same name as | 7709 * Return the element representing the parameter being named by this expressio
n, or {@code null}if the AST structure has not been resolved or if there is no p
arameter with the same name as |
| 7710 * this expression. | 7710 * this expression. |
| 7711 * @return the element representing the parameter being named by this expressi
on | 7711 * @return the element representing the parameter being named by this expressi
on |
| 7712 */ | 7712 */ |
| 7713 ParameterElement get element { | 7713 ParameterElement get element { |
| 7714 Element element22 = _name.label.element; | 7714 Element element2 = _name.label.element; |
| 7715 if (element22 is ParameterElement) { | 7715 if (element2 is ParameterElement) { |
| 7716 return element22 as ParameterElement; | 7716 return element2 as ParameterElement; |
| 7717 } | 7717 } |
| 7718 return null; | 7718 return null; |
| 7719 } | 7719 } |
| 7720 Token get endToken => _expression.endToken; | 7720 Token get endToken => _expression.endToken; |
| 7721 /** | 7721 /** |
| 7722 * Return the expression with which the name is associated. | 7722 * Return the expression with which the name is associated. |
| 7723 * @return the expression with which the name is associated | 7723 * @return the expression with which the name is associated |
| 7724 */ | 7724 */ |
| 7725 Expression get expression => _expression; | 7725 Expression get expression => _expression; |
| 7726 /** | 7726 /** |
| 7727 * Return the name associated with the expression. | 7727 * Return the name associated with the expression. |
| 7728 * @return the name associated with the expression | 7728 * @return the name associated with the expression |
| 7729 */ | 7729 */ |
| 7730 Label get name => _name; | 7730 Label get name => _name; |
| 7731 /** | 7731 /** |
| 7732 * Set the expression with which the name is associated to the given expressio
n. | 7732 * Set the expression with which the name is associated to the given expressio
n. |
| 7733 * @param expression the expression with which the name is associated | 7733 * @param expression the expression with which the name is associated |
| 7734 */ | 7734 */ |
| 7735 void set expression(Expression expression8) { | 7735 void set expression(Expression expression2) { |
| 7736 this._expression = becomeParentOf(expression8); | 7736 this._expression = becomeParentOf(expression2); |
| 7737 } | 7737 } |
| 7738 /** | 7738 /** |
| 7739 * Set the name associated with the expression to the given identifier. | 7739 * Set the name associated with the expression to the given identifier. |
| 7740 * @param identifier the name associated with the expression | 7740 * @param identifier the name associated with the expression |
| 7741 */ | 7741 */ |
| 7742 void set name(Label identifier) { | 7742 void set name(Label identifier) { |
| 7743 _name = becomeParentOf(identifier); | 7743 _name = becomeParentOf(identifier); |
| 7744 } | 7744 } |
| 7745 void visitChildren(ASTVisitor<Object> visitor) { | 7745 void visitChildren(ASTVisitor<Object> visitor) { |
| 7746 safelyVisitChild(_name, visitor); | 7746 safelyVisitChild(_name, visitor); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7808 * Set the token representing the 'import' or 'export' keyword to the given to
ken. | 7808 * Set the token representing the 'import' or 'export' keyword to the given to
ken. |
| 7809 * @param exportToken the token representing the 'import' or 'export' keyword | 7809 * @param exportToken the token representing the 'import' or 'export' keyword |
| 7810 */ | 7810 */ |
| 7811 void set keyword(Token exportToken) { | 7811 void set keyword(Token exportToken) { |
| 7812 this._keyword = exportToken; | 7812 this._keyword = exportToken; |
| 7813 } | 7813 } |
| 7814 /** | 7814 /** |
| 7815 * Set the semicolon terminating the directive to the given token. | 7815 * Set the semicolon terminating the directive to the given token. |
| 7816 * @param semicolon the semicolon terminating the directive | 7816 * @param semicolon the semicolon terminating the directive |
| 7817 */ | 7817 */ |
| 7818 void set semicolon(Token semicolon12) { | 7818 void set semicolon(Token semicolon2) { |
| 7819 this._semicolon = semicolon12; | 7819 this._semicolon = semicolon2; |
| 7820 } | 7820 } |
| 7821 Token get firstTokenAfterCommentAndMetadata => _keyword; | 7821 Token get firstTokenAfterCommentAndMetadata => _keyword; |
| 7822 } | 7822 } |
| 7823 /** | 7823 /** |
| 7824 * Instances of the class {@code NativeFunctionBody} represent a function body t
hat consists of a | 7824 * Instances of the class {@code NativeFunctionBody} represent a function body t
hat consists of a |
| 7825 * native keyword followed by a string literal. | 7825 * native keyword followed by a string literal. |
| 7826 * <pre> | 7826 * <pre> |
| 7827 * nativeFunctionBody ::= | 7827 * nativeFunctionBody ::= |
| 7828 * 'native' {@link SimpleStringLiteral simpleStringLiteral} ';' | 7828 * 'native' {@link SimpleStringLiteral simpleStringLiteral} ';' |
| 7829 * </pre> | 7829 * </pre> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7925 */ | 7925 */ |
| 7926 NormalFormalParameter({Comment comment, List<Annotation> metadata, SimpleIdent
ifier identifier}) : this.full(comment, metadata, identifier); | 7926 NormalFormalParameter({Comment comment, List<Annotation> metadata, SimpleIdent
ifier identifier}) : this.full(comment, metadata, identifier); |
| 7927 /** | 7927 /** |
| 7928 * Return the documentation comment associated with this parameter, or {@code
null} if this | 7928 * Return the documentation comment associated with this parameter, or {@code
null} if this |
| 7929 * parameter does not have a documentation comment associated with it. | 7929 * parameter does not have a documentation comment associated with it. |
| 7930 * @return the documentation comment associated with this parameter | 7930 * @return the documentation comment associated with this parameter |
| 7931 */ | 7931 */ |
| 7932 Comment get documentationComment => _comment; | 7932 Comment get documentationComment => _comment; |
| 7933 SimpleIdentifier get identifier => _identifier; | 7933 SimpleIdentifier get identifier => _identifier; |
| 7934 ParameterKind get kind { | 7934 ParameterKind get kind { |
| 7935 ASTNode parent6 = parent; | 7935 ASTNode parent2 = parent; |
| 7936 if (parent6 is DefaultFormalParameter) { | 7936 if (parent2 is DefaultFormalParameter) { |
| 7937 return ((parent6 as DefaultFormalParameter)).kind; | 7937 return ((parent2 as DefaultFormalParameter)).kind; |
| 7938 } | 7938 } |
| 7939 return ParameterKind.REQUIRED; | 7939 return ParameterKind.REQUIRED; |
| 7940 } | 7940 } |
| 7941 /** | 7941 /** |
| 7942 * Return the annotations associated with this parameter. | 7942 * Return the annotations associated with this parameter. |
| 7943 * @return the annotations associated with this parameter | 7943 * @return the annotations associated with this parameter |
| 7944 */ | 7944 */ |
| 7945 NodeList<Annotation> get metadata => _metadata; | 7945 NodeList<Annotation> get metadata => _metadata; |
| 7946 /** | 7946 /** |
| 7947 * Return {@code true} if this parameter was declared with the 'const' modifie
r. | 7947 * Return {@code true} if this parameter was declared with the 'const' modifie
r. |
| 7948 * @return {@code true} if this parameter was declared with the 'const' modifi
er | 7948 * @return {@code true} if this parameter was declared with the 'const' modifi
er |
| 7949 */ | 7949 */ |
| 7950 bool isConst(); | 7950 bool isConst(); |
| 7951 /** | 7951 /** |
| 7952 * Return {@code true} if this parameter was declared with the 'final' modifie
r. Parameters that | 7952 * Return {@code true} if this parameter was declared with the 'final' modifie
r. Parameters that |
| 7953 * are declared with the 'const' modifier will return {@code false} even thoug
h they are | 7953 * are declared with the 'const' modifier will return {@code false} even thoug
h they are |
| 7954 * implicitly final. | 7954 * implicitly final. |
| 7955 * @return {@code true} if this parameter was declared with the 'final' modifi
er | 7955 * @return {@code true} if this parameter was declared with the 'final' modifi
er |
| 7956 */ | 7956 */ |
| 7957 bool isFinal(); | 7957 bool isFinal(); |
| 7958 /** | 7958 /** |
| 7959 * Set the documentation comment associated with this parameter to the given c
omment | 7959 * Set the documentation comment associated with this parameter to the given c
omment |
| 7960 * @param comment the documentation comment to be associated with this paramet
er | 7960 * @param comment the documentation comment to be associated with this paramet
er |
| 7961 */ | 7961 */ |
| 7962 void set documentationComment(Comment comment3) { | 7962 void set documentationComment(Comment comment2) { |
| 7963 this._comment = becomeParentOf(comment3); | 7963 this._comment = becomeParentOf(comment2); |
| 7964 } | 7964 } |
| 7965 /** | 7965 /** |
| 7966 * Set the name of the parameter being declared to the given identifier. | 7966 * Set the name of the parameter being declared to the given identifier. |
| 7967 * @param identifier the name of the parameter being declared | 7967 * @param identifier the name of the parameter being declared |
| 7968 */ | 7968 */ |
| 7969 void set identifier(SimpleIdentifier identifier9) { | 7969 void set identifier(SimpleIdentifier identifier2) { |
| 7970 this._identifier = becomeParentOf(identifier9); | 7970 this._identifier = becomeParentOf(identifier2); |
| 7971 } | 7971 } |
| 7972 void visitChildren(ASTVisitor<Object> visitor) { | 7972 void visitChildren(ASTVisitor<Object> visitor) { |
| 7973 if (commentIsBeforeAnnotations()) { | 7973 if (commentIsBeforeAnnotations()) { |
| 7974 safelyVisitChild(_comment, visitor); | 7974 safelyVisitChild(_comment, visitor); |
| 7975 _metadata.accept(visitor); | 7975 _metadata.accept(visitor); |
| 7976 } else { | 7976 } else { |
| 7977 for (ASTNode child in sortedCommentAndAnnotations) { | 7977 for (ASTNode child in sortedCommentAndAnnotations) { |
| 7978 child.accept(visitor); | 7978 child.accept(visitor); |
| 7979 } | 7979 } |
| 7980 } | 7980 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8035 Token get endToken => _literal; | 8035 Token get endToken => _literal; |
| 8036 /** | 8036 /** |
| 8037 * Return the token representing the literal. | 8037 * Return the token representing the literal. |
| 8038 * @return the token representing the literal | 8038 * @return the token representing the literal |
| 8039 */ | 8039 */ |
| 8040 Token get literal => _literal; | 8040 Token get literal => _literal; |
| 8041 /** | 8041 /** |
| 8042 * Set the token representing the literal to the given token. | 8042 * Set the token representing the literal to the given token. |
| 8043 * @param literal the token representing the literal | 8043 * @param literal the token representing the literal |
| 8044 */ | 8044 */ |
| 8045 void set literal(Token literal5) { | 8045 void set literal(Token literal2) { |
| 8046 this._literal = literal5; | 8046 this._literal = literal2; |
| 8047 } | 8047 } |
| 8048 void visitChildren(ASTVisitor<Object> visitor) { | 8048 void visitChildren(ASTVisitor<Object> visitor) { |
| 8049 } | 8049 } |
| 8050 } | 8050 } |
| 8051 /** | 8051 /** |
| 8052 * Instances of the class {@code ParenthesizedExpression} represent a parenthesi
zed expression. | 8052 * Instances of the class {@code ParenthesizedExpression} represent a parenthesi
zed expression. |
| 8053 * <pre> | 8053 * <pre> |
| 8054 * parenthesizedExpression ::= | 8054 * parenthesizedExpression ::= |
| 8055 * '(' {@link Expression expression} ')' | 8055 * '(' {@link Expression expression} ')' |
| 8056 * </pre> | 8056 * </pre> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8102 Token get leftParenthesis => _leftParenthesis; | 8102 Token get leftParenthesis => _leftParenthesis; |
| 8103 /** | 8103 /** |
| 8104 * Return the right parenthesis. | 8104 * Return the right parenthesis. |
| 8105 * @return the right parenthesis | 8105 * @return the right parenthesis |
| 8106 */ | 8106 */ |
| 8107 Token get rightParenthesis => _rightParenthesis; | 8107 Token get rightParenthesis => _rightParenthesis; |
| 8108 /** | 8108 /** |
| 8109 * Set the expression within the parentheses to the given expression. | 8109 * Set the expression within the parentheses to the given expression. |
| 8110 * @param expression the expression within the parentheses | 8110 * @param expression the expression within the parentheses |
| 8111 */ | 8111 */ |
| 8112 void set expression(Expression expression9) { | 8112 void set expression(Expression expression2) { |
| 8113 this._expression = becomeParentOf(expression9); | 8113 this._expression = becomeParentOf(expression2); |
| 8114 } | 8114 } |
| 8115 /** | 8115 /** |
| 8116 * Set the left parenthesis to the given token. | 8116 * Set the left parenthesis to the given token. |
| 8117 * @param parenthesis the left parenthesis | 8117 * @param parenthesis the left parenthesis |
| 8118 */ | 8118 */ |
| 8119 void set leftParenthesis(Token parenthesis) { | 8119 void set leftParenthesis(Token parenthesis) { |
| 8120 _leftParenthesis = parenthesis; | 8120 _leftParenthesis = parenthesis; |
| 8121 } | 8121 } |
| 8122 /** | 8122 /** |
| 8123 * Set the right parenthesis to the given token. | 8123 * Set the right parenthesis to the given token. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8184 * Set the token representing the 'part' token to the given token. | 8184 * Set the token representing the 'part' token to the given token. |
| 8185 * @param partToken the token representing the 'part' token | 8185 * @param partToken the token representing the 'part' token |
| 8186 */ | 8186 */ |
| 8187 void set partToken(Token partToken2) { | 8187 void set partToken(Token partToken2) { |
| 8188 this._partToken = partToken2; | 8188 this._partToken = partToken2; |
| 8189 } | 8189 } |
| 8190 /** | 8190 /** |
| 8191 * Set the semicolon terminating the directive to the given token. | 8191 * Set the semicolon terminating the directive to the given token. |
| 8192 * @param semicolon the semicolon terminating the directive | 8192 * @param semicolon the semicolon terminating the directive |
| 8193 */ | 8193 */ |
| 8194 void set semicolon(Token semicolon13) { | 8194 void set semicolon(Token semicolon2) { |
| 8195 this._semicolon = semicolon13; | 8195 this._semicolon = semicolon2; |
| 8196 } | 8196 } |
| 8197 Token get firstTokenAfterCommentAndMetadata => _partToken; | 8197 Token get firstTokenAfterCommentAndMetadata => _partToken; |
| 8198 } | 8198 } |
| 8199 /** | 8199 /** |
| 8200 * Instances of the class {@code PartOfDirective} represent a part-of directive. | 8200 * Instances of the class {@code PartOfDirective} represent a part-of directive. |
| 8201 * <pre> | 8201 * <pre> |
| 8202 * partOfDirective ::={@link Annotation metadata} 'part' 'of' {@link Identifier
libraryName} ';' | 8202 * partOfDirective ::={@link Annotation metadata} 'part' 'of' {@link Identifier
libraryName} ';' |
| 8203 * </pre> | 8203 * </pre> |
| 8204 * @coverage dart.engine.ast | 8204 * @coverage dart.engine.ast |
| 8205 */ | 8205 */ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8279 * Set the token representing the 'of' token to the given token. | 8279 * Set the token representing the 'of' token to the given token. |
| 8280 * @param ofToken the token representing the 'of' token | 8280 * @param ofToken the token representing the 'of' token |
| 8281 */ | 8281 */ |
| 8282 void set ofToken(Token ofToken2) { | 8282 void set ofToken(Token ofToken2) { |
| 8283 this._ofToken = ofToken2; | 8283 this._ofToken = ofToken2; |
| 8284 } | 8284 } |
| 8285 /** | 8285 /** |
| 8286 * Set the token representing the 'part' token to the given token. | 8286 * Set the token representing the 'part' token to the given token. |
| 8287 * @param partToken the token representing the 'part' token | 8287 * @param partToken the token representing the 'part' token |
| 8288 */ | 8288 */ |
| 8289 void set partToken(Token partToken3) { | 8289 void set partToken(Token partToken2) { |
| 8290 this._partToken = partToken3; | 8290 this._partToken = partToken2; |
| 8291 } | 8291 } |
| 8292 /** | 8292 /** |
| 8293 * Set the semicolon terminating the directive to the given token. | 8293 * Set the semicolon terminating the directive to the given token. |
| 8294 * @param semicolon the semicolon terminating the directive | 8294 * @param semicolon the semicolon terminating the directive |
| 8295 */ | 8295 */ |
| 8296 void set semicolon(Token semicolon14) { | 8296 void set semicolon(Token semicolon2) { |
| 8297 this._semicolon = semicolon14; | 8297 this._semicolon = semicolon2; |
| 8298 } | 8298 } |
| 8299 void visitChildren(ASTVisitor<Object> visitor) { | 8299 void visitChildren(ASTVisitor<Object> visitor) { |
| 8300 super.visitChildren(visitor); | 8300 super.visitChildren(visitor); |
| 8301 safelyVisitChild(_libraryName, visitor); | 8301 safelyVisitChild(_libraryName, visitor); |
| 8302 } | 8302 } |
| 8303 Token get firstTokenAfterCommentAndMetadata => _partToken; | 8303 Token get firstTokenAfterCommentAndMetadata => _partToken; |
| 8304 } | 8304 } |
| 8305 /** | 8305 /** |
| 8306 * Instances of the class {@code PostfixExpression} represent a postfix unary ex
pression. | 8306 * Instances of the class {@code PostfixExpression} represent a postfix unary ex
pression. |
| 8307 * <pre> | 8307 * <pre> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8354 Expression get operand => _operand; | 8354 Expression get operand => _operand; |
| 8355 /** | 8355 /** |
| 8356 * Return the postfix operator being applied to the operand. | 8356 * Return the postfix operator being applied to the operand. |
| 8357 * @return the postfix operator being applied to the operand | 8357 * @return the postfix operator being applied to the operand |
| 8358 */ | 8358 */ |
| 8359 Token get operator => _operator; | 8359 Token get operator => _operator; |
| 8360 /** | 8360 /** |
| 8361 * Set the element associated with the operator to the given element. | 8361 * Set the element associated with the operator to the given element. |
| 8362 * @param element the element associated with the operator | 8362 * @param element the element associated with the operator |
| 8363 */ | 8363 */ |
| 8364 void set element(MethodElement element13) { | 8364 void set element(MethodElement element2) { |
| 8365 this._element = element13; | 8365 this._element = element2; |
| 8366 } | 8366 } |
| 8367 /** | 8367 /** |
| 8368 * Set the expression computing the operand for the operator to the given expr
ession. | 8368 * Set the expression computing the operand for the operator to the given expr
ession. |
| 8369 * @param expression the expression computing the operand for the operator | 8369 * @param expression the expression computing the operand for the operator |
| 8370 */ | 8370 */ |
| 8371 void set operand(Expression expression) { | 8371 void set operand(Expression expression) { |
| 8372 _operand = becomeParentOf(expression); | 8372 _operand = becomeParentOf(expression); |
| 8373 } | 8373 } |
| 8374 /** | 8374 /** |
| 8375 * Set the postfix operator being applied to the operand to the given operator
. | 8375 * Set the postfix operator being applied to the operand to the given operator
. |
| 8376 * @param operator the postfix operator being applied to the operand | 8376 * @param operator the postfix operator being applied to the operand |
| 8377 */ | 8377 */ |
| 8378 void set operator(Token operator4) { | 8378 void set operator(Token operator2) { |
| 8379 this._operator = operator4; | 8379 this._operator = operator2; |
| 8380 } | 8380 } |
| 8381 void visitChildren(ASTVisitor<Object> visitor) { | 8381 void visitChildren(ASTVisitor<Object> visitor) { |
| 8382 safelyVisitChild(_operand, visitor); | 8382 safelyVisitChild(_operand, visitor); |
| 8383 } | 8383 } |
| 8384 } | 8384 } |
| 8385 /** | 8385 /** |
| 8386 * Instances of the class {@code PrefixExpression} represent a prefix unary expr
ession. | 8386 * Instances of the class {@code PrefixExpression} represent a prefix unary expr
ession. |
| 8387 * <pre> | 8387 * <pre> |
| 8388 * prefixExpression ::={@link Token operator} {@link Expression operand}</pre> | 8388 * prefixExpression ::={@link Token operator} {@link Expression operand}</pre> |
| 8389 * @coverage dart.engine.ast | 8389 * @coverage dart.engine.ast |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8434 Expression get operand => _operand; | 8434 Expression get operand => _operand; |
| 8435 /** | 8435 /** |
| 8436 * Return the prefix operator being applied to the operand. | 8436 * Return the prefix operator being applied to the operand. |
| 8437 * @return the prefix operator being applied to the operand | 8437 * @return the prefix operator being applied to the operand |
| 8438 */ | 8438 */ |
| 8439 Token get operator => _operator; | 8439 Token get operator => _operator; |
| 8440 /** | 8440 /** |
| 8441 * Set the element associated with the operator to the given element. | 8441 * Set the element associated with the operator to the given element. |
| 8442 * @param element the element associated with the operator | 8442 * @param element the element associated with the operator |
| 8443 */ | 8443 */ |
| 8444 void set element(MethodElement element14) { | 8444 void set element(MethodElement element2) { |
| 8445 this._element = element14; | 8445 this._element = element2; |
| 8446 } | 8446 } |
| 8447 /** | 8447 /** |
| 8448 * Set the expression computing the operand for the operator to the given expr
ession. | 8448 * Set the expression computing the operand for the operator to the given expr
ession. |
| 8449 * @param expression the expression computing the operand for the operator | 8449 * @param expression the expression computing the operand for the operator |
| 8450 */ | 8450 */ |
| 8451 void set operand(Expression expression) { | 8451 void set operand(Expression expression) { |
| 8452 _operand = becomeParentOf(expression); | 8452 _operand = becomeParentOf(expression); |
| 8453 } | 8453 } |
| 8454 /** | 8454 /** |
| 8455 * Set the prefix operator being applied to the operand to the given operator. | 8455 * Set the prefix operator being applied to the operand to the given operator. |
| 8456 * @param operator the prefix operator being applied to the operand | 8456 * @param operator the prefix operator being applied to the operand |
| 8457 */ | 8457 */ |
| 8458 void set operator(Token operator5) { | 8458 void set operator(Token operator2) { |
| 8459 this._operator = operator5; | 8459 this._operator = operator2; |
| 8460 } | 8460 } |
| 8461 void visitChildren(ASTVisitor<Object> visitor) { | 8461 void visitChildren(ASTVisitor<Object> visitor) { |
| 8462 safelyVisitChild(_operand, visitor); | 8462 safelyVisitChild(_operand, visitor); |
| 8463 } | 8463 } |
| 8464 } | 8464 } |
| 8465 /** | 8465 /** |
| 8466 * Instances of the class {@code PrefixedIdentifier} represent either an identif
ier that is prefixed | 8466 * Instances of the class {@code PrefixedIdentifier} represent either an identif
ier that is prefixed |
| 8467 * or an access to an object property where the target of the property access is
a simple | 8467 * or an access to an object property where the target of the property access is
a simple |
| 8468 * identifier. | 8468 * identifier. |
| 8469 * <pre> | 8469 * <pre> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8523 Token get period => _period; | 8523 Token get period => _period; |
| 8524 /** | 8524 /** |
| 8525 * Return the prefix associated with the library in which the identifier is de
fined. | 8525 * Return the prefix associated with the library in which the identifier is de
fined. |
| 8526 * @return the prefix associated with the library in which the identifier is d
efined | 8526 * @return the prefix associated with the library in which the identifier is d
efined |
| 8527 */ | 8527 */ |
| 8528 SimpleIdentifier get prefix => _prefix; | 8528 SimpleIdentifier get prefix => _prefix; |
| 8529 /** | 8529 /** |
| 8530 * Set the identifier being prefixed to the given identifier. | 8530 * Set the identifier being prefixed to the given identifier. |
| 8531 * @param identifier the identifier being prefixed | 8531 * @param identifier the identifier being prefixed |
| 8532 */ | 8532 */ |
| 8533 void set identifier(SimpleIdentifier identifier10) { | 8533 void set identifier(SimpleIdentifier identifier2) { |
| 8534 this._identifier = becomeParentOf(identifier10); | 8534 this._identifier = becomeParentOf(identifier2); |
| 8535 } | 8535 } |
| 8536 /** | 8536 /** |
| 8537 * Set the period used to separate the prefix from the identifier to the given
token. | 8537 * Set the period used to separate the prefix from the identifier to the given
token. |
| 8538 * @param period the period used to separate the prefix from the identifier | 8538 * @param period the period used to separate the prefix from the identifier |
| 8539 */ | 8539 */ |
| 8540 void set period(Token period10) { | 8540 void set period(Token period2) { |
| 8541 this._period = period10; | 8541 this._period = period2; |
| 8542 } | 8542 } |
| 8543 /** | 8543 /** |
| 8544 * Set the prefix associated with the library in which the identifier is defin
ed to the given | 8544 * Set the prefix associated with the library in which the identifier is defin
ed to the given |
| 8545 * identifier. | 8545 * identifier. |
| 8546 * @param identifier the prefix associated with the library in which the ident
ifier is defined | 8546 * @param identifier the prefix associated with the library in which the ident
ifier is defined |
| 8547 */ | 8547 */ |
| 8548 void set prefix(SimpleIdentifier identifier) { | 8548 void set prefix(SimpleIdentifier identifier) { |
| 8549 _prefix = becomeParentOf(identifier); | 8549 _prefix = becomeParentOf(identifier); |
| 8550 } | 8550 } |
| 8551 void visitChildren(ASTVisitor<Object> visitor) { | 8551 void visitChildren(ASTVisitor<Object> visitor) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8642 /** | 8642 /** |
| 8643 * Return {@code true} if this expression is cascaded. If it is, then the targ
et of this | 8643 * Return {@code true} if this expression is cascaded. If it is, then the targ
et of this |
| 8644 * expression is not stored locally but is stored in the nearest ancestor that
is a{@link CascadeExpression}. | 8644 * expression is not stored locally but is stored in the nearest ancestor that
is a{@link CascadeExpression}. |
| 8645 * @return {@code true} if this expression is cascaded | 8645 * @return {@code true} if this expression is cascaded |
| 8646 */ | 8646 */ |
| 8647 bool isCascaded() => _operator != null && identical(_operator.type, TokenType.
PERIOD_PERIOD); | 8647 bool isCascaded() => _operator != null && identical(_operator.type, TokenType.
PERIOD_PERIOD); |
| 8648 /** | 8648 /** |
| 8649 * Set the property access operator to the given token. | 8649 * Set the property access operator to the given token. |
| 8650 * @param operator the property access operator | 8650 * @param operator the property access operator |
| 8651 */ | 8651 */ |
| 8652 void set operator(Token operator6) { | 8652 void set operator(Token operator2) { |
| 8653 this._operator = operator6; | 8653 this._operator = operator2; |
| 8654 } | 8654 } |
| 8655 /** | 8655 /** |
| 8656 * Set the name of the property being accessed to the given identifier. | 8656 * Set the name of the property being accessed to the given identifier. |
| 8657 * @param identifier the name of the property being accessed | 8657 * @param identifier the name of the property being accessed |
| 8658 */ | 8658 */ |
| 8659 void set propertyName(SimpleIdentifier identifier) { | 8659 void set propertyName(SimpleIdentifier identifier) { |
| 8660 _propertyName = becomeParentOf(identifier); | 8660 _propertyName = becomeParentOf(identifier); |
| 8661 } | 8661 } |
| 8662 /** | 8662 /** |
| 8663 * Set the expression computing the object defining the property being accesse
d to the given | 8663 * Set the expression computing the object defining the property being accesse
d to the given |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8754 Token get keyword => _keyword; | 8754 Token get keyword => _keyword; |
| 8755 /** | 8755 /** |
| 8756 * Return the token for the period before the name of the constructor that is
being invoked, or{@code null} if the unnamed constructor is being invoked. | 8756 * Return the token for the period before the name of the constructor that is
being invoked, or{@code null} if the unnamed constructor is being invoked. |
| 8757 * @return the token for the period before the name of the constructor that is
being invoked | 8757 * @return the token for the period before the name of the constructor that is
being invoked |
| 8758 */ | 8758 */ |
| 8759 Token get period => _period; | 8759 Token get period => _period; |
| 8760 /** | 8760 /** |
| 8761 * Set the list of arguments to the constructor to the given list. | 8761 * Set the list of arguments to the constructor to the given list. |
| 8762 * @param argumentList the list of arguments to the constructor | 8762 * @param argumentList the list of arguments to the constructor |
| 8763 */ | 8763 */ |
| 8764 void set argumentList(ArgumentList argumentList8) { | 8764 void set argumentList(ArgumentList argumentList2) { |
| 8765 this._argumentList = becomeParentOf(argumentList8); | 8765 this._argumentList = becomeParentOf(argumentList2); |
| 8766 } | 8766 } |
| 8767 /** | 8767 /** |
| 8768 * Set the name of the constructor that is being invoked to the given identifi
er. | 8768 * Set the name of the constructor that is being invoked to the given identifi
er. |
| 8769 * @param identifier the name of the constructor that is being invoked | 8769 * @param identifier the name of the constructor that is being invoked |
| 8770 */ | 8770 */ |
| 8771 void set constructorName(SimpleIdentifier identifier) { | 8771 void set constructorName(SimpleIdentifier identifier) { |
| 8772 _constructorName = becomeParentOf(identifier); | 8772 _constructorName = becomeParentOf(identifier); |
| 8773 } | 8773 } |
| 8774 /** | 8774 /** |
| 8775 * Set the element associated with the constructor to the given element. | 8775 * Set the element associated with the constructor to the given element. |
| 8776 * @param element the element associated with the constructor | 8776 * @param element the element associated with the constructor |
| 8777 */ | 8777 */ |
| 8778 void set element(ConstructorElement element15) { | 8778 void set element(ConstructorElement element2) { |
| 8779 this._element = element15; | 8779 this._element = element2; |
| 8780 } | 8780 } |
| 8781 /** | 8781 /** |
| 8782 * Set the token for the 'this' keyword to the given token. | 8782 * Set the token for the 'this' keyword to the given token. |
| 8783 * @param keyword the token for the 'this' keyword | 8783 * @param keyword the token for the 'this' keyword |
| 8784 */ | 8784 */ |
| 8785 void set keyword(Token keyword14) { | 8785 void set keyword(Token keyword2) { |
| 8786 this._keyword = keyword14; | 8786 this._keyword = keyword2; |
| 8787 } | 8787 } |
| 8788 /** | 8788 /** |
| 8789 * Set the token for the period before the name of the constructor that is bei
ng invoked to the | 8789 * Set the token for the period before the name of the constructor that is bei
ng invoked to the |
| 8790 * given token. | 8790 * given token. |
| 8791 * @param period the token for the period before the name of the constructor t
hat is being invoked | 8791 * @param period the token for the period before the name of the constructor t
hat is being invoked |
| 8792 */ | 8792 */ |
| 8793 void set period(Token period11) { | 8793 void set period(Token period2) { |
| 8794 this._period = period11; | 8794 this._period = period2; |
| 8795 } | 8795 } |
| 8796 void visitChildren(ASTVisitor<Object> visitor) { | 8796 void visitChildren(ASTVisitor<Object> visitor) { |
| 8797 safelyVisitChild(_constructorName, visitor); | 8797 safelyVisitChild(_constructorName, visitor); |
| 8798 safelyVisitChild(_argumentList, visitor); | 8798 safelyVisitChild(_argumentList, visitor); |
| 8799 } | 8799 } |
| 8800 } | 8800 } |
| 8801 /** | 8801 /** |
| 8802 * Instances of the class {@code RethrowExpression} represent a rethrow expressi
on. | 8802 * Instances of the class {@code RethrowExpression} represent a rethrow expressi
on. |
| 8803 * <pre> | 8803 * <pre> |
| 8804 * rethrowExpression ::= | 8804 * rethrowExpression ::= |
| (...skipping 23 matching lines...) Expand all Loading... |
| 8828 Token get endToken => _keyword; | 8828 Token get endToken => _keyword; |
| 8829 /** | 8829 /** |
| 8830 * Return the token representing the 'rethrow' keyword. | 8830 * Return the token representing the 'rethrow' keyword. |
| 8831 * @return the token representing the 'rethrow' keyword | 8831 * @return the token representing the 'rethrow' keyword |
| 8832 */ | 8832 */ |
| 8833 Token get keyword => _keyword; | 8833 Token get keyword => _keyword; |
| 8834 /** | 8834 /** |
| 8835 * Set the token representing the 'rethrow' keyword to the given token. | 8835 * Set the token representing the 'rethrow' keyword to the given token. |
| 8836 * @param keyword the token representing the 'rethrow' keyword | 8836 * @param keyword the token representing the 'rethrow' keyword |
| 8837 */ | 8837 */ |
| 8838 void set keyword(Token keyword15) { | 8838 void set keyword(Token keyword2) { |
| 8839 this._keyword = keyword15; | 8839 this._keyword = keyword2; |
| 8840 } | 8840 } |
| 8841 void visitChildren(ASTVisitor<Object> visitor) { | 8841 void visitChildren(ASTVisitor<Object> visitor) { |
| 8842 } | 8842 } |
| 8843 } | 8843 } |
| 8844 /** | 8844 /** |
| 8845 * Instances of the class {@code ReturnStatement} represent a return statement. | 8845 * Instances of the class {@code ReturnStatement} represent a return statement. |
| 8846 * <pre> | 8846 * <pre> |
| 8847 * returnStatement ::= | 8847 * returnStatement ::= |
| 8848 * 'return' {@link Expression expression}? ';' | 8848 * 'return' {@link Expression expression}? ';' |
| 8849 * </pre> | 8849 * </pre> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8897 Token get keyword => _keyword; | 8897 Token get keyword => _keyword; |
| 8898 /** | 8898 /** |
| 8899 * Return the semicolon terminating the statement. | 8899 * Return the semicolon terminating the statement. |
| 8900 * @return the semicolon terminating the statement | 8900 * @return the semicolon terminating the statement |
| 8901 */ | 8901 */ |
| 8902 Token get semicolon => _semicolon; | 8902 Token get semicolon => _semicolon; |
| 8903 /** | 8903 /** |
| 8904 * Set the expression computing the value to be returned to the given expressi
on. | 8904 * Set the expression computing the value to be returned to the given expressi
on. |
| 8905 * @param expression the expression computing the value to be returned | 8905 * @param expression the expression computing the value to be returned |
| 8906 */ | 8906 */ |
| 8907 void set expression(Expression expression10) { | 8907 void set expression(Expression expression2) { |
| 8908 this._expression = becomeParentOf(expression10); | 8908 this._expression = becomeParentOf(expression2); |
| 8909 } | 8909 } |
| 8910 /** | 8910 /** |
| 8911 * Set the token representing the 'return' keyword to the given token. | 8911 * Set the token representing the 'return' keyword to the given token. |
| 8912 * @param keyword the token representing the 'return' keyword | 8912 * @param keyword the token representing the 'return' keyword |
| 8913 */ | 8913 */ |
| 8914 void set keyword(Token keyword16) { | 8914 void set keyword(Token keyword2) { |
| 8915 this._keyword = keyword16; | 8915 this._keyword = keyword2; |
| 8916 } | 8916 } |
| 8917 /** | 8917 /** |
| 8918 * Set the semicolon terminating the statement to the given token. | 8918 * Set the semicolon terminating the statement to the given token. |
| 8919 * @param semicolon the semicolon terminating the statement | 8919 * @param semicolon the semicolon terminating the statement |
| 8920 */ | 8920 */ |
| 8921 void set semicolon(Token semicolon15) { | 8921 void set semicolon(Token semicolon2) { |
| 8922 this._semicolon = semicolon15; | 8922 this._semicolon = semicolon2; |
| 8923 } | 8923 } |
| 8924 void visitChildren(ASTVisitor<Object> visitor) { | 8924 void visitChildren(ASTVisitor<Object> visitor) { |
| 8925 safelyVisitChild(_expression, visitor); | 8925 safelyVisitChild(_expression, visitor); |
| 8926 } | 8926 } |
| 8927 } | 8927 } |
| 8928 /** | 8928 /** |
| 8929 * Instances of the class {@code ScriptTag} represent the script tag that can op
tionally occur at | 8929 * Instances of the class {@code ScriptTag} represent the script tag that can op
tionally occur at |
| 8930 * the beginning of a compilation unit. | 8930 * the beginning of a compilation unit. |
| 8931 * <pre> | 8931 * <pre> |
| 8932 * scriptTag ::= | 8932 * scriptTag ::= |
| (...skipping 23 matching lines...) Expand all Loading... |
| 8956 Token get endToken => _scriptTag; | 8956 Token get endToken => _scriptTag; |
| 8957 /** | 8957 /** |
| 8958 * Return the token representing this script tag. | 8958 * Return the token representing this script tag. |
| 8959 * @return the token representing this script tag | 8959 * @return the token representing this script tag |
| 8960 */ | 8960 */ |
| 8961 Token get scriptTag => _scriptTag; | 8961 Token get scriptTag => _scriptTag; |
| 8962 /** | 8962 /** |
| 8963 * Set the token representing this script tag to the given script tag. | 8963 * Set the token representing this script tag to the given script tag. |
| 8964 * @param scriptTag the token representing this script tag | 8964 * @param scriptTag the token representing this script tag |
| 8965 */ | 8965 */ |
| 8966 void set scriptTag(Token scriptTag3) { | 8966 void set scriptTag(Token scriptTag2) { |
| 8967 this._scriptTag = scriptTag3; | 8967 this._scriptTag = scriptTag2; |
| 8968 } | 8968 } |
| 8969 void visitChildren(ASTVisitor<Object> visitor) { | 8969 void visitChildren(ASTVisitor<Object> visitor) { |
| 8970 } | 8970 } |
| 8971 } | 8971 } |
| 8972 /** | 8972 /** |
| 8973 * Instances of the class {@code ShowCombinator} represent a combinator that res
tricts the names | 8973 * Instances of the class {@code ShowCombinator} represent a combinator that res
tricts the names |
| 8974 * being imported to those in a given list. | 8974 * being imported to those in a given list. |
| 8975 * <pre> | 8975 * <pre> |
| 8976 * showCombinator ::= | 8976 * showCombinator ::= |
| 8977 * 'show' {@link SimpleIdentifier identifier} (',' {@link SimpleIdentifier ident
ifier}) | 8977 * 'show' {@link SimpleIdentifier identifier} (',' {@link SimpleIdentifier ident
ifier}) |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9068 * not have a declared type. | 9068 * not have a declared type. |
| 9069 * @return the name of the declared type of the parameter | 9069 * @return the name of the declared type of the parameter |
| 9070 */ | 9070 */ |
| 9071 TypeName get type => _type; | 9071 TypeName get type => _type; |
| 9072 bool isConst() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.CONST); | 9072 bool isConst() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.CONST); |
| 9073 bool isFinal() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.FINAL); | 9073 bool isFinal() => (_keyword is KeywordToken) && identical(((_keyword as Keywor
dToken)).keyword, Keyword.FINAL); |
| 9074 /** | 9074 /** |
| 9075 * Set the token representing either the 'final', 'const' or 'var' keyword to
the given token. | 9075 * Set the token representing either the 'final', 'const' or 'var' keyword to
the given token. |
| 9076 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword | 9076 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword |
| 9077 */ | 9077 */ |
| 9078 void set keyword(Token keyword17) { | 9078 void set keyword(Token keyword2) { |
| 9079 this._keyword = keyword17; | 9079 this._keyword = keyword2; |
| 9080 } | 9080 } |
| 9081 /** | 9081 /** |
| 9082 * Set the name of the declared type of the parameter to the given type name. | 9082 * Set the name of the declared type of the parameter to the given type name. |
| 9083 * @param typeName the name of the declared type of the parameter | 9083 * @param typeName the name of the declared type of the parameter |
| 9084 */ | 9084 */ |
| 9085 void set type(TypeName typeName) { | 9085 void set type(TypeName typeName) { |
| 9086 _type = becomeParentOf(typeName); | 9086 _type = becomeParentOf(typeName); |
| 9087 } | 9087 } |
| 9088 void visitChildren(ASTVisitor<Object> visitor) { | 9088 void visitChildren(ASTVisitor<Object> visitor) { |
| 9089 super.visitChildren(visitor); | 9089 super.visitChildren(visitor); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9131 /** | 9131 /** |
| 9132 * Return the token representing the identifier. | 9132 * Return the token representing the identifier. |
| 9133 * @return the token representing the identifier | 9133 * @return the token representing the identifier |
| 9134 */ | 9134 */ |
| 9135 Token get token => _token; | 9135 Token get token => _token; |
| 9136 /** | 9136 /** |
| 9137 * Return {@code true} if this identifier is the name being declared in a decl
aration. | 9137 * Return {@code true} if this identifier is the name being declared in a decl
aration. |
| 9138 * @return {@code true} if this identifier is the name being declared in a dec
laration | 9138 * @return {@code true} if this identifier is the name being declared in a dec
laration |
| 9139 */ | 9139 */ |
| 9140 bool inDeclarationContext() { | 9140 bool inDeclarationContext() { |
| 9141 ASTNode parent7 = parent; | 9141 ASTNode parent2 = parent; |
| 9142 if (parent7 is CatchClause) { | 9142 if (parent2 is CatchClause) { |
| 9143 CatchClause clause = parent7 as CatchClause; | 9143 CatchClause clause = parent2 as CatchClause; |
| 9144 return identical(this, clause.exceptionParameter) || identical(this, claus
e.stackTraceParameter); | 9144 return identical(this, clause.exceptionParameter) || identical(this, claus
e.stackTraceParameter); |
| 9145 } else if (parent7 is ClassDeclaration) { | 9145 } else if (parent2 is ClassDeclaration) { |
| 9146 return identical(this, ((parent7 as ClassDeclaration)).name); | 9146 return identical(this, ((parent2 as ClassDeclaration)).name); |
| 9147 } else if (parent7 is ClassTypeAlias) { | 9147 } else if (parent2 is ClassTypeAlias) { |
| 9148 return identical(this, ((parent7 as ClassTypeAlias)).name); | 9148 return identical(this, ((parent2 as ClassTypeAlias)).name); |
| 9149 } else if (parent7 is ConstructorDeclaration) { | 9149 } else if (parent2 is ConstructorDeclaration) { |
| 9150 return identical(this, ((parent7 as ConstructorDeclaration)).name); | 9150 return identical(this, ((parent2 as ConstructorDeclaration)).name); |
| 9151 } else if (parent7 is FunctionDeclaration) { | 9151 } else if (parent2 is FunctionDeclaration) { |
| 9152 return identical(this, ((parent7 as FunctionDeclaration)).name); | 9152 return identical(this, ((parent2 as FunctionDeclaration)).name); |
| 9153 } else if (parent7 is FunctionTypeAlias) { | 9153 } else if (parent2 is FunctionTypeAlias) { |
| 9154 return identical(this, ((parent7 as FunctionTypeAlias)).name); | 9154 return identical(this, ((parent2 as FunctionTypeAlias)).name); |
| 9155 } else if (parent7 is Label) { | 9155 } else if (parent2 is Label) { |
| 9156 return identical(this, ((parent7 as Label)).label) && (parent7.parent is L
abeledStatement); | 9156 return identical(this, ((parent2 as Label)).label) && (parent2.parent is L
abeledStatement); |
| 9157 } else if (parent7 is MethodDeclaration) { | 9157 } else if (parent2 is MethodDeclaration) { |
| 9158 return identical(this, ((parent7 as MethodDeclaration)).name); | 9158 return identical(this, ((parent2 as MethodDeclaration)).name); |
| 9159 } else if (parent7 is FunctionTypedFormalParameter || parent7 is SimpleForma
lParameter) { | 9159 } else if (parent2 is FunctionTypedFormalParameter || parent2 is SimpleForma
lParameter) { |
| 9160 return identical(this, ((parent7 as NormalFormalParameter)).identifier); | 9160 return identical(this, ((parent2 as NormalFormalParameter)).identifier); |
| 9161 } else if (parent7 is TypeParameter) { | 9161 } else if (parent2 is TypeParameter) { |
| 9162 return identical(this, ((parent7 as TypeParameter)).name); | 9162 return identical(this, ((parent2 as TypeParameter)).name); |
| 9163 } else if (parent7 is VariableDeclaration) { | 9163 } else if (parent2 is VariableDeclaration) { |
| 9164 return identical(this, ((parent7 as VariableDeclaration)).name); | 9164 return identical(this, ((parent2 as VariableDeclaration)).name); |
| 9165 } | 9165 } |
| 9166 return false; | 9166 return false; |
| 9167 } | 9167 } |
| 9168 /** | 9168 /** |
| 9169 * Return {@code true} if this expression is computing a right-hand value. | 9169 * Return {@code true} if this expression is computing a right-hand value. |
| 9170 * <p> | 9170 * <p> |
| 9171 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are | 9171 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are |
| 9172 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. | 9172 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. |
| 9173 * @return {@code true} if this expression is in a context where a getter will
be invoked | 9173 * @return {@code true} if this expression is in a context where a getter will
be invoked |
| 9174 */ | 9174 */ |
| 9175 bool inGetterContext() { | 9175 bool inGetterContext() { |
| 9176 ASTNode parent8 = parent; | 9176 ASTNode parent2 = parent; |
| 9177 ASTNode target = this; | 9177 ASTNode target = this; |
| 9178 if (parent8 is PrefixedIdentifier) { | 9178 if (parent2 is PrefixedIdentifier) { |
| 9179 PrefixedIdentifier prefixed = parent8 as PrefixedIdentifier; | 9179 PrefixedIdentifier prefixed = parent2 as PrefixedIdentifier; |
| 9180 if (identical(prefixed.prefix, this)) { | 9180 if (identical(prefixed.prefix, this)) { |
| 9181 return true; | 9181 return true; |
| 9182 } | 9182 } |
| 9183 parent8 = prefixed.parent; | 9183 parent2 = prefixed.parent; |
| 9184 target = prefixed; | 9184 target = prefixed; |
| 9185 } else if (parent8 is PropertyAccess) { | 9185 } else if (parent2 is PropertyAccess) { |
| 9186 PropertyAccess access = parent8 as PropertyAccess; | 9186 PropertyAccess access = parent2 as PropertyAccess; |
| 9187 if (identical(access.target, this)) { | 9187 if (identical(access.target, this)) { |
| 9188 return true; | 9188 return true; |
| 9189 } | 9189 } |
| 9190 parent8 = access.parent; | 9190 parent2 = access.parent; |
| 9191 target = access; | 9191 target = access; |
| 9192 } | 9192 } |
| 9193 if (parent8 is Label) { | 9193 if (parent2 is Label) { |
| 9194 return false; | 9194 return false; |
| 9195 } | 9195 } |
| 9196 if (parent8 is AssignmentExpression) { | 9196 if (parent2 is AssignmentExpression) { |
| 9197 AssignmentExpression expr = parent8 as AssignmentExpression; | 9197 AssignmentExpression expr = parent2 as AssignmentExpression; |
| 9198 if (identical(expr.leftHandSide, target) && identical(expr.operator.type,
TokenType.EQ)) { | 9198 if (identical(expr.leftHandSide, target) && identical(expr.operator.type,
TokenType.EQ)) { |
| 9199 return false; | 9199 return false; |
| 9200 } | 9200 } |
| 9201 } | 9201 } |
| 9202 return true; | 9202 return true; |
| 9203 } | 9203 } |
| 9204 /** | 9204 /** |
| 9205 * Return {@code true} if this expression is computing a left-hand value. | 9205 * Return {@code true} if this expression is computing a left-hand value. |
| 9206 * <p> | 9206 * <p> |
| 9207 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are | 9207 * Note that {@link #inGetterContext()} and {@link #inSetterContext()} are not
opposites, nor are |
| 9208 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. | 9208 * they mutually exclusive. In other words, it is possible for both methods to
return {@code true}when invoked on the same node. |
| 9209 * @return {@code true} if this expression is in a context where a setter will
be invoked | 9209 * @return {@code true} if this expression is in a context where a setter will
be invoked |
| 9210 */ | 9210 */ |
| 9211 bool inSetterContext() { | 9211 bool inSetterContext() { |
| 9212 ASTNode parent9 = parent; | 9212 ASTNode parent2 = parent; |
| 9213 ASTNode target = this; | 9213 ASTNode target = this; |
| 9214 if (parent9 is PrefixedIdentifier) { | 9214 if (parent2 is PrefixedIdentifier) { |
| 9215 PrefixedIdentifier prefixed = parent9 as PrefixedIdentifier; | 9215 PrefixedIdentifier prefixed = parent2 as PrefixedIdentifier; |
| 9216 if (identical(prefixed.prefix, this)) { | 9216 if (identical(prefixed.prefix, this)) { |
| 9217 return false; | 9217 return false; |
| 9218 } | 9218 } |
| 9219 parent9 = prefixed.parent; | 9219 parent2 = prefixed.parent; |
| 9220 target = prefixed; | 9220 target = prefixed; |
| 9221 } else if (parent9 is PropertyAccess) { | 9221 } else if (parent2 is PropertyAccess) { |
| 9222 PropertyAccess access = parent9 as PropertyAccess; | 9222 PropertyAccess access = parent2 as PropertyAccess; |
| 9223 if (identical(access.target, this)) { | 9223 if (identical(access.target, this)) { |
| 9224 return false; | 9224 return false; |
| 9225 } | 9225 } |
| 9226 parent9 = access.parent; | 9226 parent2 = access.parent; |
| 9227 target = access; | 9227 target = access; |
| 9228 } | 9228 } |
| 9229 if (parent9 is PrefixExpression) { | 9229 if (parent2 is PrefixExpression) { |
| 9230 return ((parent9 as PrefixExpression)).operator.type.isIncrementOperator()
; | 9230 return ((parent2 as PrefixExpression)).operator.type.isIncrementOperator()
; |
| 9231 } else if (parent9 is PostfixExpression) { | 9231 } else if (parent2 is PostfixExpression) { |
| 9232 return true; | 9232 return true; |
| 9233 } else if (parent9 is AssignmentExpression) { | 9233 } else if (parent2 is AssignmentExpression) { |
| 9234 return identical(((parent9 as AssignmentExpression)).leftHandSide, target)
; | 9234 return identical(((parent2 as AssignmentExpression)).leftHandSide, target)
; |
| 9235 } | 9235 } |
| 9236 return false; | 9236 return false; |
| 9237 } | 9237 } |
| 9238 bool isSynthetic() => _token.isSynthetic(); | 9238 bool isSynthetic() => _token.isSynthetic(); |
| 9239 /** | 9239 /** |
| 9240 * Set the element associated with this identifier to the given element. | 9240 * Set the element associated with this identifier to the given element. |
| 9241 * @param element the element associated with this identifier | 9241 * @param element the element associated with this identifier |
| 9242 */ | 9242 */ |
| 9243 void set element(Element element16) { | 9243 void set element(Element element2) { |
| 9244 this._element = element16; | 9244 this._element = element2; |
| 9245 } | 9245 } |
| 9246 /** | 9246 /** |
| 9247 * Set the token representing the identifier to the given token. | 9247 * Set the token representing the identifier to the given token. |
| 9248 * @param token the token representing the literal | 9248 * @param token the token representing the literal |
| 9249 */ | 9249 */ |
| 9250 void set token(Token token17) { | 9250 void set token(Token token2) { |
| 9251 this._token = token17; | 9251 this._token = token2; |
| 9252 } | 9252 } |
| 9253 void visitChildren(ASTVisitor<Object> visitor) { | 9253 void visitChildren(ASTVisitor<Object> visitor) { |
| 9254 } | 9254 } |
| 9255 } | 9255 } |
| 9256 /** | 9256 /** |
| 9257 * Instances of the class {@code SimpleStringLiteral} represent a string literal
expression that | 9257 * Instances of the class {@code SimpleStringLiteral} represent a string literal
expression that |
| 9258 * does not contain any interpolations. | 9258 * does not contain any interpolations. |
| 9259 * <pre> | 9259 * <pre> |
| 9260 * simpleStringLiteral ::= | 9260 * simpleStringLiteral ::= |
| 9261 * rawStringLiteral | 9261 * rawStringLiteral |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9324 /** | 9324 /** |
| 9325 * Return {@code true} if this string literal is a raw string. | 9325 * Return {@code true} if this string literal is a raw string. |
| 9326 * @return {@code true} if this string literal is a raw string | 9326 * @return {@code true} if this string literal is a raw string |
| 9327 */ | 9327 */ |
| 9328 bool isRaw() => _value.codeUnitAt(0) == 0x40; | 9328 bool isRaw() => _value.codeUnitAt(0) == 0x40; |
| 9329 bool isSynthetic() => _literal.isSynthetic(); | 9329 bool isSynthetic() => _literal.isSynthetic(); |
| 9330 /** | 9330 /** |
| 9331 * Set the token representing the literal to the given token. | 9331 * Set the token representing the literal to the given token. |
| 9332 * @param literal the token representing the literal | 9332 * @param literal the token representing the literal |
| 9333 */ | 9333 */ |
| 9334 void set literal(Token literal6) { | 9334 void set literal(Token literal2) { |
| 9335 this._literal = literal6; | 9335 this._literal = literal2; |
| 9336 } | 9336 } |
| 9337 /** | 9337 /** |
| 9338 * Set the value of the literal to the given string. | 9338 * Set the value of the literal to the given string. |
| 9339 * @param string the value of the literal | 9339 * @param string the value of the literal |
| 9340 */ | 9340 */ |
| 9341 void set value(String string) { | 9341 void set value(String string) { |
| 9342 _value = StringUtilities.intern(_value); | 9342 _value = StringUtilities.intern(_value); |
| 9343 } | 9343 } |
| 9344 void visitChildren(ASTVisitor<Object> visitor) { | 9344 void visitChildren(ASTVisitor<Object> visitor) { |
| 9345 } | 9345 } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9481 Token get keyword => _keyword; | 9481 Token get keyword => _keyword; |
| 9482 /** | 9482 /** |
| 9483 * Return the token for the period before the name of the constructor that is
being invoked, or{@code null} if the unnamed constructor is being invoked. | 9483 * Return the token for the period before the name of the constructor that is
being invoked, or{@code null} if the unnamed constructor is being invoked. |
| 9484 * @return the token for the period before the name of the constructor that is
being invoked | 9484 * @return the token for the period before the name of the constructor that is
being invoked |
| 9485 */ | 9485 */ |
| 9486 Token get period => _period; | 9486 Token get period => _period; |
| 9487 /** | 9487 /** |
| 9488 * Set the list of arguments to the constructor to the given list. | 9488 * Set the list of arguments to the constructor to the given list. |
| 9489 * @param argumentList the list of arguments to the constructor | 9489 * @param argumentList the list of arguments to the constructor |
| 9490 */ | 9490 */ |
| 9491 void set argumentList(ArgumentList argumentList9) { | 9491 void set argumentList(ArgumentList argumentList2) { |
| 9492 this._argumentList = becomeParentOf(argumentList9); | 9492 this._argumentList = becomeParentOf(argumentList2); |
| 9493 } | 9493 } |
| 9494 /** | 9494 /** |
| 9495 * Set the name of the constructor that is being invoked to the given identifi
er. | 9495 * Set the name of the constructor that is being invoked to the given identifi
er. |
| 9496 * @param identifier the name of the constructor that is being invoked | 9496 * @param identifier the name of the constructor that is being invoked |
| 9497 */ | 9497 */ |
| 9498 void set constructorName(SimpleIdentifier identifier) { | 9498 void set constructorName(SimpleIdentifier identifier) { |
| 9499 _constructorName = becomeParentOf(identifier); | 9499 _constructorName = becomeParentOf(identifier); |
| 9500 } | 9500 } |
| 9501 /** | 9501 /** |
| 9502 * Set the element associated with the constructor to the given element. | 9502 * Set the element associated with the constructor to the given element. |
| 9503 * @param element the element associated with the constructor | 9503 * @param element the element associated with the constructor |
| 9504 */ | 9504 */ |
| 9505 void set element(ConstructorElement element17) { | 9505 void set element(ConstructorElement element2) { |
| 9506 this._element = element17; | 9506 this._element = element2; |
| 9507 } | 9507 } |
| 9508 /** | 9508 /** |
| 9509 * Set the token for the 'super' keyword to the given token. | 9509 * Set the token for the 'super' keyword to the given token. |
| 9510 * @param keyword the token for the 'super' keyword | 9510 * @param keyword the token for the 'super' keyword |
| 9511 */ | 9511 */ |
| 9512 void set keyword(Token keyword18) { | 9512 void set keyword(Token keyword2) { |
| 9513 this._keyword = keyword18; | 9513 this._keyword = keyword2; |
| 9514 } | 9514 } |
| 9515 /** | 9515 /** |
| 9516 * Set the token for the period before the name of the constructor that is bei
ng invoked to the | 9516 * Set the token for the period before the name of the constructor that is bei
ng invoked to the |
| 9517 * given token. | 9517 * given token. |
| 9518 * @param period the token for the period before the name of the constructor t
hat is being invoked | 9518 * @param period the token for the period before the name of the constructor t
hat is being invoked |
| 9519 */ | 9519 */ |
| 9520 void set period(Token period12) { | 9520 void set period(Token period2) { |
| 9521 this._period = period12; | 9521 this._period = period2; |
| 9522 } | 9522 } |
| 9523 void visitChildren(ASTVisitor<Object> visitor) { | 9523 void visitChildren(ASTVisitor<Object> visitor) { |
| 9524 safelyVisitChild(_constructorName, visitor); | 9524 safelyVisitChild(_constructorName, visitor); |
| 9525 safelyVisitChild(_argumentList, visitor); | 9525 safelyVisitChild(_argumentList, visitor); |
| 9526 } | 9526 } |
| 9527 } | 9527 } |
| 9528 /** | 9528 /** |
| 9529 * Instances of the class {@code SuperExpression} represent a super expression. | 9529 * Instances of the class {@code SuperExpression} represent a super expression. |
| 9530 * <pre> | 9530 * <pre> |
| 9531 * superExpression ::= | 9531 * superExpression ::= |
| (...skipping 23 matching lines...) Expand all Loading... |
| 9555 Token get endToken => _keyword; | 9555 Token get endToken => _keyword; |
| 9556 /** | 9556 /** |
| 9557 * Return the token representing the keyword. | 9557 * Return the token representing the keyword. |
| 9558 * @return the token representing the keyword | 9558 * @return the token representing the keyword |
| 9559 */ | 9559 */ |
| 9560 Token get keyword => _keyword; | 9560 Token get keyword => _keyword; |
| 9561 /** | 9561 /** |
| 9562 * Set the token representing the keyword to the given token. | 9562 * Set the token representing the keyword to the given token. |
| 9563 * @param keyword the token representing the keyword | 9563 * @param keyword the token representing the keyword |
| 9564 */ | 9564 */ |
| 9565 void set keyword(Token keyword19) { | 9565 void set keyword(Token keyword2) { |
| 9566 this._keyword = keyword19; | 9566 this._keyword = keyword2; |
| 9567 } | 9567 } |
| 9568 void visitChildren(ASTVisitor<Object> visitor) { | 9568 void visitChildren(ASTVisitor<Object> visitor) { |
| 9569 } | 9569 } |
| 9570 } | 9570 } |
| 9571 /** | 9571 /** |
| 9572 * Instances of the class {@code SwitchCase} represent the case in a switch stat
ement. | 9572 * Instances of the class {@code SwitchCase} represent the case in a switch stat
ement. |
| 9573 * <pre> | 9573 * <pre> |
| 9574 * switchCase ::={@link SimpleIdentifier label}* 'case' {@link Expression expres
sion} ':' {@link Statement statement}</pre> | 9574 * switchCase ::={@link SimpleIdentifier label}* 'case' {@link Expression expres
sion} ':' {@link Statement statement}</pre> |
| 9575 * @coverage dart.engine.ast | 9575 * @coverage dart.engine.ast |
| 9576 */ | 9576 */ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9602 accept(ASTVisitor visitor) => visitor.visitSwitchCase(this); | 9602 accept(ASTVisitor visitor) => visitor.visitSwitchCase(this); |
| 9603 /** | 9603 /** |
| 9604 * Return the expression controlling whether the statements will be executed. | 9604 * Return the expression controlling whether the statements will be executed. |
| 9605 * @return the expression controlling whether the statements will be executed | 9605 * @return the expression controlling whether the statements will be executed |
| 9606 */ | 9606 */ |
| 9607 Expression get expression => _expression; | 9607 Expression get expression => _expression; |
| 9608 /** | 9608 /** |
| 9609 * Set the expression controlling whether the statements will be executed to t
he given expression. | 9609 * Set the expression controlling whether the statements will be executed to t
he given expression. |
| 9610 * @param expression the expression controlling whether the statements will be
executed | 9610 * @param expression the expression controlling whether the statements will be
executed |
| 9611 */ | 9611 */ |
| 9612 void set expression(Expression expression11) { | 9612 void set expression(Expression expression2) { |
| 9613 this._expression = becomeParentOf(expression11); | 9613 this._expression = becomeParentOf(expression2); |
| 9614 } | 9614 } |
| 9615 void visitChildren(ASTVisitor<Object> visitor) { | 9615 void visitChildren(ASTVisitor<Object> visitor) { |
| 9616 labels.accept(visitor); | 9616 labels.accept(visitor); |
| 9617 safelyVisitChild(_expression, visitor); | 9617 safelyVisitChild(_expression, visitor); |
| 9618 statements.accept(visitor); | 9618 statements.accept(visitor); |
| 9619 } | 9619 } |
| 9620 } | 9620 } |
| 9621 /** | 9621 /** |
| 9622 * Instances of the class {@code SwitchDefault} represent the default case in a
switch statement. | 9622 * Instances of the class {@code SwitchDefault} represent the default case in a
switch statement. |
| 9623 * <pre> | 9623 * <pre> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9727 NodeList<Label> get labels => _labels; | 9727 NodeList<Label> get labels => _labels; |
| 9728 /** | 9728 /** |
| 9729 * Return the statements that will be executed if this switch member is select
ed. | 9729 * Return the statements that will be executed if this switch member is select
ed. |
| 9730 * @return the statements that will be executed if this switch member is selec
ted | 9730 * @return the statements that will be executed if this switch member is selec
ted |
| 9731 */ | 9731 */ |
| 9732 NodeList<Statement> get statements => _statements; | 9732 NodeList<Statement> get statements => _statements; |
| 9733 /** | 9733 /** |
| 9734 * Set the colon separating the keyword or the expression from the statements
to the given token. | 9734 * Set the colon separating the keyword or the expression from the statements
to the given token. |
| 9735 * @param colon the colon separating the keyword or the expression from the st
atements | 9735 * @param colon the colon separating the keyword or the expression from the st
atements |
| 9736 */ | 9736 */ |
| 9737 void set colon(Token colon4) { | 9737 void set colon(Token colon2) { |
| 9738 this._colon = colon4; | 9738 this._colon = colon2; |
| 9739 } | 9739 } |
| 9740 /** | 9740 /** |
| 9741 * Set the token representing the 'case' or 'default' keyword to the given tok
en. | 9741 * Set the token representing the 'case' or 'default' keyword to the given tok
en. |
| 9742 * @param keyword the token representing the 'case' or 'default' keyword | 9742 * @param keyword the token representing the 'case' or 'default' keyword |
| 9743 */ | 9743 */ |
| 9744 void set keyword(Token keyword20) { | 9744 void set keyword(Token keyword2) { |
| 9745 this._keyword = keyword20; | 9745 this._keyword = keyword2; |
| 9746 } | 9746 } |
| 9747 } | 9747 } |
| 9748 /** | 9748 /** |
| 9749 * Instances of the class {@code SwitchStatement} represent a switch statement. | 9749 * Instances of the class {@code SwitchStatement} represent a switch statement. |
| 9750 * <pre> | 9750 * <pre> |
| 9751 * switchStatement ::= | 9751 * switchStatement ::= |
| 9752 * 'switch' '(' {@link Expression expression} ')' '{' {@link SwitchCase switchCa
se}* {@link SwitchDefault defaultCase}? '}' | 9752 * 'switch' '(' {@link Expression expression} ')' '{' {@link SwitchCase switchCa
se}* {@link SwitchDefault defaultCase}? '}' |
| 9753 * </pre> | 9753 * </pre> |
| 9754 * @coverage dart.engine.ast | 9754 * @coverage dart.engine.ast |
| 9755 */ | 9755 */ |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9849 /** | 9849 /** |
| 9850 * Return the right parenthesis. | 9850 * Return the right parenthesis. |
| 9851 * @return the right parenthesis | 9851 * @return the right parenthesis |
| 9852 */ | 9852 */ |
| 9853 Token get rightParenthesis => _rightParenthesis; | 9853 Token get rightParenthesis => _rightParenthesis; |
| 9854 /** | 9854 /** |
| 9855 * Set the expression used to determine which of the switch members will be se
lected to the given | 9855 * Set the expression used to determine which of the switch members will be se
lected to the given |
| 9856 * expression. | 9856 * expression. |
| 9857 * @param expression the expression used to determine which of the switch memb
ers will be selected | 9857 * @param expression the expression used to determine which of the switch memb
ers will be selected |
| 9858 */ | 9858 */ |
| 9859 void set expression(Expression expression12) { | 9859 void set expression(Expression expression2) { |
| 9860 this._expression = becomeParentOf(expression12); | 9860 this._expression = becomeParentOf(expression2); |
| 9861 } | 9861 } |
| 9862 /** | 9862 /** |
| 9863 * Set the token representing the 'switch' keyword to the given token. | 9863 * Set the token representing the 'switch' keyword to the given token. |
| 9864 * @param keyword the token representing the 'switch' keyword | 9864 * @param keyword the token representing the 'switch' keyword |
| 9865 */ | 9865 */ |
| 9866 void set keyword(Token keyword21) { | 9866 void set keyword(Token keyword2) { |
| 9867 this._keyword = keyword21; | 9867 this._keyword = keyword2; |
| 9868 } | 9868 } |
| 9869 /** | 9869 /** |
| 9870 * Set the left curly bracket to the given token. | 9870 * Set the left curly bracket to the given token. |
| 9871 * @param leftBracket the left curly bracket | 9871 * @param leftBracket the left curly bracket |
| 9872 */ | 9872 */ |
| 9873 void set leftBracket(Token leftBracket7) { | 9873 void set leftBracket(Token leftBracket2) { |
| 9874 this._leftBracket = leftBracket7; | 9874 this._leftBracket = leftBracket2; |
| 9875 } | 9875 } |
| 9876 /** | 9876 /** |
| 9877 * Set the left parenthesis to the given token. | 9877 * Set the left parenthesis to the given token. |
| 9878 * @param leftParenthesis the left parenthesis | 9878 * @param leftParenthesis the left parenthesis |
| 9879 */ | 9879 */ |
| 9880 void set leftParenthesis(Token leftParenthesis6) { | 9880 void set leftParenthesis(Token leftParenthesis2) { |
| 9881 this._leftParenthesis = leftParenthesis6; | 9881 this._leftParenthesis = leftParenthesis2; |
| 9882 } | 9882 } |
| 9883 /** | 9883 /** |
| 9884 * Set the right curly bracket to the given token. | 9884 * Set the right curly bracket to the given token. |
| 9885 * @param rightBracket the right curly bracket | 9885 * @param rightBracket the right curly bracket |
| 9886 */ | 9886 */ |
| 9887 void set rightBracket(Token rightBracket7) { | 9887 void set rightBracket(Token rightBracket2) { |
| 9888 this._rightBracket = rightBracket7; | 9888 this._rightBracket = rightBracket2; |
| 9889 } | 9889 } |
| 9890 /** | 9890 /** |
| 9891 * Set the right parenthesis to the given token. | 9891 * Set the right parenthesis to the given token. |
| 9892 * @param rightParenthesis the right parenthesis | 9892 * @param rightParenthesis the right parenthesis |
| 9893 */ | 9893 */ |
| 9894 void set rightParenthesis(Token rightParenthesis6) { | 9894 void set rightParenthesis(Token rightParenthesis2) { |
| 9895 this._rightParenthesis = rightParenthesis6; | 9895 this._rightParenthesis = rightParenthesis2; |
| 9896 } | 9896 } |
| 9897 void visitChildren(ASTVisitor<Object> visitor) { | 9897 void visitChildren(ASTVisitor<Object> visitor) { |
| 9898 safelyVisitChild(_expression, visitor); | 9898 safelyVisitChild(_expression, visitor); |
| 9899 _members.accept(visitor); | 9899 _members.accept(visitor); |
| 9900 } | 9900 } |
| 9901 } | 9901 } |
| 9902 /** | 9902 /** |
| 9903 * Instances of the class {@code ThisExpression} represent a this expression. | 9903 * Instances of the class {@code ThisExpression} represent a this expression. |
| 9904 * <pre> | 9904 * <pre> |
| 9905 * thisExpression ::= | 9905 * thisExpression ::= |
| (...skipping 23 matching lines...) Expand all Loading... |
| 9929 Token get endToken => _keyword; | 9929 Token get endToken => _keyword; |
| 9930 /** | 9930 /** |
| 9931 * Return the token representing the keyword. | 9931 * Return the token representing the keyword. |
| 9932 * @return the token representing the keyword | 9932 * @return the token representing the keyword |
| 9933 */ | 9933 */ |
| 9934 Token get keyword => _keyword; | 9934 Token get keyword => _keyword; |
| 9935 /** | 9935 /** |
| 9936 * Set the token representing the keyword to the given token. | 9936 * Set the token representing the keyword to the given token. |
| 9937 * @param keyword the token representing the keyword | 9937 * @param keyword the token representing the keyword |
| 9938 */ | 9938 */ |
| 9939 void set keyword(Token keyword22) { | 9939 void set keyword(Token keyword2) { |
| 9940 this._keyword = keyword22; | 9940 this._keyword = keyword2; |
| 9941 } | 9941 } |
| 9942 void visitChildren(ASTVisitor<Object> visitor) { | 9942 void visitChildren(ASTVisitor<Object> visitor) { |
| 9943 } | 9943 } |
| 9944 } | 9944 } |
| 9945 /** | 9945 /** |
| 9946 * Instances of the class {@code ThrowExpression} represent a throw expression. | 9946 * Instances of the class {@code ThrowExpression} represent a throw expression. |
| 9947 * <pre> | 9947 * <pre> |
| 9948 * throwExpression ::= | 9948 * throwExpression ::= |
| 9949 * 'throw' {@link Expression expression}</pre> | 9949 * 'throw' {@link Expression expression}</pre> |
| 9950 * @coverage dart.engine.ast | 9950 * @coverage dart.engine.ast |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9988 Expression get expression => _expression; | 9988 Expression get expression => _expression; |
| 9989 /** | 9989 /** |
| 9990 * Return the token representing the 'throw' keyword. | 9990 * Return the token representing the 'throw' keyword. |
| 9991 * @return the token representing the 'throw' keyword | 9991 * @return the token representing the 'throw' keyword |
| 9992 */ | 9992 */ |
| 9993 Token get keyword => _keyword; | 9993 Token get keyword => _keyword; |
| 9994 /** | 9994 /** |
| 9995 * Set the expression computing the exception to be thrown to the given expres
sion. | 9995 * Set the expression computing the exception to be thrown to the given expres
sion. |
| 9996 * @param expression the expression computing the exception to be thrown | 9996 * @param expression the expression computing the exception to be thrown |
| 9997 */ | 9997 */ |
| 9998 void set expression(Expression expression13) { | 9998 void set expression(Expression expression2) { |
| 9999 this._expression = becomeParentOf(expression13); | 9999 this._expression = becomeParentOf(expression2); |
| 10000 } | 10000 } |
| 10001 /** | 10001 /** |
| 10002 * Set the token representing the 'throw' keyword to the given token. | 10002 * Set the token representing the 'throw' keyword to the given token. |
| 10003 * @param keyword the token representing the 'throw' keyword | 10003 * @param keyword the token representing the 'throw' keyword |
| 10004 */ | 10004 */ |
| 10005 void set keyword(Token keyword23) { | 10005 void set keyword(Token keyword2) { |
| 10006 this._keyword = keyword23; | 10006 this._keyword = keyword2; |
| 10007 } | 10007 } |
| 10008 void visitChildren(ASTVisitor<Object> visitor) { | 10008 void visitChildren(ASTVisitor<Object> visitor) { |
| 10009 safelyVisitChild(_expression, visitor); | 10009 safelyVisitChild(_expression, visitor); |
| 10010 } | 10010 } |
| 10011 } | 10011 } |
| 10012 /** | 10012 /** |
| 10013 * Instances of the class {@code TopLevelVariableDeclaration} represent the decl
aration of one or | 10013 * Instances of the class {@code TopLevelVariableDeclaration} represent the decl
aration of one or |
| 10014 * more top-level variables of the same type. | 10014 * more top-level variables of the same type. |
| 10015 * <pre> | 10015 * <pre> |
| 10016 * topLevelVariableDeclaration ::= | 10016 * topLevelVariableDeclaration ::= |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10057 Token get semicolon => _semicolon; | 10057 Token get semicolon => _semicolon; |
| 10058 /** | 10058 /** |
| 10059 * Return the top-level variables being declared. | 10059 * Return the top-level variables being declared. |
| 10060 * @return the top-level variables being declared | 10060 * @return the top-level variables being declared |
| 10061 */ | 10061 */ |
| 10062 VariableDeclarationList get variables => _variableList; | 10062 VariableDeclarationList get variables => _variableList; |
| 10063 /** | 10063 /** |
| 10064 * Set the semicolon terminating the declaration to the given token. | 10064 * Set the semicolon terminating the declaration to the given token. |
| 10065 * @param semicolon the semicolon terminating the declaration | 10065 * @param semicolon the semicolon terminating the declaration |
| 10066 */ | 10066 */ |
| 10067 void set semicolon(Token semicolon16) { | 10067 void set semicolon(Token semicolon2) { |
| 10068 this._semicolon = semicolon16; | 10068 this._semicolon = semicolon2; |
| 10069 } | 10069 } |
| 10070 /** | 10070 /** |
| 10071 * Set the top-level variables being declared to the given list of variables. | 10071 * Set the top-level variables being declared to the given list of variables. |
| 10072 * @param variableList the top-level variables being declared | 10072 * @param variableList the top-level variables being declared |
| 10073 */ | 10073 */ |
| 10074 void set variables(VariableDeclarationList variableList) { | 10074 void set variables(VariableDeclarationList variableList) { |
| 10075 variableList = becomeParentOf(variableList); | 10075 variableList = becomeParentOf(variableList); |
| 10076 } | 10076 } |
| 10077 void visitChildren(ASTVisitor<Object> visitor) { | 10077 void visitChildren(ASTVisitor<Object> visitor) { |
| 10078 super.visitChildren(visitor); | 10078 super.visitChildren(visitor); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10257 Token get keyword => _keyword; | 10257 Token get keyword => _keyword; |
| 10258 /** | 10258 /** |
| 10259 * Return the semicolon terminating the declaration. | 10259 * Return the semicolon terminating the declaration. |
| 10260 * @return the semicolon terminating the declaration | 10260 * @return the semicolon terminating the declaration |
| 10261 */ | 10261 */ |
| 10262 Token get semicolon => _semicolon; | 10262 Token get semicolon => _semicolon; |
| 10263 /** | 10263 /** |
| 10264 * Set the token representing the 'typedef' keyword to the given token. | 10264 * Set the token representing the 'typedef' keyword to the given token. |
| 10265 * @param keyword the token representing the 'typedef' keyword | 10265 * @param keyword the token representing the 'typedef' keyword |
| 10266 */ | 10266 */ |
| 10267 void set keyword(Token keyword24) { | 10267 void set keyword(Token keyword2) { |
| 10268 this._keyword = keyword24; | 10268 this._keyword = keyword2; |
| 10269 } | 10269 } |
| 10270 /** | 10270 /** |
| 10271 * Set the semicolon terminating the declaration to the given token. | 10271 * Set the semicolon terminating the declaration to the given token. |
| 10272 * @param semicolon the semicolon terminating the declaration | 10272 * @param semicolon the semicolon terminating the declaration |
| 10273 */ | 10273 */ |
| 10274 void set semicolon(Token semicolon17) { | 10274 void set semicolon(Token semicolon2) { |
| 10275 this._semicolon = semicolon17; | 10275 this._semicolon = semicolon2; |
| 10276 } | 10276 } |
| 10277 Token get firstTokenAfterCommentAndMetadata => _keyword; | 10277 Token get firstTokenAfterCommentAndMetadata => _keyword; |
| 10278 } | 10278 } |
| 10279 /** | 10279 /** |
| 10280 * Instances of the class {@code TypeArgumentList} represent a list of type argu
ments. | 10280 * Instances of the class {@code TypeArgumentList} represent a list of type argu
ments. |
| 10281 * <pre> | 10281 * <pre> |
| 10282 * typeArguments ::= | 10282 * typeArguments ::= |
| 10283 * '<' typeName (',' typeName)* '>' | 10283 * '<' typeName (',' typeName)* '>' |
| 10284 * </pre> | 10284 * </pre> |
| 10285 * @coverage dart.engine.ast | 10285 * @coverage dart.engine.ast |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10331 Token get leftBracket => _leftBracket; | 10331 Token get leftBracket => _leftBracket; |
| 10332 /** | 10332 /** |
| 10333 * Return the right bracket. | 10333 * Return the right bracket. |
| 10334 * @return the right bracket | 10334 * @return the right bracket |
| 10335 */ | 10335 */ |
| 10336 Token get rightBracket => _rightBracket; | 10336 Token get rightBracket => _rightBracket; |
| 10337 /** | 10337 /** |
| 10338 * Set the left bracket to the given token. | 10338 * Set the left bracket to the given token. |
| 10339 * @param leftBracket the left bracket | 10339 * @param leftBracket the left bracket |
| 10340 */ | 10340 */ |
| 10341 void set leftBracket(Token leftBracket8) { | 10341 void set leftBracket(Token leftBracket2) { |
| 10342 this._leftBracket = leftBracket8; | 10342 this._leftBracket = leftBracket2; |
| 10343 } | 10343 } |
| 10344 /** | 10344 /** |
| 10345 * Set the right bracket to the given token. | 10345 * Set the right bracket to the given token. |
| 10346 * @param rightBracket the right bracket | 10346 * @param rightBracket the right bracket |
| 10347 */ | 10347 */ |
| 10348 void set rightBracket(Token rightBracket8) { | 10348 void set rightBracket(Token rightBracket2) { |
| 10349 this._rightBracket = rightBracket8; | 10349 this._rightBracket = rightBracket2; |
| 10350 } | 10350 } |
| 10351 void visitChildren(ASTVisitor<Object> visitor) { | 10351 void visitChildren(ASTVisitor<Object> visitor) { |
| 10352 _arguments.accept(visitor); | 10352 _arguments.accept(visitor); |
| 10353 } | 10353 } |
| 10354 } | 10354 } |
| 10355 /** | 10355 /** |
| 10356 * Instances of the class {@code TypeName} represent the name of a type, which c
an optionally | 10356 * Instances of the class {@code TypeName} represent the name of a type, which c
an optionally |
| 10357 * include type arguments. | 10357 * include type arguments. |
| 10358 * <pre> | 10358 * <pre> |
| 10359 * typeName ::={@link Identifier identifier} typeArguments? | 10359 * typeName ::={@link Identifier identifier} typeArguments? |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10419 * Set the name of the type to the given identifier. | 10419 * Set the name of the type to the given identifier. |
| 10420 * @param identifier the name of the type | 10420 * @param identifier the name of the type |
| 10421 */ | 10421 */ |
| 10422 void set name(Identifier identifier) { | 10422 void set name(Identifier identifier) { |
| 10423 _name = becomeParentOf(identifier); | 10423 _name = becomeParentOf(identifier); |
| 10424 } | 10424 } |
| 10425 /** | 10425 /** |
| 10426 * Set the type being named to the given type. | 10426 * Set the type being named to the given type. |
| 10427 * @param type the type being named | 10427 * @param type the type being named |
| 10428 */ | 10428 */ |
| 10429 void set type(Type2 type3) { | 10429 void set type(Type2 type2) { |
| 10430 this._type = type3; | 10430 this._type = type2; |
| 10431 } | 10431 } |
| 10432 /** | 10432 /** |
| 10433 * Set the type arguments associated with the type to the given type arguments
. | 10433 * Set the type arguments associated with the type to the given type arguments
. |
| 10434 * @param typeArguments the type arguments associated with the type | 10434 * @param typeArguments the type arguments associated with the type |
| 10435 */ | 10435 */ |
| 10436 void set typeArguments(TypeArgumentList typeArguments2) { | 10436 void set typeArguments(TypeArgumentList typeArguments2) { |
| 10437 this._typeArguments = becomeParentOf(typeArguments2); | 10437 this._typeArguments = becomeParentOf(typeArguments2); |
| 10438 } | 10438 } |
| 10439 void visitChildren(ASTVisitor<Object> visitor) { | 10439 void visitChildren(ASTVisitor<Object> visitor) { |
| 10440 safelyVisitChild(_name, visitor); | 10440 safelyVisitChild(_name, visitor); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10513 * Set the name of the upper bound for legal arguments to the given type name. | 10513 * Set the name of the upper bound for legal arguments to the given type name. |
| 10514 * @param typeName the name of the upper bound for legal arguments | 10514 * @param typeName the name of the upper bound for legal arguments |
| 10515 */ | 10515 */ |
| 10516 void set bound(TypeName typeName) { | 10516 void set bound(TypeName typeName) { |
| 10517 _bound = becomeParentOf(typeName); | 10517 _bound = becomeParentOf(typeName); |
| 10518 } | 10518 } |
| 10519 /** | 10519 /** |
| 10520 * Set the token representing the 'assert' keyword to the given token. | 10520 * Set the token representing the 'assert' keyword to the given token. |
| 10521 * @param keyword the token representing the 'assert' keyword | 10521 * @param keyword the token representing the 'assert' keyword |
| 10522 */ | 10522 */ |
| 10523 void set keyword(Token keyword25) { | 10523 void set keyword(Token keyword2) { |
| 10524 this._keyword = keyword25; | 10524 this._keyword = keyword2; |
| 10525 } | 10525 } |
| 10526 /** | 10526 /** |
| 10527 * Set the name of the type parameter to the given identifier. | 10527 * Set the name of the type parameter to the given identifier. |
| 10528 * @param identifier the name of the type parameter | 10528 * @param identifier the name of the type parameter |
| 10529 */ | 10529 */ |
| 10530 void set name(SimpleIdentifier identifier) { | 10530 void set name(SimpleIdentifier identifier) { |
| 10531 _name = becomeParentOf(identifier); | 10531 _name = becomeParentOf(identifier); |
| 10532 } | 10532 } |
| 10533 void visitChildren(ASTVisitor<Object> visitor) { | 10533 void visitChildren(ASTVisitor<Object> visitor) { |
| 10534 super.visitChildren(visitor); | 10534 super.visitChildren(visitor); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10649 * Set the modifiers associated with this literal to the given modifiers. | 10649 * Set the modifiers associated with this literal to the given modifiers. |
| 10650 * @param modifiers the modifiers associated with this literal | 10650 * @param modifiers the modifiers associated with this literal |
| 10651 */ | 10651 */ |
| 10652 void set modifier(Token modifier2) { | 10652 void set modifier(Token modifier2) { |
| 10653 this._modifier = modifier2; | 10653 this._modifier = modifier2; |
| 10654 } | 10654 } |
| 10655 /** | 10655 /** |
| 10656 * Set the type argument associated with this literal to the given arguments. | 10656 * Set the type argument associated with this literal to the given arguments. |
| 10657 * @param typeArguments the type argument associated with this literal | 10657 * @param typeArguments the type argument associated with this literal |
| 10658 */ | 10658 */ |
| 10659 void set typeArguments(TypeArgumentList typeArguments3) { | 10659 void set typeArguments(TypeArgumentList typeArguments2) { |
| 10660 this._typeArguments = typeArguments3; | 10660 this._typeArguments = typeArguments2; |
| 10661 } | 10661 } |
| 10662 void visitChildren(ASTVisitor<Object> visitor) { | 10662 void visitChildren(ASTVisitor<Object> visitor) { |
| 10663 safelyVisitChild(_typeArguments, visitor); | 10663 safelyVisitChild(_typeArguments, visitor); |
| 10664 } | 10664 } |
| 10665 } | 10665 } |
| 10666 /** | 10666 /** |
| 10667 * The abstract class {@code UriBasedDirective} defines the behavior common to n
odes that represent | 10667 * The abstract class {@code UriBasedDirective} defines the behavior common to n
odes that represent |
| 10668 * a directive that references a URI. | 10668 * a directive that references a URI. |
| 10669 * <pre> | 10669 * <pre> |
| 10670 * uriBasedDirective ::={@link ExportDirective exportDirective}| {@link ImportDi
rective importDirective}| {@link PartDirective partDirective}</pre> | 10670 * uriBasedDirective ::={@link ExportDirective exportDirective}| {@link ImportDi
rective importDirective}| {@link PartDirective partDirective}</pre> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10776 /** | 10776 /** |
| 10777 * Return the name of the variable being declared. | 10777 * Return the name of the variable being declared. |
| 10778 * @return the name of the variable being declared | 10778 * @return the name of the variable being declared |
| 10779 */ | 10779 */ |
| 10780 SimpleIdentifier get name => _name; | 10780 SimpleIdentifier get name => _name; |
| 10781 /** | 10781 /** |
| 10782 * Return {@code true} if this variable was declared with the 'const' modifier
. | 10782 * Return {@code true} if this variable was declared with the 'const' modifier
. |
| 10783 * @return {@code true} if this variable was declared with the 'const' modifie
r | 10783 * @return {@code true} if this variable was declared with the 'const' modifie
r |
| 10784 */ | 10784 */ |
| 10785 bool isConst() { | 10785 bool isConst() { |
| 10786 ASTNode parent10 = parent; | 10786 ASTNode parent2 = parent; |
| 10787 return parent10 is VariableDeclarationList && ((parent10 as VariableDeclarat
ionList)).isConst(); | 10787 return parent2 is VariableDeclarationList && ((parent2 as VariableDeclaratio
nList)).isConst(); |
| 10788 } | 10788 } |
| 10789 /** | 10789 /** |
| 10790 * Return {@code true} if this variable was declared with the 'final' modifier
. Variables that are | 10790 * Return {@code true} if this variable was declared with the 'final' modifier
. Variables that are |
| 10791 * declared with the 'const' modifier will return {@code false} even though th
ey are implicitly | 10791 * declared with the 'const' modifier will return {@code false} even though th
ey are implicitly |
| 10792 * final. | 10792 * final. |
| 10793 * @return {@code true} if this variable was declared with the 'final' modifie
r | 10793 * @return {@code true} if this variable was declared with the 'final' modifie
r |
| 10794 */ | 10794 */ |
| 10795 bool isFinal() { | 10795 bool isFinal() { |
| 10796 ASTNode parent11 = parent; | 10796 ASTNode parent2 = parent; |
| 10797 return parent11 is VariableDeclarationList && ((parent11 as VariableDeclarat
ionList)).isFinal(); | 10797 return parent2 is VariableDeclarationList && ((parent2 as VariableDeclaratio
nList)).isFinal(); |
| 10798 } | 10798 } |
| 10799 /** | 10799 /** |
| 10800 * Set the equal sign separating the variable name from the initial value to t
he given token. | 10800 * Set the equal sign separating the variable name from the initial value to t
he given token. |
| 10801 * @param equals the equal sign separating the variable name from the initial
value | 10801 * @param equals the equal sign separating the variable name from the initial
value |
| 10802 */ | 10802 */ |
| 10803 void set equals(Token equals6) { | 10803 void set equals(Token equals2) { |
| 10804 this._equals = equals6; | 10804 this._equals = equals2; |
| 10805 } | 10805 } |
| 10806 /** | 10806 /** |
| 10807 * Set the expression used to compute the initial value for the variable to th
e given expression. | 10807 * Set the expression used to compute the initial value for the variable to th
e given expression. |
| 10808 * @param initializer the expression used to compute the initial value for the
variable | 10808 * @param initializer the expression used to compute the initial value for the
variable |
| 10809 */ | 10809 */ |
| 10810 void set initializer(Expression initializer2) { | 10810 void set initializer(Expression initializer2) { |
| 10811 this._initializer = becomeParentOf(initializer2); | 10811 this._initializer = becomeParentOf(initializer2); |
| 10812 } | 10812 } |
| 10813 /** | 10813 /** |
| 10814 * Set the name of the variable being declared to the given identifier. | 10814 * Set the name of the variable being declared to the given identifier. |
| 10815 * @param name the name of the variable being declared | 10815 * @param name the name of the variable being declared |
| 10816 */ | 10816 */ |
| 10817 void set name(SimpleIdentifier name8) { | 10817 void set name(SimpleIdentifier name2) { |
| 10818 this._name = becomeParentOf(name8); | 10818 this._name = becomeParentOf(name2); |
| 10819 } | 10819 } |
| 10820 void visitChildren(ASTVisitor<Object> visitor) { | 10820 void visitChildren(ASTVisitor<Object> visitor) { |
| 10821 super.visitChildren(visitor); | 10821 super.visitChildren(visitor); |
| 10822 safelyVisitChild(_name, visitor); | 10822 safelyVisitChild(_name, visitor); |
| 10823 safelyVisitChild(_initializer, visitor); | 10823 safelyVisitChild(_initializer, visitor); |
| 10824 } | 10824 } |
| 10825 Token get firstTokenAfterCommentAndMetadata => _name.beginToken; | 10825 Token get firstTokenAfterCommentAndMetadata => _name.beginToken; |
| 10826 } | 10826 } |
| 10827 /** | 10827 /** |
| 10828 * Instances of the class {@code VariableDeclarationList} represent the declarat
ion of one or more | 10828 * Instances of the class {@code VariableDeclarationList} represent the declarat
ion of one or more |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10901 * Return {@code true} if the variables in this list were declared with the 'f
inal' modifier. | 10901 * Return {@code true} if the variables in this list were declared with the 'f
inal' modifier. |
| 10902 * Variables that are declared with the 'const' modifier will return {@code fa
lse} even though | 10902 * Variables that are declared with the 'const' modifier will return {@code fa
lse} even though |
| 10903 * they are implicitly final. | 10903 * they are implicitly final. |
| 10904 * @return {@code true} if the variables in this list were declared with the '
final' modifier | 10904 * @return {@code true} if the variables in this list were declared with the '
final' modifier |
| 10905 */ | 10905 */ |
| 10906 bool isFinal() => _keyword is KeywordToken && identical(((_keyword as KeywordT
oken)).keyword, Keyword.FINAL); | 10906 bool isFinal() => _keyword is KeywordToken && identical(((_keyword as KeywordT
oken)).keyword, Keyword.FINAL); |
| 10907 /** | 10907 /** |
| 10908 * Set the token representing the 'final', 'const' or 'var' keyword to the giv
en token. | 10908 * Set the token representing the 'final', 'const' or 'var' keyword to the giv
en token. |
| 10909 * @param keyword the token representing the 'final', 'const' or 'var' keyword | 10909 * @param keyword the token representing the 'final', 'const' or 'var' keyword |
| 10910 */ | 10910 */ |
| 10911 void set keyword(Token keyword26) { | 10911 void set keyword(Token keyword2) { |
| 10912 this._keyword = keyword26; | 10912 this._keyword = keyword2; |
| 10913 } | 10913 } |
| 10914 /** | 10914 /** |
| 10915 * Set the type of the variables being declared to the given type name. | 10915 * Set the type of the variables being declared to the given type name. |
| 10916 * @param typeName the type of the variables being declared | 10916 * @param typeName the type of the variables being declared |
| 10917 */ | 10917 */ |
| 10918 void set type(TypeName typeName) { | 10918 void set type(TypeName typeName) { |
| 10919 _type = becomeParentOf(typeName); | 10919 _type = becomeParentOf(typeName); |
| 10920 } | 10920 } |
| 10921 void visitChildren(ASTVisitor<Object> visitor) { | 10921 void visitChildren(ASTVisitor<Object> visitor) { |
| 10922 safelyVisitChild(_type, visitor); | 10922 safelyVisitChild(_type, visitor); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10973 Token get semicolon => _semicolon; | 10973 Token get semicolon => _semicolon; |
| 10974 /** | 10974 /** |
| 10975 * Return the variables being declared. | 10975 * Return the variables being declared. |
| 10976 * @return the variables being declared | 10976 * @return the variables being declared |
| 10977 */ | 10977 */ |
| 10978 VariableDeclarationList get variables => _variableList; | 10978 VariableDeclarationList get variables => _variableList; |
| 10979 /** | 10979 /** |
| 10980 * Set the semicolon terminating the statement to the given token. | 10980 * Set the semicolon terminating the statement to the given token. |
| 10981 * @param semicolon the semicolon terminating the statement | 10981 * @param semicolon the semicolon terminating the statement |
| 10982 */ | 10982 */ |
| 10983 void set semicolon(Token semicolon18) { | 10983 void set semicolon(Token semicolon2) { |
| 10984 this._semicolon = semicolon18; | 10984 this._semicolon = semicolon2; |
| 10985 } | 10985 } |
| 10986 /** | 10986 /** |
| 10987 * Set the variables being declared to the given list of variables. | 10987 * Set the variables being declared to the given list of variables. |
| 10988 * @param variableList the variables being declared | 10988 * @param variableList the variables being declared |
| 10989 */ | 10989 */ |
| 10990 void set variables(VariableDeclarationList variableList2) { | 10990 void set variables(VariableDeclarationList variableList2) { |
| 10991 this._variableList = becomeParentOf(variableList2); | 10991 this._variableList = becomeParentOf(variableList2); |
| 10992 } | 10992 } |
| 10993 void visitChildren(ASTVisitor<Object> visitor) { | 10993 void visitChildren(ASTVisitor<Object> visitor) { |
| 10994 safelyVisitChild(_variableList, visitor); | 10994 safelyVisitChild(_variableList, visitor); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11086 * expression. | 11086 * expression. |
| 11087 * @param expression the expression used to determine whether to execute the b
ody of the loop | 11087 * @param expression the expression used to determine whether to execute the b
ody of the loop |
| 11088 */ | 11088 */ |
| 11089 void set condition(Expression expression) { | 11089 void set condition(Expression expression) { |
| 11090 _condition = becomeParentOf(expression); | 11090 _condition = becomeParentOf(expression); |
| 11091 } | 11091 } |
| 11092 /** | 11092 /** |
| 11093 * Set the token representing the 'while' keyword to the given token. | 11093 * Set the token representing the 'while' keyword to the given token. |
| 11094 * @param keyword the token representing the 'while' keyword | 11094 * @param keyword the token representing the 'while' keyword |
| 11095 */ | 11095 */ |
| 11096 void set keyword(Token keyword27) { | 11096 void set keyword(Token keyword2) { |
| 11097 this._keyword = keyword27; | 11097 this._keyword = keyword2; |
| 11098 } | 11098 } |
| 11099 /** | 11099 /** |
| 11100 * Set the left parenthesis to the given token. | 11100 * Set the left parenthesis to the given token. |
| 11101 * @param leftParenthesis the left parenthesis | 11101 * @param leftParenthesis the left parenthesis |
| 11102 */ | 11102 */ |
| 11103 void set leftParenthesis(Token leftParenthesis7) { | 11103 void set leftParenthesis(Token leftParenthesis2) { |
| 11104 this._leftParenthesis = leftParenthesis7; | 11104 this._leftParenthesis = leftParenthesis2; |
| 11105 } | 11105 } |
| 11106 /** | 11106 /** |
| 11107 * Set the right parenthesis to the given token. | 11107 * Set the right parenthesis to the given token. |
| 11108 * @param rightParenthesis the right parenthesis | 11108 * @param rightParenthesis the right parenthesis |
| 11109 */ | 11109 */ |
| 11110 void set rightParenthesis(Token rightParenthesis7) { | 11110 void set rightParenthesis(Token rightParenthesis2) { |
| 11111 this._rightParenthesis = rightParenthesis7; | 11111 this._rightParenthesis = rightParenthesis2; |
| 11112 } | 11112 } |
| 11113 void visitChildren(ASTVisitor<Object> visitor) { | 11113 void visitChildren(ASTVisitor<Object> visitor) { |
| 11114 safelyVisitChild(_condition, visitor); | 11114 safelyVisitChild(_condition, visitor); |
| 11115 safelyVisitChild(_body, visitor); | 11115 safelyVisitChild(_body, visitor); |
| 11116 } | 11116 } |
| 11117 } | 11117 } |
| 11118 /** | 11118 /** |
| 11119 * Instances of the class {@code WithClause} represent the with clause in a clas
s declaration. | 11119 * Instances of the class {@code WithClause} represent the with clause in a clas
s declaration. |
| 11120 * <pre> | 11120 * <pre> |
| 11121 * withClause ::= | 11121 * withClause ::= |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11376 return value; | 11376 return value; |
| 11377 } | 11377 } |
| 11378 list.add(value); | 11378 list.add(value); |
| 11379 } | 11379 } |
| 11380 return list; | 11380 return list; |
| 11381 } | 11381 } |
| 11382 Object visitMapLiteral(MapLiteral node) { | 11382 Object visitMapLiteral(MapLiteral node) { |
| 11383 Map<String, Object> map = new Map<String, Object>(); | 11383 Map<String, Object> map = new Map<String, Object>(); |
| 11384 for (MapLiteralEntry entry in node.entries) { | 11384 for (MapLiteralEntry entry in node.entries) { |
| 11385 Object key2 = entry.key.accept(this); | 11385 Object key2 = entry.key.accept(this); |
| 11386 Object value8 = entry.value.accept(this); | 11386 Object value2 = entry.value.accept(this); |
| 11387 if (key2 is! String || identical(value8, NOT_A_CONSTANT)) { | 11387 if (key2 is! String || identical(value2, NOT_A_CONSTANT)) { |
| 11388 return NOT_A_CONSTANT; | 11388 return NOT_A_CONSTANT; |
| 11389 } | 11389 } |
| 11390 map[(key2 as String)] = value8; | 11390 map[(key2 as String)] = value2; |
| 11391 } | 11391 } |
| 11392 return map; | 11392 return map; |
| 11393 } | 11393 } |
| 11394 Object visitMethodInvocation(MethodInvocation node) => visitNode(node); | 11394 Object visitMethodInvocation(MethodInvocation node) => visitNode(node); |
| 11395 Object visitNode(ASTNode node) => NOT_A_CONSTANT; | 11395 Object visitNode(ASTNode node) => NOT_A_CONSTANT; |
| 11396 Object visitNullLiteral(NullLiteral node) => null; | 11396 Object visitNullLiteral(NullLiteral node) => null; |
| 11397 Object visitParenthesizedExpression(ParenthesizedExpression node) => node.expr
ession.accept(this); | 11397 Object visitParenthesizedExpression(ParenthesizedExpression node) => node.expr
ession.accept(this); |
| 11398 Object visitPrefixedIdentifier(PrefixedIdentifier node) => getConstantValue(nu
ll); | 11398 Object visitPrefixedIdentifier(PrefixedIdentifier node) => getConstantValue(nu
ll); |
| 11399 Object visitPrefixExpression(PrefixExpression node) { | 11399 Object visitPrefixExpression(PrefixExpression node) { |
| 11400 Object operand2 = node.operand.accept(this); | 11400 Object operand2 = node.operand.accept(this); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11487 Element visitImportDirective(ImportDirective node) => node.element; | 11487 Element visitImportDirective(ImportDirective node) => node.element; |
| 11488 Element visitIndexExpression(IndexExpression node) => node.element; | 11488 Element visitIndexExpression(IndexExpression node) => node.element; |
| 11489 Element visitInstanceCreationExpression(InstanceCreationExpression node) => no
de.element; | 11489 Element visitInstanceCreationExpression(InstanceCreationExpression node) => no
de.element; |
| 11490 Element visitLibraryDirective(LibraryDirective node) => node.element; | 11490 Element visitLibraryDirective(LibraryDirective node) => node.element; |
| 11491 Element visitMethodDeclaration(MethodDeclaration node) => node.element; | 11491 Element visitMethodDeclaration(MethodDeclaration node) => node.element; |
| 11492 Element visitMethodInvocation(MethodInvocation node) => node.methodName.elemen
t; | 11492 Element visitMethodInvocation(MethodInvocation node) => node.methodName.elemen
t; |
| 11493 Element visitPostfixExpression(PostfixExpression node) => node.element; | 11493 Element visitPostfixExpression(PostfixExpression node) => node.element; |
| 11494 Element visitPrefixedIdentifier(PrefixedIdentifier node) => node.element; | 11494 Element visitPrefixedIdentifier(PrefixedIdentifier node) => node.element; |
| 11495 Element visitPrefixExpression(PrefixExpression node) => node.element; | 11495 Element visitPrefixExpression(PrefixExpression node) => node.element; |
| 11496 Element visitStringLiteral(StringLiteral node) { | 11496 Element visitStringLiteral(StringLiteral node) { |
| 11497 ASTNode parent12 = node.parent; | 11497 ASTNode parent2 = node.parent; |
| 11498 if (parent12 is UriBasedDirective) { | 11498 if (parent2 is UriBasedDirective) { |
| 11499 return ((parent12 as UriBasedDirective)).element; | 11499 return ((parent2 as UriBasedDirective)).element; |
| 11500 } | 11500 } |
| 11501 return null; | 11501 return null; |
| 11502 } | 11502 } |
| 11503 Element visitVariableDeclaration(VariableDeclaration node) => node.element; | 11503 Element visitVariableDeclaration(VariableDeclaration node) => node.element; |
| 11504 } | 11504 } |
| 11505 /** | 11505 /** |
| 11506 * Instances of the class {@code GeneralizingASTVisitor} implement an AST visito
r that will | 11506 * Instances of the class {@code GeneralizingASTVisitor} implement an AST visito
r that will |
| 11507 * recursively visit all of the nodes in an AST structure (like instances of the
class{@link RecursiveASTVisitor}). In addition, when a node of a specific type
is visited not only | 11507 * recursively visit all of the nodes in an AST structure (like instances of the
class{@link RecursiveASTVisitor}). In addition, when a node of a specific type
is visited not only |
| 11508 * will the visit method for that specific type of node be invoked, but addition
al methods for the | 11508 * will the visit method for that specific type of node be invoked, but addition
al methods for the |
| 11509 * superclasses of that node will also be invoked. For example, using an instanc
e of this class to | 11509 * superclasses of that node will also be invoked. For example, using an instanc
e of this class to |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12403 } | 12403 } |
| 12404 visit(node.superclass); | 12404 visit(node.superclass); |
| 12405 visit3(" ", node.withClause); | 12405 visit3(" ", node.withClause); |
| 12406 visit3(" ", node.implementsClause); | 12406 visit3(" ", node.implementsClause); |
| 12407 _writer.print(";"); | 12407 _writer.print(";"); |
| 12408 return null; | 12408 return null; |
| 12409 } | 12409 } |
| 12410 Object visitComment(Comment node) => null; | 12410 Object visitComment(Comment node) => null; |
| 12411 Object visitCommentReference(CommentReference node) => null; | 12411 Object visitCommentReference(CommentReference node) => null; |
| 12412 Object visitCompilationUnit(CompilationUnit node) { | 12412 Object visitCompilationUnit(CompilationUnit node) { |
| 12413 ScriptTag scriptTag6 = node.scriptTag; | 12413 ScriptTag scriptTag2 = node.scriptTag; |
| 12414 NodeList<Directive> directives2 = node.directives; | 12414 NodeList<Directive> directives2 = node.directives; |
| 12415 visit(scriptTag6); | 12415 visit(scriptTag2); |
| 12416 String prefix = scriptTag6 == null ? "" : " "; | 12416 String prefix = scriptTag2 == null ? "" : " "; |
| 12417 visitList4(prefix, directives2, " "); | 12417 visitList4(prefix, directives2, " "); |
| 12418 prefix = scriptTag6 == null && directives2.isEmpty ? "" : " "; | 12418 prefix = scriptTag2 == null && directives2.isEmpty ? "" : " "; |
| 12419 visitList4(prefix, node.declarations, " "); | 12419 visitList4(prefix, node.declarations, " "); |
| 12420 return null; | 12420 return null; |
| 12421 } | 12421 } |
| 12422 Object visitConditionalExpression(ConditionalExpression node) { | 12422 Object visitConditionalExpression(ConditionalExpression node) { |
| 12423 visit(node.condition); | 12423 visit(node.condition); |
| 12424 _writer.print(" ? "); | 12424 _writer.print(" ? "); |
| 12425 visit(node.thenExpression); | 12425 visit(node.thenExpression); |
| 12426 _writer.print(" : "); | 12426 _writer.print(" : "); |
| 12427 visit(node.elseExpression); | 12427 visit(node.elseExpression); |
| 12428 return null; | 12428 return null; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12535 visit(node.loopVariable); | 12535 visit(node.loopVariable); |
| 12536 _writer.print(" in "); | 12536 _writer.print(" in "); |
| 12537 visit(node.iterator); | 12537 visit(node.iterator); |
| 12538 _writer.print(") "); | 12538 _writer.print(") "); |
| 12539 visit(node.body); | 12539 visit(node.body); |
| 12540 return null; | 12540 return null; |
| 12541 } | 12541 } |
| 12542 Object visitFormalParameterList(FormalParameterList node) { | 12542 Object visitFormalParameterList(FormalParameterList node) { |
| 12543 String groupEnd = null; | 12543 String groupEnd = null; |
| 12544 _writer.print('('); | 12544 _writer.print('('); |
| 12545 NodeList<FormalParameter> parameters10 = node.parameters; | 12545 NodeList<FormalParameter> parameters2 = node.parameters; |
| 12546 int size2 = parameters10.length; | 12546 int size2 = parameters2.length; |
| 12547 for (int i = 0; i < size2; i++) { | 12547 for (int i = 0; i < size2; i++) { |
| 12548 FormalParameter parameter = parameters10[i]; | 12548 FormalParameter parameter = parameters2[i]; |
| 12549 if (i > 0) { | 12549 if (i > 0) { |
| 12550 _writer.print(", "); | 12550 _writer.print(", "); |
| 12551 } | 12551 } |
| 12552 if (groupEnd == null && parameter is DefaultFormalParameter) { | 12552 if (groupEnd == null && parameter is DefaultFormalParameter) { |
| 12553 if (identical(parameter.kind, ParameterKind.NAMED)) { | 12553 if (identical(parameter.kind, ParameterKind.NAMED)) { |
| 12554 groupEnd = "}"; | 12554 groupEnd = "}"; |
| 12555 _writer.print('{'); | 12555 _writer.print('{'); |
| 12556 } else { | 12556 } else { |
| 12557 groupEnd = "]"; | 12557 groupEnd = "]"; |
| 12558 _writer.print('['); | 12558 _writer.print('['); |
| 12559 } | 12559 } |
| 12560 } | 12560 } |
| 12561 parameter.accept(this); | 12561 parameter.accept(this); |
| 12562 } | 12562 } |
| 12563 if (groupEnd != null) { | 12563 if (groupEnd != null) { |
| 12564 _writer.print(groupEnd); | 12564 _writer.print(groupEnd); |
| 12565 } | 12565 } |
| 12566 _writer.print(')'); | 12566 _writer.print(')'); |
| 12567 return null; | 12567 return null; |
| 12568 } | 12568 } |
| 12569 Object visitForStatement(ForStatement node) { | 12569 Object visitForStatement(ForStatement node) { |
| 12570 Expression initialization3 = node.initialization; | 12570 Expression initialization2 = node.initialization; |
| 12571 _writer.print("for ("); | 12571 _writer.print("for ("); |
| 12572 if (initialization3 != null) { | 12572 if (initialization2 != null) { |
| 12573 visit(initialization3); | 12573 visit(initialization2); |
| 12574 } else { | 12574 } else { |
| 12575 visit(node.variables); | 12575 visit(node.variables); |
| 12576 } | 12576 } |
| 12577 _writer.print(";"); | 12577 _writer.print(";"); |
| 12578 visit3(" ", node.condition); | 12578 visit3(" ", node.condition); |
| 12579 _writer.print(";"); | 12579 _writer.print(";"); |
| 12580 visitList4(" ", node.updaters, ", "); | 12580 visitList4(" ", node.updaters, ", "); |
| 12581 _writer.print(") "); | 12581 _writer.print(") "); |
| 12582 visit(node.body); | 12582 visit(node.body); |
| 12583 return null; | 12583 return null; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12826 _writer.print("this"); | 12826 _writer.print("this"); |
| 12827 visit3(".", node.constructorName); | 12827 visit3(".", node.constructorName); |
| 12828 visit(node.argumentList); | 12828 visit(node.argumentList); |
| 12829 return null; | 12829 return null; |
| 12830 } | 12830 } |
| 12831 Object visitRethrowExpression(RethrowExpression node) { | 12831 Object visitRethrowExpression(RethrowExpression node) { |
| 12832 _writer.print("rethrow"); | 12832 _writer.print("rethrow"); |
| 12833 return null; | 12833 return null; |
| 12834 } | 12834 } |
| 12835 Object visitReturnStatement(ReturnStatement node) { | 12835 Object visitReturnStatement(ReturnStatement node) { |
| 12836 Expression expression14 = node.expression; | 12836 Expression expression2 = node.expression; |
| 12837 if (expression14 == null) { | 12837 if (expression2 == null) { |
| 12838 _writer.print("return;"); | 12838 _writer.print("return;"); |
| 12839 } else { | 12839 } else { |
| 12840 _writer.print("return "); | 12840 _writer.print("return "); |
| 12841 expression14.accept(this); | 12841 expression2.accept(this); |
| 12842 _writer.print(";"); | 12842 _writer.print(";"); |
| 12843 } | 12843 } |
| 12844 return null; | 12844 return null; |
| 12845 } | 12845 } |
| 12846 Object visitScriptTag(ScriptTag node) { | 12846 Object visitScriptTag(ScriptTag node) { |
| 12847 _writer.print(node.scriptTag.lexeme); | 12847 _writer.print(node.scriptTag.lexeme); |
| 12848 return null; | 12848 return null; |
| 12849 } | 12849 } |
| 12850 Object visitShowCombinator(ShowCombinator node) { | 12850 Object visitShowCombinator(ShowCombinator node) { |
| 12851 _writer.print("show "); | 12851 _writer.print("show "); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13033 void visitList(NodeList<ASTNode> nodes) { | 13033 void visitList(NodeList<ASTNode> nodes) { |
| 13034 visitList2(nodes, ""); | 13034 visitList2(nodes, ""); |
| 13035 } | 13035 } |
| 13036 /** | 13036 /** |
| 13037 * Print a list of nodes, separated by the given separator. | 13037 * Print a list of nodes, separated by the given separator. |
| 13038 * @param nodes the nodes to be printed | 13038 * @param nodes the nodes to be printed |
| 13039 * @param separator the separator to be printed between adjacent nodes | 13039 * @param separator the separator to be printed between adjacent nodes |
| 13040 */ | 13040 */ |
| 13041 void visitList2(NodeList<ASTNode> nodes, String separator) { | 13041 void visitList2(NodeList<ASTNode> nodes, String separator) { |
| 13042 if (nodes != null) { | 13042 if (nodes != null) { |
| 13043 int size3 = nodes.length; | 13043 int size2 = nodes.length; |
| 13044 for (int i = 0; i < size3; i++) { | 13044 for (int i = 0; i < size2; i++) { |
| 13045 if (i > 0) { | 13045 if (i > 0) { |
| 13046 _writer.print(separator); | 13046 _writer.print(separator); |
| 13047 } | 13047 } |
| 13048 nodes[i].accept(this); | 13048 nodes[i].accept(this); |
| 13049 } | 13049 } |
| 13050 } | 13050 } |
| 13051 } | 13051 } |
| 13052 /** | 13052 /** |
| 13053 * Print a list of nodes, separated by the given separator. | 13053 * Print a list of nodes, separated by the given separator. |
| 13054 * @param nodes the nodes to be printed | 13054 * @param nodes the nodes to be printed |
| 13055 * @param separator the separator to be printed between adjacent nodes | 13055 * @param separator the separator to be printed between adjacent nodes |
| 13056 * @param suffix the suffix to be printed if the list is not empty | 13056 * @param suffix the suffix to be printed if the list is not empty |
| 13057 */ | 13057 */ |
| 13058 void visitList3(NodeList<ASTNode> nodes, String separator, String suffix) { | 13058 void visitList3(NodeList<ASTNode> nodes, String separator, String suffix) { |
| 13059 if (nodes != null) { | 13059 if (nodes != null) { |
| 13060 int size4 = nodes.length; | 13060 int size2 = nodes.length; |
| 13061 if (size4 > 0) { | 13061 if (size2 > 0) { |
| 13062 for (int i = 0; i < size4; i++) { | 13062 for (int i = 0; i < size2; i++) { |
| 13063 if (i > 0) { | 13063 if (i > 0) { |
| 13064 _writer.print(separator); | 13064 _writer.print(separator); |
| 13065 } | 13065 } |
| 13066 nodes[i].accept(this); | 13066 nodes[i].accept(this); |
| 13067 } | 13067 } |
| 13068 _writer.print(suffix); | 13068 _writer.print(suffix); |
| 13069 } | 13069 } |
| 13070 } | 13070 } |
| 13071 } | 13071 } |
| 13072 /** | 13072 /** |
| 13073 * Print a list of nodes, separated by the given separator. | 13073 * Print a list of nodes, separated by the given separator. |
| 13074 * @param prefix the prefix to be printed if the list is not empty | 13074 * @param prefix the prefix to be printed if the list is not empty |
| 13075 * @param nodes the nodes to be printed | 13075 * @param nodes the nodes to be printed |
| 13076 * @param separator the separator to be printed between adjacent nodes | 13076 * @param separator the separator to be printed between adjacent nodes |
| 13077 */ | 13077 */ |
| 13078 void visitList4(String prefix, NodeList<ASTNode> nodes, String separator) { | 13078 void visitList4(String prefix, NodeList<ASTNode> nodes, String separator) { |
| 13079 if (nodes != null) { | 13079 if (nodes != null) { |
| 13080 int size5 = nodes.length; | 13080 int size2 = nodes.length; |
| 13081 if (size5 > 0) { | 13081 if (size2 > 0) { |
| 13082 _writer.print(prefix); | 13082 _writer.print(prefix); |
| 13083 for (int i = 0; i < size5; i++) { | 13083 for (int i = 0; i < size2; i++) { |
| 13084 if (i > 0) { | 13084 if (i > 0) { |
| 13085 _writer.print(separator); | 13085 _writer.print(separator); |
| 13086 } | 13086 } |
| 13087 nodes[i].accept(this); | 13087 nodes[i].accept(this); |
| 13088 } | 13088 } |
| 13089 } | 13089 } |
| 13090 } | 13090 } |
| 13091 } | 13091 } |
| 13092 } | 13092 } |
| 13093 /** | 13093 /** |
| (...skipping 21 matching lines...) Expand all Loading... |
| 13115 Comment visitComment(Comment node) { | 13115 Comment visitComment(Comment node) { |
| 13116 if (node.isDocumentation()) { | 13116 if (node.isDocumentation()) { |
| 13117 return Comment.createDocumentationComment2(node.tokens, clone2(node.refere
nces)); | 13117 return Comment.createDocumentationComment2(node.tokens, clone2(node.refere
nces)); |
| 13118 } else if (node.isBlock()) { | 13118 } else if (node.isBlock()) { |
| 13119 return Comment.createBlockComment(node.tokens); | 13119 return Comment.createBlockComment(node.tokens); |
| 13120 } | 13120 } |
| 13121 return Comment.createEndOfLineComment(node.tokens); | 13121 return Comment.createEndOfLineComment(node.tokens); |
| 13122 } | 13122 } |
| 13123 CommentReference visitCommentReference(CommentReference node) => new CommentRe
ference.full(node.newKeyword, clone(node.identifier)); | 13123 CommentReference visitCommentReference(CommentReference node) => new CommentRe
ference.full(node.newKeyword, clone(node.identifier)); |
| 13124 CompilationUnit visitCompilationUnit(CompilationUnit node) { | 13124 CompilationUnit visitCompilationUnit(CompilationUnit node) { |
| 13125 CompilationUnit clone3 = new CompilationUnit.full(node.beginToken, clone(nod
e.scriptTag), clone2(node.directives), clone2(node.declarations), node.endToken)
; | 13125 CompilationUnit clone22 = new CompilationUnit.full(node.beginToken, clone(no
de.scriptTag), clone2(node.directives), clone2(node.declarations), node.endToken
); |
| 13126 clone3.lineInfo = node.lineInfo; | 13126 clone22.lineInfo = node.lineInfo; |
| 13127 clone3.parsingErrors = node.parsingErrors; | 13127 clone22.parsingErrors = node.parsingErrors; |
| 13128 clone3.resolutionErrors = node.resolutionErrors; | 13128 clone22.resolutionErrors = node.resolutionErrors; |
| 13129 return clone3; | 13129 return clone22; |
| 13130 } | 13130 } |
| 13131 ConditionalExpression visitConditionalExpression(ConditionalExpression node) =
> new ConditionalExpression.full(clone(node.condition), node.question, clone(nod
e.thenExpression), node.colon, clone(node.elseExpression)); | 13131 ConditionalExpression visitConditionalExpression(ConditionalExpression node) =
> new ConditionalExpression.full(clone(node.condition), node.question, clone(nod
e.thenExpression), node.colon, clone(node.elseExpression)); |
| 13132 ConstructorDeclaration visitConstructorDeclaration(ConstructorDeclaration node
) => new ConstructorDeclaration.full(clone(node.documentationComment), clone2(no
de.metadata), node.externalKeyword, node.constKeyword, node.factoryKeyword, clon
e(node.returnType), node.period, clone(node.name), clone(node.parameters), node.
separator, clone2(node.initializers), clone(node.redirectedConstructor), clone(n
ode.body)); | 13132 ConstructorDeclaration visitConstructorDeclaration(ConstructorDeclaration node
) => new ConstructorDeclaration.full(clone(node.documentationComment), clone2(no
de.metadata), node.externalKeyword, node.constKeyword, node.factoryKeyword, clon
e(node.returnType), node.period, clone(node.name), clone(node.parameters), node.
separator, clone2(node.initializers), clone(node.redirectedConstructor), clone(n
ode.body)); |
| 13133 ConstructorFieldInitializer visitConstructorFieldInitializer(ConstructorFieldI
nitializer node) => new ConstructorFieldInitializer.full(node.keyword, node.peri
od, clone(node.fieldName), node.equals, clone(node.expression)); | 13133 ConstructorFieldInitializer visitConstructorFieldInitializer(ConstructorFieldI
nitializer node) => new ConstructorFieldInitializer.full(node.keyword, node.peri
od, clone(node.fieldName), node.equals, clone(node.expression)); |
| 13134 ConstructorName visitConstructorName(ConstructorName node) => new ConstructorN
ame.full(clone(node.type), node.period, clone(node.name)); | 13134 ConstructorName visitConstructorName(ConstructorName node) => new ConstructorN
ame.full(clone(node.type), node.period, clone(node.name)); |
| 13135 ContinueStatement visitContinueStatement(ContinueStatement node) => new Contin
ueStatement.full(node.keyword, clone(node.label), node.semicolon); | 13135 ContinueStatement visitContinueStatement(ContinueStatement node) => new Contin
ueStatement.full(node.keyword, clone(node.label), node.semicolon); |
| 13136 DeclaredIdentifier visitDeclaredIdentifier(DeclaredIdentifier node) => new Dec
laredIdentifier.full(clone(node.documentationComment), clone2(node.metadata), no
de.keyword, clone(node.type), clone(node.identifier)); | 13136 DeclaredIdentifier visitDeclaredIdentifier(DeclaredIdentifier node) => new Dec
laredIdentifier.full(clone(node.documentationComment), clone2(node.metadata), no
de.keyword, clone(node.type), clone(node.identifier)); |
| 13137 DefaultFormalParameter visitDefaultFormalParameter(DefaultFormalParameter node
) => new DefaultFormalParameter.full(clone(node.parameter), node.kind, node.sepa
rator, clone(node.defaultValue)); | 13137 DefaultFormalParameter visitDefaultFormalParameter(DefaultFormalParameter node
) => new DefaultFormalParameter.full(clone(node.parameter), node.kind, node.sepa
rator, clone(node.defaultValue)); |
| 13138 DoStatement visitDoStatement(DoStatement node) => new DoStatement.full(node.do
Keyword, clone(node.body), node.whileKeyword, node.leftParenthesis, clone(node.c
ondition), node.rightParenthesis, node.semicolon); | 13138 DoStatement visitDoStatement(DoStatement node) => new DoStatement.full(node.do
Keyword, clone(node.body), node.whileKeyword, node.leftParenthesis, clone(node.c
ondition), node.rightParenthesis, node.semicolon); |
| 13139 DoubleLiteral visitDoubleLiteral(DoubleLiteral node) => new DoubleLiteral.full
(node.literal, node.value); | 13139 DoubleLiteral visitDoubleLiteral(DoubleLiteral node) => new DoubleLiteral.full
(node.literal, node.value); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 13152 FunctionDeclarationStatement visitFunctionDeclarationStatement(FunctionDeclara
tionStatement node) => new FunctionDeclarationStatement.full(clone(node.function
Declaration)); | 13152 FunctionDeclarationStatement visitFunctionDeclarationStatement(FunctionDeclara
tionStatement node) => new FunctionDeclarationStatement.full(clone(node.function
Declaration)); |
| 13153 FunctionExpression visitFunctionExpression(FunctionExpression node) => new Fun
ctionExpression.full(clone(node.parameters), clone(node.body)); | 13153 FunctionExpression visitFunctionExpression(FunctionExpression node) => new Fun
ctionExpression.full(clone(node.parameters), clone(node.body)); |
| 13154 FunctionExpressionInvocation visitFunctionExpressionInvocation(FunctionExpress
ionInvocation node) => new FunctionExpressionInvocation.full(clone(node.function
), clone(node.argumentList)); | 13154 FunctionExpressionInvocation visitFunctionExpressionInvocation(FunctionExpress
ionInvocation node) => new FunctionExpressionInvocation.full(clone(node.function
), clone(node.argumentList)); |
| 13155 FunctionTypeAlias visitFunctionTypeAlias(FunctionTypeAlias node) => new Functi
onTypeAlias.full(clone(node.documentationComment), clone2(node.metadata), node.k
eyword, clone(node.returnType), clone(node.name), clone(node.typeParameters), cl
one(node.parameters), node.semicolon); | 13155 FunctionTypeAlias visitFunctionTypeAlias(FunctionTypeAlias node) => new Functi
onTypeAlias.full(clone(node.documentationComment), clone2(node.metadata), node.k
eyword, clone(node.returnType), clone(node.name), clone(node.typeParameters), cl
one(node.parameters), node.semicolon); |
| 13156 FunctionTypedFormalParameter visitFunctionTypedFormalParameter(FunctionTypedFo
rmalParameter node) => new FunctionTypedFormalParameter.full(clone(node.document
ationComment), clone2(node.metadata), clone(node.returnType), clone(node.identif
ier), clone(node.parameters)); | 13156 FunctionTypedFormalParameter visitFunctionTypedFormalParameter(FunctionTypedFo
rmalParameter node) => new FunctionTypedFormalParameter.full(clone(node.document
ationComment), clone2(node.metadata), clone(node.returnType), clone(node.identif
ier), clone(node.parameters)); |
| 13157 HideCombinator visitHideCombinator(HideCombinator node) => new HideCombinator.
full(node.keyword, clone2(node.hiddenNames)); | 13157 HideCombinator visitHideCombinator(HideCombinator node) => new HideCombinator.
full(node.keyword, clone2(node.hiddenNames)); |
| 13158 IfStatement visitIfStatement(IfStatement node) => new IfStatement.full(node.if
Keyword, node.leftParenthesis, clone(node.condition), node.rightParenthesis, clo
ne(node.thenStatement), node.elseKeyword, clone(node.elseStatement)); | 13158 IfStatement visitIfStatement(IfStatement node) => new IfStatement.full(node.if
Keyword, node.leftParenthesis, clone(node.condition), node.rightParenthesis, clo
ne(node.thenStatement), node.elseKeyword, clone(node.elseStatement)); |
| 13159 ImplementsClause visitImplementsClause(ImplementsClause node) => new Implement
sClause.full(node.keyword, clone2(node.interfaces)); | 13159 ImplementsClause visitImplementsClause(ImplementsClause node) => new Implement
sClause.full(node.keyword, clone2(node.interfaces)); |
| 13160 ImportDirective visitImportDirective(ImportDirective node) => new ImportDirect
ive.full(clone(node.documentationComment), clone2(node.metadata), node.keyword,
clone(node.uri), node.asToken, clone(node.prefix), clone2(node.combinators), nod
e.semicolon); | 13160 ImportDirective visitImportDirective(ImportDirective node) => new ImportDirect
ive.full(clone(node.documentationComment), clone2(node.metadata), node.keyword,
clone(node.uri), node.asToken, clone(node.prefix), clone2(node.combinators), nod
e.semicolon); |
| 13161 IndexExpression visitIndexExpression(IndexExpression node) { | 13161 IndexExpression visitIndexExpression(IndexExpression node) { |
| 13162 Token period13 = node.period; | 13162 Token period2 = node.period; |
| 13163 if (period13 == null) { | 13163 if (period2 == null) { |
| 13164 return new IndexExpression.forTarget_full(clone(node.array), node.leftBrac
ket, clone(node.index), node.rightBracket); | 13164 return new IndexExpression.forTarget_full(clone(node.array), node.leftBrac
ket, clone(node.index), node.rightBracket); |
| 13165 } else { | 13165 } else { |
| 13166 return new IndexExpression.forCascade_full(period13, node.leftBracket, clo
ne(node.index), node.rightBracket); | 13166 return new IndexExpression.forCascade_full(period2, node.leftBracket, clon
e(node.index), node.rightBracket); |
| 13167 } | 13167 } |
| 13168 } | 13168 } |
| 13169 InstanceCreationExpression visitInstanceCreationExpression(InstanceCreationExp
ression node) => new InstanceCreationExpression.full(node.keyword, clone(node.co
nstructorName), clone(node.argumentList)); | 13169 InstanceCreationExpression visitInstanceCreationExpression(InstanceCreationExp
ression node) => new InstanceCreationExpression.full(node.keyword, clone(node.co
nstructorName), clone(node.argumentList)); |
| 13170 IntegerLiteral visitIntegerLiteral(IntegerLiteral node) => new IntegerLiteral.
full(node.literal, node.value); | 13170 IntegerLiteral visitIntegerLiteral(IntegerLiteral node) => new IntegerLiteral.
full(node.literal, node.value); |
| 13171 InterpolationExpression visitInterpolationExpression(InterpolationExpression n
ode) => new InterpolationExpression.full(node.leftBracket, clone(node.expression
), node.rightBracket); | 13171 InterpolationExpression visitInterpolationExpression(InterpolationExpression n
ode) => new InterpolationExpression.full(node.leftBracket, clone(node.expression
), node.rightBracket); |
| 13172 InterpolationString visitInterpolationString(InterpolationString node) => new
InterpolationString.full(node.contents, node.value); | 13172 InterpolationString visitInterpolationString(InterpolationString node) => new
InterpolationString.full(node.contents, node.value); |
| 13173 IsExpression visitIsExpression(IsExpression node) => new IsExpression.full(clo
ne(node.expression), node.isOperator, node.notOperator, clone(node.type)); | 13173 IsExpression visitIsExpression(IsExpression node) => new IsExpression.full(clo
ne(node.expression), node.isOperator, node.notOperator, clone(node.type)); |
| 13174 Label visitLabel(Label node) => new Label.full(clone(node.label), node.colon); | 13174 Label visitLabel(Label node) => new Label.full(clone(node.label), node.colon); |
| 13175 LabeledStatement visitLabeledStatement(LabeledStatement node) => new LabeledSt
atement.full(clone2(node.labels), clone(node.statement)); | 13175 LabeledStatement visitLabeledStatement(LabeledStatement node) => new LabeledSt
atement.full(clone2(node.labels), clone(node.statement)); |
| 13176 LibraryDirective visitLibraryDirective(LibraryDirective node) => new LibraryDi
rective.full(clone(node.documentationComment), clone2(node.metadata), node.libra
ryToken, clone(node.name), node.semicolon); | 13176 LibraryDirective visitLibraryDirective(LibraryDirective node) => new LibraryDi
rective.full(clone(node.documentationComment), clone2(node.metadata), node.libra
ryToken, clone(node.name), node.semicolon); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13291 return elements[elements.length - 1].endToken; | 13291 return elements[elements.length - 1].endToken; |
| 13292 } | 13292 } |
| 13293 /** | 13293 /** |
| 13294 * Return the node that is the parent of each of the elements in the list. | 13294 * Return the node that is the parent of each of the elements in the list. |
| 13295 * @return the node that is the parent of each of the elements in the list | 13295 * @return the node that is the parent of each of the elements in the list |
| 13296 */ | 13296 */ |
| 13297 ASTNode getOwner() { | 13297 ASTNode getOwner() { |
| 13298 return owner; | 13298 return owner; |
| 13299 } | 13299 } |
| 13300 } | 13300 } |
| OLD | NEW |