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

Function advanceJSXChild

lib/assets/javascripts/JSXTransformer.js:9206–9215  ·  view source on GitHub ↗

* Between JSX opening and closing tags (e.g. HERE ), anything that * is not another JSX tag and is not an expression wrapped by {} is text.

()

Source from the content-addressed store, hash-verified

9204 * is not another JSX tag and is not an expression wrapped by {} is text.
9205 */
9206 function advanceJSXChild() {
9207 var ch = source.charCodeAt(index);
9208
9209 // '<' 60, '>' 62, '{' 123, '}' 125
9210 if (ch !== 60 && ch !== 62 && ch !== 123 && ch !== 125) {
9211 return scanJSXText(['<', '>', '{', '}']);
9212 }
9213
9214 return scanPunctuator();
9215 }
9216
9217 function parseJSXIdentifier() {
9218 var token, marker = markerCreate();

Callers 1

advanceFunction · 0.85

Calls 2

scanJSXTextFunction · 0.85
scanPunctuatorFunction · 0.85

Tested by

no test coverage detected