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

Method parseJSXSpreadAttribute

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

Source from the content-addressed store, hash-verified

440 }
441
442 parseJSXSpreadAttribute(): JSXNode.JSXSpreadAttribute {
443 const node = this.createJSXNode();
444 this.expectJSX('{');
445 this.expectJSX('...');
446
447 this.finishJSX();
448 const argument = this.parseAssignmentExpression();
449 this.reenterJSX();
450
451 return this.finalize(node, new JSXNode.JSXSpreadAttribute(argument));
452 }
453
454 parseJSXAttributes(): JSXNode.JSXElementAttribute[] {
455 const attributes: JSXNode.JSXElementAttribute[] = [];

Callers 1

parseJSXAttributesMethod · 0.95

Calls 6

createJSXNodeMethod · 0.95
expectJSXMethod · 0.95
finishJSXMethod · 0.95
reenterJSXMethod · 0.95
finalizeMethod · 0.80

Tested by

no test coverage detected