MCPcopy
hub / github.com/jquery/esprima / parseJSXAttributes

Method parseJSXAttributes

src/jsx-parser.ts:454–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452 }
453
454 parseJSXAttributes(): JSXNode.JSXElementAttribute[] {
455 const attributes: JSXNode.JSXElementAttribute[] = [];
456
457 while (!this.matchJSX('/') && !this.matchJSX('>')) {
458 const attribute = this.matchJSX('{') ? this.parseJSXSpreadAttribute() :
459 this.parseJSXNameValueAttribute();
460 attributes.push(attribute);
461 }
462
463 return attributes;
464 }
465
466 parseJSXOpeningElement(): JSXNode.JSXOpeningElement {
467 const node = this.createJSXNode();

Callers 2

Calls 4

matchJSXMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected