public static Cons idlTranslateUnit(TranslationUnit unit) {
    { Symbol testValue000 = unit.category;

      if (testValue000 == Stella.SYM_STELLA_GLOBAL_VARIABLE) {
        return (null);
      }
      else if (testValue000 == Stella.SYM_STELLA_TYPE) {
        return (TranslationUnit.idlTranslateDeftypeUnit(unit));
      }
      else if (testValue000 == Stella.SYM_STELLA_CLASS) {
        return (TranslationUnit.idlTranslateDefineNativeClassUnit(unit));
      }
      else if ((testValue000 == Stella.SYM_STELLA_METHOD) ||
          (testValue000 == Stella.SYM_STELLA_MACRO)) {
        return (null);
      }
      else if (testValue000 == Stella.SYM_STELLA_PRINT_METHOD) {
        return (null);
      }
      else if ((testValue000 == Stella.SYM_STELLA_STARTUP_TIME_PROGN) ||
          (testValue000 == Stella.SYM_STELLA_VERBATIM)) {
        return (null);
      }
      else {
        { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

          stream000.nativeStream.print("`" + testValue000 + "' is not a valid case option");
          throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
        }
      }
    }
  }