@powerlines/deepkit 0.6.167 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/bin/deepkit-install.cjs +55 -90
  2. package/dist/capnp-BLx1WTBU.cjs +5175 -0
  3. package/dist/capnp-BiGNkOmV.mjs +4905 -0
  4. package/dist/capnp.cjs +47 -186
  5. package/dist/capnp.d.cts +78 -77
  6. package/dist/{capnp.d.ts → capnp.d.mts} +78 -77
  7. package/dist/capnp.mjs +3 -0
  8. package/dist/chunk-C0xms8kb.cjs +34 -0
  9. package/dist/esbuild-plugin.cjs +47 -11
  10. package/dist/esbuild-plugin.d.cts +20 -18
  11. package/dist/esbuild-plugin.d.mts +35 -0
  12. package/dist/esbuild-plugin.mjs +48 -0
  13. package/dist/index.cjs +69 -250
  14. package/dist/index.d.cts +10 -19
  15. package/dist/index.d.mts +10 -0
  16. package/dist/index.mjs +11 -0
  17. package/dist/reflect-type.cjs +24 -12
  18. package/dist/reflect-type.d.cts +7 -5
  19. package/dist/{reflect-type.d.ts → reflect-type.d.mts} +7 -5
  20. package/dist/reflect-type.mjs +24 -0
  21. package/dist/{reflection-9KUpjPqV.d.cts → reflection-BwdnCwaK.d.cts} +11 -17
  22. package/dist/{reflection-9KUpjPqV.d.ts → reflection-D9R8cdSo.d.mts} +26 -32
  23. package/dist/resolve-reflections.cjs +15 -9
  24. package/dist/resolve-reflections.d.cts +4 -2
  25. package/dist/{resolve-reflections.d.ts → resolve-reflections.d.mts} +4 -2
  26. package/dist/resolve-reflections.mjs +16 -0
  27. package/dist/rolldown-plugin.cjs +44 -11
  28. package/dist/rolldown-plugin.d.cts +5 -3
  29. package/dist/{rolldown-plugin.d.ts → rolldown-plugin.d.mts} +5 -3
  30. package/dist/rolldown-plugin.mjs +45 -0
  31. package/dist/transformer.cjs +52 -13
  32. package/dist/transformer.d.cts +6 -4
  33. package/dist/{transformer.d.ts → transformer.d.mts} +6 -4
  34. package/dist/transformer.mjs +51 -0
  35. package/dist/transpile.cjs +29 -10
  36. package/dist/transpile.d.cts +6 -4
  37. package/dist/{transpile.d.ts → transpile.d.mts} +6 -4
  38. package/dist/transpile.mjs +29 -0
  39. package/dist/types.cjs +0 -4
  40. package/dist/types.d.cts +9 -9
  41. package/dist/{types.d.ts → types.d.mts} +9 -9
  42. package/dist/types.mjs +1 -0
  43. package/dist/utilities.cjs +116 -33
  44. package/dist/utilities.d.cts +4 -2
  45. package/dist/{utilities.d.ts → utilities.d.mts} +4 -2
  46. package/dist/utilities.mjs +111 -0
  47. package/dist/vendor/core.cjs +1240 -513
  48. package/dist/vendor/core.mjs +1116 -0
  49. package/dist/vendor/string-BoXo0wS7.cjs +2983 -0
  50. package/dist/vendor/string-BuMgdahD.mjs +2467 -0
  51. package/dist/vendor/type-BMLjRtLY.cjs +202 -0
  52. package/dist/vendor/type-Dgeqs-rL.mjs +190 -0
  53. package/dist/vendor/type-compiler/compiler-BUrWMhGi.cjs +6792 -0
  54. package/dist/vendor/type-compiler/compiler-Bg8jX6qU.mjs +6739 -0
  55. package/dist/vendor/type-compiler/compiler-D1z5h1MK.d.cts +578 -0
  56. package/dist/vendor/type-compiler/compiler-Nkxc4PLJ.d.mts +578 -0
  57. package/dist/vendor/type-compiler/compiler.cjs +11 -43
  58. package/dist/vendor/type-compiler/compiler.d.cts +2 -3
  59. package/dist/vendor/type-compiler/compiler.d.mts +2 -0
  60. package/dist/vendor/type-compiler/compiler.mjs +3 -0
  61. package/dist/vendor/type-compiler/config-BEX924PC.cjs +3709 -0
  62. package/dist/vendor/type-compiler/config-B_cKkYZm.d.cts +116 -0
  63. package/dist/vendor/type-compiler/config-D9DM7Du_.d.mts +116 -0
  64. package/dist/vendor/type-compiler/config-y0HNkbCH.mjs +3640 -0
  65. package/dist/vendor/type-compiler/config.cjs +9 -34
  66. package/dist/vendor/type-compiler/config.d.cts +2 -1
  67. package/dist/vendor/type-compiler/config.d.mts +2 -0
  68. package/dist/vendor/type-compiler/config.mjs +3 -0
  69. package/dist/vendor/type-compiler/index.cjs +56 -129
  70. package/dist/vendor/type-compiler/index.d.cts +22 -3
  71. package/dist/vendor/type-compiler/index.d.mts +22 -0
  72. package/dist/vendor/type-compiler/index.mjs +50 -0
  73. package/dist/vendor/type-spec.cjs +11 -12
  74. package/dist/vendor/type-spec.mjs +3 -0
  75. package/dist/vendor/type.cjs +8407 -17892
  76. package/dist/vendor/type.d.cts +10 -196
  77. package/dist/vendor/{type.d.ts → type.d.mts} +10 -196
  78. package/dist/vendor/type.mjs +9109 -0
  79. package/package.json +43 -31
  80. package/schemas/reflection.cjs +4018 -4129
  81. package/schemas/reflection.d.cts +30 -38
  82. package/schemas/{reflection.d.ts → reflection.d.mts} +30 -38
  83. package/schemas/reflection.mjs +4036 -0
  84. package/dist/capnp.js +0 -2
  85. package/dist/chunk-23YNDVRG.js +0 -34
  86. package/dist/chunk-27RKMKSF.cjs +0 -50
  87. package/dist/chunk-2XDQUCXZ.js +0 -2392
  88. package/dist/chunk-34OFD7LS.cjs +0 -68
  89. package/dist/chunk-7FXYDYVQ.cjs +0 -5246
  90. package/dist/chunk-7QZGCBH7.cjs +0 -11
  91. package/dist/chunk-ALM6UMVU.js +0 -9
  92. package/dist/chunk-BLLXF42T.cjs +0 -41
  93. package/dist/chunk-H3Q3XL3D.js +0 -19
  94. package/dist/chunk-HPVJ6OV3.cjs +0 -31
  95. package/dist/chunk-JQUKKAFM.js +0 -48
  96. package/dist/chunk-KK7TQA7L.cjs +0 -25
  97. package/dist/chunk-NPV2346T.js +0 -25
  98. package/dist/chunk-ORA4UQMU.cjs +0 -2
  99. package/dist/chunk-OUGDFUKJ.cjs +0 -2400
  100. package/dist/chunk-OULCUN6I.js +0 -1
  101. package/dist/chunk-SHUYVCID.js +0 -4
  102. package/dist/chunk-TDYIUJGY.js +0 -5180
  103. package/dist/chunk-USNT2KNT.cjs +0 -6
  104. package/dist/chunk-WYEFKIRL.js +0 -66
  105. package/dist/esbuild-plugin.d.ts +0 -33
  106. package/dist/esbuild-plugin.js +0 -4
  107. package/dist/index.d.ts +0 -19
  108. package/dist/index.js +0 -10
  109. package/dist/reflect-type.js +0 -5
  110. package/dist/resolve-reflections.js +0 -2
  111. package/dist/rolldown-plugin.js +0 -4
  112. package/dist/transformer.js +0 -2
  113. package/dist/transpile.js +0 -3
  114. package/dist/types.js +0 -1
  115. package/dist/utilities.js +0 -2
  116. package/dist/vendor/chunk-5BKT4CS5.js +0 -28
  117. package/dist/vendor/chunk-BLN7QVCP.js +0 -3704
  118. package/dist/vendor/chunk-BR2FK5K7.js +0 -109
  119. package/dist/vendor/chunk-EPQZMVJO.cjs +0 -3859
  120. package/dist/vendor/chunk-IFK6AU6M.cjs +0 -42
  121. package/dist/vendor/chunk-SHDAXCXF.cjs +0 -115
  122. package/dist/vendor/core.js +0 -2
  123. package/dist/vendor/type-compiler/chunk-3LL3TSRJ.js +0 -3762
  124. package/dist/vendor/type-compiler/chunk-CUTGHVNY.js +0 -7100
  125. package/dist/vendor/type-compiler/chunk-IAWCLVUK.cjs +0 -3780
  126. package/dist/vendor/type-compiler/chunk-UIWPG352.cjs +0 -7114
  127. package/dist/vendor/type-compiler/compiler.d.ts +0 -3
  128. package/dist/vendor/type-compiler/compiler.js +0 -5
  129. package/dist/vendor/type-compiler/config.d.ts +0 -1
  130. package/dist/vendor/type-compiler/config.js +0 -5
  131. package/dist/vendor/type-compiler/index.d.ts +0 -3
  132. package/dist/vendor/type-compiler/index.js +0 -66
  133. package/dist/vendor/type-spec.js +0 -2
  134. package/dist/vendor/type.js +0 -18359
  135. package/schemas/reflection.js +0 -4153
  136. /package/dist/vendor/{core.d.ts → core.d.mts} +0 -0
  137. /package/dist/vendor/{type-spec.d.ts → type-spec.d.mts} +0 -0
