private static string GetLanguageKind(DwarfLanguageKind kind) { var rawKind = (uint)kind; switch (rawKind) { case DwarfNative.DW_LANG_C89: return("(ANSI C)"); case DwarfNative.DW_LANG_C: return("(non-ANSI C)"); case DwarfNative.DW_LANG_Ada83: return("(Ada)"); case DwarfNative.DW_LANG_C_plus_plus: return("(C++)"); case DwarfNative.DW_LANG_Cobol74: return("(Cobol 74)"); case DwarfNative.DW_LANG_Cobol85: return("(Cobol 85)"); case DwarfNative.DW_LANG_Fortran77: return("(FORTRAN 77)"); case DwarfNative.DW_LANG_Fortran90: return("(Fortran 90)"); case DwarfNative.DW_LANG_Pascal83: return("(ANSI Pascal)"); case DwarfNative.DW_LANG_Modula2: return("(Modula 2)"); // DWARF 2.1 case DwarfNative.DW_LANG_Java: return("(Java)"); case DwarfNative.DW_LANG_C99: return("(ANSI C99)"); case DwarfNative.DW_LANG_Ada95: return("(ADA 95)"); case DwarfNative.DW_LANG_Fortran95: return("(Fortran 95)"); // DWARF 3 case DwarfNative.DW_LANG_PLI: return("(PLI)"); case DwarfNative.DW_LANG_ObjC: return("(Objective C)"); case DwarfNative.DW_LANG_ObjC_plus_plus: return("(Objective C++)"); case DwarfNative.DW_LANG_UPC: return("(Unified Parallel C)"); case DwarfNative.DW_LANG_D: return("(D)"); // DWARF 4 case DwarfNative.DW_LANG_Python: return("(Python)"); // DWARF 5 case DwarfNative.DW_LANG_OpenCL: return("(OpenCL)"); case DwarfNative.DW_LANG_Go: return("(Go)"); case DwarfNative.DW_LANG_Modula3: return("(Modula 3)"); case DwarfNative.DW_LANG_Haskel: return("(Haskell)"); case DwarfNative.DW_LANG_C_plus_plus_03: return("(C++03)"); case DwarfNative.DW_LANG_C_plus_plus_11: return("(C++11)"); case DwarfNative.DW_LANG_OCaml: return("(OCaml)"); case DwarfNative.DW_LANG_Rust: return("(Rust)"); case DwarfNative.DW_LANG_C11: return("(C11)"); case DwarfNative.DW_LANG_Swift: return("(Swift)"); case DwarfNative.DW_LANG_Julia: return("(Julia)"); case DwarfNative.DW_LANG_Dylan: return("(Dylan)"); case DwarfNative.DW_LANG_C_plus_plus_14: return("(C++14)"); case DwarfNative.DW_LANG_Fortran03: return("(Fortran 03)"); case DwarfNative.DW_LANG_Fortran08: return("(Fortran 08)"); case DwarfNative.DW_LANG_RenderScript: return("(RenderScript)"); case DwarfNative.DW_LANG_Mips_Assembler: return("(MIPS assembler)"); case DwarfNative.DW_LANG_Upc: return("(Unified Parallel C)"); default: if (rawKind >= DwarfNative.DW_LANG_lo_user && rawKind <= DwarfNative.DW_LANG_hi_user) { return($"(implementation defined: {rawKind:x})"); } break; } return($"(Unknown: {rawKind:x})"); }
public DwarfLanguageKindEx(DwarfLanguageKind value) { Value = value; }