Index: pkg/analyzer/lib/dart/ast/ast.dart |
diff --git a/pkg/analyzer/lib/dart/ast/ast.dart b/pkg/analyzer/lib/dart/ast/ast.dart |
index 0c65f34f43dde396d0468335f0cf4fb3c4ccd347..2af93577cae0df7d451e3665f00b4493189ad75a 100644 |
--- a/pkg/analyzer/lib/dart/ast/ast.dart |
+++ b/pkg/analyzer/lib/dart/ast/ast.dart |
@@ -517,21 +517,20 @@ abstract class AstNode implements SyntacticEntity { |
* Use the given [visitor] to visit this node. Return the value returned by |
* the visitor as a result of visiting this node. |
*/ |
- dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor); |
+ E accept<E>(AstVisitor<E> visitor); |
/** |
* Return the most immediate ancestor of this node for which the [predicate] |
* returns `true`, or `null` if there is no such ancestor. Note that this node |
* will never be returned. |
*/ |
- AstNode/*=E*/ getAncestor/*<E extends AstNode>*/( |
- Predicate<AstNode> predicate); |
+ E getAncestor<E extends AstNode>(Predicate<AstNode> predicate); |
/** |
* Return the value of the property with the given [name], or `null` if this |
* node does not have a property with the given name. |
*/ |
- Object/*=E*/ getProperty/*<E>*/(String name); |
+ E getProperty<E>(String name); |
/** |
* Set the value of the property with the given [name] to the given [value]. |