• Find a single CST node within the given node that contributes to the specified property.

    Parameters

    • node: undefined | CstNode

      A CST node in which to look for property assignments. If this is undefined, the result is undefined.

    • property: undefined | string

      A property name of the constructed AST node. If this is undefined, the result is undefined.

    • Optionalindex: number

      If no index is specified or the index is less than zero, the first found node is returned. If the specified index exceeds the number of assignments to the property, the last found node is returned. Otherwise, the node with the specified index is returned.

    Returns CstNode | undefined