* Hooks node substitutions. * * @param hint A hint as to the intended usage of the node. * @param node The node to substitute.
(hint, node)
| 94137 | * @param node The node to substitute. |
| 94138 | */ |
| 94139 | function onSubstituteNode(hint, node) { |
| 94140 | node = previousOnSubstituteNode(hint, node); |
| 94141 | if (hint === 1 /* EmitHint.Expression */) { |
| 94142 | return substituteExpression(node); |
| 94143 | } |
| 94144 | else if (ts.isShorthandPropertyAssignment(node)) { |
| 94145 | return substituteShorthandPropertyAssignment(node); |
| 94146 | } |
| 94147 | return node; |
| 94148 | } |
| 94149 | function substituteShorthandPropertyAssignment(node) { |
| 94150 | if (enabledSubstitutions & 2 /* TypeScriptSubstitutionFlags.NamespaceExports */) { |
| 94151 | var name = node.name; |
no test coverage detected