MCPcopy Create free account
hub / github.com/microsoft/SandDance / getIdentifier

Function getIdentifier

docs/app/js/sanddance-app.js:143601–143615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143599 return id;
143600}
143601function getIdentifier() {
143602 var start, ch;
143603 start = index++;
143604 while(index < length){
143605 ch = source.charCodeAt(index);
143606 if (ch === 0x5C) {
143607 // Blackslash (U+005C) marks Unicode escape sequence.
143608 index = start;
143609 return getEscapedIdentifier();
143610 }
143611 if (isIdentifierPart(ch)) ++index;
143612 else break;
143613 }
143614 return source.slice(start, index);
143615}
143616function scanIdentifier() {
143617 var start, id, type;
143618 start = index; // Backslash (U+005C) starts an escaped character.

Callers 1

scanIdentifierFunction · 0.70

Calls 2

getEscapedIdentifierFunction · 0.70
isIdentifierPartFunction · 0.70

Tested by

no test coverage detected