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

Function next

lib/parse-js.js:297–309  ·  view source on GitHub ↗
(signal_eof, in_string)

Source from the content-addressed store, hash-verified

295 function peek() { return S.text.charAt(S.pos); };
296
297 function next(signal_eof, in_string) {
298 var ch = S.text.charAt(S.pos++);
299 if (signal_eof && !ch)
300 throw EX_EOF;
301 if (ch == "\n") {
302 S.newline_before = S.newline_before || !in_string;
303 ++S.line;
304 S.col = 0;
305 } else {
306 ++S.col;
307 }
308 return ch;
309 };
310
311 function eof() {
312 return !S.peek();

Callers 15

skip_whitespaceFunction · 0.85
read_whileFunction · 0.85
read_escaped_charFunction · 0.85
hex_bytesFunction · 0.85
read_stringFunction · 0.85
read_line_commentFunction · 0.85
read_multiline_commentFunction · 0.85
read_nameFunction · 0.85
read_regexpFunction · 0.85
growFunction · 0.85
read_operatorFunction · 0.85
handle_slashFunction · 0.85

Calls 1

isFunction · 0.85

Tested by

no test coverage detected