()
| 3387 | |
| 3388 | // {foo, bar as bas} |
| 3389 | parseNamedImports(): Node.ImportSpecifier[] { |
| 3390 | this.expect('{'); |
| 3391 | const specifiers: Node.ImportSpecifier[] = []; |
| 3392 | while (!this.match('}')) { |
| 3393 | specifiers.push(this.parseImportSpecifier()); |
| 3394 | if (!this.match('}')) { |
| 3395 | this.expect(','); |
| 3396 | } |
| 3397 | } |
| 3398 | this.expect('}'); |
| 3399 | |
| 3400 | return specifiers; |
| 3401 | } |
| 3402 | |
| 3403 | // import <foo> ...; |
| 3404 | parseImportDefaultSpecifier(): Node.ImportDefaultSpecifier { |
no test coverage detected