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

Method parseJSXNameValueAttribute

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

Source from the content-addressed store, hash-verified

429 }
430
431 parseJSXNameValueAttribute(): JSXNode.JSXAttribute {
432 const node = this.createJSXNode();
433 const name = this.parseJSXAttributeName();
434 let value: JSXNode.JSXAttributeValue | null = null;
435 if (this.matchJSX('=')) {
436 this.expectJSX('=');
437 value = this.parseJSXAttributeValue();
438 }
439 return this.finalize(node, new JSXNode.JSXAttribute(name, value));
440 }
441
442 parseJSXSpreadAttribute(): JSXNode.JSXSpreadAttribute {
443 const node = this.createJSXNode();

Callers 1

parseJSXAttributesMethod · 0.95

Calls 6

createJSXNodeMethod · 0.95
parseJSXAttributeNameMethod · 0.95
matchJSXMethod · 0.95
expectJSXMethod · 0.95
finalizeMethod · 0.80

Tested by

no test coverage detected