code: JCExpression illegal(int pos) {
          setErrorEndPos(pos);
          if ((mode & EXPR) != 0)
              return syntaxError(pos, "illegal.start.of.expr");
          else
              return syntaxError(pos, "illegal.start.of.type");
  
      }
docs: Report an illegal start of expression/type error at given position.