Function mapParsedExprAST

  • Map a parsed expression into another parsed expression.

    Parameters

    • parsedExpr: ExprAST

      The parsed expression in a JSON format.

    • fn: ((node) => ExprAST)

      The function to apply to each node of the parsed expression.

        • (node): ExprAST
        • Parameters

          • node: ExprAST

          Returns ExprAST

    Returns ExprAST

    The parsed expression with the function applied to each node.

Generated using TypeDoc