(emit-notification-enabled? print-handlers node)A hook used to check if an emit notification is required for a node.
Parameters:
node: Node - The node to emit.Returns: boolean
A hook used to check if an emit notification is required for a node. **Parameters:** - `node`: `Node` - The node to emit. **Returns:** `boolean`
(has-global-name? print-handlers name)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.
Parameters:
name: stringReturns: boolean
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. **Parameters:** - `name`: `string` **Returns:** `boolean`
(on-emit-node print-handlers hint node emit-callback)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: EmitHint - A hint indicating the intended purpose of the node.node: Node - The node to emit.emit-callback: (hint: EmitHint, node: Node) => void - A callback that, when invoked, will emit the node.Returns: void
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`: `EmitHint` - A hint indicating the intended purpose of the node. - `node`: `Node` - The node to emit. - `emit-callback`: `(hint: EmitHint, node: Node) => void` - A callback that, when invoked, will emit the node. **Returns:** `void`
(substitute-node print-handlers hint 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.
Parameters:
hint: EmitHint - A hint indicating the intended purpose of the node.node: Node - The node to emit.Returns: 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`. **Parameters:** - `hint`: `EmitHint` - A hint indicating the intended purpose of the node. - `node`: `Node` - The node to emit. **Returns:** `Node`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |