thisOrAncestorMatching<E extends AstNode> abstract method
- @V1Ast('The V2 counterpart is thisOrAncestorMatching2.')
Returns either this node or the most immediate ancestor of this node for
which the predicate returns true, or null if there's no such node.
Implementation
@V1Ast('The V2 counterpart is thisOrAncestorMatching2.')
E? thisOrAncestorMatching<E extends AstNode>(
bool Function(AstNode) predicate,
);