| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Defines the AST model. The AST (Abstract Syntax Tree) model describes the | 6 * Defines the AST model. The AST (Abstract Syntax Tree) model describes the |
| 7 * syntactic (as opposed to semantic) structure of Dart code. The semantic | 7 * syntactic (as opposed to semantic) structure of Dart code. The semantic |
| 8 * structure of the code is modeled by the | 8 * structure of the code is modeled by the |
| 9 * [element model](../element/element.dart). | 9 * [element model](../element/element.dart). |
| 10 * | 10 * |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 * Use the given [visitor] to visit this node. Return the value returned by | 591 * Use the given [visitor] to visit this node. Return the value returned by |
| 592 * the visitor as a result of visiting this node. | 592 * the visitor as a result of visiting this node. |
| 593 */ | 593 */ |
| 594 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor); | 594 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor); |
| 595 | 595 |
| 596 /** | 596 /** |
| 597 * Return the most immediate ancestor of this node for which the [predicate] | 597 * Return the most immediate ancestor of this node for which the [predicate] |
| 598 * returns `true`, or `null` if there is no such ancestor. Note that this node | 598 * returns `true`, or `null` if there is no such ancestor. Note that this node |
| 599 * will never be returned. | 599 * will never be returned. |
| 600 */ | 600 */ |
| 601 AstNode getAncestor(Predicate<AstNode> predicate); | 601 AstNode/*=E*/ getAncestor/*<E extends AstNode>*/( |
| 602 Predicate<AstNode> predicate); |
| 602 | 603 |
| 603 /** | 604 /** |
| 604 * Return the value of the property with the given [name], or `null` if this | 605 * Return the value of the property with the given [name], or `null` if this |
| 605 * node does not have a property with the given name. | 606 * node does not have a property with the given name. |
| 606 */ | 607 */ |
| 607 Object getProperty(String name); | 608 Object/*=E*/ getProperty/*<E>*/(String name); |
| 608 | 609 |
| 609 /** | 610 /** |
| 610 * Set the value of the property with the given [name] to the given [value]. | 611 * Set the value of the property with the given [name] to the given [value]. |
| 611 * If the value is `null`, the property will effectively be removed. | 612 * If the value is `null`, the property will effectively be removed. |
| 612 */ | 613 */ |
| 613 void setProperty(String name, Object value); | 614 void setProperty(String name, Object value); |
| 614 | 615 |
| 615 /** | 616 /** |
| 616 * Return a textual description of this node in a form approximating valid | 617 * Return a textual description of this node in a form approximating valid |
| 617 * source. The returned string will not be valid source primarily in the case | 618 * source. The returned string will not be valid source primarily in the case |
| (...skipping 7621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8239 /** | 8240 /** |
| 8240 * Return the 'yield' keyword. | 8241 * Return the 'yield' keyword. |
| 8241 */ | 8242 */ |
| 8242 Token get yieldKeyword; | 8243 Token get yieldKeyword; |
| 8243 | 8244 |
| 8244 /** | 8245 /** |
| 8245 * Return the 'yield' keyword to the given [token]. | 8246 * Return the 'yield' keyword to the given [token]. |
| 8246 */ | 8247 */ |
| 8247 void set yieldKeyword(Token token); | 8248 void set yieldKeyword(Token token); |
| 8248 } | 8249 } |
| OLD | NEW |