• Returns true if there are any nested expressions matching the given predicate.

    Parameters

    • node: AstNode

      The node to traverse.

    • predicate: ((expr: AstExpression) => boolean)

      The predicate function to test each expression.

    Returns boolean

    The first expression that satisfies the predicate, or null if none found.