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 afterTreeTraversal: Pipeline.(AstRoot) -> Unit = {}, val afterRendering: Pipeline.(CharSequence) -> Unit = {}, val afterPostRendering: Pipeline.(CharSequence) -> Unit = {}, val afterAllRendering: Pipeline.(CharSequence) -> Unit = {}, val afterGeneratingResources: Pipeline.(Set<OutputResource>) -> 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)

afterTreeTraversal

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)

afterAllRendering

action to run after all rendering has been completed. It usually matches with afterPostRendering. If post-rendering is disabled, it will match with afterRendering instead.

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 = {}, afterTreeTraversal: Pipeline.(AstRoot) -> Unit = {}, afterRendering: Pipeline.(CharSequence) -> Unit = {}, afterPostRendering: Pipeline.(CharSequence) -> Unit = {}, afterAllRendering: Pipeline.(CharSequence) -> Unit = {}, afterGeneratingResources: Pipeline.(Set<OutputResource>) -> 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
Link copied to clipboard