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

Method matchJSX

src/jsx-parser.ts:348–351  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

346 // Return true if the next JSX token matches the specified punctuator.
347
348 matchJSX(value) {
349 const next = this.peekJSXToken();
350 return next.type === Token.Punctuator && next.value === value;
351 }
352
353 parseJSXIdentifier(): JSXNode.JSXIdentifier {
354 const node = this.createJSXNode();

Callers 8

parseJSXElementNameMethod · 0.95
parseJSXAttributeNameMethod · 0.95
parseJSXAttributesMethod · 0.95

Calls 1

peekJSXTokenMethod · 0.95

Tested by

no test coverage detected