@@ -0,0 +1,202 @@
1
+
2
+ //#region ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
3
+ /**
4
+ * note: Checks are based on range checks (>, <, etc), so when adding
5
+ * new types a check is required for all code using `TypeNumberBrand`.
6
+ */
7
+ var TypeNumberBrand;
8
+ (function(TypeNumberBrand) {
9
+ TypeNumberBrand[TypeNumberBrand["integer"] = 0] = "integer";
10
+ TypeNumberBrand[TypeNumberBrand["int8"] = 1] = "int8";
11
+ TypeNumberBrand[TypeNumberBrand["int16"] = 2] = "int16";
12
+ TypeNumberBrand[TypeNumberBrand["int32"] = 3] = "int32";
13
+ TypeNumberBrand[TypeNumberBrand["uint8"] = 4] = "uint8";
14
+ TypeNumberBrand[TypeNumberBrand["uint16"] = 5] = "uint16";
15
+ TypeNumberBrand[TypeNumberBrand["uint32"] = 6] = "uint32";
16
+ TypeNumberBrand[TypeNumberBrand["float"] = 7] = "float";
17
+ TypeNumberBrand[TypeNumberBrand["float32"] = 8] = "float32";
18
+ TypeNumberBrand[TypeNumberBrand["float64"] = 9] = "float64";
19
+ })(TypeNumberBrand || (TypeNumberBrand = {}));
20
+ /**
21
+ * The instruction set.
22
+ * Should not be greater than 93 members, because we encode it via charCode starting at 33. +93 means we end up with charCode=126
23
+ * (which is '~' and the last char that can be represented without \x. The next 127 is '\x7F').
24
+ */
25
+ var ReflectionOp;
26
+ (function(ReflectionOp) {
27
+ ReflectionOp[ReflectionOp["never"] = 0] = "never";
28
+ ReflectionOp[ReflectionOp["any"] = 1] = "any";
29
+ ReflectionOp[ReflectionOp["unknown"] = 2] = "unknown";
30
+ ReflectionOp[ReflectionOp["void"] = 3] = "void";
31
+ ReflectionOp[ReflectionOp["object"] = 4] = "object";
32
+ ReflectionOp[ReflectionOp["string"] = 5] = "string";
33
+ ReflectionOp[ReflectionOp["number"] = 6] = "number";
34
+ ReflectionOp[ReflectionOp["numberBrand"] = 7] = "numberBrand";
35
+ ReflectionOp[ReflectionOp["boolean"] = 8] = "boolean";
36
+ ReflectionOp[ReflectionOp["bigint"] = 9] = "bigint";
37
+ ReflectionOp[ReflectionOp["symbol"] = 10] = "symbol";
38
+ ReflectionOp[ReflectionOp["null"] = 11] = "null";
39
+ ReflectionOp[ReflectionOp["undefined"] = 12] = "undefined";
40
+ /**
41
+ * The literal type of string, number, or boolean.
42
+ *
43
+ * This OP has 1 parameter. The next byte is the absolute address of the literal on the stack, which is the actual literal value.
44
+ *
45
+ * Pushes a function type.
46
+ */
47
+ ReflectionOp[ReflectionOp["literal"] = 13] = "literal";
48
+ /**
49
+ * This OP pops all types on the current stack frame.
50
+ *
51
+ * This OP has 1 parameter. The next byte is the absolute address of a string|number|symbol entry on the stack.
52
+ *
53
+ * Pushes a function type.
54
+ */
55
+ ReflectionOp[ReflectionOp["function"] = 14] = "function";
56
+ /**
57
+ * This OP pops all types on the current stack frame.
58
+ *
59
+ * Pushes a method type.
60
+ */
61
+ ReflectionOp[ReflectionOp["method"] = 15] = "method";
62
+ ReflectionOp[ReflectionOp["methodSignature"] = 16] = "methodSignature";
63
+ ReflectionOp[ReflectionOp["parameter"] = 17] = "parameter";
64
+ /**
65
+ * This OP pops the latest type entry on the stack.
66
+ *
67
+ * Pushes a property type.
68
+ */
69
+ ReflectionOp[ReflectionOp["property"] = 18] = "property";
70
+ ReflectionOp[ReflectionOp["propertySignature"] = 19] = "propertySignature";
71
+ /**
72
+ * This OP pops all types on the current stack frame. Those types should be method|property.
73
+ *
74
+ * Pushes a TypeClass onto the stack.
75
+ */
76
+ ReflectionOp[ReflectionOp["class"] = 20] = "class";
77
+ /**
78
+ * If a class extends another class with generics, this OP represents the generic type arguments of the super class.
79
+ *
80
+ * e.g. `class A extends B<string, boolean>`, string and boolean are on the stack and classExtends pops() them, and then assigns to A.extendsTypeArguments = [string, boolean].
81
+ *
82
+ * This is only emitted when the class that is currently being described actually extends another class and uses generics.
83
+ *
84
+ * This OP has 1 argument and pops x types from the stack. X is the first argument.
85
+ * Expects a TypeClass on the stack.
86
+ */
87
+ ReflectionOp[ReflectionOp["classExtends"] = 21] = "classExtends";
88
+ /**
89
+ * This OP has 1 parameter, the stack entry to the actual class symbol.
90
+ */
91
+ ReflectionOp[ReflectionOp["classReference"] = 22] = "classReference";
92
+ /**
93
+ * Marks the last entry in the stack as optional. Used for method|property. Equal to the QuestionMark operator in a property assignment.
94
+ */
95
+ ReflectionOp[ReflectionOp["optional"] = 23] = "optional";
96
+ ReflectionOp[ReflectionOp["readonly"] = 24] = "readonly";
97
+ ReflectionOp[ReflectionOp["public"] = 25] = "public";
98
+ ReflectionOp[ReflectionOp["private"] = 26] = "private";
99
+ ReflectionOp[ReflectionOp["protected"] = 27] = "protected";
100
+ ReflectionOp[ReflectionOp["abstract"] = 28] = "abstract";
101
+ ReflectionOp[ReflectionOp["defaultValue"] = 29] = "defaultValue";
102
+ ReflectionOp[ReflectionOp["description"] = 30] = "description";
103
+ ReflectionOp[ReflectionOp["rest"] = 31] = "rest";
104
+ ReflectionOp[ReflectionOp["regexp"] = 32] = "regexp";
105
+ ReflectionOp[ReflectionOp["enum"] = 33] = "enum";
106
+ ReflectionOp[ReflectionOp["enumMember"] = 34] = "enumMember";
107
+ ReflectionOp[ReflectionOp["set"] = 35] = "set";
108
+ ReflectionOp[ReflectionOp["map"] = 36] = "map";
109
+ /**
110
+ * Pops the latest stack entry and uses it as T for an array type.
111
+ *
112
+ * Pushes an array type.
113
+ */
114
+ ReflectionOp[ReflectionOp["array"] = 37] = "array";
115
+ ReflectionOp[ReflectionOp["tuple"] = 38] = "tuple";
116
+ ReflectionOp[ReflectionOp["tupleMember"] = 39] = "tupleMember";
117
+ ReflectionOp[ReflectionOp["namedTupleMember"] = 40] = "namedTupleMember";
118
+ ReflectionOp[ReflectionOp["union"] = 41] = "union";
119
+ ReflectionOp[ReflectionOp["intersection"] = 42] = "intersection";
120
+ ReflectionOp[ReflectionOp["indexSignature"] = 43] = "indexSignature";
121
+ ReflectionOp[ReflectionOp["objectLiteral"] = 44] = "objectLiteral";
122
+ ReflectionOp[ReflectionOp["mappedType"] = 45] = "mappedType";
123
+ ReflectionOp[ReflectionOp["in"] = 46] = "in";
124
+ ReflectionOp[ReflectionOp["frame"] = 47] = "frame";
125
+ ReflectionOp[ReflectionOp["moveFrame"] = 48] = "moveFrame";
126
+ ReflectionOp[ReflectionOp["return"] = 49] = "return";
127
+ ReflectionOp[ReflectionOp["templateLiteral"] = 50] = "templateLiteral";
128
+ ReflectionOp[ReflectionOp["date"] = 51] = "date";
129
+ ReflectionOp[ReflectionOp["int8Array"] = 52] = "int8Array";
130
+ ReflectionOp[ReflectionOp["uint8ClampedArray"] = 53] = "uint8ClampedArray";
131
+ ReflectionOp[ReflectionOp["uint8Array"] = 54] = "uint8Array";
132
+ ReflectionOp[ReflectionOp["int16Array"] = 55] = "int16Array";
133
+ ReflectionOp[ReflectionOp["uint16Array"] = 56] = "uint16Array";
134
+ ReflectionOp[ReflectionOp["int32Array"] = 57] = "int32Array";
135
+ ReflectionOp[ReflectionOp["uint32Array"] = 58] = "uint32Array";
136
+ ReflectionOp[ReflectionOp["float32Array"] = 59] = "float32Array";
137
+ ReflectionOp[ReflectionOp["float64Array"] = 60] = "float64Array";
138
+ ReflectionOp[ReflectionOp["bigInt64Array"] = 61] = "bigInt64Array";
139
+ ReflectionOp[ReflectionOp["arrayBuffer"] = 62] = "arrayBuffer";
140
+ ReflectionOp[ReflectionOp["promise"] = 63] = "promise";
141
+ ReflectionOp[ReflectionOp["arg"] = 64] = "arg";
142
+ ReflectionOp[ReflectionOp["typeParameter"] = 65] = "typeParameter";
143
+ ReflectionOp[ReflectionOp["typeParameterDefault"] = 66] = "typeParameterDefault";
144
+ ReflectionOp[ReflectionOp["var"] = 67] = "var";
145
+ ReflectionOp[ReflectionOp["loads"] = 68] = "loads";
146
+ ReflectionOp[ReflectionOp["indexAccess"] = 69] = "indexAccess";
147
+ ReflectionOp[ReflectionOp["keyof"] = 70] = "keyof";
148
+ ReflectionOp[ReflectionOp["infer"] = 71] = "infer";
149
+ ReflectionOp[ReflectionOp["typeof"] = 72] = "typeof";
150
+ ReflectionOp[ReflectionOp["condition"] = 73] = "condition";
151
+ ReflectionOp[ReflectionOp["jumpCondition"] = 74] = "jumpCondition";
152
+ ReflectionOp[ReflectionOp["jump"] = 75] = "jump";
153
+ ReflectionOp[ReflectionOp["call"] = 76] = "call";
154
+ ReflectionOp[ReflectionOp["inline"] = 77] = "inline";
155
+ ReflectionOp[ReflectionOp["inlineCall"] = 78] = "inlineCall";
156
+ ReflectionOp[ReflectionOp["distribute"] = 79] = "distribute";
157
+ ReflectionOp[ReflectionOp["extends"] = 80] = "extends";
158
+ ReflectionOp[ReflectionOp["widen"] = 81] = "widen";
159
+ ReflectionOp[ReflectionOp["static"] = 82] = "static";
160
+ ReflectionOp[ReflectionOp["mappedType2"] = 83] = "mappedType2";
161
+ ReflectionOp[ReflectionOp["functionReference"] = 84] = "functionReference";
162
+ ReflectionOp[ReflectionOp["callSignature"] = 85] = "callSignature";
163
+ /**
164
+ * Assign for Enum, Interface, Class, and TypeAlias declaration at the very end
165
+ * of the program the typeName. This is so that we have type names available even
166
+ * if the JS code is minified.
167
+ *
168
+ * his operator also assigns originTypes to the type, as it acts as the finalization
169
+ * step of a type.
170
+ */
171
+ ReflectionOp[ReflectionOp["typeName"] = 86] = "typeName";
172
+ /**
173
+ * If a class implement an interface or type,
174
+ *
175
+ * e.g. `class A implements B`, then B is on the stack and implements pops() it, and then assigns to A.implements = [B].
176
+ *
177
+ * This is only emitted when the class that is currently being described actually implements something.
178
+ *
179
+ * This OP has 1 argument and pops x types from the stack. X is the first argument.
180
+ * Expects a TypeClass on the stack.
181
+ */
182
+ ReflectionOp[ReflectionOp["implements"] = 87] = "implements";
183
+ ReflectionOp[ReflectionOp["nominal"] = 88] = "nominal";
184
+ /**
185
+ * Custom Storm Software operators
186
+ */
187
+ ReflectionOp[ReflectionOp["tags"] = 89] = "tags";
188
+ })(ReflectionOp || (ReflectionOp = {}));
189
+
190
+ //#endregion
191
+ Object.defineProperty(exports, 'ReflectionOp', {
192
+ enumerable: true,
193
+ get: function () {
194
+ return ReflectionOp;
195
+ }
196
+ });
197
+ Object.defineProperty(exports, 'TypeNumberBrand', {
198
+ enumerable: true,
199
+ get: function () {
200
+ return TypeNumberBrand;
201
+ }
202
+ });
@@ -0,0 +1,190 @@
1
+ //#region ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
2
+ /**
3
+ * note: Checks are based on range checks (>, <, etc), so when adding
4
+ * new types a check is required for all code using `TypeNumberBrand`.
5
+ */
6
+ var TypeNumberBrand;
7
+ (function(TypeNumberBrand) {
8
+ TypeNumberBrand[TypeNumberBrand["integer"] = 0] = "integer";
9
+ TypeNumberBrand[TypeNumberBrand["int8"] = 1] = "int8";
10
+ TypeNumberBrand[TypeNumberBrand["int16"] = 2] = "int16";
11
+ TypeNumberBrand[TypeNumberBrand["int32"] = 3] = "int32";
12
+ TypeNumberBrand[TypeNumberBrand["uint8"] = 4] = "uint8";
13
+ TypeNumberBrand[TypeNumberBrand["uint16"] = 5] = "uint16";
14
+ TypeNumberBrand[TypeNumberBrand["uint32"] = 6] = "uint32";
15
+ TypeNumberBrand[TypeNumberBrand["float"] = 7] = "float";
16
+ TypeNumberBrand[TypeNumberBrand["float32"] = 8] = "float32";
17
+ TypeNumberBrand[TypeNumberBrand["float64"] = 9] = "float64";
18
+ })(TypeNumberBrand || (TypeNumberBrand = {}));
19
+ /**
20
+ * The instruction set.
21
+ * Should not be greater than 93 members, because we encode it via charCode starting at 33. +93 means we end up with charCode=126
22
+ * (which is '~' and the last char that can be represented without \x. The next 127 is '\x7F').
23
+ */
24
+ var ReflectionOp;
25
+ (function(ReflectionOp) {
26
+ ReflectionOp[ReflectionOp["never"] = 0] = "never";
27
+ ReflectionOp[ReflectionOp["any"] = 1] = "any";
28
+ ReflectionOp[ReflectionOp["unknown"] = 2] = "unknown";
29
+ ReflectionOp[ReflectionOp["void"] = 3] = "void";
30
+ ReflectionOp[ReflectionOp["object"] = 4] = "object";
31
+ ReflectionOp[ReflectionOp["string"] = 5] = "string";
32
+ ReflectionOp[ReflectionOp["number"] = 6] = "number";
33
+ ReflectionOp[ReflectionOp["numberBrand"] = 7] = "numberBrand";
34
+ ReflectionOp[ReflectionOp["boolean"] = 8] = "boolean";
35
+ ReflectionOp[ReflectionOp["bigint"] = 9] = "bigint";
36
+ ReflectionOp[ReflectionOp["symbol"] = 10] = "symbol";
37
+ ReflectionOp[ReflectionOp["null"] = 11] = "null";
38
+ ReflectionOp[ReflectionOp["undefined"] = 12] = "undefined";
39
+ /**
40
+ * The literal type of string, number, or boolean.
41
+ *
42
+ * This OP has 1 parameter. The next byte is the absolute address of the literal on the stack, which is the actual literal value.
43
+ *
44
+ * Pushes a function type.
45
+ */
46
+ ReflectionOp[ReflectionOp["literal"] = 13] = "literal";
47
+ /**
48
+ * This OP pops all types on the current stack frame.
49
+ *
50
+ * This OP has 1 parameter. The next byte is the absolute address of a string|number|symbol entry on the stack.
51
+ *
52
+ * Pushes a function type.
53
+ */
54
+ ReflectionOp[ReflectionOp["function"] = 14] = "function";
55
+ /**
56
+ * This OP pops all types on the current stack frame.
57
+ *
58
+ * Pushes a method type.
59
+ */
60
+ ReflectionOp[ReflectionOp["method"] = 15] = "method";
61
+ ReflectionOp[ReflectionOp["methodSignature"] = 16] = "methodSignature";
62
+ ReflectionOp[ReflectionOp["parameter"] = 17] = "parameter";
63
+ /**
64
+ * This OP pops the latest type entry on the stack.
65
+ *
66
+ * Pushes a property type.
67
+ */
68
+ ReflectionOp[ReflectionOp["property"] = 18] = "property";
69
+ ReflectionOp[ReflectionOp["propertySignature"] = 19] = "propertySignature";
70
+ /**
71
+ * This OP pops all types on the current stack frame. Those types should be method|property.
72
+ *
73
+ * Pushes a TypeClass onto the stack.
74
+ */
75
+ ReflectionOp[ReflectionOp["class"] = 20] = "class";
76
+ /**
77
+ * If a class extends another class with generics, this OP represents the generic type arguments of the super class.
78
+ *
79
+ * e.g. `class A extends B<string, boolean>`, string and boolean are on the stack and classExtends pops() them, and then assigns to A.extendsTypeArguments = [string, boolean].
80
+ *
81
+ * This is only emitted when the class that is currently being described actually extends another class and uses generics.
82
+ *
83
+ * This OP has 1 argument and pops x types from the stack. X is the first argument.
84
+ * Expects a TypeClass on the stack.
85
+ */
86
+ ReflectionOp[ReflectionOp["classExtends"] = 21] = "classExtends";
87
+ /**
88
+ * This OP has 1 parameter, the stack entry to the actual class symbol.
89
+ */
90
+ ReflectionOp[ReflectionOp["classReference"] = 22] = "classReference";
91
+ /**
92
+ * Marks the last entry in the stack as optional. Used for method|property. Equal to the QuestionMark operator in a property assignment.
93
+ */
94
+ ReflectionOp[ReflectionOp["optional"] = 23] = "optional";
95
+ ReflectionOp[ReflectionOp["readonly"] = 24] = "readonly";
96
+ ReflectionOp[ReflectionOp["public"] = 25] = "public";
97
+ ReflectionOp[ReflectionOp["private"] = 26] = "private";
98
+ ReflectionOp[ReflectionOp["protected"] = 27] = "protected";
99
+ ReflectionOp[ReflectionOp["abstract"] = 28] = "abstract";
100
+ ReflectionOp[ReflectionOp["defaultValue"] = 29] = "defaultValue";
101
+ ReflectionOp[ReflectionOp["description"] = 30] = "description";
102
+ ReflectionOp[ReflectionOp["rest"] = 31] = "rest";
103
+ ReflectionOp[ReflectionOp["regexp"] = 32] = "regexp";
104
+ ReflectionOp[ReflectionOp["enum"] = 33] = "enum";
105
+ ReflectionOp[ReflectionOp["enumMember"] = 34] = "enumMember";
106
+ ReflectionOp[ReflectionOp["set"] = 35] = "set";
107
+ ReflectionOp[ReflectionOp["map"] = 36] = "map";
108
+ /**
109
+ * Pops the latest stack entry and uses it as T for an array type.
110
+ *
111
+ * Pushes an array type.
112
+ */
113
+ ReflectionOp[ReflectionOp["array"] = 37] = "array";
114
+ ReflectionOp[ReflectionOp["tuple"] = 38] = "tuple";
115
+ ReflectionOp[ReflectionOp["tupleMember"] = 39] = "tupleMember";
116
+ ReflectionOp[ReflectionOp["namedTupleMember"] = 40] = "namedTupleMember";
117
+ ReflectionOp[ReflectionOp["union"] = 41] = "union";
118
+ ReflectionOp[ReflectionOp["intersection"] = 42] = "intersection";
119
+ ReflectionOp[ReflectionOp["indexSignature"] = 43] = "indexSignature";
120
+ ReflectionOp[ReflectionOp["objectLiteral"] = 44] = "objectLiteral";
121
+ ReflectionOp[ReflectionOp["mappedType"] = 45] = "mappedType";
122
+ ReflectionOp[ReflectionOp["in"] = 46] = "in";
123
+ ReflectionOp[ReflectionOp["frame"] = 47] = "frame";
124
+ ReflectionOp[ReflectionOp["moveFrame"] = 48] = "moveFrame";
125
+ ReflectionOp[ReflectionOp["return"] = 49] = "return";
126
+ ReflectionOp[ReflectionOp["templateLiteral"] = 50] = "templateLiteral";
127
+ ReflectionOp[ReflectionOp["date"] = 51] = "date";
128
+ ReflectionOp[ReflectionOp["int8Array"] = 52] = "int8Array";
129
+ ReflectionOp[ReflectionOp["uint8ClampedArray"] = 53] = "uint8ClampedArray";
130
+ ReflectionOp[ReflectionOp["uint8Array"] = 54] = "uint8Array";
131
+ ReflectionOp[ReflectionOp["int16Array"] = 55] = "int16Array";
132
+ ReflectionOp[ReflectionOp["uint16Array"] = 56] = "uint16Array";
133
+ ReflectionOp[ReflectionOp["int32Array"] = 57] = "int32Array";
134
+ ReflectionOp[ReflectionOp["uint32Array"] = 58] = "uint32Array";
135
+ ReflectionOp[ReflectionOp["float32Array"] = 59] = "float32Array";
136
+ ReflectionOp[ReflectionOp["float64Array"] = 60] = "float64Array";
137
+ ReflectionOp[ReflectionOp["bigInt64Array"] = 61] = "bigInt64Array";
138
+ ReflectionOp[ReflectionOp["arrayBuffer"] = 62] = "arrayBuffer";
139
+ ReflectionOp[ReflectionOp["promise"] = 63] = "promise";
140
+ ReflectionOp[ReflectionOp["arg"] = 64] = "arg";
141
+ ReflectionOp[ReflectionOp["typeParameter"] = 65] = "typeParameter";
142
+ ReflectionOp[ReflectionOp["typeParameterDefault"] = 66] = "typeParameterDefault";
143
+ ReflectionOp[ReflectionOp["var"] = 67] = "var";
144
+ ReflectionOp[ReflectionOp["loads"] = 68] = "loads";
145
+ ReflectionOp[ReflectionOp["indexAccess"] = 69] = "indexAccess";
146
+ ReflectionOp[ReflectionOp["keyof"] = 70] = "keyof";
147
+ ReflectionOp[ReflectionOp["infer"] = 71] = "infer";
148
+ ReflectionOp[ReflectionOp["typeof"] = 72] = "typeof";
149
+ ReflectionOp[ReflectionOp["condition"] = 73] = "condition";
150
+ ReflectionOp[ReflectionOp["jumpCondition"] = 74] = "jumpCondition";
151
+ ReflectionOp[ReflectionOp["jump"] = 75] = "jump";
152
+ ReflectionOp[ReflectionOp["call"] = 76] = "call";
153
+ ReflectionOp[ReflectionOp["inline"] = 77] = "inline";
154
+ ReflectionOp[ReflectionOp["inlineCall"] = 78] = "inlineCall";
155
+ ReflectionOp[ReflectionOp["distribute"] = 79] = "distribute";
156
+ ReflectionOp[ReflectionOp["extends"] = 80] = "extends";
157
+ ReflectionOp[ReflectionOp["widen"] = 81] = "widen";
158
+ ReflectionOp[ReflectionOp["static"] = 82] = "static";
159
+ ReflectionOp[ReflectionOp["mappedType2"] = 83] = "mappedType2";
160
+ ReflectionOp[ReflectionOp["functionReference"] = 84] = "functionReference";
161
+ ReflectionOp[ReflectionOp["callSignature"] = 85] = "callSignature";
162
+ /**
163
+ * Assign for Enum, Interface, Class, and TypeAlias declaration at the very end
164
+ * of the program the typeName. This is so that we have type names available even
165
+ * if the JS code is minified.
166
+ *
167
+ * his operator also assigns originTypes to the type, as it acts as the finalization
168
+ * step of a type.
169
+ */
170
+ ReflectionOp[ReflectionOp["typeName"] = 86] = "typeName";
171
+ /**
172
+ * If a class implement an interface or type,
173
+ *
174
+ * e.g. `class A implements B`, then B is on the stack and implements pops() it, and then assigns to A.implements = [B].
175
+ *
176
+ * This is only emitted when the class that is currently being described actually implements something.
177
+ *
178
+ * This OP has 1 argument and pops x types from the stack. X is the first argument.
179
+ * Expects a TypeClass on the stack.
180
+ */
181
+ ReflectionOp[ReflectionOp["implements"] = 87] = "implements";
182
+ ReflectionOp[ReflectionOp["nominal"] = 88] = "nominal";
183
+ /**
184
+ * Custom Storm Software operators
185
+ */
186
+ ReflectionOp[ReflectionOp["tags"] = 89] = "tags";
187
+ })(ReflectionOp || (ReflectionOp = {}));
188
+
189
+ //#endregion
190
+ export { TypeNumberBrand as n, ReflectionOp as t };