(sourceFile, checker, identifiers)
| 152154 | return moduleExportsChangedToDefault; |
| 152155 | } |
| 152156 | function collectExportRenames(sourceFile, checker, identifiers) { |
| 152157 | var res = new ts.Map(); |
| 152158 | forEachExportReference(sourceFile, function (node) { |
| 152159 | var _a = node.name, text = _a.text, originalKeywordKind = _a.originalKeywordKind; |
| 152160 | if (!res.has(text) && (originalKeywordKind !== undefined && ts.isNonContextualKeyword(originalKeywordKind) |
| 152161 | || checker.resolveName(text, node, 111551 /* SymbolFlags.Value */, /*excludeGlobals*/ true))) { |
| 152162 | // Unconditionally add an underscore in case `text` is a keyword. |
| 152163 | res.set(text, makeUniqueName("_".concat(text), identifiers)); |
| 152164 | } |
| 152165 | }); |
| 152166 | return res; |
| 152167 | } |
| 152168 | function convertExportsAccesses(sourceFile, exports, changes) { |
| 152169 | forEachExportReference(sourceFile, function (node, isAssignmentLhs) { |
| 152170 | if (isAssignmentLhs) { |
no test coverage detected