MCPcopy Create free account
hub / github.com/dchester/jsonpath / getIdentifier

Function getIdentifier

jsonpath.js:582–601  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

580 }
581
582 function getIdentifier() {
583 var start, ch;
584
585 start = index++;
586 while (index < length) {
587 ch = source.charCodeAt(index);
588 if (ch === 0x5C) {
589 // Blackslash (U+005C) marks Unicode escape sequence.
590 index = start;
591 return getEscapedIdentifier();
592 }
593 if (isIdentifierPart(ch)) {
594 ++index;
595 } else {
596 break;
597 }
598 }
599
600 return source.slice(start, index);
601 }
602
603 function scanIdentifier() {
604 var start, id, type;

Callers 1

scanIdentifierFunction · 0.85

Calls 2

getEscapedIdentifierFunction · 0.85
isIdentifierPartFunction · 0.85

Tested by

no test coverage detected