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

Method parseJSXAttributeValue

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

Source from the content-addressed store, hash-verified

424 }
425
426 parseJSXAttributeValue(): JSXNode.JSXAttributeValue {
427 return this.matchJSX('{') ? this.parseJSXExpressionAttribute() :
428 this.matchJSX('<') ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute();
429 }
430
431 parseJSXNameValueAttribute(): JSXNode.JSXAttribute {
432 const node = this.createJSXNode();

Callers 1

Calls 4

matchJSXMethod · 0.95
parseJSXElementMethod · 0.95

Tested by

no test coverage detected