* Hook for node emit. * * @param hint A hint as to the intended usage of the node. * @param node The node to emit. * @param emit A callback used to emit the node in the printer.
(hint, node, emitCallback)
| 94115 | * @param emit A callback used to emit the node in the printer. |
| 94116 | */ |
| 94117 | function onEmitNode(hint, node, emitCallback) { |
| 94118 | var savedApplicableSubstitutions = applicableSubstitutions; |
| 94119 | var savedCurrentSourceFile = currentSourceFile; |
| 94120 | if (ts.isSourceFile(node)) { |
| 94121 | currentSourceFile = node; |
| 94122 | } |
| 94123 | if (enabledSubstitutions & 2 /* TypeScriptSubstitutionFlags.NamespaceExports */ && isTransformedModuleDeclaration(node)) { |
| 94124 | applicableSubstitutions |= 2 /* TypeScriptSubstitutionFlags.NamespaceExports */; |
| 94125 | } |
| 94126 | if (enabledSubstitutions & 8 /* TypeScriptSubstitutionFlags.NonQualifiedEnumMembers */ && isTransformedEnumDeclaration(node)) { |
| 94127 | applicableSubstitutions |= 8 /* TypeScriptSubstitutionFlags.NonQualifiedEnumMembers */; |
| 94128 | } |
| 94129 | previousOnEmitNode(hint, node, emitCallback); |
| 94130 | applicableSubstitutions = savedApplicableSubstitutions; |
| 94131 | currentSourceFile = savedCurrentSourceFile; |
| 94132 | } |
| 94133 | /** |
| 94134 | * Hooks node substitutions. |
| 94135 | * |
no test coverage detected