Package-level declarations
Types
Link copied to clipboard
An iterator that runs through the nodes of an AST.
Link copied to clipboard
interface AstIteratorHook
A hook that can be attached to an ObservableAstIterator.
Link copied to clipboard
class AstRewriter(context: MutableContext, errorHandler: PipelineErrorHandler = requireNotNull(context.errorHandler) { "AstRewriter requires a pipeline error handler" }) : AstIterator<AstRoot>
An AstIterator that walks the AST and replaces every PrimitiveFunctionBackedNode whose backing function has been wrapped via .extend with an equivalent FunctionCallNode. It queues the synthesized calls on the context, and finally expands them in one pass so the rewritten tree is ready for rendering.
Link copied to clipboard
An iterator that performs a DFS traversal through the nodes of an AST, allowing the registration of observers that will be notified when a node of a certain type is visited.