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

Function getIdentifier

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

Source from the content-addressed store, hash-verified

3021 }
3022
3023 function getIdentifier() {
3024 var start, ch;
3025
3026 start = index++;
3027 while (index < length) {
3028 ch = source.charCodeAt(index);
3029 if (ch === 92) {
3030 // Blackslash (char #92) marks Unicode escape sequence.
3031 index = start;
3032 return getEscapedIdentifier();
3033 }
3034 if (isIdentifierPart(ch)) {
3035 ++index;
3036 } else {
3037 break;
3038 }
3039 }
3040
3041 return source.slice(start, index);
3042 }
3043
3044 function scanIdentifier() {
3045 var start, id, type;

Callers 1

scanIdentifierFunction · 0.85

Calls 2

getEscapedIdentifierFunction · 0.85
isIdentifierPartFunction · 0.85

Tested by

no test coverage detected