(base: string)
| 117 | } |
| 118 | }; |
| 119 | const makeUniqueLocal = (base: string) => { |
| 120 | let name = base; |
| 121 | if (!isValidLocal(name)) { |
| 122 | name = `__ns_${name.replace(/[^A-Za-z0-9_$]+/g, '_') || 'id'}`; |
| 123 | } |
| 124 | let i = 1; |
| 125 | let cand = name; |
| 126 | while (declared.has(cand)) { |
| 127 | cand = `${name}_${i++}`; |
| 128 | } |
| 129 | declared.add(cand); |
| 130 | return cand; |
| 131 | }; |
| 132 | if (isRt || isCore) { |
| 133 | let named = (path.node.specifiers || []).filter((s) => t.isImportSpecifier(s)) as t.ImportSpecifier[]; |
| 134 | if (isRt && named.length) { |
nothing calls this directly
no test coverage detected