/
memorykind_string.go
118 lines (112 loc) Β· 5.66 KB
/
memorykind_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Code generated by "stringer -type=MemoryKind -trimprefix=MemoryKind"; DO NOT EDIT.
package common
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MemoryKindUnknown-0]
_ = x[MemoryKindBool-1]
_ = x[MemoryKindAddress-2]
_ = x[MemoryKindString-3]
_ = x[MemoryKindCharacter-4]
_ = x[MemoryKindMetaType-5]
_ = x[MemoryKindNumber-6]
_ = x[MemoryKindArrayBase-7]
_ = x[MemoryKindArrayLength-8]
_ = x[MemoryKindDictionaryBase-9]
_ = x[MemoryKindDictionarySize-10]
_ = x[MemoryKindCompositeBase-11]
_ = x[MemoryKindCompositeSize-12]
_ = x[MemoryKindOptional-13]
_ = x[MemoryKindNil-14]
_ = x[MemoryKindVoid-15]
_ = x[MemoryKindTypeValue-16]
_ = x[MemoryKindPathValue-17]
_ = x[MemoryKindCapabilityValue-18]
_ = x[MemoryKindLinkValue-19]
_ = x[MemoryKindStorageReferenceValue-20]
_ = x[MemoryKindEphemeralReferenceValue-21]
_ = x[MemoryKindInterpretedFunction-22]
_ = x[MemoryKindHostFunction-23]
_ = x[MemoryKindBoundFunction-24]
_ = x[MemoryKindBigInt-25]
_ = x[MemoryKindRawString-26]
_ = x[MemoryKindAddressLocation-27]
_ = x[MemoryKindBytes-28]
_ = x[MemoryKindVariable-29]
_ = x[MemoryKindTokenIdentifier-30]
_ = x[MemoryKindTokenComment-31]
_ = x[MemoryKindTokenNumericLiteral-32]
_ = x[MemoryKindTokenSyntax-33]
_ = x[MemoryKindProgram-34]
_ = x[MemoryKindIdentifier-35]
_ = x[MemoryKindArgument-36]
_ = x[MemoryKindBlock-37]
_ = x[MemoryKindFunctionBlock-38]
_ = x[MemoryKindParameter-39]
_ = x[MemoryKindParameterList-40]
_ = x[MemoryKindTransfer-41]
_ = x[MemoryKindMembers-42]
_ = x[MemoryKindTypeAnnotation-43]
_ = x[MemoryKindFunctionDeclaration-44]
_ = x[MemoryKindCompositeDeclaration-45]
_ = x[MemoryKindInterfaceDeclaration-46]
_ = x[MemoryKindEnumCaseDeclaration-47]
_ = x[MemoryKindFieldDeclaration-48]
_ = x[MemoryKindTransactionDeclaration-49]
_ = x[MemoryKindImportDeclaration-50]
_ = x[MemoryKindVariableDeclaration-51]
_ = x[MemoryKindSpecialFunctionDeclaration-52]
_ = x[MemoryKindPragmaDeclaration-53]
_ = x[MemoryKindAssignmentStatement-54]
_ = x[MemoryKindBreakStatement-55]
_ = x[MemoryKindContinueStatement-56]
_ = x[MemoryKindEmitStatement-57]
_ = x[MemoryKindExpressionStatement-58]
_ = x[MemoryKindForStatement-59]
_ = x[MemoryKindIfStatement-60]
_ = x[MemoryKindReturnStatement-61]
_ = x[MemoryKindSwapStatement-62]
_ = x[MemoryKindSwitchStatement-63]
_ = x[MemoryKindWhileStatement-64]
_ = x[MemoryKindBooleanExpression-65]
_ = x[MemoryKindNilExpression-66]
_ = x[MemoryKindStringExpression-67]
_ = x[MemoryKindIntegerExpression-68]
_ = x[MemoryKindFixedPointExpression-69]
_ = x[MemoryKindArrayExpression-70]
_ = x[MemoryKindDictionaryExpression-71]
_ = x[MemoryKindIdentifierExpression-72]
_ = x[MemoryKindInvocationExpression-73]
_ = x[MemoryKindMemberExpression-74]
_ = x[MemoryKindIndexExpression-75]
_ = x[MemoryKindConditionalExpression-76]
_ = x[MemoryKindUnaryExpression-77]
_ = x[MemoryKindBinaryExpression-78]
_ = x[MemoryKindFunctionExpression-79]
_ = x[MemoryKindCastingExpression-80]
_ = x[MemoryKindCreateExpression-81]
_ = x[MemoryKindDestroyExpression-82]
_ = x[MemoryKindReferenceExpression-83]
_ = x[MemoryKindForceExpression-84]
_ = x[MemoryKindPathExpression-85]
_ = x[MemoryKindConstantSizedType-86]
_ = x[MemoryKindDictionaryType-87]
_ = x[MemoryKindFunctionType-88]
_ = x[MemoryKindInstantiationType-89]
_ = x[MemoryKindNominalType-90]
_ = x[MemoryKindOptionalType-91]
_ = x[MemoryKindReferenceType-92]
_ = x[MemoryKindRestrictedType-93]
_ = x[MemoryKindVariableSizedType-94]
_ = x[MemoryKindLast-95]
}
const _MemoryKind_name = "UnknownBoolAddressStringCharacterMetaTypeNumberArrayBaseArrayLengthDictionaryBaseDictionarySizeCompositeBaseCompositeSizeOptionalNilVoidTypeValuePathValueCapabilityValueLinkValueStorageReferenceValueEphemeralReferenceValueInterpretedFunctionHostFunctionBoundFunctionBigIntRawStringAddressLocationBytesVariableTokenIdentifierTokenCommentTokenNumericLiteralTokenSyntaxProgramIdentifierArgumentBlockFunctionBlockParameterParameterListTransferMembersTypeAnnotationFunctionDeclarationCompositeDeclarationInterfaceDeclarationEnumCaseDeclarationFieldDeclarationTransactionDeclarationImportDeclarationVariableDeclarationSpecialFunctionDeclarationPragmaDeclarationAssignmentStatementBreakStatementContinueStatementEmitStatementExpressionStatementForStatementIfStatementReturnStatementSwapStatementSwitchStatementWhileStatementBooleanExpressionNilExpressionStringExpressionIntegerExpressionFixedPointExpressionArrayExpressionDictionaryExpressionIdentifierExpressionInvocationExpressionMemberExpressionIndexExpressionConditionalExpressionUnaryExpressionBinaryExpressionFunctionExpressionCastingExpressionCreateExpressionDestroyExpressionReferenceExpressionForceExpressionPathExpressionConstantSizedTypeDictionaryTypeFunctionTypeInstantiationTypeNominalTypeOptionalTypeReferenceTypeRestrictedTypeVariableSizedTypeLast"
var _MemoryKind_index = [...]uint16{0, 7, 11, 18, 24, 33, 41, 47, 56, 67, 81, 95, 108, 121, 129, 132, 136, 145, 154, 169, 178, 199, 222, 241, 253, 266, 272, 281, 296, 301, 309, 324, 336, 355, 366, 373, 383, 391, 396, 409, 418, 431, 439, 446, 460, 479, 499, 519, 538, 554, 576, 593, 612, 638, 655, 674, 688, 705, 718, 737, 749, 760, 775, 788, 803, 817, 834, 847, 863, 880, 900, 915, 935, 955, 975, 991, 1006, 1027, 1042, 1058, 1076, 1093, 1109, 1126, 1145, 1160, 1174, 1191, 1205, 1217, 1234, 1245, 1257, 1270, 1284, 1301, 1305}
func (i MemoryKind) String() string {
if i >= MemoryKind(len(_MemoryKind_index)-1) {
return "MemoryKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _MemoryKind_name[_MemoryKind_index[i]:_MemoryKind_index[i+1]]
}