Function buildCallbackResultFromCaptureNameFMTN

  • Builds a MutationOperator.findMutationTargetNodes function that, given a capture name and a callback that accepts a node, returns the result of the callback for the captured node.

    Parameters

    • captureName: string
    • callback: (node: SyntaxNode) => null | SyntaxNode

    Returns (match: QueryMatch) => SyntaxNode[]