MCPcopy Create free account
hub / github.com/jquery/esprima / parseNamedImports

Method parseNamedImports

src/parser.ts:3389–3401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 4

expectMethod · 0.95
matchMethod · 0.95
parseImportSpecifierMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected