MCPcopy
hub / github.com/mishoo/UglifyJS-old / read_operator

Function read_operator

lib/parse-js.js:543–555  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

541 };
542
543 function read_operator(prefix) {
544 function grow(op) {
545 if (!peek()) return op;
546 var bigger = op + peek();
547 if (HOP(OPERATORS, bigger)) {
548 next();
549 return grow(bigger);
550 } else {
551 return op;
552 }
553 };
554 return token("operator", grow(prefix || next()));
555 };
556
557 function handle_slash() {
558 next();

Callers 2

handle_slashFunction · 0.85
next_tokenFunction · 0.85

Calls 3

tokenFunction · 0.85
growFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected