MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / getIdentifier

Function getIdentifier

scripts/libs/esprima.js:617–636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

615 }
616
617 function getIdentifier() {
618 var start, ch;
619
620 start = index++;
621 while (index < length) {
622 ch = source.charCodeAt(index);
623 if (ch === 0x5C) {
624 // Blackslash (U+005C) marks Unicode escape sequence.
625 index = start;
626 return getEscapedIdentifier();
627 }
628 if (isIdentifierPart(ch)) {
629 ++index;
630 } else {
631 break;
632 }
633 }
634
635 return source.slice(start, index);
636 }
637
638 function scanIdentifier() {
639 var start, id, type;

Callers 1

scanIdentifierFunction · 0.85

Calls 2

getEscapedIdentifierFunction · 0.85
isIdentifierPartFunction · 0.85

Tested by

no test coverage detected