consumeName method
Implementation
void consumeName(String name) {
if (token!.type != Token.NAME || token!.text != name) {
fail(expected: name);
}
next();
}
void consumeName(String name) {
if (token!.type != Token.NAME || token!.text != name) {
fail(expected: name);
}
next();
}