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

Function read_while

front-end/UglifyJS/parse-js.js:327–334  ·  view source on GitHub ↗
(pred)

Source from the content-addressed store, hash-verified

325 };
326
327 function read_while(pred) {
328 var ret = "", ch = peek(), i = 0;
329 while (ch && pred(ch, i++)) {
330 ret += next();
331 ch = peek();
332 }
333 return ret;
334 };
335
336 function parse_error(err) {
337 js_error(err, S.tokline, S.tokcol, S.tokpos);

Callers 3

read_numFunction · 0.85
read_regexpFunction · 0.85
read_wordFunction · 0.85

Calls 2

peekFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…