substituteNode
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
A hint indicating the intended purpose of the node.
node
The node to emit.