PipelineHooks

data class PipelineHooks(val afterRegisteringLibraries: Pipeline.(Set<Library>) -> Unit = {}, val afterLexing: Pipeline.(List<Token>) -> Unit = {}, val afterParsing: Pipeline.(AstRoot) -> Unit = {}, val afterExpanding: Pipeline.(AstRoot) -> Unit = {}, val afterTreeVisiting: Pipeline.() -> Unit = {}, val afterRendering: Pipeline.(CharSequence) -> Unit = {}, val afterPostRendering: Pipeline.(CharSequence) -> Unit = {})

Actions to run after each stage of a Pipeline has been completed.

Parameters

afterRegisteringLibraries

action to run after the libraries have been registered and are ready to be looked up (libraries as arguments)

afterLexing

action to run after the tokens have been produced (output tokens as arguments)

afterParsing

action to run after the AST has been generated (root as an argument)

afterExpanding

action to run after the queued function calls have been expanded (root as an argument)

afterTreeVisiting

action to run after the produced AST has been visited

afterRendering

action to run after the rendered output code has been generated (output code as an argument)

afterPostRendering

action to run after the rendered output code has been manipulated (e.g. wrapped) (output code as an argument)

See also

Constructors

Link copied to clipboard
constructor(afterRegisteringLibraries: Pipeline.(Set<Library>) -> Unit = {}, afterLexing: Pipeline.(List<Token>) -> Unit = {}, afterParsing: Pipeline.(AstRoot) -> Unit = {}, afterExpanding: Pipeline.(AstRoot) -> Unit = {}, afterTreeVisiting: Pipeline.() -> Unit = {}, afterRendering: Pipeline.(CharSequence) -> Unit = {}, afterPostRendering: Pipeline.(CharSequence) -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard