* Emits a node with possible substitution. * * @param hint A hint as to the intended usage of the node. * @param node The node to emit. * @param emitCallback The callback used to emit the node or its substitute.
(hint, node)
| 109686 | * @param emitCallback The callback used to emit the node or its substitute. |
| 109687 | */ |
| 109688 | function substituteNode(hint, node) { |
| 109689 | ts.Debug.assert(state < 3 /* TransformationState.Disposed */, "Cannot substitute a node after the result is disposed."); |
| 109690 | return node && isSubstitutionEnabled(node) && onSubstituteNode(hint, node) || node; |
| 109691 | } |
| 109692 | /** |
| 109693 | * Enables before/after emit notifications in the pretty printer for the provided SyntaxKind. |
| 109694 | */ |
no test coverage detected