matchforEach method
Implementation
bool matchforEach() {
var currentSnap = current;
bool isMatch = false;
arrayOrMap();
if (match([TokenType.DOT])) {
if (check(TokenType.FOREACH)) {
isMatch = true;
}
}
current = currentSnap;
return isMatch;
}