Function retropile

Transpile an Aran program back to an ESTree JavaScript program.

AranInputError If conf or root are invalid.

AranPointcutError If there is a problem with the provided pointcut.

AranClashError If there is a clash between Aran variables and the variable in file.root.

  • Parameters

    • root: Program<Atom>

      The Aran program to retropile.

    • Optionalconf: null | Partial<Config>

      Retropilation options.

    Returns never

    An ESTree program that can be fed to a estree code generator like astring.