MCPcopy Index your code
hub / github.com/reactjs/react-rails / parseJSXChild

Function parseJSXChild

lib/assets/javascripts/JSXTransformer.js:9364–9377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9362 }
9363
9364 function parseJSXChild() {
9365 var token, marker;
9366 if (match('{')) {
9367 token = parseJSXExpressionContainer();
9368 } else if (lookahead.type === Token.JSXText) {
9369 marker = markerCreatePreserveWhitespace();
9370 token = markerApply(marker, delegate.createLiteral(lex()));
9371 } else if (match('<')) {
9372 token = parseJSXElement();
9373 } else {
9374 throwUnexpected(lookahead);
9375 }
9376 return token;
9377 }
9378
9379 function parseJSXClosingElement() {
9380 var name, origInJSXChild, origInJSXTag, marker = markerCreate();

Callers 1

parseJSXElementFunction · 0.85

Calls 7

matchFunction · 0.85
markerApplyFunction · 0.85
lexFunction · 0.85
parseJSXElementFunction · 0.85
throwUnexpectedFunction · 0.85

Tested by

no test coverage detected