matchforEach method

bool matchforEach()

Implementation

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