MCPcopy Index your code
hub / github.com/RubyLouvre/anu / createCharacter

Function createCharacter

test/babel.js:57980–57995  ·  view source on GitHub ↗
(matches)

Source from the content-addressed store, hash-verified

57978 }
57979
57980 function createCharacter(matches) {
57981 var _char = matches[0];
57982 var first = _char.charCodeAt(0);
57983 if (hasUnicodeFlag) {
57984 var second;
57985 if (_char.length === 1 && first >= 0xD800 && first <= 0xDBFF) {
57986 second = lookahead().charCodeAt(0);
57987 if (second >= 0xDC00 && second <= 0xDFFF) {
57988 // Unicode surrogate pair
57989 pos++;
57990 return createValue('symbol', (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000, pos - 2, pos);
57991 }
57992 }
57993 }
57994 return createValue('symbol', first, pos - 1, pos);
57995 }
57996
57997 function createDisjunction(alternatives, from, to) {
57998 return addRaw({

Callers 4

parseAtomFunction · 0.85
parseDecimalEscapeFunction · 0.85
parseClassAtomFunction · 0.85
parseClassAtomNoDashFunction · 0.85

Calls 2

lookaheadFunction · 0.85
createValueFunction · 0.85

Tested by

no test coverage detected