| 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 library engine.ast; | 3 library engine.ast; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'java_core.dart'; | 5 import 'java_core.dart'; |
| 6 import 'java_engine.dart'; | 6 import 'java_engine.dart'; |
| 7 import 'error.dart'; | 7 import 'error.dart'; |
| 8 import 'source.dart' show LineInfo; | 8 import 'source.dart' show LineInfo; |
| 9 import 'scanner.dart'; | 9 import 'scanner.dart'; |
| 10 import 'engine.dart' show AnalysisEngine; | 10 import 'engine.dart' show AnalysisEngine; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 * range. | 109 * range. |
| 110 * | 110 * |
| 111 * @return the offset from the beginning of the file to the first character in
the node's source | 111 * @return the offset from the beginning of the file to the first character in
the node's source |
| 112 * range | 112 * range |
| 113 */ | 113 */ |
| 114 int get offset { | 114 int get offset { |
| 115 Token beginToken = this.beginToken; | 115 Token beginToken = this.beginToken; |
| 116 if (beginToken == null) { | 116 if (beginToken == null) { |
| 117 return -1; | 117 return -1; |
| 118 } | 118 } |
| 119 return beginToken.offset; | 119 return this.beginToken.offset; |
| 120 } | 120 } |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Return this node's parent node, or `null` if this node is the root of an AS
T structure. | 123 * Return this node's parent node, or `null` if this node is the root of an AS
T structure. |
| 124 * | 124 * |
| 125 * Note that the relationship between an AST node and its parent node may chan
ge over the lifetime | 125 * Note that the relationship between an AST node and its parent node may chan
ge over the lifetime |
| 126 * of a node. | 126 * of a node. |
| 127 * | 127 * |
| 128 * @return the parent of this node, or `null` if none | 128 * @return the parent of this node, or `null` if none |
| 129 */ | 129 */ |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 * | 477 * |
| 478 * @return the annotations associated with this node | 478 * @return the annotations associated with this node |
| 479 */ | 479 */ |
| 480 NodeList<Annotation> get metadata => _metadata; | 480 NodeList<Annotation> get metadata => _metadata; |
| 481 | 481 |
| 482 /** | 482 /** |
| 483 * Set the documentation comment associated with this node to the given commen
t. | 483 * Set the documentation comment associated with this node to the given commen
t. |
| 484 * | 484 * |
| 485 * @param comment the documentation comment to be associated with this node | 485 * @param comment the documentation comment to be associated with this node |
| 486 */ | 486 */ |
| 487 void set documentationComment(Comment comment2) { | 487 void set documentationComment(Comment comment) { |
| 488 this._comment = becomeParentOf(comment2); | 488 this._comment = becomeParentOf(comment); |
| 489 } | 489 } |
| 490 | 490 |
| 491 /** | 491 /** |
| 492 * Set the metadata associated with this node to the given metadata. | 492 * Set the metadata associated with this node to the given metadata. |
| 493 * | 493 * |
| 494 * @param metadata the metadata to be associated with this node | 494 * @param metadata the metadata to be associated with this node |
| 495 */ | 495 */ |
| 496 void set metadata(List<Annotation> metadata2) { | 496 void set metadata(List<Annotation> metadata) { |
| 497 this._metadata.clear(); | 497 this._metadata.clear(); |
| 498 this._metadata.addAll(metadata2); | 498 this._metadata.addAll(metadata); |
| 499 } | 499 } |
| 500 void visitChildren(ASTVisitor visitor) { | 500 void visitChildren(ASTVisitor visitor) { |
| 501 if (commentIsBeforeAnnotations()) { | 501 if (commentIsBeforeAnnotations()) { |
| 502 safelyVisitChild(_comment, visitor); | 502 safelyVisitChild(_comment, visitor); |
| 503 _metadata.accept(visitor); | 503 _metadata.accept(visitor); |
| 504 } else { | 504 } else { |
| 505 for (ASTNode child in sortedCommentAndAnnotations) { | 505 for (ASTNode child in sortedCommentAndAnnotations) { |
| 506 child.accept(visitor); | 506 child.accept(visitor); |
| 507 } | 507 } |
| 508 } | 508 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 * | 679 * |
| 680 * @return the name of the constructor being invoked or the name of the field
being referenced | 680 * @return the name of the constructor being invoked or the name of the field
being referenced |
| 681 */ | 681 */ |
| 682 Identifier get name => _name; | 682 Identifier get name => _name; |
| 683 | 683 |
| 684 /** | 684 /** |
| 685 * Set the arguments to the constructor being invoked to the given arguments. | 685 * Set the arguments to the constructor being invoked to the given arguments. |
| 686 * | 686 * |
| 687 * @param arguments the arguments to the constructor being invoked | 687 * @param arguments the arguments to the constructor being invoked |
| 688 */ | 688 */ |
| 689 void set arguments(ArgumentList arguments2) { | 689 void set arguments(ArgumentList arguments) { |
| 690 this._arguments = becomeParentOf(arguments2); | 690 this._arguments = becomeParentOf(arguments); |
| 691 } | 691 } |
| 692 | 692 |
| 693 /** | 693 /** |
| 694 * Set the name of the constructor being invoked to the given name. | 694 * Set the name of the constructor being invoked to the given name. |
| 695 * | 695 * |
| 696 * @param constructorName the name of the constructor being invoked | 696 * @param constructorName the name of the constructor being invoked |
| 697 */ | 697 */ |
| 698 void set constructorName(SimpleIdentifier constructorName2) { | 698 void set constructorName(SimpleIdentifier constructorName) { |
| 699 this._constructorName = becomeParentOf(constructorName2); | 699 this._constructorName = becomeParentOf(constructorName); |
| 700 } | 700 } |
| 701 | 701 |
| 702 /** | 702 /** |
| 703 * Set the element associated with this annotation based. | 703 * Set the element associated with this annotation based. |
| 704 * | 704 * |
| 705 * @param element the element to be associated with this identifier | 705 * @param element the element to be associated with this identifier |
| 706 */ | 706 */ |
| 707 void set element(Element element2) { | 707 void set element(Element element) { |
| 708 this._element = element2; | 708 this._element = element; |
| 709 } | 709 } |
| 710 | 710 |
| 711 /** | 711 /** |
| 712 * Set the name of the class defining the constructor that is being invoked or
the name of the | 712 * Set the name of the class defining the constructor that is being invoked or
the name of the |
| 713 * field that is being referenced to the given name. | 713 * field that is being referenced to the given name. |
| 714 * | 714 * |
| 715 * @param name the name of the constructor being invoked or the name of the fi
eld being referenced | 715 * @param name the name of the constructor being invoked or the name of the fi
eld being referenced |
| 716 */ | 716 */ |
| 717 void set name(Identifier name2) { | 717 void set name(Identifier name) { |
| 718 this._name = becomeParentOf(name2); | 718 this._name = becomeParentOf(name); |
| 719 } | 719 } |
| 720 void visitChildren(ASTVisitor visitor) { | 720 void visitChildren(ASTVisitor visitor) { |
| 721 safelyVisitChild(_name, visitor); | 721 safelyVisitChild(_name, visitor); |
| 722 safelyVisitChild(_constructorName, visitor); | 722 safelyVisitChild(_constructorName, visitor); |
| 723 safelyVisitChild(_arguments, visitor); | 723 safelyVisitChild(_arguments, visitor); |
| 724 } | 724 } |
| 725 } | 725 } |
| 726 /** | 726 /** |
| 727 * Instances of the class `ArgumentDefinitionTest` represent an argument definit
ion test. | 727 * Instances of the class `ArgumentDefinitionTest` represent an argument definit
ion test. |
| 728 * | 728 * |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 * | 772 * |
| 773 * @return the identifier representing the argument being tested | 773 * @return the identifier representing the argument being tested |
| 774 */ | 774 */ |
| 775 SimpleIdentifier get identifier => _identifier; | 775 SimpleIdentifier get identifier => _identifier; |
| 776 | 776 |
| 777 /** | 777 /** |
| 778 * Set the identifier representing the argument being tested to the given iden
tifier. | 778 * Set the identifier representing the argument being tested to the given iden
tifier. |
| 779 * | 779 * |
| 780 * @param identifier the identifier representing the argument being tested | 780 * @param identifier the identifier representing the argument being tested |
| 781 */ | 781 */ |
| 782 void set identifier(SimpleIdentifier identifier2) { | 782 void set identifier(SimpleIdentifier identifier) { |
| 783 this._identifier = becomeParentOf(identifier2); | 783 this._identifier = becomeParentOf(identifier); |
| 784 } | 784 } |
| 785 void visitChildren(ASTVisitor visitor) { | 785 void visitChildren(ASTVisitor visitor) { |
| 786 safelyVisitChild(_identifier, visitor); | 786 safelyVisitChild(_identifier, visitor); |
| 787 } | 787 } |
| 788 } | 788 } |
| 789 /** | 789 /** |
| 790 * Instances of the class `ArgumentList` represent a list of arguments in the in
vocation of a | 790 * Instances of the class `ArgumentList` represent a list of arguments in the in
vocation of a |
| 791 * executable element: a function, method, or constructor. | 791 * executable element: a function, method, or constructor. |
| 792 * | 792 * |
| 793 * <pre> | 793 * <pre> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 * | 1039 * |
| 1040 * @return the name of the type being cast to | 1040 * @return the name of the type being cast to |
| 1041 */ | 1041 */ |
| 1042 TypeName get type => _type; | 1042 TypeName get type => _type; |
| 1043 | 1043 |
| 1044 /** | 1044 /** |
| 1045 * Set the expression used to compute the value being cast to the given expres
sion. | 1045 * Set the expression used to compute the value being cast to the given expres
sion. |
| 1046 * | 1046 * |
| 1047 * @param expression the expression used to compute the value being cast | 1047 * @param expression the expression used to compute the value being cast |
| 1048 */ | 1048 */ |
| 1049 void set expression(Expression expression2) { | 1049 void set expression(Expression expression) { |
| 1050 this._expression = becomeParentOf(expression2); | 1050 this._expression = becomeParentOf(expression); |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 /** | 1053 /** |
| 1054 * Set the name of the type being cast to to the given name. | 1054 * Set the name of the type being cast to to the given name. |
| 1055 * | 1055 * |
| 1056 * @param name the name of the type being cast to | 1056 * @param name the name of the type being cast to |
| 1057 */ | 1057 */ |
| 1058 void set type(TypeName name) { | 1058 void set type(TypeName name) { |
| 1059 this._type = becomeParentOf(name); | 1059 this._type = becomeParentOf(name); |
| 1060 } | 1060 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 * @return the condition that is being asserted to be `true` | 1136 * @return the condition that is being asserted to be `true` |
| 1137 */ | 1137 */ |
| 1138 Expression get condition => _condition; | 1138 Expression get condition => _condition; |
| 1139 Token get endToken => semicolon; | 1139 Token get endToken => semicolon; |
| 1140 | 1140 |
| 1141 /** | 1141 /** |
| 1142 * Set the condition that is being asserted to be `true` to the given expressi
on. | 1142 * Set the condition that is being asserted to be `true` to the given expressi
on. |
| 1143 * | 1143 * |
| 1144 * @param the condition that is being asserted to be `true` | 1144 * @param the condition that is being asserted to be `true` |
| 1145 */ | 1145 */ |
| 1146 void set condition(Expression condition2) { | 1146 void set condition(Expression condition) { |
| 1147 this._condition = becomeParentOf(condition2); | 1147 this._condition = becomeParentOf(condition); |
| 1148 } | 1148 } |
| 1149 void visitChildren(ASTVisitor visitor) { | 1149 void visitChildren(ASTVisitor visitor) { |
| 1150 safelyVisitChild(_condition, visitor); | 1150 safelyVisitChild(_condition, visitor); |
| 1151 } | 1151 } |
| 1152 } | 1152 } |
| 1153 /** | 1153 /** |
| 1154 * Instances of the class `AssignmentExpression` represent an assignment express
ion. | 1154 * Instances of the class `AssignmentExpression` represent an assignment express
ion. |
| 1155 * | 1155 * |
| 1156 * <pre> | 1156 * <pre> |
| 1157 * assignmentExpression ::= | 1157 * assignmentExpression ::= |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1648 * @return the block representing the body of the function | 1648 * @return the block representing the body of the function |
| 1649 */ | 1649 */ |
| 1650 Block get block => _block; | 1650 Block get block => _block; |
| 1651 Token get endToken => _block.endToken; | 1651 Token get endToken => _block.endToken; |
| 1652 | 1652 |
| 1653 /** | 1653 /** |
| 1654 * Set the block representing the body of the function to the given block. | 1654 * Set the block representing the body of the function to the given block. |
| 1655 * | 1655 * |
| 1656 * @param block the block representing the body of the function | 1656 * @param block the block representing the body of the function |
| 1657 */ | 1657 */ |
| 1658 void set block(Block block2) { | 1658 void set block(Block block) { |
| 1659 this._block = becomeParentOf(block2); | 1659 this._block = becomeParentOf(block); |
| 1660 } | 1660 } |
| 1661 void visitChildren(ASTVisitor visitor) { | 1661 void visitChildren(ASTVisitor visitor) { |
| 1662 safelyVisitChild(_block, visitor); | 1662 safelyVisitChild(_block, visitor); |
| 1663 } | 1663 } |
| 1664 } | 1664 } |
| 1665 /** | 1665 /** |
| 1666 * Instances of the class `BooleanLiteral` represent a boolean literal expressio
n. | 1666 * Instances of the class `BooleanLiteral` represent a boolean literal expressio
n. |
| 1667 * | 1667 * |
| 1668 * <pre> | 1668 * <pre> |
| 1669 * booleanLiteral ::= | 1669 * booleanLiteral ::= |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 * | 1840 * |
| 1841 * @return the target of the cascade sections | 1841 * @return the target of the cascade sections |
| 1842 */ | 1842 */ |
| 1843 Expression get target => _target; | 1843 Expression get target => _target; |
| 1844 | 1844 |
| 1845 /** | 1845 /** |
| 1846 * Set the target of the cascade sections to the given expression. | 1846 * Set the target of the cascade sections to the given expression. |
| 1847 * | 1847 * |
| 1848 * @param target the target of the cascade sections | 1848 * @param target the target of the cascade sections |
| 1849 */ | 1849 */ |
| 1850 void set target(Expression target2) { | 1850 void set target(Expression target) { |
| 1851 this._target = becomeParentOf(target2); | 1851 this._target = becomeParentOf(target); |
| 1852 } | 1852 } |
| 1853 void visitChildren(ASTVisitor visitor) { | 1853 void visitChildren(ASTVisitor visitor) { |
| 1854 safelyVisitChild(_target, visitor); | 1854 safelyVisitChild(_target, visitor); |
| 1855 cascadeSections.accept(visitor); | 1855 cascadeSections.accept(visitor); |
| 1856 } | 1856 } |
| 1857 } | 1857 } |
| 1858 /** | 1858 /** |
| 1859 * Instances of the class `CatchClause` represent a catch clause within a try st
atement. | 1859 * Instances of the class `CatchClause` represent a catch clause within a try st
atement. |
| 1860 * | 1860 * |
| 1861 * <pre> | 1861 * <pre> |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2207 * | 2207 * |
| 2208 * @return the with clause for the class | 2208 * @return the with clause for the class |
| 2209 */ | 2209 */ |
| 2210 WithClause get withClause => _withClause; | 2210 WithClause get withClause => _withClause; |
| 2211 | 2211 |
| 2212 /** | 2212 /** |
| 2213 * Set the extends clause for this class to the given clause. | 2213 * Set the extends clause for this class to the given clause. |
| 2214 * | 2214 * |
| 2215 * @param extendsClause the extends clause for this class | 2215 * @param extendsClause the extends clause for this class |
| 2216 */ | 2216 */ |
| 2217 void set extendsClause(ExtendsClause extendsClause2) { | 2217 void set extendsClause(ExtendsClause extendsClause) { |
| 2218 this._extendsClause = becomeParentOf(extendsClause2); | 2218 this._extendsClause = becomeParentOf(extendsClause); |
| 2219 } | 2219 } |
| 2220 | 2220 |
| 2221 /** | 2221 /** |
| 2222 * Set the implements clause for the class to the given clause. | 2222 * Set the implements clause for the class to the given clause. |
| 2223 * | 2223 * |
| 2224 * @param implementsClause the implements clause for the class | 2224 * @param implementsClause the implements clause for the class |
| 2225 */ | 2225 */ |
| 2226 void set implementsClause(ImplementsClause implementsClause2) { | 2226 void set implementsClause(ImplementsClause implementsClause) { |
| 2227 this._implementsClause = becomeParentOf(implementsClause2); | 2227 this._implementsClause = becomeParentOf(implementsClause); |
| 2228 } | 2228 } |
| 2229 | 2229 |
| 2230 /** | 2230 /** |
| 2231 * Set the name of the class being declared to the given identifier. | 2231 * Set the name of the class being declared to the given identifier. |
| 2232 * | 2232 * |
| 2233 * @param identifier the name of the class being declared | 2233 * @param identifier the name of the class being declared |
| 2234 */ | 2234 */ |
| 2235 void set name(SimpleIdentifier identifier) { | 2235 void set name(SimpleIdentifier identifier) { |
| 2236 _name = becomeParentOf(identifier); | 2236 _name = becomeParentOf(identifier); |
| 2237 } | 2237 } |
| 2238 | 2238 |
| 2239 /** | 2239 /** |
| 2240 * Set the with clause for the class to the given clause. | 2240 * Set the with clause for the class to the given clause. |
| 2241 * | 2241 * |
| 2242 * @param withClause the with clause for the class | 2242 * @param withClause the with clause for the class |
| 2243 */ | 2243 */ |
| 2244 void set withClause(WithClause withClause2) { | 2244 void set withClause(WithClause withClause) { |
| 2245 this._withClause = becomeParentOf(withClause2); | 2245 this._withClause = becomeParentOf(withClause); |
| 2246 } | 2246 } |
| 2247 void visitChildren(ASTVisitor visitor) { | 2247 void visitChildren(ASTVisitor visitor) { |
| 2248 super.visitChildren(visitor); | 2248 super.visitChildren(visitor); |
| 2249 safelyVisitChild(_name, visitor); | 2249 safelyVisitChild(_name, visitor); |
| 2250 safelyVisitChild(typeParameters, visitor); | 2250 safelyVisitChild(typeParameters, visitor); |
| 2251 safelyVisitChild(_extendsClause, visitor); | 2251 safelyVisitChild(_extendsClause, visitor); |
| 2252 safelyVisitChild(_withClause, visitor); | 2252 safelyVisitChild(_withClause, visitor); |
| 2253 safelyVisitChild(_implementsClause, visitor); | 2253 safelyVisitChild(_implementsClause, visitor); |
| 2254 safelyVisitChild(nativeClause, visitor); | 2254 safelyVisitChild(nativeClause, visitor); |
| 2255 members.accept(visitor); | 2255 members.accept(visitor); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2415 * | 2415 * |
| 2416 * @return the with clause for this class | 2416 * @return the with clause for this class |
| 2417 */ | 2417 */ |
| 2418 WithClause get withClause => _withClause; | 2418 WithClause get withClause => _withClause; |
| 2419 | 2419 |
| 2420 /** | 2420 /** |
| 2421 * Set the implements clause for this class to the given implements clause. | 2421 * Set the implements clause for this class to the given implements clause. |
| 2422 * | 2422 * |
| 2423 * @param implementsClause the implements clause for this class | 2423 * @param implementsClause the implements clause for this class |
| 2424 */ | 2424 */ |
| 2425 void set implementsClause(ImplementsClause implementsClause2) { | 2425 void set implementsClause(ImplementsClause implementsClause) { |
| 2426 this._implementsClause = becomeParentOf(implementsClause2); | 2426 this._implementsClause = becomeParentOf(implementsClause); |
| 2427 } | 2427 } |
| 2428 | 2428 |
| 2429 /** | 2429 /** |
| 2430 * Set the name of the class being declared to the given identifier. | 2430 * Set the name of the class being declared to the given identifier. |
| 2431 * | 2431 * |
| 2432 * @param name the name of the class being declared | 2432 * @param name the name of the class being declared |
| 2433 */ | 2433 */ |
| 2434 void set name(SimpleIdentifier name2) { | 2434 void set name(SimpleIdentifier name) { |
| 2435 this._name = becomeParentOf(name2); | 2435 this._name = becomeParentOf(name); |
| 2436 } | 2436 } |
| 2437 | 2437 |
| 2438 /** | 2438 /** |
| 2439 * Set the name of the superclass of the class being declared to the given nam
e. | 2439 * Set the name of the superclass of the class being declared to the given nam
e. |
| 2440 * | 2440 * |
| 2441 * @param superclass the name of the superclass of the class being declared | 2441 * @param superclass the name of the superclass of the class being declared |
| 2442 */ | 2442 */ |
| 2443 void set superclass(TypeName superclass2) { | 2443 void set superclass(TypeName superclass) { |
| 2444 this._superclass = becomeParentOf(superclass2); | 2444 this._superclass = becomeParentOf(superclass); |
| 2445 } | 2445 } |
| 2446 | 2446 |
| 2447 /** | 2447 /** |
| 2448 * Set the type parameters for the class to the given list of parameters. | 2448 * Set the type parameters for the class to the given list of parameters. |
| 2449 * | 2449 * |
| 2450 * @param typeParameters the type parameters for the class | 2450 * @param typeParameters the type parameters for the class |
| 2451 */ | 2451 */ |
| 2452 void set typeParameters(TypeParameterList typeParameters2) { | 2452 void set typeParameters(TypeParameterList typeParameters) { |
| 2453 this._typeParameters = becomeParentOf(typeParameters2); | 2453 this._typeParameters = becomeParentOf(typeParameters); |
| 2454 } | 2454 } |
| 2455 | 2455 |
| 2456 /** | 2456 /** |
| 2457 * Set the with clause for this class to the given with clause. | 2457 * Set the with clause for this class to the given with clause. |
| 2458 * | 2458 * |
| 2459 * @param withClause the with clause for this class | 2459 * @param withClause the with clause for this class |
| 2460 */ | 2460 */ |
| 2461 void set withClause(WithClause withClause2) { | 2461 void set withClause(WithClause withClause) { |
| 2462 this._withClause = becomeParentOf(withClause2); | 2462 this._withClause = becomeParentOf(withClause); |
| 2463 } | 2463 } |
| 2464 void visitChildren(ASTVisitor visitor) { | 2464 void visitChildren(ASTVisitor visitor) { |
| 2465 super.visitChildren(visitor); | 2465 super.visitChildren(visitor); |
| 2466 safelyVisitChild(_name, visitor); | 2466 safelyVisitChild(_name, visitor); |
| 2467 safelyVisitChild(_typeParameters, visitor); | 2467 safelyVisitChild(_typeParameters, visitor); |
| 2468 safelyVisitChild(_superclass, visitor); | 2468 safelyVisitChild(_superclass, visitor); |
| 2469 safelyVisitChild(_withClause, visitor); | 2469 safelyVisitChild(_withClause, visitor); |
| 2470 safelyVisitChild(_implementsClause, visitor); | 2470 safelyVisitChild(_implementsClause, visitor); |
| 2471 } | 2471 } |
| 2472 } | 2472 } |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2704 * | 2704 * |
| 2705 * @return the identifier being referenced | 2705 * @return the identifier being referenced |
| 2706 */ | 2706 */ |
| 2707 Identifier get identifier => _identifier; | 2707 Identifier get identifier => _identifier; |
| 2708 | 2708 |
| 2709 /** | 2709 /** |
| 2710 * Set the identifier being referenced to the given identifier. | 2710 * Set the identifier being referenced to the given identifier. |
| 2711 * | 2711 * |
| 2712 * @param identifier the identifier being referenced | 2712 * @param identifier the identifier being referenced |
| 2713 */ | 2713 */ |
| 2714 void set identifier(Identifier identifier2) { | 2714 void set identifier(Identifier identifier) { |
| 2715 identifier2 = becomeParentOf(identifier2); | 2715 identifier = becomeParentOf(identifier); |
| 2716 } | 2716 } |
| 2717 void visitChildren(ASTVisitor visitor) { | 2717 void visitChildren(ASTVisitor visitor) { |
| 2718 safelyVisitChild(_identifier, visitor); | 2718 safelyVisitChild(_identifier, visitor); |
| 2719 } | 2719 } |
| 2720 } | 2720 } |
| 2721 /** | 2721 /** |
| 2722 * Instances of the class `CompilationUnit` represent a compilation unit. | 2722 * Instances of the class `CompilationUnit` represent a compilation unit. |
| 2723 * | 2723 * |
| 2724 * While the grammar restricts the order of the directives and declarations with
in a compilation | 2724 * While the grammar restricts the order of the directives and declarations with
in a compilation |
| 2725 * unit, this class does not enforce those restrictions. In particular, the chil
dren of a | 2725 * unit, this class does not enforce those restrictions. In particular, the chil
dren of a |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2921 */ | 2921 */ |
| 2922 void set resolutionErrors(List<AnalysisError> errors) { | 2922 void set resolutionErrors(List<AnalysisError> errors) { |
| 2923 _resolutionErrors = errors == null ? AnalysisError.NO_ERRORS : errors; | 2923 _resolutionErrors = errors == null ? AnalysisError.NO_ERRORS : errors; |
| 2924 } | 2924 } |
| 2925 | 2925 |
| 2926 /** | 2926 /** |
| 2927 * Set the script tag at the beginning of the compilation unit to the given sc
ript tag. | 2927 * Set the script tag at the beginning of the compilation unit to the given sc
ript tag. |
| 2928 * | 2928 * |
| 2929 * @param scriptTag the script tag at the beginning of the compilation unit | 2929 * @param scriptTag the script tag at the beginning of the compilation unit |
| 2930 */ | 2930 */ |
| 2931 void set scriptTag(ScriptTag scriptTag2) { | 2931 void set scriptTag(ScriptTag scriptTag) { |
| 2932 this._scriptTag = becomeParentOf(scriptTag2); | 2932 this._scriptTag = becomeParentOf(scriptTag); |
| 2933 } | 2933 } |
| 2934 void visitChildren(ASTVisitor visitor) { | 2934 void visitChildren(ASTVisitor visitor) { |
| 2935 safelyVisitChild(_scriptTag, visitor); | 2935 safelyVisitChild(_scriptTag, visitor); |
| 2936 if (directivesAreBeforeDeclarations()) { | 2936 if (directivesAreBeforeDeclarations()) { |
| 2937 directives.accept(visitor); | 2937 directives.accept(visitor); |
| 2938 declarations.accept(visitor); | 2938 declarations.accept(visitor); |
| 2939 } else { | 2939 } else { |
| 2940 for (ASTNode child in sortedDirectivesAndDeclarations) { | 2940 for (ASTNode child in sortedDirectivesAndDeclarations) { |
| 2941 child.accept(visitor); | 2941 child.accept(visitor); |
| 2942 } | 2942 } |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3338 */ | 3338 */ |
| 3339 void set body(FunctionBody functionBody) { | 3339 void set body(FunctionBody functionBody) { |
| 3340 _body = becomeParentOf(functionBody); | 3340 _body = becomeParentOf(functionBody); |
| 3341 } | 3341 } |
| 3342 | 3342 |
| 3343 /** | 3343 /** |
| 3344 * Set the element associated with this constructor to the given element. | 3344 * Set the element associated with this constructor to the given element. |
| 3345 * | 3345 * |
| 3346 * @param element the element associated with this constructor | 3346 * @param element the element associated with this constructor |
| 3347 */ | 3347 */ |
| 3348 void set element(ConstructorElement element2) { | 3348 void set element(ConstructorElement element) { |
| 3349 this._element = element2; | 3349 this._element = element; |
| 3350 } | 3350 } |
| 3351 | 3351 |
| 3352 /** | 3352 /** |
| 3353 * Set the name of the constructor to the given identifier. | 3353 * Set the name of the constructor to the given identifier. |
| 3354 * | 3354 * |
| 3355 * @param identifier the name of the constructor | 3355 * @param identifier the name of the constructor |
| 3356 */ | 3356 */ |
| 3357 void set name(SimpleIdentifier identifier) { | 3357 void set name(SimpleIdentifier identifier) { |
| 3358 _name = becomeParentOf(identifier); | 3358 _name = becomeParentOf(identifier); |
| 3359 } | 3359 } |
| 3360 | 3360 |
| 3361 /** | 3361 /** |
| 3362 * Set the parameters associated with the constructor to the given list of par
ameters. | 3362 * Set the parameters associated with the constructor to the given list of par
ameters. |
| 3363 * | 3363 * |
| 3364 * @param parameters the parameters associated with the constructor | 3364 * @param parameters the parameters associated with the constructor |
| 3365 */ | 3365 */ |
| 3366 void set parameters(FormalParameterList parameters2) { | 3366 void set parameters(FormalParameterList parameters) { |
| 3367 this._parameters = becomeParentOf(parameters2); | 3367 this._parameters = becomeParentOf(parameters); |
| 3368 } | 3368 } |
| 3369 | 3369 |
| 3370 /** | 3370 /** |
| 3371 * Set the name of the constructor to which this constructor will be redirecte
d to the given | 3371 * Set the name of the constructor to which this constructor will be redirecte
d to the given |
| 3372 * constructor name. | 3372 * constructor name. |
| 3373 * | 3373 * |
| 3374 * @param redirectedConstructor the name of the constructor to which this cons
tructor will be | 3374 * @param redirectedConstructor the name of the constructor to which this cons
tructor will be |
| 3375 * redirected | 3375 * redirected |
| 3376 */ | 3376 */ |
| 3377 void set redirectedConstructor(ConstructorName redirectedConstructor2) { | 3377 void set redirectedConstructor(ConstructorName redirectedConstructor) { |
| 3378 this._redirectedConstructor = becomeParentOf(redirectedConstructor2); | 3378 this._redirectedConstructor = becomeParentOf(redirectedConstructor); |
| 3379 } | 3379 } |
| 3380 | 3380 |
| 3381 /** | 3381 /** |
| 3382 * Set the type of object being created to the given type name. | 3382 * Set the type of object being created to the given type name. |
| 3383 * | 3383 * |
| 3384 * @param typeName the type of object being created | 3384 * @param typeName the type of object being created |
| 3385 */ | 3385 */ |
| 3386 void set returnType(Identifier typeName) { | 3386 void set returnType(Identifier typeName) { |
| 3387 _returnType = becomeParentOf(typeName); | 3387 _returnType = becomeParentOf(typeName); |
| 3388 } | 3388 } |
| 3389 void visitChildren(ASTVisitor visitor) { | 3389 void visitChildren(ASTVisitor visitor) { |
| 3390 super.visitChildren(visitor); | 3390 super.visitChildren(visitor); |
| 3391 safelyVisitChild(_returnType, visitor); | 3391 safelyVisitChild(_returnType, visitor); |
| 3392 safelyVisitChild(_name, visitor); | 3392 safelyVisitChild(_name, visitor); |
| 3393 safelyVisitChild(_parameters, visitor); | 3393 safelyVisitChild(_parameters, visitor); |
| 3394 initializers.accept(visitor); | 3394 initializers.accept(visitor); |
| 3395 safelyVisitChild(_redirectedConstructor, visitor); | 3395 safelyVisitChild(_redirectedConstructor, visitor); |
| 3396 safelyVisitChild(_body, visitor); | 3396 safelyVisitChild(_body, visitor); |
| 3397 } | 3397 } |
| 3398 Token get firstTokenAfterCommentAndMetadata { | 3398 Token get firstTokenAfterCommentAndMetadata { |
| 3399 Token leftMost2 = leftMost([externalKeyword, constKeyword, factoryKeyword]); | 3399 Token leftMost = this.leftMost([externalKeyword, constKeyword, factoryKeywor
d]); |
| 3400 if (leftMost2 != null) { | 3400 if (leftMost != null) { |
| 3401 return leftMost2; | 3401 return leftMost; |
| 3402 } | 3402 } |
| 3403 return _returnType.beginToken; | 3403 return _returnType.beginToken; |
| 3404 } | 3404 } |
| 3405 | 3405 |
| 3406 /** | 3406 /** |
| 3407 * Return the left-most of the given tokens, or `null` if there are no tokens
given or if | 3407 * Return the left-most of the given tokens, or `null` if there are no tokens
given or if |
| 3408 * all of the given tokens are `null`. | 3408 * all of the given tokens are `null`. |
| 3409 * | 3409 * |
| 3410 * @param tokens the tokens being compared to find the left-most token | 3410 * @param tokens the tokens being compared to find the left-most token |
| 3411 * @return the left-most of the given tokens | 3411 * @return the left-most of the given tokens |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3511 * @return the name of the field being initialized | 3511 * @return the name of the field being initialized |
| 3512 */ | 3512 */ |
| 3513 SimpleIdentifier get fieldName => _fieldName; | 3513 SimpleIdentifier get fieldName => _fieldName; |
| 3514 | 3514 |
| 3515 /** | 3515 /** |
| 3516 * Set the expression computing the value to which the field will be initializ
ed to the given | 3516 * Set the expression computing the value to which the field will be initializ
ed to the given |
| 3517 * expression. | 3517 * expression. |
| 3518 * | 3518 * |
| 3519 * @param expression the expression computing the value to which the field wil
l be initialized | 3519 * @param expression the expression computing the value to which the field wil
l be initialized |
| 3520 */ | 3520 */ |
| 3521 void set expression(Expression expression2) { | 3521 void set expression(Expression expression) { |
| 3522 this._expression = becomeParentOf(expression2); | 3522 this._expression = becomeParentOf(expression); |
| 3523 } | 3523 } |
| 3524 | 3524 |
| 3525 /** | 3525 /** |
| 3526 * Set the name of the field being initialized to the given identifier. | 3526 * Set the name of the field being initialized to the given identifier. |
| 3527 * | 3527 * |
| 3528 * @param identifier the name of the field being initialized | 3528 * @param identifier the name of the field being initialized |
| 3529 */ | 3529 */ |
| 3530 void set fieldName(SimpleIdentifier identifier) { | 3530 void set fieldName(SimpleIdentifier identifier) { |
| 3531 _fieldName = becomeParentOf(identifier); | 3531 _fieldName = becomeParentOf(identifier); |
| 3532 } | 3532 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3637 * | 3637 * |
| 3638 * @return the name of the type defining the constructor | 3638 * @return the name of the type defining the constructor |
| 3639 */ | 3639 */ |
| 3640 TypeName get type => _type; | 3640 TypeName get type => _type; |
| 3641 | 3641 |
| 3642 /** | 3642 /** |
| 3643 * Set the name of the constructor to the given name. | 3643 * Set the name of the constructor to the given name. |
| 3644 * | 3644 * |
| 3645 * @param name the name of the constructor | 3645 * @param name the name of the constructor |
| 3646 */ | 3646 */ |
| 3647 void set name(SimpleIdentifier name2) { | 3647 void set name(SimpleIdentifier name) { |
| 3648 this._name = becomeParentOf(name2); | 3648 this._name = becomeParentOf(name); |
| 3649 } | 3649 } |
| 3650 | 3650 |
| 3651 /** | 3651 /** |
| 3652 * Set the element associated with this constructor name based on static type
information to the | 3652 * Set the element associated with this constructor name based on static type
information to the |
| 3653 * given element. | 3653 * given element. |
| 3654 * | 3654 * |
| 3655 * @param element the element to be associated with this constructor name | 3655 * @param element the element to be associated with this constructor name |
| 3656 */ | 3656 */ |
| 3657 void set staticElement(ConstructorElement element) { | 3657 void set staticElement(ConstructorElement element) { |
| 3658 _staticElement = element; | 3658 _staticElement = element; |
| 3659 } | 3659 } |
| 3660 | 3660 |
| 3661 /** | 3661 /** |
| 3662 * Set the name of the type defining the constructor to the given type name. | 3662 * Set the name of the type defining the constructor to the given type name. |
| 3663 * | 3663 * |
| 3664 * @param type the name of the type defining the constructor | 3664 * @param type the name of the type defining the constructor |
| 3665 */ | 3665 */ |
| 3666 void set type(TypeName type2) { | 3666 void set type(TypeName type) { |
| 3667 this._type = becomeParentOf(type2); | 3667 this._type = becomeParentOf(type); |
| 3668 } | 3668 } |
| 3669 void visitChildren(ASTVisitor visitor) { | 3669 void visitChildren(ASTVisitor visitor) { |
| 3670 safelyVisitChild(_type, visitor); | 3670 safelyVisitChild(_type, visitor); |
| 3671 safelyVisitChild(_name, visitor); | 3671 safelyVisitChild(_name, visitor); |
| 3672 } | 3672 } |
| 3673 } | 3673 } |
| 3674 /** | 3674 /** |
| 3675 * Instances of the class `ContinueStatement` represent a continue statement. | 3675 * Instances of the class `ContinueStatement` represent a continue statement. |
| 3676 * | 3676 * |
| 3677 * <pre> | 3677 * <pre> |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3824 * | 3824 * |
| 3825 * @param comment the documentation comment associated with this parameter | 3825 * @param comment the documentation comment associated with this parameter |
| 3826 * @param metadata the annotations associated with this parameter | 3826 * @param metadata the annotations associated with this parameter |
| 3827 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword | 3827 * @param keyword the token representing either the 'final', 'const' or 'var'
keyword |
| 3828 * @param type the name of the declared type of the parameter | 3828 * @param type the name of the declared type of the parameter |
| 3829 * @param identifier the name of the parameter being declared | 3829 * @param identifier the name of the parameter being declared |
| 3830 */ | 3830 */ |
| 3831 DeclaredIdentifier({Comment comment, List<Annotation> metadata, Token keyword,
TypeName type, SimpleIdentifier identifier}) : this.full(comment, metadata, key
word, type, identifier); | 3831 DeclaredIdentifier({Comment comment, List<Annotation> metadata, Token keyword,
TypeName type, SimpleIdentifier identifier}) : this.full(comment, metadata, key
word, type, identifier); |
| 3832 accept(ASTVisitor visitor) => visitor.visitDeclaredIdentifier(this); | 3832 accept(ASTVisitor visitor) => visitor.visitDeclaredIdentifier(this); |
| 3833 LocalVariableElement get element { | 3833 LocalVariableElement get element { |
| 3834 SimpleIdentifier identifier2 = identifier; | 3834 SimpleIdentifier identifier = this.identifier; |
| 3835 if (identifier2 == null) { | 3835 if (identifier == null) { |
| 3836 return null; | 3836 return null; |
| 3837 } | 3837 } |
| 3838 return identifier2.staticElement as LocalVariableElement; | 3838 return identifier.staticElement as LocalVariableElement; |
| 3839 } | 3839 } |
| 3840 Token get endToken => identifier.endToken; | 3840 Token get endToken => identifier.endToken; |
| 3841 | 3841 |
| 3842 /** | 3842 /** |
| 3843 * Return the name of the declared type of the parameter, or `null` if the par
ameter does | 3843 * Return the name of the declared type of the parameter, or `null` if the par
ameter does |
| 3844 * not have a declared type. | 3844 * not have a declared type. |
| 3845 * | 3845 * |
| 3846 * @return the name of the declared type of the parameter | 3846 * @return the name of the declared type of the parameter |
| 3847 */ | 3847 */ |
| 3848 TypeName get type => _type; | 3848 TypeName get type => _type; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3983 */ | 3983 */ |
| 3984 void set defaultValue(Expression expression) { | 3984 void set defaultValue(Expression expression) { |
| 3985 _defaultValue = becomeParentOf(expression); | 3985 _defaultValue = becomeParentOf(expression); |
| 3986 } | 3986 } |
| 3987 | 3987 |
| 3988 /** | 3988 /** |
| 3989 * Set the kind of this parameter to the given kind. | 3989 * Set the kind of this parameter to the given kind. |
| 3990 * | 3990 * |
| 3991 * @param kind the kind of this parameter | 3991 * @param kind the kind of this parameter |
| 3992 */ | 3992 */ |
| 3993 void set kind(ParameterKind kind2) { | 3993 void set kind(ParameterKind kind) { |
| 3994 this._kind = kind2; | 3994 this._kind = kind; |
| 3995 } | 3995 } |
| 3996 | 3996 |
| 3997 /** | 3997 /** |
| 3998 * Set the formal parameter with which the default value is associated to the
given parameter. | 3998 * Set the formal parameter with which the default value is associated to the
given parameter. |
| 3999 * | 3999 * |
| 4000 * @param formalParameter the formal parameter with which the default value is
associated | 4000 * @param formalParameter the formal parameter with which the default value is
associated |
| 4001 */ | 4001 */ |
| 4002 void set parameter(NormalFormalParameter formalParameter) { | 4002 void set parameter(NormalFormalParameter formalParameter) { |
| 4003 _parameter = becomeParentOf(formalParameter); | 4003 _parameter = becomeParentOf(formalParameter); |
| 4004 } | 4004 } |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4374 * @param comment the documentation comment associated with this directive | 4374 * @param comment the documentation comment associated with this directive |
| 4375 * @param metadata the annotations associated with the directive | 4375 * @param metadata the annotations associated with the directive |
| 4376 * @param keyword the token representing the 'export' keyword | 4376 * @param keyword the token representing the 'export' keyword |
| 4377 * @param libraryUri the URI of the library being exported | 4377 * @param libraryUri the URI of the library being exported |
| 4378 * @param combinators the combinators used to control which names are exported | 4378 * @param combinators the combinators used to control which names are exported |
| 4379 * @param semicolon the semicolon terminating the directive | 4379 * @param semicolon the semicolon terminating the directive |
| 4380 */ | 4380 */ |
| 4381 ExportDirective({Comment comment, List<Annotation> metadata, Token keyword, St
ringLiteral libraryUri, List<Combinator> combinators, Token semicolon}) : this.f
ull(comment, metadata, keyword, libraryUri, combinators, semicolon); | 4381 ExportDirective({Comment comment, List<Annotation> metadata, Token keyword, St
ringLiteral libraryUri, List<Combinator> combinators, Token semicolon}) : this.f
ull(comment, metadata, keyword, libraryUri, combinators, semicolon); |
| 4382 accept(ASTVisitor visitor) => visitor.visitExportDirective(this); | 4382 accept(ASTVisitor visitor) => visitor.visitExportDirective(this); |
| 4383 LibraryElement get uriElement { | 4383 LibraryElement get uriElement { |
| 4384 Element element2 = element; | 4384 Element element = this.element; |
| 4385 if (element2 is ExportElement) { | 4385 if (element is ExportElement) { |
| 4386 return ((element2 as ExportElement)).exportedLibrary; | 4386 return ((element as ExportElement)).exportedLibrary; |
| 4387 } | 4387 } |
| 4388 return null; | 4388 return null; |
| 4389 } | 4389 } |
| 4390 void visitChildren(ASTVisitor visitor) { | 4390 void visitChildren(ASTVisitor visitor) { |
| 4391 super.visitChildren(visitor); | 4391 super.visitChildren(visitor); |
| 4392 combinators.accept(visitor); | 4392 combinators.accept(visitor); |
| 4393 } | 4393 } |
| 4394 } | 4394 } |
| 4395 /** | 4395 /** |
| 4396 * Instances of the class `Expression` defines the behavior common to nodes that
represent an | 4396 * Instances of the class `Expression` defines the behavior common to nodes that
represent an |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4598 * | 4598 * |
| 4599 * @return the expression representing the body of the function | 4599 * @return the expression representing the body of the function |
| 4600 */ | 4600 */ |
| 4601 Expression get expression => _expression; | 4601 Expression get expression => _expression; |
| 4602 | 4602 |
| 4603 /** | 4603 /** |
| 4604 * Set the expression representing the body of the function to the given expre
ssion. | 4604 * Set the expression representing the body of the function to the given expre
ssion. |
| 4605 * | 4605 * |
| 4606 * @param expression the expression representing the body of the function | 4606 * @param expression the expression representing the body of the function |
| 4607 */ | 4607 */ |
| 4608 void set expression(Expression expression2) { | 4608 void set expression(Expression expression) { |
| 4609 this._expression = becomeParentOf(expression2); | 4609 this._expression = becomeParentOf(expression); |
| 4610 } | 4610 } |
| 4611 void visitChildren(ASTVisitor visitor) { | 4611 void visitChildren(ASTVisitor visitor) { |
| 4612 safelyVisitChild(_expression, visitor); | 4612 safelyVisitChild(_expression, visitor); |
| 4613 } | 4613 } |
| 4614 } | 4614 } |
| 4615 /** | 4615 /** |
| 4616 * Instances of the class `ExpressionStatement` wrap an expression as a statemen
t. | 4616 * Instances of the class `ExpressionStatement` wrap an expression as a statemen
t. |
| 4617 * | 4617 * |
| 4618 * <pre> | 4618 * <pre> |
| 4619 * expressionStatement ::= | 4619 * expressionStatement ::= |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4668 * @return the expression that comprises the statement | 4668 * @return the expression that comprises the statement |
| 4669 */ | 4669 */ |
| 4670 Expression get expression => _expression; | 4670 Expression get expression => _expression; |
| 4671 bool get isSynthetic => _expression.isSynthetic && semicolon.isSynthetic; | 4671 bool get isSynthetic => _expression.isSynthetic && semicolon.isSynthetic; |
| 4672 | 4672 |
| 4673 /** | 4673 /** |
| 4674 * Set the expression that comprises the statement to the given expression. | 4674 * Set the expression that comprises the statement to the given expression. |
| 4675 * | 4675 * |
| 4676 * @param expression the expression that comprises the statement | 4676 * @param expression the expression that comprises the statement |
| 4677 */ | 4677 */ |
| 4678 void set expression(Expression expression2) { | 4678 void set expression(Expression expression) { |
| 4679 this._expression = becomeParentOf(expression2); | 4679 this._expression = becomeParentOf(expression); |
| 4680 } | 4680 } |
| 4681 void visitChildren(ASTVisitor visitor) { | 4681 void visitChildren(ASTVisitor visitor) { |
| 4682 safelyVisitChild(_expression, visitor); | 4682 safelyVisitChild(_expression, visitor); |
| 4683 } | 4683 } |
| 4684 } | 4684 } |
| 4685 /** | 4685 /** |
| 4686 * Instances of the class `ExtendsClause` represent the "extends" clause in a cl
ass | 4686 * Instances of the class `ExtendsClause` represent the "extends" clause in a cl
ass |
| 4687 * declaration. | 4687 * declaration. |
| 4688 * | 4688 * |
| 4689 * <pre> | 4689 * <pre> |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4939 */ | 4939 */ |
| 4940 TypeName get type => _type; | 4940 TypeName get type => _type; |
| 4941 bool get isConst => (keyword is KeywordToken) && identical(((keyword as Keywor
dToken)).keyword, Keyword.CONST); | 4941 bool get isConst => (keyword is KeywordToken) && identical(((keyword as Keywor
dToken)).keyword, Keyword.CONST); |
| 4942 bool get isFinal => (keyword is KeywordToken) && identical(((keyword as Keywor
dToken)).keyword, Keyword.FINAL); | 4942 bool get isFinal => (keyword is KeywordToken) && identical(((keyword as Keywor
dToken)).keyword, Keyword.FINAL); |
| 4943 | 4943 |
| 4944 /** | 4944 /** |
| 4945 * Set the parameters of the function-typed parameter to the given parameters. | 4945 * Set the parameters of the function-typed parameter to the given parameters. |
| 4946 * | 4946 * |
| 4947 * @param parameters the parameters of the function-typed parameter | 4947 * @param parameters the parameters of the function-typed parameter |
| 4948 */ | 4948 */ |
| 4949 void set parameters(FormalParameterList parameters2) { | 4949 void set parameters(FormalParameterList parameters) { |
| 4950 this._parameters = becomeParentOf(parameters2); | 4950 this._parameters = becomeParentOf(parameters); |
| 4951 } | 4951 } |
| 4952 | 4952 |
| 4953 /** | 4953 /** |
| 4954 * Set the name of the declared type of the parameter to the given type name. | 4954 * Set the name of the declared type of the parameter to the given type name. |
| 4955 * | 4955 * |
| 4956 * @param typeName the name of the declared type of the parameter | 4956 * @param typeName the name of the declared type of the parameter |
| 4957 */ | 4957 */ |
| 4958 void set type(TypeName typeName) { | 4958 void set type(TypeName typeName) { |
| 4959 _type = becomeParentOf(typeName); | 4959 _type = becomeParentOf(typeName); |
| 4960 } | 4960 } |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5113 * | 5113 * |
| 5114 * @return the declaration of the loop variable | 5114 * @return the declaration of the loop variable |
| 5115 */ | 5115 */ |
| 5116 DeclaredIdentifier get loopVariable => _loopVariable; | 5116 DeclaredIdentifier get loopVariable => _loopVariable; |
| 5117 | 5117 |
| 5118 /** | 5118 /** |
| 5119 * Set the body of the loop to the given block. | 5119 * Set the body of the loop to the given block. |
| 5120 * | 5120 * |
| 5121 * @param body the body of the loop | 5121 * @param body the body of the loop |
| 5122 */ | 5122 */ |
| 5123 void set body(Statement body2) { | 5123 void set body(Statement body) { |
| 5124 this._body = becomeParentOf(body2); | 5124 this._body = becomeParentOf(body); |
| 5125 } | 5125 } |
| 5126 | 5126 |
| 5127 /** | 5127 /** |
| 5128 * Set the loop variable to the given variable. | 5128 * Set the loop variable to the given variable. |
| 5129 * | 5129 * |
| 5130 * @param identifier the loop variable | 5130 * @param identifier the loop variable |
| 5131 */ | 5131 */ |
| 5132 void set identifier(SimpleIdentifier identifier2) { | 5132 void set identifier(SimpleIdentifier identifier) { |
| 5133 this._identifier = becomeParentOf(identifier2); | 5133 this._identifier = becomeParentOf(identifier); |
| 5134 } | 5134 } |
| 5135 | 5135 |
| 5136 /** | 5136 /** |
| 5137 * Set the expression evaluated to produce the iterator to the given expressio
n. | 5137 * Set the expression evaluated to produce the iterator to the given expressio
n. |
| 5138 * | 5138 * |
| 5139 * @param expression the expression evaluated to produce the iterator | 5139 * @param expression the expression evaluated to produce the iterator |
| 5140 */ | 5140 */ |
| 5141 void set iterator(Expression expression) { | 5141 void set iterator(Expression expression) { |
| 5142 _iterator = becomeParentOf(expression); | 5142 _iterator = becomeParentOf(expression); |
| 5143 } | 5143 } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5305 * | 5305 * |
| 5306 * @return the declaration of the loop variables, or `null` if there are no va
riables | 5306 * @return the declaration of the loop variables, or `null` if there are no va
riables |
| 5307 */ | 5307 */ |
| 5308 VariableDeclarationList get variables => _variableList; | 5308 VariableDeclarationList get variables => _variableList; |
| 5309 | 5309 |
| 5310 /** | 5310 /** |
| 5311 * Set the body of the loop to the given statement. | 5311 * Set the body of the loop to the given statement. |
| 5312 * | 5312 * |
| 5313 * @param body the body of the loop | 5313 * @param body the body of the loop |
| 5314 */ | 5314 */ |
| 5315 void set body(Statement body2) { | 5315 void set body(Statement body) { |
| 5316 this._body = becomeParentOf(body2); | 5316 this._body = becomeParentOf(body); |
| 5317 } | 5317 } |
| 5318 | 5318 |
| 5319 /** | 5319 /** |
| 5320 * Set the condition used to determine when to terminate the loop to the given
expression. | 5320 * Set the condition used to determine when to terminate the loop to the given
expression. |
| 5321 * | 5321 * |
| 5322 * @param expression the condition used to determine when to terminate the loo
p | 5322 * @param expression the condition used to determine when to terminate the loo
p |
| 5323 */ | 5323 */ |
| 5324 void set condition(Expression expression) { | 5324 void set condition(Expression expression) { |
| 5325 _condition = becomeParentOf(expression); | 5325 _condition = becomeParentOf(expression); |
| 5326 } | 5326 } |
| 5327 | 5327 |
| 5328 /** | 5328 /** |
| 5329 * Set the initialization expression to the given expression. | 5329 * Set the initialization expression to the given expression. |
| 5330 * | 5330 * |
| 5331 * @param initialization the initialization expression | 5331 * @param initialization the initialization expression |
| 5332 */ | 5332 */ |
| 5333 void set initialization(Expression initialization2) { | 5333 void set initialization(Expression initialization) { |
| 5334 this._initialization = becomeParentOf(initialization2); | 5334 this._initialization = becomeParentOf(initialization); |
| 5335 } | 5335 } |
| 5336 | 5336 |
| 5337 /** | 5337 /** |
| 5338 * Set the declaration of the loop variables to the given parameter. | 5338 * Set the declaration of the loop variables to the given parameter. |
| 5339 * | 5339 * |
| 5340 * @param variableList the declaration of the loop variables | 5340 * @param variableList the declaration of the loop variables |
| 5341 */ | 5341 */ |
| 5342 void set variables(VariableDeclarationList variableList) { | 5342 void set variables(VariableDeclarationList variableList) { |
| 5343 variableList = becomeParentOf(variableList); | 5343 variableList = becomeParentOf(variableList); |
| 5344 } | 5344 } |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5715 * | 5715 * |
| 5716 * @return `true` if this function declares a setter | 5716 * @return `true` if this function declares a setter |
| 5717 */ | 5717 */ |
| 5718 bool get isSetter => propertyKeyword != null && identical(((propertyKeyword as
KeywordToken)).keyword, Keyword.SET); | 5718 bool get isSetter => propertyKeyword != null && identical(((propertyKeyword as
KeywordToken)).keyword, Keyword.SET); |
| 5719 | 5719 |
| 5720 /** | 5720 /** |
| 5721 * Set the function expression being wrapped to the given function expression. | 5721 * Set the function expression being wrapped to the given function expression. |
| 5722 * | 5722 * |
| 5723 * @param functionExpression the function expression being wrapped | 5723 * @param functionExpression the function expression being wrapped |
| 5724 */ | 5724 */ |
| 5725 void set functionExpression(FunctionExpression functionExpression2) { | 5725 void set functionExpression(FunctionExpression functionExpression) { |
| 5726 functionExpression2 = becomeParentOf(functionExpression2); | 5726 functionExpression = becomeParentOf(functionExpression); |
| 5727 } | 5727 } |
| 5728 | 5728 |
| 5729 /** | 5729 /** |
| 5730 * Set the name of the function to the given identifier. | 5730 * Set the name of the function to the given identifier. |
| 5731 * | 5731 * |
| 5732 * @param identifier the name of the function | 5732 * @param identifier the name of the function |
| 5733 */ | 5733 */ |
| 5734 void set name(SimpleIdentifier identifier) { | 5734 void set name(SimpleIdentifier identifier) { |
| 5735 _name = becomeParentOf(identifier); | 5735 _name = becomeParentOf(identifier); |
| 5736 } | 5736 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5793 FunctionDeclarationStatement({FunctionDeclaration functionDeclaration}) : this
.full(functionDeclaration); | 5793 FunctionDeclarationStatement({FunctionDeclaration functionDeclaration}) : this
.full(functionDeclaration); |
| 5794 accept(ASTVisitor visitor) => visitor.visitFunctionDeclarationStatement(this); | 5794 accept(ASTVisitor visitor) => visitor.visitFunctionDeclarationStatement(this); |
| 5795 Token get beginToken => functionDeclaration.beginToken; | 5795 Token get beginToken => functionDeclaration.beginToken; |
| 5796 Token get endToken => functionDeclaration.endToken; | 5796 Token get endToken => functionDeclaration.endToken; |
| 5797 | 5797 |
| 5798 /** | 5798 /** |
| 5799 * Set the function declaration being wrapped to the given function declaratio
n. | 5799 * Set the function declaration being wrapped to the given function declaratio
n. |
| 5800 * | 5800 * |
| 5801 * @param functionDeclaration the function declaration being wrapped | 5801 * @param functionDeclaration the function declaration being wrapped |
| 5802 */ | 5802 */ |
| 5803 void set functionExpression(FunctionDeclaration functionDeclaration2) { | 5803 void set functionExpression(FunctionDeclaration functionDeclaration) { |
| 5804 this.functionDeclaration = becomeParentOf(functionDeclaration2); | 5804 this.functionDeclaration = becomeParentOf(functionDeclaration); |
| 5805 } | 5805 } |
| 5806 void visitChildren(ASTVisitor visitor) { | 5806 void visitChildren(ASTVisitor visitor) { |
| 5807 safelyVisitChild(functionDeclaration, visitor); | 5807 safelyVisitChild(functionDeclaration, visitor); |
| 5808 } | 5808 } |
| 5809 } | 5809 } |
| 5810 /** | 5810 /** |
| 5811 * Instances of the class `FunctionExpression` represent a function expression. | 5811 * Instances of the class `FunctionExpression` represent a function expression. |
| 5812 * | 5812 * |
| 5813 * <pre> | 5813 * <pre> |
| 5814 * functionExpression ::= | 5814 * functionExpression ::= |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5892 */ | 5892 */ |
| 5893 void set body(FunctionBody functionBody) { | 5893 void set body(FunctionBody functionBody) { |
| 5894 _body = becomeParentOf(functionBody); | 5894 _body = becomeParentOf(functionBody); |
| 5895 } | 5895 } |
| 5896 | 5896 |
| 5897 /** | 5897 /** |
| 5898 * Set the parameters associated with the function to the given list of parame
ters. | 5898 * Set the parameters associated with the function to the given list of parame
ters. |
| 5899 * | 5899 * |
| 5900 * @param parameters the parameters associated with the function | 5900 * @param parameters the parameters associated with the function |
| 5901 */ | 5901 */ |
| 5902 void set parameters(FormalParameterList parameters2) { | 5902 void set parameters(FormalParameterList parameters) { |
| 5903 this._parameters = becomeParentOf(parameters2); | 5903 this._parameters = becomeParentOf(parameters); |
| 5904 } | 5904 } |
| 5905 void visitChildren(ASTVisitor visitor) { | 5905 void visitChildren(ASTVisitor visitor) { |
| 5906 safelyVisitChild(_parameters, visitor); | 5906 safelyVisitChild(_parameters, visitor); |
| 5907 safelyVisitChild(_body, visitor); | 5907 safelyVisitChild(_body, visitor); |
| 5908 } | 5908 } |
| 5909 } | 5909 } |
| 5910 /** | 5910 /** |
| 5911 * Instances of the class `FunctionExpressionInvocation` represent the invocatio
n of a | 5911 * Instances of the class `FunctionExpressionInvocation` represent the invocatio
n of a |
| 5912 * function resulting from evaluating an expression. Invocations of methods and
other forms of | 5912 * function resulting from evaluating an expression. Invocations of methods and
other forms of |
| 5913 * functions are represented by [MethodInvocation] nodes. Invocations of | 5913 * functions are represented by [MethodInvocation] nodes. Invocations of |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6005 * | 6005 * |
| 6006 * @return the element associated with the function being invoked | 6006 * @return the element associated with the function being invoked |
| 6007 */ | 6007 */ |
| 6008 ExecutableElement get propagatedElement => _propagatedElement; | 6008 ExecutableElement get propagatedElement => _propagatedElement; |
| 6009 | 6009 |
| 6010 /** | 6010 /** |
| 6011 * Set the list of arguments to the method to the given list. | 6011 * Set the list of arguments to the method to the given list. |
| 6012 * | 6012 * |
| 6013 * @param argumentList the list of arguments to the method | 6013 * @param argumentList the list of arguments to the method |
| 6014 */ | 6014 */ |
| 6015 void set argumentList(ArgumentList argumentList2) { | 6015 void set argumentList(ArgumentList argumentList) { |
| 6016 this._argumentList = becomeParentOf(argumentList2); | 6016 this._argumentList = becomeParentOf(argumentList); |
| 6017 } | 6017 } |
| 6018 | 6018 |
| 6019 /** | 6019 /** |
| 6020 * Set the expression producing the function being invoked to the given expres
sion. | 6020 * Set the expression producing the function being invoked to the given expres
sion. |
| 6021 * | 6021 * |
| 6022 * @param function the expression producing the function being invoked | 6022 * @param function the expression producing the function being invoked |
| 6023 */ | 6023 */ |
| 6024 void set function(Expression function2) { | 6024 void set function(Expression function) { |
| 6025 function2 = becomeParentOf(function2); | 6025 function = becomeParentOf(function); |
| 6026 } | 6026 } |
| 6027 | 6027 |
| 6028 /** | 6028 /** |
| 6029 * Set the element associated with the function being invoked based on propaga
ted type information | 6029 * Set the element associated with the function being invoked based on propaga
ted type information |
| 6030 * to the given element. | 6030 * to the given element. |
| 6031 * | 6031 * |
| 6032 * @param element the element to be associated with the function being invoked | 6032 * @param element the element to be associated with the function being invoked |
| 6033 */ | 6033 */ |
| 6034 void set propagatedElement(ExecutableElement element) { | 6034 void set propagatedElement(ExecutableElement element) { |
| 6035 _propagatedElement = element; | 6035 _propagatedElement = element; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6139 * | 6139 * |
| 6140 * @return the type parameters for the function type | 6140 * @return the type parameters for the function type |
| 6141 */ | 6141 */ |
| 6142 TypeParameterList get typeParameters => _typeParameters; | 6142 TypeParameterList get typeParameters => _typeParameters; |
| 6143 | 6143 |
| 6144 /** | 6144 /** |
| 6145 * Set the name of the function type being declared to the given identifier. | 6145 * Set the name of the function type being declared to the given identifier. |
| 6146 * | 6146 * |
| 6147 * @param name the name of the function type being declared | 6147 * @param name the name of the function type being declared |
| 6148 */ | 6148 */ |
| 6149 void set name(SimpleIdentifier name2) { | 6149 void set name(SimpleIdentifier name) { |
| 6150 this._name = becomeParentOf(name2); | 6150 this._name = becomeParentOf(name); |
| 6151 } | 6151 } |
| 6152 | 6152 |
| 6153 /** | 6153 /** |
| 6154 * Set the parameters associated with the function type to the given list of p
arameters. | 6154 * Set the parameters associated with the function type to the given list of p
arameters. |
| 6155 * | 6155 * |
| 6156 * @param parameters the parameters associated with the function type | 6156 * @param parameters the parameters associated with the function type |
| 6157 */ | 6157 */ |
| 6158 void set parameters(FormalParameterList parameters2) { | 6158 void set parameters(FormalParameterList parameters) { |
| 6159 this._parameters = becomeParentOf(parameters2); | 6159 this._parameters = becomeParentOf(parameters); |
| 6160 } | 6160 } |
| 6161 | 6161 |
| 6162 /** | 6162 /** |
| 6163 * Set the name of the return type of the function type being defined to the g
iven type name. | 6163 * Set the name of the return type of the function type being defined to the g
iven type name. |
| 6164 * | 6164 * |
| 6165 * @param typeName the name of the return type of the function type being defi
ned | 6165 * @param typeName the name of the return type of the function type being defi
ned |
| 6166 */ | 6166 */ |
| 6167 void set returnType(TypeName typeName) { | 6167 void set returnType(TypeName typeName) { |
| 6168 _returnType = becomeParentOf(typeName); | 6168 _returnType = becomeParentOf(typeName); |
| 6169 } | 6169 } |
| 6170 | 6170 |
| 6171 /** | 6171 /** |
| 6172 * Set the type parameters for the function type to the given list of paramete
rs. | 6172 * Set the type parameters for the function type to the given list of paramete
rs. |
| 6173 * | 6173 * |
| 6174 * @param typeParameters the type parameters for the function type | 6174 * @param typeParameters the type parameters for the function type |
| 6175 */ | 6175 */ |
| 6176 void set typeParameters(TypeParameterList typeParameters2) { | 6176 void set typeParameters(TypeParameterList typeParameters) { |
| 6177 this._typeParameters = becomeParentOf(typeParameters2); | 6177 this._typeParameters = becomeParentOf(typeParameters); |
| 6178 } | 6178 } |
| 6179 void visitChildren(ASTVisitor visitor) { | 6179 void visitChildren(ASTVisitor visitor) { |
| 6180 super.visitChildren(visitor); | 6180 super.visitChildren(visitor); |
| 6181 safelyVisitChild(_returnType, visitor); | 6181 safelyVisitChild(_returnType, visitor); |
| 6182 safelyVisitChild(_name, visitor); | 6182 safelyVisitChild(_name, visitor); |
| 6183 safelyVisitChild(_typeParameters, visitor); | 6183 safelyVisitChild(_typeParameters, visitor); |
| 6184 safelyVisitChild(_parameters, visitor); | 6184 safelyVisitChild(_parameters, visitor); |
| 6185 } | 6185 } |
| 6186 } | 6186 } |
| 6187 /** | 6187 /** |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6257 */ | 6257 */ |
| 6258 TypeName get returnType => _returnType; | 6258 TypeName get returnType => _returnType; |
| 6259 bool get isConst => false; | 6259 bool get isConst => false; |
| 6260 bool get isFinal => false; | 6260 bool get isFinal => false; |
| 6261 | 6261 |
| 6262 /** | 6262 /** |
| 6263 * Set the parameters of the function-typed parameter to the given parameters. | 6263 * Set the parameters of the function-typed parameter to the given parameters. |
| 6264 * | 6264 * |
| 6265 * @param parameters the parameters of the function-typed parameter | 6265 * @param parameters the parameters of the function-typed parameter |
| 6266 */ | 6266 */ |
| 6267 void set parameters(FormalParameterList parameters2) { | 6267 void set parameters(FormalParameterList parameters) { |
| 6268 this._parameters = becomeParentOf(parameters2); | 6268 this._parameters = becomeParentOf(parameters); |
| 6269 } | 6269 } |
| 6270 | 6270 |
| 6271 /** | 6271 /** |
| 6272 * Set the return type of the function to the given type. | 6272 * Set the return type of the function to the given type. |
| 6273 * | 6273 * |
| 6274 * @param returnType the return type of the function | 6274 * @param returnType the return type of the function |
| 6275 */ | 6275 */ |
| 6276 void set returnType(TypeName returnType2) { | 6276 void set returnType(TypeName returnType) { |
| 6277 this._returnType = becomeParentOf(returnType2); | 6277 this._returnType = becomeParentOf(returnType); |
| 6278 } | 6278 } |
| 6279 void visitChildren(ASTVisitor visitor) { | 6279 void visitChildren(ASTVisitor visitor) { |
| 6280 super.visitChildren(visitor); | 6280 super.visitChildren(visitor); |
| 6281 safelyVisitChild(_returnType, visitor); | 6281 safelyVisitChild(_returnType, visitor); |
| 6282 safelyVisitChild(identifier, visitor); | 6282 safelyVisitChild(identifier, visitor); |
| 6283 safelyVisitChild(_parameters, visitor); | 6283 safelyVisitChild(_parameters, visitor); |
| 6284 } | 6284 } |
| 6285 } | 6285 } |
| 6286 /** | 6286 /** |
| 6287 * Instances of the class `HideCombinator` represent a combinator that restricts
the names | 6287 * Instances of the class `HideCombinator` represent a combinator that restricts
the names |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6717 accept(ASTVisitor visitor) => visitor.visitImportDirective(this); | 6717 accept(ASTVisitor visitor) => visitor.visitImportDirective(this); |
| 6718 | 6718 |
| 6719 /** | 6719 /** |
| 6720 * Return the prefix to be used with the imported names, or `null` if the impo
rted names are | 6720 * Return the prefix to be used with the imported names, or `null` if the impo
rted names are |
| 6721 * not prefixed. | 6721 * not prefixed. |
| 6722 * | 6722 * |
| 6723 * @return the prefix to be used with the imported names | 6723 * @return the prefix to be used with the imported names |
| 6724 */ | 6724 */ |
| 6725 SimpleIdentifier get prefix => _prefix; | 6725 SimpleIdentifier get prefix => _prefix; |
| 6726 LibraryElement get uriElement { | 6726 LibraryElement get uriElement { |
| 6727 Element element2 = element; | 6727 Element element = this.element; |
| 6728 if (element2 is ImportElement) { | 6728 if (element is ImportElement) { |
| 6729 return ((element2 as ImportElement)).importedLibrary; | 6729 return ((element as ImportElement)).importedLibrary; |
| 6730 } | 6730 } |
| 6731 return null; | 6731 return null; |
| 6732 } | 6732 } |
| 6733 | 6733 |
| 6734 /** | 6734 /** |
| 6735 * Set the prefix to be used with the imported names to the given identifier. | 6735 * Set the prefix to be used with the imported names to the given identifier. |
| 6736 * | 6736 * |
| 6737 * @param prefix the prefix to be used with the imported names | 6737 * @param prefix the prefix to be used with the imported names |
| 6738 */ | 6738 */ |
| 6739 void set prefix(SimpleIdentifier prefix2) { | 6739 void set prefix(SimpleIdentifier prefix) { |
| 6740 this._prefix = becomeParentOf(prefix2); | 6740 this._prefix = becomeParentOf(prefix); |
| 6741 } | 6741 } |
| 6742 void visitChildren(ASTVisitor visitor) { | 6742 void visitChildren(ASTVisitor visitor) { |
| 6743 super.visitChildren(visitor); | 6743 super.visitChildren(visitor); |
| 6744 safelyVisitChild(_prefix, visitor); | 6744 safelyVisitChild(_prefix, visitor); |
| 6745 combinators.accept(visitor); | 6745 combinators.accept(visitor); |
| 6746 } | 6746 } |
| 6747 } | 6747 } |
| 6748 /** | 6748 /** |
| 6749 * Instances of the class `IndexExpression` represent an index expression. | 6749 * Instances of the class `IndexExpression` represent an index expression. |
| 6750 * | 6750 * |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7177 * | 7177 * |
| 7178 * @return `true` if this creation expression is used to invoke a constant con
structor | 7178 * @return `true` if this creation expression is used to invoke a constant con
structor |
| 7179 */ | 7179 */ |
| 7180 bool get isConst => keyword is KeywordToken && identical(((keyword as KeywordT
oken)).keyword, Keyword.CONST); | 7180 bool get isConst => keyword is KeywordToken && identical(((keyword as KeywordT
oken)).keyword, Keyword.CONST); |
| 7181 | 7181 |
| 7182 /** | 7182 /** |
| 7183 * Set the list of arguments to the constructor to the given list. | 7183 * Set the list of arguments to the constructor to the given list. |
| 7184 * | 7184 * |
| 7185 * @param argumentList the list of arguments to the constructor | 7185 * @param argumentList the list of arguments to the constructor |
| 7186 */ | 7186 */ |
| 7187 void set argumentList(ArgumentList argumentList2) { | 7187 void set argumentList(ArgumentList argumentList) { |
| 7188 this._argumentList = becomeParentOf(argumentList2); | 7188 this._argumentList = becomeParentOf(argumentList); |
| 7189 } | 7189 } |
| 7190 void visitChildren(ASTVisitor visitor) { | 7190 void visitChildren(ASTVisitor visitor) { |
| 7191 safelyVisitChild(constructorName, visitor); | 7191 safelyVisitChild(constructorName, visitor); |
| 7192 safelyVisitChild(_argumentList, visitor); | 7192 safelyVisitChild(_argumentList, visitor); |
| 7193 } | 7193 } |
| 7194 } | 7194 } |
| 7195 /** | 7195 /** |
| 7196 * Instances of the class `IntegerLiteral` represent an integer literal expressi
on. | 7196 * Instances of the class `IntegerLiteral` represent an integer literal expressi
on. |
| 7197 * | 7197 * |
| 7198 * <pre> | 7198 * <pre> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7326 * @return the expression to be evaluated for the value to be converted into a
string | 7326 * @return the expression to be evaluated for the value to be converted into a
string |
| 7327 */ | 7327 */ |
| 7328 Expression get expression => _expression; | 7328 Expression get expression => _expression; |
| 7329 | 7329 |
| 7330 /** | 7330 /** |
| 7331 * Set the expression to be evaluated for the value to be converted into a str
ing to the given | 7331 * Set the expression to be evaluated for the value to be converted into a str
ing to the given |
| 7332 * expression. | 7332 * expression. |
| 7333 * | 7333 * |
| 7334 * @param expression the expression to be evaluated for the value to be conver
ted into a string | 7334 * @param expression the expression to be evaluated for the value to be conver
ted into a string |
| 7335 */ | 7335 */ |
| 7336 void set expression(Expression expression2) { | 7336 void set expression(Expression expression) { |
| 7337 this._expression = becomeParentOf(expression2); | 7337 this._expression = becomeParentOf(expression); |
| 7338 } | 7338 } |
| 7339 void visitChildren(ASTVisitor visitor) { | 7339 void visitChildren(ASTVisitor visitor) { |
| 7340 safelyVisitChild(_expression, visitor); | 7340 safelyVisitChild(_expression, visitor); |
| 7341 } | 7341 } |
| 7342 } | 7342 } |
| 7343 /** | 7343 /** |
| 7344 * Instances of the class `InterpolationString` represent a non-empty substring
of an | 7344 * Instances of the class `InterpolationString` represent a non-empty substring
of an |
| 7345 * interpolated string. | 7345 * interpolated string. |
| 7346 * | 7346 * |
| 7347 * <pre> | 7347 * <pre> |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7492 * @return the name of the type being tested for | 7492 * @return the name of the type being tested for |
| 7493 */ | 7493 */ |
| 7494 TypeName get type => _type; | 7494 TypeName get type => _type; |
| 7495 | 7495 |
| 7496 /** | 7496 /** |
| 7497 * Set the expression used to compute the value whose type is being tested to
the given | 7497 * Set the expression used to compute the value whose type is being tested to
the given |
| 7498 * expression. | 7498 * expression. |
| 7499 * | 7499 * |
| 7500 * @param expression the expression used to compute the value whose type is be
ing tested | 7500 * @param expression the expression used to compute the value whose type is be
ing tested |
| 7501 */ | 7501 */ |
| 7502 void set expression(Expression expression2) { | 7502 void set expression(Expression expression) { |
| 7503 this._expression = becomeParentOf(expression2); | 7503 this._expression = becomeParentOf(expression); |
| 7504 } | 7504 } |
| 7505 | 7505 |
| 7506 /** | 7506 /** |
| 7507 * Set the name of the type being tested for to the given name. | 7507 * Set the name of the type being tested for to the given name. |
| 7508 * | 7508 * |
| 7509 * @param name the name of the type being tested for | 7509 * @param name the name of the type being tested for |
| 7510 */ | 7510 */ |
| 7511 void set type(TypeName name) { | 7511 void set type(TypeName name) { |
| 7512 this._type = becomeParentOf(name); | 7512 this._type = becomeParentOf(name); |
| 7513 } | 7513 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7565 * | 7565 * |
| 7566 * @return the label being associated with the statement | 7566 * @return the label being associated with the statement |
| 7567 */ | 7567 */ |
| 7568 SimpleIdentifier get label => _label; | 7568 SimpleIdentifier get label => _label; |
| 7569 | 7569 |
| 7570 /** | 7570 /** |
| 7571 * Set the label being associated with the statement to the given label. | 7571 * Set the label being associated with the statement to the given label. |
| 7572 * | 7572 * |
| 7573 * @param label the label being associated with the statement | 7573 * @param label the label being associated with the statement |
| 7574 */ | 7574 */ |
| 7575 void set label(SimpleIdentifier label2) { | 7575 void set label(SimpleIdentifier label) { |
| 7576 this._label = becomeParentOf(label2); | 7576 this._label = becomeParentOf(label); |
| 7577 } | 7577 } |
| 7578 void visitChildren(ASTVisitor visitor) { | 7578 void visitChildren(ASTVisitor visitor) { |
| 7579 safelyVisitChild(_label, visitor); | 7579 safelyVisitChild(_label, visitor); |
| 7580 } | 7580 } |
| 7581 } | 7581 } |
| 7582 /** | 7582 /** |
| 7583 * Instances of the class `LabeledStatement` represent a statement that has a la
bel associated | 7583 * Instances of the class `LabeledStatement` represent a statement that has a la
bel associated |
| 7584 * with them. | 7584 * with them. |
| 7585 * | 7585 * |
| 7586 * <pre> | 7586 * <pre> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7635 * | 7635 * |
| 7636 * @return the statement with which the labels are being associated | 7636 * @return the statement with which the labels are being associated |
| 7637 */ | 7637 */ |
| 7638 Statement get statement => _statement; | 7638 Statement get statement => _statement; |
| 7639 | 7639 |
| 7640 /** | 7640 /** |
| 7641 * Set the statement with which the labels are being associated to the given s
tatement. | 7641 * Set the statement with which the labels are being associated to the given s
tatement. |
| 7642 * | 7642 * |
| 7643 * @param statement the statement with which the labels are being associated | 7643 * @param statement the statement with which the labels are being associated |
| 7644 */ | 7644 */ |
| 7645 void set statement(Statement statement2) { | 7645 void set statement(Statement statement) { |
| 7646 this._statement = becomeParentOf(statement2); | 7646 this._statement = becomeParentOf(statement); |
| 7647 } | 7647 } |
| 7648 void visitChildren(ASTVisitor visitor) { | 7648 void visitChildren(ASTVisitor visitor) { |
| 7649 labels.accept(visitor); | 7649 labels.accept(visitor); |
| 7650 safelyVisitChild(_statement, visitor); | 7650 safelyVisitChild(_statement, visitor); |
| 7651 } | 7651 } |
| 7652 } | 7652 } |
| 7653 /** | 7653 /** |
| 7654 * Instances of the class `LibraryDirective` represent a library directive. | 7654 * Instances of the class `LibraryDirective` represent a library directive. |
| 7655 * | 7655 * |
| 7656 * <pre> | 7656 * <pre> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7711 * | 7711 * |
| 7712 * @return the name of the library being defined | 7712 * @return the name of the library being defined |
| 7713 */ | 7713 */ |
| 7714 LibraryIdentifier get name => _name; | 7714 LibraryIdentifier get name => _name; |
| 7715 | 7715 |
| 7716 /** | 7716 /** |
| 7717 * Set the name of the library being defined to the given name. | 7717 * Set the name of the library being defined to the given name. |
| 7718 * | 7718 * |
| 7719 * @param name the name of the library being defined | 7719 * @param name the name of the library being defined |
| 7720 */ | 7720 */ |
| 7721 void set name(LibraryIdentifier name2) { | 7721 void set name(LibraryIdentifier name) { |
| 7722 this._name = becomeParentOf(name2); | 7722 this._name = becomeParentOf(name); |
| 7723 } | 7723 } |
| 7724 void visitChildren(ASTVisitor visitor) { | 7724 void visitChildren(ASTVisitor visitor) { |
| 7725 super.visitChildren(visitor); | 7725 super.visitChildren(visitor); |
| 7726 safelyVisitChild(_name, visitor); | 7726 safelyVisitChild(_name, visitor); |
| 7727 } | 7727 } |
| 7728 Token get firstTokenAfterCommentAndMetadata => libraryToken; | 7728 Token get firstTokenAfterCommentAndMetadata => libraryToken; |
| 7729 } | 7729 } |
| 7730 /** | 7730 /** |
| 7731 * Instances of the class `LibraryIdentifier` represent the identifier for a lib
rary. | 7731 * Instances of the class `LibraryIdentifier` represent the identifier for a lib
rary. |
| 7732 * | 7732 * |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7837 * @param elements the expressions used to compute the elements of the list | 7837 * @param elements the expressions used to compute the elements of the list |
| 7838 * @param rightBracket the right square bracket | 7838 * @param rightBracket the right square bracket |
| 7839 */ | 7839 */ |
| 7840 ListLiteral({Token constKeyword, TypeArgumentList typeArguments, Token leftBra
cket, List<Expression> elements, Token rightBracket}) : this.full(constKeyword,
typeArguments, leftBracket, elements, rightBracket); | 7840 ListLiteral({Token constKeyword, TypeArgumentList typeArguments, Token leftBra
cket, List<Expression> elements, Token rightBracket}) : this.full(constKeyword,
typeArguments, leftBracket, elements, rightBracket); |
| 7841 accept(ASTVisitor visitor) => visitor.visitListLiteral(this); | 7841 accept(ASTVisitor visitor) => visitor.visitListLiteral(this); |
| 7842 Token get beginToken { | 7842 Token get beginToken { |
| 7843 Token token = constKeyword; | 7843 Token token = constKeyword; |
| 7844 if (token != null) { | 7844 if (token != null) { |
| 7845 return token; | 7845 return token; |
| 7846 } | 7846 } |
| 7847 TypeArgumentList typeArguments2 = typeArguments; | 7847 TypeArgumentList typeArguments = this.typeArguments; |
| 7848 if (typeArguments2 != null) { | 7848 if (typeArguments != null) { |
| 7849 return typeArguments2.beginToken; | 7849 return typeArguments.beginToken; |
| 7850 } | 7850 } |
| 7851 return _leftBracket; | 7851 return _leftBracket; |
| 7852 } | 7852 } |
| 7853 Token get endToken => _rightBracket; | 7853 Token get endToken => _rightBracket; |
| 7854 | 7854 |
| 7855 /** | 7855 /** |
| 7856 * Return the left square bracket. | 7856 * Return the left square bracket. |
| 7857 * | 7857 * |
| 7858 * @return the left square bracket | 7858 * @return the left square bracket |
| 7859 */ | 7859 */ |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7961 * @param entries the entries in the map | 7961 * @param entries the entries in the map |
| 7962 * @param rightBracket the right curly bracket | 7962 * @param rightBracket the right curly bracket |
| 7963 */ | 7963 */ |
| 7964 MapLiteral({Token constKeyword, TypeArgumentList typeArguments, Token leftBrac
ket, List<MapLiteralEntry> entries, Token rightBracket}) : this.full(constKeywor
d, typeArguments, leftBracket, entries, rightBracket); | 7964 MapLiteral({Token constKeyword, TypeArgumentList typeArguments, Token leftBrac
ket, List<MapLiteralEntry> entries, Token rightBracket}) : this.full(constKeywor
d, typeArguments, leftBracket, entries, rightBracket); |
| 7965 accept(ASTVisitor visitor) => visitor.visitMapLiteral(this); | 7965 accept(ASTVisitor visitor) => visitor.visitMapLiteral(this); |
| 7966 Token get beginToken { | 7966 Token get beginToken { |
| 7967 Token token = constKeyword; | 7967 Token token = constKeyword; |
| 7968 if (token != null) { | 7968 if (token != null) { |
| 7969 return token; | 7969 return token; |
| 7970 } | 7970 } |
| 7971 TypeArgumentList typeArguments2 = typeArguments; | 7971 TypeArgumentList typeArguments = this.typeArguments; |
| 7972 if (typeArguments2 != null) { | 7972 if (typeArguments != null) { |
| 7973 return typeArguments2.beginToken; | 7973 return typeArguments.beginToken; |
| 7974 } | 7974 } |
| 7975 return _leftBracket; | 7975 return _leftBracket; |
| 7976 } | 7976 } |
| 7977 Token get endToken => _rightBracket; | 7977 Token get endToken => _rightBracket; |
| 7978 | 7978 |
| 7979 /** | 7979 /** |
| 7980 * Return the left curly bracket. | 7980 * Return the left curly bracket. |
| 7981 * | 7981 * |
| 7982 * @return the left curly bracket | 7982 * @return the left curly bracket |
| 7983 */ | 7983 */ |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8301 */ | 8301 */ |
| 8302 void set name(SimpleIdentifier identifier) { | 8302 void set name(SimpleIdentifier identifier) { |
| 8303 _name = becomeParentOf(identifier); | 8303 _name = becomeParentOf(identifier); |
| 8304 } | 8304 } |
| 8305 | 8305 |
| 8306 /** | 8306 /** |
| 8307 * Set the parameters associated with the method to the given list of paramete
rs. | 8307 * Set the parameters associated with the method to the given list of paramete
rs. |
| 8308 * | 8308 * |
| 8309 * @param parameters the parameters associated with the method | 8309 * @param parameters the parameters associated with the method |
| 8310 */ | 8310 */ |
| 8311 void set parameters(FormalParameterList parameters2) { | 8311 void set parameters(FormalParameterList parameters) { |
| 8312 this._parameters = becomeParentOf(parameters2); | 8312 this._parameters = becomeParentOf(parameters); |
| 8313 } | 8313 } |
| 8314 | 8314 |
| 8315 /** | 8315 /** |
| 8316 * Set the return type of the method to the given type name. | 8316 * Set the return type of the method to the given type name. |
| 8317 * | 8317 * |
| 8318 * @param typeName the return type of the method | 8318 * @param typeName the return type of the method |
| 8319 */ | 8319 */ |
| 8320 void set returnType(TypeName typeName) { | 8320 void set returnType(TypeName typeName) { |
| 8321 _returnType = becomeParentOf(typeName); | 8321 _returnType = becomeParentOf(typeName); |
| 8322 } | 8322 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8467 * | 8467 * |
| 8468 * @return `true` if this expression is cascaded | 8468 * @return `true` if this expression is cascaded |
| 8469 */ | 8469 */ |
| 8470 bool get isCascaded => period != null && identical(period.type, TokenType.PERI
OD_PERIOD); | 8470 bool get isCascaded => period != null && identical(period.type, TokenType.PERI
OD_PERIOD); |
| 8471 | 8471 |
| 8472 /** | 8472 /** |
| 8473 * Set the list of arguments to the method to the given list. | 8473 * Set the list of arguments to the method to the given list. |
| 8474 * | 8474 * |
| 8475 * @param argumentList the list of arguments to the method | 8475 * @param argumentList the list of arguments to the method |
| 8476 */ | 8476 */ |
| 8477 void set argumentList(ArgumentList argumentList2) { | 8477 void set argumentList(ArgumentList argumentList) { |
| 8478 this._argumentList = becomeParentOf(argumentList2); | 8478 this._argumentList = becomeParentOf(argumentList); |
| 8479 } | 8479 } |
| 8480 | 8480 |
| 8481 /** | 8481 /** |
| 8482 * Set the name of the method being invoked to the given identifier. | 8482 * Set the name of the method being invoked to the given identifier. |
| 8483 * | 8483 * |
| 8484 * @param identifier the name of the method being invoked | 8484 * @param identifier the name of the method being invoked |
| 8485 */ | 8485 */ |
| 8486 void set methodName(SimpleIdentifier identifier) { | 8486 void set methodName(SimpleIdentifier identifier) { |
| 8487 _methodName = becomeParentOf(identifier); | 8487 _methodName = becomeParentOf(identifier); |
| 8488 } | 8488 } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8573 * | 8573 * |
| 8574 * @return the name associated with the expression | 8574 * @return the name associated with the expression |
| 8575 */ | 8575 */ |
| 8576 Label get name => _name; | 8576 Label get name => _name; |
| 8577 | 8577 |
| 8578 /** | 8578 /** |
| 8579 * Set the expression with which the name is associated to the given expressio
n. | 8579 * Set the expression with which the name is associated to the given expressio
n. |
| 8580 * | 8580 * |
| 8581 * @param expression the expression with which the name is associated | 8581 * @param expression the expression with which the name is associated |
| 8582 */ | 8582 */ |
| 8583 void set expression(Expression expression2) { | 8583 void set expression(Expression expression) { |
| 8584 this._expression = becomeParentOf(expression2); | 8584 this._expression = becomeParentOf(expression); |
| 8585 } | 8585 } |
| 8586 | 8586 |
| 8587 /** | 8587 /** |
| 8588 * Set the name associated with the expression to the given identifier. | 8588 * Set the name associated with the expression to the given identifier. |
| 8589 * | 8589 * |
| 8590 * @param identifier the name associated with the expression | 8590 * @param identifier the name associated with the expression |
| 8591 */ | 8591 */ |
| 8592 void set name(Label identifier) { | 8592 void set name(Label identifier) { |
| 8593 _name = becomeParentOf(identifier); | 8593 _name = becomeParentOf(identifier); |
| 8594 } | 8594 } |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8842 return ((parent as DefaultFormalParameter)).kind; | 8842 return ((parent as DefaultFormalParameter)).kind; |
| 8843 } | 8843 } |
| 8844 return ParameterKind.REQUIRED; | 8844 return ParameterKind.REQUIRED; |
| 8845 } | 8845 } |
| 8846 | 8846 |
| 8847 /** | 8847 /** |
| 8848 * Set the documentation comment associated with this parameter to the given c
omment | 8848 * Set the documentation comment associated with this parameter to the given c
omment |
| 8849 * | 8849 * |
| 8850 * @param comment the documentation comment to be associated with this paramet
er | 8850 * @param comment the documentation comment to be associated with this paramet
er |
| 8851 */ | 8851 */ |
| 8852 void set documentationComment(Comment comment2) { | 8852 void set documentationComment(Comment comment) { |
| 8853 this._comment = becomeParentOf(comment2); | 8853 this._comment = becomeParentOf(comment); |
| 8854 } | 8854 } |
| 8855 | 8855 |
| 8856 /** | 8856 /** |
| 8857 * Set the name of the parameter being declared to the given identifier. | 8857 * Set the name of the parameter being declared to the given identifier. |
| 8858 * | 8858 * |
| 8859 * @param identifier the name of the parameter being declared | 8859 * @param identifier the name of the parameter being declared |
| 8860 */ | 8860 */ |
| 8861 void set identifier(SimpleIdentifier identifier2) { | 8861 void set identifier(SimpleIdentifier identifier) { |
| 8862 this._identifier = becomeParentOf(identifier2); | 8862 this._identifier = becomeParentOf(identifier); |
| 8863 } | 8863 } |
| 8864 void visitChildren(ASTVisitor visitor) { | 8864 void visitChildren(ASTVisitor visitor) { |
| 8865 if (commentIsBeforeAnnotations()) { | 8865 if (commentIsBeforeAnnotations()) { |
| 8866 safelyVisitChild(_comment, visitor); | 8866 safelyVisitChild(_comment, visitor); |
| 8867 metadata.accept(visitor); | 8867 metadata.accept(visitor); |
| 8868 } else { | 8868 } else { |
| 8869 for (ASTNode child in sortedCommentAndAnnotations) { | 8869 for (ASTNode child in sortedCommentAndAnnotations) { |
| 8870 child.accept(visitor); | 8870 child.accept(visitor); |
| 8871 } | 8871 } |
| 8872 } | 8872 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9010 * | 9010 * |
| 9011 * @return the right parenthesis | 9011 * @return the right parenthesis |
| 9012 */ | 9012 */ |
| 9013 Token get rightParenthesis => _rightParenthesis; | 9013 Token get rightParenthesis => _rightParenthesis; |
| 9014 | 9014 |
| 9015 /** | 9015 /** |
| 9016 * Set the expression within the parentheses to the given expression. | 9016 * Set the expression within the parentheses to the given expression. |
| 9017 * | 9017 * |
| 9018 * @param expression the expression within the parentheses | 9018 * @param expression the expression within the parentheses |
| 9019 */ | 9019 */ |
| 9020 void set expression(Expression expression2) { | 9020 void set expression(Expression expression) { |
| 9021 this._expression = becomeParentOf(expression2); | 9021 this._expression = becomeParentOf(expression); |
| 9022 } | 9022 } |
| 9023 | 9023 |
| 9024 /** | 9024 /** |
| 9025 * Set the left parenthesis to the given token. | 9025 * Set the left parenthesis to the given token. |
| 9026 * | 9026 * |
| 9027 * @param parenthesis the left parenthesis | 9027 * @param parenthesis the left parenthesis |
| 9028 */ | 9028 */ |
| 9029 void set leftParenthesis(Token parenthesis) { | 9029 void set leftParenthesis(Token parenthesis) { |
| 9030 _leftParenthesis = parenthesis; | 9030 _leftParenthesis = parenthesis; |
| 9031 } | 9031 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9163 * | 9163 * |
| 9164 * @return the name of the library that the containing compilation unit is par
t of | 9164 * @return the name of the library that the containing compilation unit is par
t of |
| 9165 */ | 9165 */ |
| 9166 LibraryIdentifier get libraryName => _libraryName; | 9166 LibraryIdentifier get libraryName => _libraryName; |
| 9167 | 9167 |
| 9168 /** | 9168 /** |
| 9169 * Set the name of the library that the containing compilation unit is part of
to the given name. | 9169 * Set the name of the library that the containing compilation unit is part of
to the given name. |
| 9170 * | 9170 * |
| 9171 * @param libraryName the name of the library that the containing compilation
unit is part of | 9171 * @param libraryName the name of the library that the containing compilation
unit is part of |
| 9172 */ | 9172 */ |
| 9173 void set libraryName(LibraryIdentifier libraryName2) { | 9173 void set libraryName(LibraryIdentifier libraryName) { |
| 9174 this._libraryName = becomeParentOf(libraryName2); | 9174 this._libraryName = becomeParentOf(libraryName); |
| 9175 } | 9175 } |
| 9176 void visitChildren(ASTVisitor visitor) { | 9176 void visitChildren(ASTVisitor visitor) { |
| 9177 super.visitChildren(visitor); | 9177 super.visitChildren(visitor); |
| 9178 safelyVisitChild(_libraryName, visitor); | 9178 safelyVisitChild(_libraryName, visitor); |
| 9179 } | 9179 } |
| 9180 Token get firstTokenAfterCommentAndMetadata => partToken; | 9180 Token get firstTokenAfterCommentAndMetadata => partToken; |
| 9181 } | 9181 } |
| 9182 /** | 9182 /** |
| 9183 * Instances of the class `PostfixExpression` represent a postfix unary expressi
on. | 9183 * Instances of the class `PostfixExpression` represent a postfix unary expressi
on. |
| 9184 * | 9184 * |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9614 return null; | 9614 return null; |
| 9615 } | 9615 } |
| 9616 return _identifier.staticElement; | 9616 return _identifier.staticElement; |
| 9617 } | 9617 } |
| 9618 | 9618 |
| 9619 /** | 9619 /** |
| 9620 * Set the identifier being prefixed to the given identifier. | 9620 * Set the identifier being prefixed to the given identifier. |
| 9621 * | 9621 * |
| 9622 * @param identifier the identifier being prefixed | 9622 * @param identifier the identifier being prefixed |
| 9623 */ | 9623 */ |
| 9624 void set identifier(SimpleIdentifier identifier2) { | 9624 void set identifier(SimpleIdentifier identifier) { |
| 9625 this._identifier = becomeParentOf(identifier2); | 9625 this._identifier = becomeParentOf(identifier); |
| 9626 } | 9626 } |
| 9627 | 9627 |
| 9628 /** | 9628 /** |
| 9629 * Set the prefix associated with the library in which the identifier is defin
ed to the given | 9629 * Set the prefix associated with the library in which the identifier is defin
ed to the given |
| 9630 * identifier. | 9630 * identifier. |
| 9631 * | 9631 * |
| 9632 * @param identifier the prefix associated with the library in which the ident
ifier is defined | 9632 * @param identifier the prefix associated with the library in which the ident
ifier is defined |
| 9633 */ | 9633 */ |
| 9634 void set prefix(SimpleIdentifier identifier) { | 9634 void set prefix(SimpleIdentifier identifier) { |
| 9635 _prefix = becomeParentOf(identifier); | 9635 _prefix = becomeParentOf(identifier); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9856 * @return the name of the constructor that is being invoked | 9856 * @return the name of the constructor that is being invoked |
| 9857 */ | 9857 */ |
| 9858 SimpleIdentifier get constructorName => _constructorName; | 9858 SimpleIdentifier get constructorName => _constructorName; |
| 9859 Token get endToken => _argumentList.endToken; | 9859 Token get endToken => _argumentList.endToken; |
| 9860 | 9860 |
| 9861 /** | 9861 /** |
| 9862 * Set the list of arguments to the constructor to the given list. | 9862 * Set the list of arguments to the constructor to the given list. |
| 9863 * | 9863 * |
| 9864 * @param argumentList the list of arguments to the constructor | 9864 * @param argumentList the list of arguments to the constructor |
| 9865 */ | 9865 */ |
| 9866 void set argumentList(ArgumentList argumentList2) { | 9866 void set argumentList(ArgumentList argumentList) { |
| 9867 this._argumentList = becomeParentOf(argumentList2); | 9867 this._argumentList = becomeParentOf(argumentList); |
| 9868 } | 9868 } |
| 9869 | 9869 |
| 9870 /** | 9870 /** |
| 9871 * Set the name of the constructor that is being invoked to the given identifi
er. | 9871 * Set the name of the constructor that is being invoked to the given identifi
er. |
| 9872 * | 9872 * |
| 9873 * @param identifier the name of the constructor that is being invoked | 9873 * @param identifier the name of the constructor that is being invoked |
| 9874 */ | 9874 */ |
| 9875 void set constructorName(SimpleIdentifier identifier) { | 9875 void set constructorName(SimpleIdentifier identifier) { |
| 9876 _constructorName = becomeParentOf(identifier); | 9876 _constructorName = becomeParentOf(identifier); |
| 9877 } | 9877 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9977 * | 9977 * |
| 9978 * @return the expression computing the value to be returned | 9978 * @return the expression computing the value to be returned |
| 9979 */ | 9979 */ |
| 9980 Expression get expression => _expression; | 9980 Expression get expression => _expression; |
| 9981 | 9981 |
| 9982 /** | 9982 /** |
| 9983 * Set the expression computing the value to be returned to the given expressi
on. | 9983 * Set the expression computing the value to be returned to the given expressi
on. |
| 9984 * | 9984 * |
| 9985 * @param expression the expression computing the value to be returned | 9985 * @param expression the expression computing the value to be returned |
| 9986 */ | 9986 */ |
| 9987 void set expression(Expression expression2) { | 9987 void set expression(Expression expression) { |
| 9988 this._expression = becomeParentOf(expression2); | 9988 this._expression = becomeParentOf(expression); |
| 9989 } | 9989 } |
| 9990 void visitChildren(ASTVisitor visitor) { | 9990 void visitChildren(ASTVisitor visitor) { |
| 9991 safelyVisitChild(_expression, visitor); | 9991 safelyVisitChild(_expression, visitor); |
| 9992 } | 9992 } |
| 9993 } | 9993 } |
| 9994 /** | 9994 /** |
| 9995 * Instances of the class `ScriptTag` represent the script tag that can optional
ly occur at | 9995 * Instances of the class `ScriptTag` represent the script tag that can optional
ly occur at |
| 9996 * the beginning of a compilation unit. | 9996 * the beginning of a compilation unit. |
| 9997 * | 9997 * |
| 9998 * <pre> | 9998 * <pre> |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10703 * @return the name of the constructor that is being invoked | 10703 * @return the name of the constructor that is being invoked |
| 10704 */ | 10704 */ |
| 10705 SimpleIdentifier get constructorName => _constructorName; | 10705 SimpleIdentifier get constructorName => _constructorName; |
| 10706 Token get endToken => _argumentList.endToken; | 10706 Token get endToken => _argumentList.endToken; |
| 10707 | 10707 |
| 10708 /** | 10708 /** |
| 10709 * Set the list of arguments to the constructor to the given list. | 10709 * Set the list of arguments to the constructor to the given list. |
| 10710 * | 10710 * |
| 10711 * @param argumentList the list of arguments to the constructor | 10711 * @param argumentList the list of arguments to the constructor |
| 10712 */ | 10712 */ |
| 10713 void set argumentList(ArgumentList argumentList2) { | 10713 void set argumentList(ArgumentList argumentList) { |
| 10714 this._argumentList = becomeParentOf(argumentList2); | 10714 this._argumentList = becomeParentOf(argumentList); |
| 10715 } | 10715 } |
| 10716 | 10716 |
| 10717 /** | 10717 /** |
| 10718 * Set the name of the constructor that is being invoked to the given identifi
er. | 10718 * Set the name of the constructor that is being invoked to the given identifi
er. |
| 10719 * | 10719 * |
| 10720 * @param identifier the name of the constructor that is being invoked | 10720 * @param identifier the name of the constructor that is being invoked |
| 10721 */ | 10721 */ |
| 10722 void set constructorName(SimpleIdentifier identifier) { | 10722 void set constructorName(SimpleIdentifier identifier) { |
| 10723 _constructorName = becomeParentOf(identifier); | 10723 _constructorName = becomeParentOf(identifier); |
| 10724 } | 10724 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10812 * | 10812 * |
| 10813 * @return the expression controlling whether the statements will be executed | 10813 * @return the expression controlling whether the statements will be executed |
| 10814 */ | 10814 */ |
| 10815 Expression get expression => _expression; | 10815 Expression get expression => _expression; |
| 10816 | 10816 |
| 10817 /** | 10817 /** |
| 10818 * Set the expression controlling whether the statements will be executed to t
he given expression. | 10818 * Set the expression controlling whether the statements will be executed to t
he given expression. |
| 10819 * | 10819 * |
| 10820 * @param expression the expression controlling whether the statements will be
executed | 10820 * @param expression the expression controlling whether the statements will be
executed |
| 10821 */ | 10821 */ |
| 10822 void set expression(Expression expression2) { | 10822 void set expression(Expression expression) { |
| 10823 this._expression = becomeParentOf(expression2); | 10823 this._expression = becomeParentOf(expression); |
| 10824 } | 10824 } |
| 10825 void visitChildren(ASTVisitor visitor) { | 10825 void visitChildren(ASTVisitor visitor) { |
| 10826 labels.accept(visitor); | 10826 labels.accept(visitor); |
| 10827 safelyVisitChild(_expression, visitor); | 10827 safelyVisitChild(_expression, visitor); |
| 10828 statements.accept(visitor); | 10828 statements.accept(visitor); |
| 10829 } | 10829 } |
| 10830 } | 10830 } |
| 10831 /** | 10831 /** |
| 10832 * Instances of the class `SwitchDefault` represent the default case in a switch
statement. | 10832 * Instances of the class `SwitchDefault` represent the default case in a switch
statement. |
| 10833 * | 10833 * |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11029 * @return the expression used to determine which of the switch members will b
e selected | 11029 * @return the expression used to determine which of the switch members will b
e selected |
| 11030 */ | 11030 */ |
| 11031 Expression get expression => _expression; | 11031 Expression get expression => _expression; |
| 11032 | 11032 |
| 11033 /** | 11033 /** |
| 11034 * Set the expression used to determine which of the switch members will be se
lected to the given | 11034 * Set the expression used to determine which of the switch members will be se
lected to the given |
| 11035 * expression. | 11035 * expression. |
| 11036 * | 11036 * |
| 11037 * @param expression the expression used to determine which of the switch memb
ers will be selected | 11037 * @param expression the expression used to determine which of the switch memb
ers will be selected |
| 11038 */ | 11038 */ |
| 11039 void set expression(Expression expression2) { | 11039 void set expression(Expression expression) { |
| 11040 this._expression = becomeParentOf(expression2); | 11040 this._expression = becomeParentOf(expression); |
| 11041 } | 11041 } |
| 11042 void visitChildren(ASTVisitor visitor) { | 11042 void visitChildren(ASTVisitor visitor) { |
| 11043 safelyVisitChild(_expression, visitor); | 11043 safelyVisitChild(_expression, visitor); |
| 11044 members.accept(visitor); | 11044 members.accept(visitor); |
| 11045 } | 11045 } |
| 11046 } | 11046 } |
| 11047 /** | 11047 /** |
| 11048 * Instances of the class `SymbolLiteral` represent a symbol literal expression. | 11048 * Instances of the class `SymbolLiteral` represent a symbol literal expression. |
| 11049 * | 11049 * |
| 11050 * <pre> | 11050 * <pre> |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11182 * | 11182 * |
| 11183 * @return the expression computing the exception to be thrown | 11183 * @return the expression computing the exception to be thrown |
| 11184 */ | 11184 */ |
| 11185 Expression get expression => _expression; | 11185 Expression get expression => _expression; |
| 11186 | 11186 |
| 11187 /** | 11187 /** |
| 11188 * Set the expression computing the exception to be thrown to the given expres
sion. | 11188 * Set the expression computing the exception to be thrown to the given expres
sion. |
| 11189 * | 11189 * |
| 11190 * @param expression the expression computing the exception to be thrown | 11190 * @param expression the expression computing the exception to be thrown |
| 11191 */ | 11191 */ |
| 11192 void set expression(Expression expression2) { | 11192 void set expression(Expression expression) { |
| 11193 this._expression = becomeParentOf(expression2); | 11193 this._expression = becomeParentOf(expression); |
| 11194 } | 11194 } |
| 11195 void visitChildren(ASTVisitor visitor) { | 11195 void visitChildren(ASTVisitor visitor) { |
| 11196 safelyVisitChild(_expression, visitor); | 11196 safelyVisitChild(_expression, visitor); |
| 11197 } | 11197 } |
| 11198 } | 11198 } |
| 11199 /** | 11199 /** |
| 11200 * Instances of the class `TopLevelVariableDeclaration` represent the declaratio
n of one or | 11200 * Instances of the class `TopLevelVariableDeclaration` represent the declaratio
n of one or |
| 11201 * more top-level variables of the same type. | 11201 * more top-level variables of the same type. |
| 11202 * | 11202 * |
| 11203 * <pre> | 11203 * <pre> |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11575 */ | 11575 */ |
| 11576 void set name(Identifier identifier) { | 11576 void set name(Identifier identifier) { |
| 11577 _name = becomeParentOf(identifier); | 11577 _name = becomeParentOf(identifier); |
| 11578 } | 11578 } |
| 11579 | 11579 |
| 11580 /** | 11580 /** |
| 11581 * Set the type arguments associated with the type to the given type arguments
. | 11581 * Set the type arguments associated with the type to the given type arguments
. |
| 11582 * | 11582 * |
| 11583 * @param typeArguments the type arguments associated with the type | 11583 * @param typeArguments the type arguments associated with the type |
| 11584 */ | 11584 */ |
| 11585 void set typeArguments(TypeArgumentList typeArguments2) { | 11585 void set typeArguments(TypeArgumentList typeArguments) { |
| 11586 this._typeArguments = becomeParentOf(typeArguments2); | 11586 this._typeArguments = becomeParentOf(typeArguments); |
| 11587 } | 11587 } |
| 11588 void visitChildren(ASTVisitor visitor) { | 11588 void visitChildren(ASTVisitor visitor) { |
| 11589 safelyVisitChild(_name, visitor); | 11589 safelyVisitChild(_name, visitor); |
| 11590 safelyVisitChild(_typeArguments, visitor); | 11590 safelyVisitChild(_typeArguments, visitor); |
| 11591 } | 11591 } |
| 11592 } | 11592 } |
| 11593 /** | 11593 /** |
| 11594 * Instances of the class `TypeParameter` represent a type parameter. | 11594 * Instances of the class `TypeParameter` represent a type parameter. |
| 11595 * | 11595 * |
| 11596 * <pre> | 11596 * <pre> |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11851 * | 11851 * |
| 11852 * @return the element associated with this directive | 11852 * @return the element associated with this directive |
| 11853 */ | 11853 */ |
| 11854 Element get uriElement; | 11854 Element get uriElement; |
| 11855 | 11855 |
| 11856 /** | 11856 /** |
| 11857 * Set the URI referenced by this directive to the given URI. | 11857 * Set the URI referenced by this directive to the given URI. |
| 11858 * | 11858 * |
| 11859 * @param uri the URI referenced by this directive | 11859 * @param uri the URI referenced by this directive |
| 11860 */ | 11860 */ |
| 11861 void set uri(StringLiteral uri2) { | 11861 void set uri(StringLiteral uri) { |
| 11862 this._uri = becomeParentOf(uri2); | 11862 this._uri = becomeParentOf(uri); |
| 11863 } | 11863 } |
| 11864 void visitChildren(ASTVisitor visitor) { | 11864 void visitChildren(ASTVisitor visitor) { |
| 11865 super.visitChildren(visitor); | 11865 super.visitChildren(visitor); |
| 11866 safelyVisitChild(_uri, visitor); | 11866 safelyVisitChild(_uri, visitor); |
| 11867 } | 11867 } |
| 11868 } | 11868 } |
| 11869 /** | 11869 /** |
| 11870 * Instances of the class `VariableDeclaration` represent an identifier that has
an initial | 11870 * Instances of the class `VariableDeclaration` represent an identifier that has
an initial |
| 11871 * value associated with it. Instances of this class are always children of the
class | 11871 * value associated with it. Instances of this class are always children of the
class |
| 11872 * [VariableDeclarationList]. | 11872 * [VariableDeclarationList]. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11983 bool get isFinal { | 11983 bool get isFinal { |
| 11984 ASTNode parent = this.parent; | 11984 ASTNode parent = this.parent; |
| 11985 return parent is VariableDeclarationList && ((parent as VariableDeclarationL
ist)).isFinal; | 11985 return parent is VariableDeclarationList && ((parent as VariableDeclarationL
ist)).isFinal; |
| 11986 } | 11986 } |
| 11987 | 11987 |
| 11988 /** | 11988 /** |
| 11989 * Set the expression used to compute the initial value for the variable to th
e given expression. | 11989 * Set the expression used to compute the initial value for the variable to th
e given expression. |
| 11990 * | 11990 * |
| 11991 * @param initializer the expression used to compute the initial value for the
variable | 11991 * @param initializer the expression used to compute the initial value for the
variable |
| 11992 */ | 11992 */ |
| 11993 void set initializer(Expression initializer2) { | 11993 void set initializer(Expression initializer) { |
| 11994 this._initializer = becomeParentOf(initializer2); | 11994 this._initializer = becomeParentOf(initializer); |
| 11995 } | 11995 } |
| 11996 | 11996 |
| 11997 /** | 11997 /** |
| 11998 * Set the name of the variable being declared to the given identifier. | 11998 * Set the name of the variable being declared to the given identifier. |
| 11999 * | 11999 * |
| 12000 * @param name the name of the variable being declared | 12000 * @param name the name of the variable being declared |
| 12001 */ | 12001 */ |
| 12002 void set name(SimpleIdentifier name2) { | 12002 void set name(SimpleIdentifier name) { |
| 12003 this._name = becomeParentOf(name2); | 12003 this._name = becomeParentOf(name); |
| 12004 } | 12004 } |
| 12005 void visitChildren(ASTVisitor visitor) { | 12005 void visitChildren(ASTVisitor visitor) { |
| 12006 super.visitChildren(visitor); | 12006 super.visitChildren(visitor); |
| 12007 safelyVisitChild(_name, visitor); | 12007 safelyVisitChild(_name, visitor); |
| 12008 safelyVisitChild(_initializer, visitor); | 12008 safelyVisitChild(_initializer, visitor); |
| 12009 } | 12009 } |
| 12010 Token get firstTokenAfterCommentAndMetadata => _name.beginToken; | 12010 Token get firstTokenAfterCommentAndMetadata => _name.beginToken; |
| 12011 } | 12011 } |
| 12012 /** | 12012 /** |
| 12013 * Instances of the class `VariableDeclarationList` represent the declaration of
one or more | 12013 * Instances of the class `VariableDeclarationList` represent the declaration of
one or more |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12167 * | 12167 * |
| 12168 * @return the variables being declared | 12168 * @return the variables being declared |
| 12169 */ | 12169 */ |
| 12170 VariableDeclarationList get variables => _variableList; | 12170 VariableDeclarationList get variables => _variableList; |
| 12171 | 12171 |
| 12172 /** | 12172 /** |
| 12173 * Set the variables being declared to the given list of variables. | 12173 * Set the variables being declared to the given list of variables. |
| 12174 * | 12174 * |
| 12175 * @param variableList the variables being declared | 12175 * @param variableList the variables being declared |
| 12176 */ | 12176 */ |
| 12177 void set variables(VariableDeclarationList variableList2) { | 12177 void set variables(VariableDeclarationList variableList) { |
| 12178 this._variableList = becomeParentOf(variableList2); | 12178 this._variableList = becomeParentOf(variableList); |
| 12179 } | 12179 } |
| 12180 void visitChildren(ASTVisitor visitor) { | 12180 void visitChildren(ASTVisitor visitor) { |
| 12181 safelyVisitChild(_variableList, visitor); | 12181 safelyVisitChild(_variableList, visitor); |
| 12182 } | 12182 } |
| 12183 } | 12183 } |
| 12184 /** | 12184 /** |
| 12185 * Instances of the class `WhileStatement` represent a while statement. | 12185 * Instances of the class `WhileStatement` represent a while statement. |
| 12186 * | 12186 * |
| 12187 * <pre> | 12187 * <pre> |
| 12188 * whileStatement ::= | 12188 * whileStatement ::= |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12329 WithClause({Token withKeyword, List<TypeName> mixinTypes}) : this.full(withKey
word, mixinTypes); | 12329 WithClause({Token withKeyword, List<TypeName> mixinTypes}) : this.full(withKey
word, mixinTypes); |
| 12330 accept(ASTVisitor visitor) => visitor.visitWithClause(this); | 12330 accept(ASTVisitor visitor) => visitor.visitWithClause(this); |
| 12331 Token get beginToken => withKeyword; | 12331 Token get beginToken => withKeyword; |
| 12332 Token get endToken => mixinTypes.endToken; | 12332 Token get endToken => mixinTypes.endToken; |
| 12333 | 12333 |
| 12334 /** | 12334 /** |
| 12335 * Set the token representing the 'with' keyword to the given token. | 12335 * Set the token representing the 'with' keyword to the given token. |
| 12336 * | 12336 * |
| 12337 * @param withKeyword the token representing the 'with' keyword | 12337 * @param withKeyword the token representing the 'with' keyword |
| 12338 */ | 12338 */ |
| 12339 void set mixinKeyword(Token withKeyword2) { | 12339 void set mixinKeyword(Token withKeyword) { |
| 12340 this.withKeyword = withKeyword2; | 12340 this.withKeyword = withKeyword; |
| 12341 } | 12341 } |
| 12342 void visitChildren(ASTVisitor visitor) { | 12342 void visitChildren(ASTVisitor visitor) { |
| 12343 mixinTypes.accept(visitor); | 12343 mixinTypes.accept(visitor); |
| 12344 } | 12344 } |
| 12345 } | 12345 } |
| 12346 /** | 12346 /** |
| 12347 * Instances of the class `BreadthFirstVisitor` implement an AST visitor that wi
ll recursively | 12347 * Instances of the class `BreadthFirstVisitor` implement an AST visitor that wi
ll recursively |
| 12348 * visit all of the nodes in an AST structure, similar to [GeneralizingASTVisito
r]. This | 12348 * visit all of the nodes in an AST structure, similar to [GeneralizingASTVisito
r]. This |
| 12349 * visitor uses a breadth-first ordering rather than the depth-first ordering of | 12349 * visitor uses a breadth-first ordering rather than the depth-first ordering of |
| 12350 * [GeneralizingASTVisitor]. | 12350 * [GeneralizingASTVisitor]. |
| (...skipping 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14780 return elements[elements.length - 1].endToken; | 14780 return elements[elements.length - 1].endToken; |
| 14781 } | 14781 } |
| 14782 /** | 14782 /** |
| 14783 * Return the node that is the parent of each of the elements in the list. | 14783 * Return the node that is the parent of each of the elements in the list. |
| 14784 * @return the node that is the parent of each of the elements in the list | 14784 * @return the node that is the parent of each of the elements in the list |
| 14785 */ | 14785 */ |
| 14786 ASTNode getOwner() { | 14786 ASTNode getOwner() { |
| 14787 return owner; | 14787 return owner; |
| 14788 } | 14788 } |
| 14789 } | 14789 } |
| OLD | NEW |