Function containsCapturingGroup

  • Returns whether the given node contains or is a capturing group.

    This function is guaranteed to behave in the same way as:

    hasSomeDescendant(node, d => d.type === "CapturingGroup")
    

    Type Parameters

    • N extends Node

    Parameters

    • node: N

    Returns ContainsCapturingGroup<N>