consumeSemicolon method
void
consumeSemicolon()
Consume a semicolon, or if a line-break was here, just pretend there was one here.
Implementation
void consumeSemicolon() {
if (token!.type == Token.SEMICOLON) {
next();
return;
}
if (token!.afterLinebreak! ||
token!.type == Token.RBRACE ||
token!.type == Token.EOF) {
return;
}
fail(expected: 'semicolon');
}