thisOrAncestorMatching<E extends AstNode> abstract method

E? thisOrAncestorMatching<E extends AstNode>(
  1. bool predicate(
    1. AstNode
    )
)

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

E? thisOrAncestorMatching<E extends AstNode>(
  bool Function(AstNode) predicate,
);