(canonical: string)
| 152 | const modules = new Map<string, NativeScriptImportBinding>(); |
| 153 | |
| 154 | const getModuleBinding = (canonical: string) => { |
| 155 | let entry = modules.get(canonical); |
| 156 | if (!entry) { |
| 157 | entry = { |
| 158 | default: new Set<string>(), |
| 159 | namespace: new Set<string>(), |
| 160 | named: [], |
| 161 | sideEffectOnly: false, |
| 162 | }; |
| 163 | modules.set(canonical, entry); |
| 164 | } |
| 165 | return entry; |
| 166 | }; |
| 167 | |
| 168 | const parseNamedImports = (clause: string, binding: NativeScriptImportBinding) => { |
| 169 | const inner = clause.replace(/^\{/, '').replace(/\}$/, ''); |
no test coverage detected