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

Function scanJSXIdentifier

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

Source from the content-addressed store, hash-verified

9085 }
9086
9087 function scanJSXIdentifier() {
9088 var ch, start, value = '';
9089
9090 start = index;
9091 while (index < length) {
9092 ch = source.charCodeAt(index);
9093 if (!isJSXIdentifierPart(ch)) {
9094 break;
9095 }
9096 value += source[index++];
9097 }
9098
9099 return {
9100 type: Token.JSXIdentifier,
9101 value: value,
9102 lineNumber: lineNumber,
9103 lineStart: lineStart,
9104 range: [start, index]
9105 };
9106 }
9107
9108 function scanJSXEntity() {
9109 var ch, str = '', start = index, count = 0, code;

Callers 1

advanceFunction · 0.85

Calls 1

isJSXIdentifierPartFunction · 0.85

Tested by

no test coverage detected