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

Function parseJSXClosingElement

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

Source from the content-addressed store, hash-verified

9377 }
9378
9379 function parseJSXClosingElement() {
9380 var name, origInJSXChild, origInJSXTag, marker = markerCreate();
9381 origInJSXChild = state.inJSXChild;
9382 origInJSXTag = state.inJSXTag;
9383 state.inJSXChild = false;
9384 state.inJSXTag = true;
9385 expect('<');
9386 expect('/');
9387 name = parseJSXElementName();
9388 // Because advance() (called by lex() called by expect()) expects there
9389 // to be a valid token after >, it needs to know whether to look for a
9390 // standard JS token or an JSX text node
9391 state.inJSXChild = origInJSXChild;
9392 state.inJSXTag = origInJSXTag;
9393 expect('>');
9394 return markerApply(marker, delegate.createJSXClosingElement(name));
9395 }
9396
9397 function parseJSXOpeningElement() {
9398 var name, attributes = [], selfClosing = false, origInJSXChild, origInJSXTag, marker = markerCreate();

Callers 1

parseJSXElementFunction · 0.85

Calls 4

markerCreateFunction · 0.85
expectFunction · 0.85
parseJSXElementNameFunction · 0.85
markerApplyFunction · 0.85

Tested by

no test coverage detected