Skip to content

document REPL ast_transforms #37047

@stevengj

Description

@stevengj

Julia 1.5 includes a REPL ast_transforms variable initially added for the softscope transformation (#33864) but expanded for use by other packages (#34626, #34778), that is starting to be used by other packages. It is currently being used by Revise (timholy/Revise.jl#425), support will probably be added soon in IJulia (for the REPL.repl_ast_transforms defaults), and it might be used in the future by things like OhMyREPL.

We might consider documenting it somewhere. Maybe adding a slightly higher-level API, e.g.

REPL.current_ast_transforms() = isdefined(Base, :active_repl_backend) ? Base.active_repl_backend.ast_transforms : REPL.repl_ast_transforms

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)docsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions