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

Function read_while

lib/parse-js.js:357–364  ·  view source on GitHub ↗
(pred)

Source from the content-addressed store, hash-verified

355 };
356
357 function read_while(pred) {
358 var ret = "", ch = peek(), i = 0;
359 while (ch && pred(ch, i++)) {
360 ret += next();
361 ch = peek();
362 }
363 return ret;
364 };
365
366 function parse_error(err) {
367 js_error(err, S.tokline, S.tokcol, S.tokpos);

Callers 2

read_numFunction · 0.85
read_stringFunction · 0.85

Calls 2

peekFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected