onEmitNode

abstract val onEmitNode: (hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) -> Unit) -> Unit?(source)

A hook used by the Printer to provide notifications prior to emitting a node. A compatible implementation must invoke emitCallback with the provided hint and node values.

Parameters

hint

A hint indicating the intended purpose of the node.

node

The node to emit.

emitCallback

A callback that, when invoked, will emit the node.