MCPcopy Create free account
hub / github.com/node-inspector/node-inspector / handle_slash

Function handle_slash

front-end/UglifyJS/parse-js.js:480–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478 };
479
480 function handle_slash() {
481 next();
482 var regex_allowed = S.regex_allowed;
483 switch (peek()) {
484 case "/":
485 S.comments_before.push(read_line_comment());
486 S.regex_allowed = regex_allowed;
487 return next_token();
488 case "*":
489 S.comments_before.push(read_multiline_comment());
490 S.regex_allowed = regex_allowed;
491 return next_token();
492 }
493 return S.regex_allowed ? read_regexp() : read_operator("/");
494 };
495
496 function handle_dot() {
497 next();

Callers 1

next_tokenFunction · 0.85

Calls 7

nextFunction · 0.85
peekFunction · 0.85
read_line_commentFunction · 0.85
next_tokenFunction · 0.85
read_multiline_commentFunction · 0.85
read_regexpFunction · 0.85
read_operatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…