AstRewriter

constructor(context: MutableContext, errorHandler: PipelineErrorHandler = requireNotNull(context.errorHandler) { "AstRewriter requires a pipeline error handler" })

Parameters

context

context to resolve extensions against and to register synthesized calls in

errorHandler

strategy used by the expander to handle errors raised by wrappers. Defaults to the error handler of the pipeline currently attached to context; fails fast if neither is available