(reExported, checker)
| 152336 | } |
| 152337 | } |
| 152338 | function convertReExportAll(reExported, checker) { |
| 152339 | // `module.exports = require("x");` ==> `export * from "x"; export { default } from "x";` |
| 152340 | var moduleSpecifier = reExported.text; |
| 152341 | var moduleSymbol = checker.getSymbolAtLocation(reExported); |
| 152342 | var exports = moduleSymbol ? moduleSymbol.exports : ts.emptyMap; |
| 152343 | return exports.has("export=" /* InternalSymbolName.ExportEquals */) ? [[reExportDefault(moduleSpecifier)], true] : |
| 152344 | !exports.has("default" /* InternalSymbolName.Default */) ? [[reExportStar(moduleSpecifier)], false] : |
| 152345 | // If there's some non-default export, must include both `export *` and `export default`. |
| 152346 | exports.size > 1 ? [[reExportStar(moduleSpecifier), reExportDefault(moduleSpecifier)], true] : [[reExportDefault(moduleSpecifier)], true]; |
| 152347 | } |
| 152348 | function reExportStar(moduleSpecifier) { |
| 152349 | return makeExportDeclaration(/*exportClause*/ undefined, moduleSpecifier); |
| 152350 | } |
no test coverage detected