@Nullable
  private Type getPrimitiveOrVoidType(String typeStr) {
    switch (typeStr) {
      case "byte":
        return getSymtab().byteType;
      case "short":
        return getSymtab().shortType;
      case "int":
        return getSymtab().intType;
      case "long":
        return getSymtab().longType;
      case "float":
        return getSymtab().floatType;
      case "double":
        return getSymtab().doubleType;
      case "boolean":
        return getSymtab().booleanType;
      case "char":
        return getSymtab().charType;
      case "void":
        return getSymtab().voidType;
      default:
        return null;
    }
  }
@ Nullable private Type getPrimitiveOrVoidType ( String typeStr ) { switch ( typeStr ) { case "byte" : return getSymtab ( ) . byteType ; case "short" : return getSymtab ( ) . shortType ; case "int" : return getSymtab ( ) . intType ; case "long" : return getSymtab ( ) . longType ; case "float" : return getSymtab ( ) . floatType ; case "double" : return getSymtab ( ) . doubleType ; case "boolean" : return getSymtab ( ) . booleanType ; case "char" : return getSymtab ( ) . charType ; case "void" : return getSymtab ( ) . voidType ; default : return null ; } }
Given a string that represents a type, if it's a primitive type (e.g., "int") or "void", return
the corresponding Type, or null otherwise.