moveThroughWhitespace method
Walk the parser forward through any whitespace.
Set multiLine
true
to support multiline, otherwise it will stop before
the line feed $lf.
Implementation
int moveThroughWhitespace({bool multiLine = false}) {
var i = 0;
while (!isDone) {
final char = charAt();
if (char != $space &&
char != $tab &&
char != $vt &&
char != $cr &&
char != $ff &&
!(multiLine == true && char == $lf)) {
return i;
}
i++;
advance();
}
return i;
}