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

Function scanRegExp

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

Source from the content-addressed store, hash-verified

143951 };
143952}
143953function scanRegExp() {
143954 var start, body, flags, value;
143955 lookahead = null;
143956 skipComment();
143957 start = index;
143958 body = scanRegExpBody();
143959 flags = scanRegExpFlags();
143960 value = testRegExp(body.value, flags.value);
143961 return {
143962 literal: body.literal + flags.literal,
143963 value: value,
143964 regex: {
143965 pattern: body.value,
143966 flags: flags.value
143967 },
143968 start: start,
143969 end: index
143970 };
143971}
143972function isIdentifierName(token) {
143973 return token.type === TokenIdentifier || token.type === TokenKeyword || token.type === TokenBooleanLiteral || token.type === TokenNullLiteral;
143974}

Callers 1

parsePrimaryExpressionFunction · 0.70

Calls 4

skipCommentFunction · 0.70
scanRegExpBodyFunction · 0.70
scanRegExpFlagsFunction · 0.70
testRegExpFunction · 0.70

Tested by

no test coverage detected