MCPcopy Create free account
hub / github.com/nodejs/node / peekExtendedUnicodeEscape

Function peekExtendedUnicodeEscape

test/fixtures/snapshot/typescript.js:11301–11311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11299 return -1;
11300 }
11301 function peekExtendedUnicodeEscape() {
11302 if (languageVersion >= 2 /* ScriptTarget.ES2015 */ && codePointAt(text, pos + 1) === 117 /* CharacterCodes.u */ && codePointAt(text, pos + 2) === 123 /* CharacterCodes.openBrace */) {
11303 var start_2 = pos;
11304 pos += 3;
11305 var escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false);
11306 var escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;
11307 pos = start_2;
11308 return escapedValue;
11309 }
11310 return -1;
11311 }
11312 function scanIdentifierParts() {
11313 var result = "";
11314 var start = pos;

Callers 3

scanIdentifierPartsFunction · 0.85
scanFunction · 0.85
scanJsDocTokenFunction · 0.85

Calls 1

Tested by

no test coverage detected