* Determines whether to elide a module declaration. * * @param node The module declaration node.
(nodeIn)
| 93556 | * @param node The module declaration node. |
| 93557 | */ |
| 93558 | function shouldEmitModuleDeclaration(nodeIn) { |
| 93559 | var node = ts.getParseTreeNode(nodeIn, ts.isModuleDeclaration); |
| 93560 | if (!node) { |
| 93561 | // If we can't find a parse tree node, assume the node is instantiated. |
| 93562 | return true; |
| 93563 | } |
| 93564 | return ts.isInstantiatedModule(node, ts.shouldPreserveConstEnums(compilerOptions)); |
| 93565 | } |
| 93566 | /** |
| 93567 | * Determines whether an exported declaration will have a qualified export name (e.g. `f.x` |
| 93568 | * or `exports.x`). |
no outgoing calls
no test coverage detected
searching dependent graphs…