Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: pkg/analyzer/lib/dart/ast/ast.dart

Issue 1977413002: Improve type information and minor clean up (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/element/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698