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.
A callback that, when invoked, will emit the node.
Returns void
Example
varprinter = createPrinter(printerOptions, { onEmitNode(hint, node, emitCallback) { // set up or track state prior to emitting the node... emitCallback(hint, node); // restore state after emitting the node... } });
A hook used by the Printer to perform just-in-time substitution of a node. This is
primarily used by node transformations that need to substitute one node for another,
such as replacing myExportedVar with exports.myExportedVar.
A hook used by the Printer when generating unique names to avoid collisions with globally defined names that exist outside of the current source file.