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

Function parseClassAtomNoDash

test/babel.js:58669–58685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58667 }
58668
58669 function parseClassAtomNoDash() {
58670 // ClassAtomNoDash ::
58671 // SourceCharacter but not one of \ or ] or -
58672 // \ ClassEscape
58673
58674 var res;
58675 if (res = matchReg(/^[^\\\]-]/)) {
58676 return createCharacter(res[0]);
58677 } else if (match('\\')) {
58678 res = parseClassEscape();
58679 if (!res) {
58680 bail('classEscape');
58681 }
58682
58683 return parseUnicodeSurrogatePairEscape(res);
58684 }
58685 }
58686
58687 function bail(message, details, from, to) {
58688 from = from == null ? pos : from;

Callers 1

parseClassAtomFunction · 0.85

Calls 6

matchRegFunction · 0.85
createCharacterFunction · 0.85
parseClassEscapeFunction · 0.85
bailFunction · 0.85
matchFunction · 0.70

Tested by

no test coverage detected