Source file
src/debug/dwarf/tag_string.go
1
2
3 package dwarf
4
5 import "strconv"
6
7 func _() {
8
9
10 var x [1]struct{}
11 _ = x[TagArrayType-1]
12 _ = x[TagClassType-2]
13 _ = x[TagEntryPoint-3]
14 _ = x[TagEnumerationType-4]
15 _ = x[TagFormalParameter-5]
16 _ = x[TagImportedDeclaration-8]
17 _ = x[TagLabel-10]
18 _ = x[TagLexDwarfBlock-11]
19 _ = x[TagMember-13]
20 _ = x[TagPointerType-15]
21 _ = x[TagReferenceType-16]
22 _ = x[TagCompileUnit-17]
23 _ = x[TagStringType-18]
24 _ = x[TagStructType-19]
25 _ = x[TagSubroutineType-21]
26 _ = x[TagTypedef-22]
27 _ = x[TagUnionType-23]
28 _ = x[TagUnspecifiedParameters-24]
29 _ = x[TagVariant-25]
30 _ = x[TagCommonDwarfBlock-26]
31 _ = x[TagCommonInclusion-27]
32 _ = x[TagInheritance-28]
33 _ = x[TagInlinedSubroutine-29]
34 _ = x[TagModule-30]
35 _ = x[TagPtrToMemberType-31]
36 _ = x[TagSetType-32]
37 _ = x[TagSubrangeType-33]
38 _ = x[TagWithStmt-34]
39 _ = x[TagAccessDeclaration-35]
40 _ = x[TagBaseType-36]
41 _ = x[TagCatchDwarfBlock-37]
42 _ = x[TagConstType-38]
43 _ = x[TagConstant-39]
44 _ = x[TagEnumerator-40]
45 _ = x[TagFileType-41]
46 _ = x[TagFriend-42]
47 _ = x[TagNamelist-43]
48 _ = x[TagNamelistItem-44]
49 _ = x[TagPackedType-45]
50 _ = x[TagSubprogram-46]
51 _ = x[TagTemplateTypeParameter-47]
52 _ = x[TagTemplateValueParameter-48]
53 _ = x[TagThrownType-49]
54 _ = x[TagTryDwarfBlock-50]
55 _ = x[TagVariantPart-51]
56 _ = x[TagVariable-52]
57 _ = x[TagVolatileType-53]
58 _ = x[TagDwarfProcedure-54]
59 _ = x[TagRestrictType-55]
60 _ = x[TagInterfaceType-56]
61 _ = x[TagNamespace-57]
62 _ = x[TagImportedModule-58]
63 _ = x[TagUnspecifiedType-59]
64 _ = x[TagPartialUnit-60]
65 _ = x[TagImportedUnit-61]
66 _ = x[TagMutableType-62]
67 _ = x[TagCondition-63]
68 _ = x[TagSharedType-64]
69 _ = x[TagTypeUnit-65]
70 _ = x[TagRvalueReferenceType-66]
71 _ = x[TagTemplateAlias-67]
72 _ = x[TagCoarrayType-68]
73 _ = x[TagGenericSubrange-69]
74 _ = x[TagDynamicType-70]
75 _ = x[TagAtomicType-71]
76 _ = x[TagCallSite-72]
77 _ = x[TagCallSiteParameter-73]
78 _ = x[TagSkeletonUnit-74]
79 _ = x[TagImmutableType-75]
80 }
81
82 const (
83 _Tag_name_0 = "ArrayTypeClassTypeEntryPointEnumerationTypeFormalParameter"
84 _Tag_name_1 = "ImportedDeclaration"
85 _Tag_name_2 = "LabelLexDwarfBlock"
86 _Tag_name_3 = "Member"
87 _Tag_name_4 = "PointerTypeReferenceTypeCompileUnitStringTypeStructType"
88 _Tag_name_5 = "SubroutineTypeTypedefUnionTypeUnspecifiedParametersVariantCommonDwarfBlockCommonInclusionInheritanceInlinedSubroutineModulePtrToMemberTypeSetTypeSubrangeTypeWithStmtAccessDeclarationBaseTypeCatchDwarfBlockConstTypeConstantEnumeratorFileTypeFriendNamelistNamelistItemPackedTypeSubprogramTemplateTypeParameterTemplateValueParameterThrownTypeTryDwarfBlockVariantPartVariableVolatileTypeDwarfProcedureRestrictTypeInterfaceTypeNamespaceImportedModuleUnspecifiedTypePartialUnitImportedUnitMutableTypeConditionSharedTypeTypeUnitRvalueReferenceTypeTemplateAliasCoarrayTypeGenericSubrangeDynamicTypeAtomicTypeCallSiteCallSiteParameterSkeletonUnitImmutableType"
89 )
90
91 var (
92 _Tag_index_0 = [...]uint8{0, 9, 18, 28, 43, 58}
93 _Tag_index_2 = [...]uint8{0, 5, 18}
94 _Tag_index_4 = [...]uint8{0, 11, 24, 35, 45, 55}
95 _Tag_index_5 = [...]uint16{0, 14, 21, 30, 51, 58, 74, 89, 100, 117, 123, 138, 145, 157, 165, 182, 190, 205, 214, 222, 232, 240, 246, 254, 266, 276, 286, 307, 329, 339, 352, 363, 371, 383, 397, 409, 422, 431, 445, 460, 471, 483, 494, 503, 513, 521, 540, 553, 564, 579, 590, 600, 608, 625, 637, 650}
96 )
97
98 func (i Tag) String() string {
99 switch {
100 case 1 <= i && i <= 5:
101 i -= 1
102 return _Tag_name_0[_Tag_index_0[i]:_Tag_index_0[i+1]]
103 case i == 8:
104 return _Tag_name_1
105 case 10 <= i && i <= 11:
106 i -= 10
107 return _Tag_name_2[_Tag_index_2[i]:_Tag_index_2[i+1]]
108 case i == 13:
109 return _Tag_name_3
110 case 15 <= i && i <= 19:
111 i -= 15
112 return _Tag_name_4[_Tag_index_4[i]:_Tag_index_4[i+1]]
113 case 21 <= i && i <= 75:
114 i -= 21
115 return _Tag_name_5[_Tag_index_5[i]:_Tag_index_5[i+1]]
116 default:
117 return "Tag(" + strconv.FormatInt(int64(i), 10) + ")"
118 }
119 }
120
View as plain text