@flock/wirespec 0.19.0-RC.3 → 0.19.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.
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +156 -156
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1547 -1547
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- package/kotlin-kotlin-stdlib.mjs +2347 -5055
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +20865 -6871
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1806 -1806
- package/kotlinx-io-kotlinx-io-core.mjs +432 -432
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2213 -2050
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1947 -1472
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1333 -1333
- package/package.json +14 -9
- package/wirespec-lsp.mjs +7 -0
- package/wirespec-msw.d.ts +53 -0
- package/wirespec-msw.mjs +83 -0
- package/wirespec-src-compiler-core.mjs +1752 -1688
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +457 -421
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +440 -341
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +381 -382
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +447 -424
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +172 -173
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +475 -444
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3833 -3883
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +510 -510
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1584 -1510
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +4928 -0
- package/wirespec-src-ide-lsp.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +183 -183
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +2 -11
- package/wirespec-src-plugin-npm.mjs +47 -42
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +53 -53
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +0 -4
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +0 -1
- package/kotest-kotest-assertions-kotest-assertions-core.mjs +0 -4
- package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +0 -1
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs +0 -4
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +0 -1
- package/kotest-kotest-common.mjs +0 -56
- package/kotest-kotest-common.mjs.map +0 -1
- package/kotest-kotest-framework-kotest-framework-engine.mjs +0 -4
- package/kotest-kotest-framework-kotest-framework-engine.mjs.map +0 -1
- package/kotest-kotest-property-kotest-property-datetime.mjs +0 -4
- package/kotest-kotest-property-kotest-property-datetime.mjs.map +0 -1
- package/kotest-kotest-property.mjs +0 -2400
- package/kotest-kotest-property.mjs.map +0 -1
- package/kotest-property-arbs.mjs +0 -4
- package/kotest-property-arbs.mjs.map +0 -1
- package/kotlinx-coroutines-test.mjs +0 -4
- package/kotlinx-coroutines-test.mjs.map +0 -1
- package/wirespec-generator.d.ts +0 -52
- package/wirespec-generator.mjs +0 -9
- package/wirespec-src-integration-kotest.mjs +0 -1455
- package/wirespec-src-integration-kotest.mjs.map +0 -1
- package/xmlutil-core.mjs +0 -4
- package/xmlutil-core.mjs.map +0 -1
- package/xmlutil-serialization.mjs +0 -4
- package/xmlutil-serialization.mjs.map +0 -1
|
@@ -1,1455 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
3
|
-
toString1pkumu07cwy4m as toString,
|
|
4
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
5
|
-
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
6
|
-
hashCodeq5arwsb9dgti as hashCode,
|
|
7
|
-
equals2au1ep9vhcato as equals,
|
|
8
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
9
|
-
VOID3gxj6tk5isa35 as VOID,
|
|
10
|
-
toString30pk9tzaqopn as toString_0,
|
|
11
|
-
getNumberHashCode2l4nbdcihl25f as getNumberHashCode,
|
|
12
|
-
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
13
|
-
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$,
|
|
14
|
-
LinkedHashMap_init_$Create$3t495nfs82xn as LinkedHashMap_init_$Create$,
|
|
15
|
-
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
16
|
-
NoSuchElementException_init_$Create$1nrjqowkbsvwu as NoSuchElementException_init_$Create$,
|
|
17
|
-
compareTo3ankvs086tmwq as compareTo,
|
|
18
|
-
joinToString1cxrrlmo0chqs as joinToString,
|
|
19
|
-
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
20
|
-
singleo93pzdgfc557 as single,
|
|
21
|
-
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
22
|
-
Long2qws0ah9gnpki as Long,
|
|
23
|
-
fromInt1lka3ktyu79a4 as fromInt,
|
|
24
|
-
bitwiseXor10gmbxn4rolze as bitwiseXor,
|
|
25
|
-
plus20p0vtfmu0596 as plus,
|
|
26
|
-
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
27
|
-
longRangeToLong1wnzlyc7cu6kp as longRangeToLong,
|
|
28
|
-
lastOrNull1aq5oz189qoe1 as lastOrNull,
|
|
29
|
-
last1vo29oleiqj36 as last,
|
|
30
|
-
toInt2q8uldh7sc951 as toInt,
|
|
31
|
-
toLongkk4waq8msp1k as toLong,
|
|
32
|
-
toIntOrNull3w2d066r9pvwm as toIntOrNull,
|
|
33
|
-
toLongOrNullutqivezb0wx1 as toLongOrNull,
|
|
34
|
-
listOfvhqybd2zx248 as listOf,
|
|
35
|
-
dropLast1vpiyky649o34 as dropLast,
|
|
36
|
-
Collection1k04j3hzsbod0 as Collection,
|
|
37
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
38
|
-
to2cs3ny02qtbcb as to,
|
|
39
|
-
mapOf2zpbbmyqk8xpf as mapOf,
|
|
40
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
41
|
-
until1jbpn0z3f8lbg as until,
|
|
42
|
-
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
43
|
-
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$_0,
|
|
44
|
-
emptyList1g2z5xcrvp2zy as emptyList,
|
|
45
|
-
ArrayDeque_init_$Create$2zj52gw2joiw7 as ArrayDeque_init_$Create$,
|
|
46
|
-
toList383f556t1dixk as toList,
|
|
47
|
-
isNumberiramasdbon0i as isNumber,
|
|
48
|
-
numberToLong345n6tb1n1i71 as numberToLong,
|
|
49
|
-
numberToInt1ygmcfwhs2fkq as numberToInt,
|
|
50
|
-
numberToDouble210hrknaofnhf as numberToDouble,
|
|
51
|
-
PrimitiveClasses_getInstance6p7zmos9nw3c as PrimitiveClasses_getInstance,
|
|
52
|
-
arrayOf1akklvh2at202 as arrayOf,
|
|
53
|
-
createKType31ecntyyaay3k as createKType,
|
|
54
|
-
emptyMapr06gerzljqtm as emptyMap,
|
|
55
|
-
isArray1hxjqtqy632bc as isArray,
|
|
56
|
-
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
57
|
-
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
58
|
-
LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$_0,
|
|
59
|
-
KtMap140uvy3s5zad8 as KtMap,
|
|
60
|
-
KtList3hktaavzmj137 as KtList,
|
|
61
|
-
toNumberlmbpvqo27r53 as toNumber,
|
|
62
|
-
copyToArray2j022khrow2yi as copyToArray,
|
|
63
|
-
} from './kotlin-kotlin-stdlib.mjs';
|
|
64
|
-
import {
|
|
65
|
-
Companion_instance3s3n1oxamd1r4 as Companion_instance,
|
|
66
|
-
Companion_instance21ufaak2k5re2 as Companion_instance_0,
|
|
67
|
-
int2h4godnt2s0rr as int,
|
|
68
|
-
next3ubxtqgi6adv7 as next,
|
|
69
|
-
long1rc5doehwhlin as long,
|
|
70
|
-
element2c9vnyy5405af as element,
|
|
71
|
-
byte3rz7pgzhi6m64 as byte,
|
|
72
|
-
byteArray2qqx36w76cyb0 as byteArray,
|
|
73
|
-
boolean22whamdaxmlpn as boolean,
|
|
74
|
-
float3e4skrs0ychqj as float,
|
|
75
|
-
doubletnd0mywl30ny as double,
|
|
76
|
-
} from './kotest-kotest-property.mjs';
|
|
77
|
-
import { Companion_instance1r96eeuvb7uhy as Companion_instance_1 } from './kotlin-rgxgen.mjs';
|
|
78
|
-
//region block: imports
|
|
79
|
-
var imul = Math.imul;
|
|
80
|
-
//endregion
|
|
81
|
-
//region block: pre-declaration
|
|
82
|
-
initMetadataForInterface(KotestField, 'KotestField');
|
|
83
|
-
initMetadataForClass(KotestFieldString, 'KotestFieldString', VOID, VOID, [KotestField]);
|
|
84
|
-
initMetadataForClass(KotestFieldInteger64, 'KotestFieldInteger64', VOID, VOID, [KotestField]);
|
|
85
|
-
initMetadataForClass(KotestFieldInteger32, 'KotestFieldInteger32', VOID, VOID, [KotestField]);
|
|
86
|
-
initMetadataForClass(KotestFieldNumber64, 'KotestFieldNumber64', VOID, VOID, [KotestField]);
|
|
87
|
-
initMetadataForClass(KotestFieldNumber32, 'KotestFieldNumber32', VOID, VOID, [KotestField]);
|
|
88
|
-
initMetadataForClass(KotestFieldBoolean, 'KotestFieldBoolean', VOID, VOID, [KotestField]);
|
|
89
|
-
initMetadataForClass(KotestFieldBytes, 'KotestFieldBytes', VOID, VOID, [KotestField]);
|
|
90
|
-
initMetadataForClass(KotestFieldEnum, 'KotestFieldEnum', VOID, VOID, [KotestField]);
|
|
91
|
-
initMetadataForClass(KotestFieldUnion, 'KotestFieldUnion', VOID, VOID, [KotestField]);
|
|
92
|
-
initMetadataForClass(KotestFieldArray, 'KotestFieldArray', VOID, VOID, [KotestField]);
|
|
93
|
-
initMetadataForClass(KotestFieldNullable, 'KotestFieldNullable', VOID, VOID, [KotestField]);
|
|
94
|
-
initMetadataForClass(KotestFieldShape, 'KotestFieldShape', VOID, VOID, [KotestField]);
|
|
95
|
-
initMetadataForClass(KotestFieldDict, 'KotestFieldDict', VOID, VOID, [KotestField]);
|
|
96
|
-
initMetadataForObject(IdentityRefinedWrapper, 'IdentityRefinedWrapper');
|
|
97
|
-
initMetadataForClass(OverrideRegistry, 'OverrideRegistry', OverrideRegistry);
|
|
98
|
-
initMetadataForClass(FieldKey, 'FieldKey');
|
|
99
|
-
initMetadataForClass(Literal, 'Literal');
|
|
100
|
-
initMetadataForObject(Wildcard, 'Wildcard');
|
|
101
|
-
initMetadataForClass(KotestWirespecGeneratorBuilder, 'KotestWirespecGeneratorBuilder');
|
|
102
|
-
initMetadataForClass(ParentFrame, 'ParentFrame');
|
|
103
|
-
initMetadataForClass(PendingSeed, 'PendingSeed');
|
|
104
|
-
initMetadataForClass(Capture, 'Capture');
|
|
105
|
-
initMetadataForClass(KotestWirespecGenerator, 'KotestWirespecGenerator');
|
|
106
|
-
initMetadataForClass(KotestWirespecGeneratorJs, 'KotestWirespecGeneratorJs');
|
|
107
|
-
//endregion
|
|
108
|
-
function KotestField() {
|
|
109
|
-
}
|
|
110
|
-
function KotestFieldString(regex, annotations) {
|
|
111
|
-
this.r5z_1 = regex;
|
|
112
|
-
this.s5z_1 = annotations;
|
|
113
|
-
}
|
|
114
|
-
protoOf(KotestFieldString).toString = function () {
|
|
115
|
-
return 'KotestFieldString(regex=' + this.r5z_1 + ', annotations=' + toString(this.s5z_1) + ')';
|
|
116
|
-
};
|
|
117
|
-
protoOf(KotestFieldString).hashCode = function () {
|
|
118
|
-
var result = this.r5z_1 == null ? 0 : getStringHashCode(this.r5z_1);
|
|
119
|
-
result = imul(result, 31) + hashCode(this.s5z_1) | 0;
|
|
120
|
-
return result;
|
|
121
|
-
};
|
|
122
|
-
protoOf(KotestFieldString).equals = function (other) {
|
|
123
|
-
if (this === other)
|
|
124
|
-
return true;
|
|
125
|
-
if (!(other instanceof KotestFieldString))
|
|
126
|
-
return false;
|
|
127
|
-
if (!(this.r5z_1 == other.r5z_1))
|
|
128
|
-
return false;
|
|
129
|
-
if (!equals(this.s5z_1, other.s5z_1))
|
|
130
|
-
return false;
|
|
131
|
-
return true;
|
|
132
|
-
};
|
|
133
|
-
function KotestFieldInteger64(min, max, annotations) {
|
|
134
|
-
this.t5z_1 = min;
|
|
135
|
-
this.u5z_1 = max;
|
|
136
|
-
this.v5z_1 = annotations;
|
|
137
|
-
}
|
|
138
|
-
protoOf(KotestFieldInteger64).toString = function () {
|
|
139
|
-
return 'KotestFieldInteger64(min=' + toString_0(this.t5z_1) + ', max=' + toString_0(this.u5z_1) + ', annotations=' + toString(this.v5z_1) + ')';
|
|
140
|
-
};
|
|
141
|
-
protoOf(KotestFieldInteger64).hashCode = function () {
|
|
142
|
-
var result = this.t5z_1 == null ? 0 : this.t5z_1.hashCode();
|
|
143
|
-
result = imul(result, 31) + (this.u5z_1 == null ? 0 : this.u5z_1.hashCode()) | 0;
|
|
144
|
-
result = imul(result, 31) + hashCode(this.v5z_1) | 0;
|
|
145
|
-
return result;
|
|
146
|
-
};
|
|
147
|
-
protoOf(KotestFieldInteger64).equals = function (other) {
|
|
148
|
-
if (this === other)
|
|
149
|
-
return true;
|
|
150
|
-
if (!(other instanceof KotestFieldInteger64))
|
|
151
|
-
return false;
|
|
152
|
-
if (!equals(this.t5z_1, other.t5z_1))
|
|
153
|
-
return false;
|
|
154
|
-
if (!equals(this.u5z_1, other.u5z_1))
|
|
155
|
-
return false;
|
|
156
|
-
if (!equals(this.v5z_1, other.v5z_1))
|
|
157
|
-
return false;
|
|
158
|
-
return true;
|
|
159
|
-
};
|
|
160
|
-
function KotestFieldInteger32(min, max, annotations) {
|
|
161
|
-
this.w5z_1 = min;
|
|
162
|
-
this.x5z_1 = max;
|
|
163
|
-
this.y5z_1 = annotations;
|
|
164
|
-
}
|
|
165
|
-
protoOf(KotestFieldInteger32).toString = function () {
|
|
166
|
-
return 'KotestFieldInteger32(min=' + this.w5z_1 + ', max=' + this.x5z_1 + ', annotations=' + toString(this.y5z_1) + ')';
|
|
167
|
-
};
|
|
168
|
-
protoOf(KotestFieldInteger32).hashCode = function () {
|
|
169
|
-
var result = this.w5z_1 == null ? 0 : this.w5z_1;
|
|
170
|
-
result = imul(result, 31) + (this.x5z_1 == null ? 0 : this.x5z_1) | 0;
|
|
171
|
-
result = imul(result, 31) + hashCode(this.y5z_1) | 0;
|
|
172
|
-
return result;
|
|
173
|
-
};
|
|
174
|
-
protoOf(KotestFieldInteger32).equals = function (other) {
|
|
175
|
-
if (this === other)
|
|
176
|
-
return true;
|
|
177
|
-
if (!(other instanceof KotestFieldInteger32))
|
|
178
|
-
return false;
|
|
179
|
-
if (!(this.w5z_1 == other.w5z_1))
|
|
180
|
-
return false;
|
|
181
|
-
if (!(this.x5z_1 == other.x5z_1))
|
|
182
|
-
return false;
|
|
183
|
-
if (!equals(this.y5z_1, other.y5z_1))
|
|
184
|
-
return false;
|
|
185
|
-
return true;
|
|
186
|
-
};
|
|
187
|
-
function KotestFieldNumber64(min, max, annotations) {
|
|
188
|
-
this.z5z_1 = min;
|
|
189
|
-
this.a60_1 = max;
|
|
190
|
-
this.b60_1 = annotations;
|
|
191
|
-
}
|
|
192
|
-
protoOf(KotestFieldNumber64).toString = function () {
|
|
193
|
-
return 'KotestFieldNumber64(min=' + this.z5z_1 + ', max=' + this.a60_1 + ', annotations=' + toString(this.b60_1) + ')';
|
|
194
|
-
};
|
|
195
|
-
protoOf(KotestFieldNumber64).hashCode = function () {
|
|
196
|
-
var result = this.z5z_1 == null ? 0 : getNumberHashCode(this.z5z_1);
|
|
197
|
-
result = imul(result, 31) + (this.a60_1 == null ? 0 : getNumberHashCode(this.a60_1)) | 0;
|
|
198
|
-
result = imul(result, 31) + hashCode(this.b60_1) | 0;
|
|
199
|
-
return result;
|
|
200
|
-
};
|
|
201
|
-
protoOf(KotestFieldNumber64).equals = function (other) {
|
|
202
|
-
if (this === other)
|
|
203
|
-
return true;
|
|
204
|
-
if (!(other instanceof KotestFieldNumber64))
|
|
205
|
-
return false;
|
|
206
|
-
if (!equals(this.z5z_1, other.z5z_1))
|
|
207
|
-
return false;
|
|
208
|
-
if (!equals(this.a60_1, other.a60_1))
|
|
209
|
-
return false;
|
|
210
|
-
if (!equals(this.b60_1, other.b60_1))
|
|
211
|
-
return false;
|
|
212
|
-
return true;
|
|
213
|
-
};
|
|
214
|
-
function KotestFieldNumber32(min, max, annotations) {
|
|
215
|
-
this.c60_1 = min;
|
|
216
|
-
this.d60_1 = max;
|
|
217
|
-
this.e60_1 = annotations;
|
|
218
|
-
}
|
|
219
|
-
protoOf(KotestFieldNumber32).toString = function () {
|
|
220
|
-
return 'KotestFieldNumber32(min=' + this.c60_1 + ', max=' + this.d60_1 + ', annotations=' + toString(this.e60_1) + ')';
|
|
221
|
-
};
|
|
222
|
-
protoOf(KotestFieldNumber32).hashCode = function () {
|
|
223
|
-
var result = this.c60_1 == null ? 0 : getNumberHashCode(this.c60_1);
|
|
224
|
-
result = imul(result, 31) + (this.d60_1 == null ? 0 : getNumberHashCode(this.d60_1)) | 0;
|
|
225
|
-
result = imul(result, 31) + hashCode(this.e60_1) | 0;
|
|
226
|
-
return result;
|
|
227
|
-
};
|
|
228
|
-
protoOf(KotestFieldNumber32).equals = function (other) {
|
|
229
|
-
if (this === other)
|
|
230
|
-
return true;
|
|
231
|
-
if (!(other instanceof KotestFieldNumber32))
|
|
232
|
-
return false;
|
|
233
|
-
if (!equals(this.c60_1, other.c60_1))
|
|
234
|
-
return false;
|
|
235
|
-
if (!equals(this.d60_1, other.d60_1))
|
|
236
|
-
return false;
|
|
237
|
-
if (!equals(this.e60_1, other.e60_1))
|
|
238
|
-
return false;
|
|
239
|
-
return true;
|
|
240
|
-
};
|
|
241
|
-
function KotestFieldBoolean(annotations) {
|
|
242
|
-
this.f60_1 = annotations;
|
|
243
|
-
}
|
|
244
|
-
protoOf(KotestFieldBoolean).toString = function () {
|
|
245
|
-
return 'KotestFieldBoolean(annotations=' + toString(this.f60_1) + ')';
|
|
246
|
-
};
|
|
247
|
-
protoOf(KotestFieldBoolean).hashCode = function () {
|
|
248
|
-
return hashCode(this.f60_1);
|
|
249
|
-
};
|
|
250
|
-
protoOf(KotestFieldBoolean).equals = function (other) {
|
|
251
|
-
if (this === other)
|
|
252
|
-
return true;
|
|
253
|
-
if (!(other instanceof KotestFieldBoolean))
|
|
254
|
-
return false;
|
|
255
|
-
if (!equals(this.f60_1, other.f60_1))
|
|
256
|
-
return false;
|
|
257
|
-
return true;
|
|
258
|
-
};
|
|
259
|
-
function KotestFieldBytes(annotations) {
|
|
260
|
-
this.g60_1 = annotations;
|
|
261
|
-
}
|
|
262
|
-
protoOf(KotestFieldBytes).toString = function () {
|
|
263
|
-
return 'KotestFieldBytes(annotations=' + toString(this.g60_1) + ')';
|
|
264
|
-
};
|
|
265
|
-
protoOf(KotestFieldBytes).hashCode = function () {
|
|
266
|
-
return hashCode(this.g60_1);
|
|
267
|
-
};
|
|
268
|
-
protoOf(KotestFieldBytes).equals = function (other) {
|
|
269
|
-
if (this === other)
|
|
270
|
-
return true;
|
|
271
|
-
if (!(other instanceof KotestFieldBytes))
|
|
272
|
-
return false;
|
|
273
|
-
if (!equals(this.g60_1, other.g60_1))
|
|
274
|
-
return false;
|
|
275
|
-
return true;
|
|
276
|
-
};
|
|
277
|
-
function KotestFieldEnum(values, annotations, type) {
|
|
278
|
-
this.h60_1 = values;
|
|
279
|
-
this.i60_1 = annotations;
|
|
280
|
-
this.j60_1 = type;
|
|
281
|
-
}
|
|
282
|
-
protoOf(KotestFieldEnum).toString = function () {
|
|
283
|
-
return 'KotestFieldEnum(values=' + toString(this.h60_1) + ', annotations=' + toString(this.i60_1) + ', type=' + toString(this.j60_1) + ')';
|
|
284
|
-
};
|
|
285
|
-
protoOf(KotestFieldEnum).hashCode = function () {
|
|
286
|
-
var result = hashCode(this.h60_1);
|
|
287
|
-
result = imul(result, 31) + hashCode(this.i60_1) | 0;
|
|
288
|
-
result = imul(result, 31) + hashCode(this.j60_1) | 0;
|
|
289
|
-
return result;
|
|
290
|
-
};
|
|
291
|
-
protoOf(KotestFieldEnum).equals = function (other) {
|
|
292
|
-
if (this === other)
|
|
293
|
-
return true;
|
|
294
|
-
if (!(other instanceof KotestFieldEnum))
|
|
295
|
-
return false;
|
|
296
|
-
if (!equals(this.h60_1, other.h60_1))
|
|
297
|
-
return false;
|
|
298
|
-
if (!equals(this.i60_1, other.i60_1))
|
|
299
|
-
return false;
|
|
300
|
-
if (!equals(this.j60_1, other.j60_1))
|
|
301
|
-
return false;
|
|
302
|
-
return true;
|
|
303
|
-
};
|
|
304
|
-
function KotestFieldUnion(variants, annotations, type) {
|
|
305
|
-
this.k60_1 = variants;
|
|
306
|
-
this.l60_1 = annotations;
|
|
307
|
-
this.m60_1 = type;
|
|
308
|
-
}
|
|
309
|
-
protoOf(KotestFieldUnion).toString = function () {
|
|
310
|
-
return 'KotestFieldUnion(variants=' + toString(this.k60_1) + ', annotations=' + toString(this.l60_1) + ', type=' + toString(this.m60_1) + ')';
|
|
311
|
-
};
|
|
312
|
-
protoOf(KotestFieldUnion).hashCode = function () {
|
|
313
|
-
var result = hashCode(this.k60_1);
|
|
314
|
-
result = imul(result, 31) + hashCode(this.l60_1) | 0;
|
|
315
|
-
result = imul(result, 31) + hashCode(this.m60_1) | 0;
|
|
316
|
-
return result;
|
|
317
|
-
};
|
|
318
|
-
protoOf(KotestFieldUnion).equals = function (other) {
|
|
319
|
-
if (this === other)
|
|
320
|
-
return true;
|
|
321
|
-
if (!(other instanceof KotestFieldUnion))
|
|
322
|
-
return false;
|
|
323
|
-
if (!equals(this.k60_1, other.k60_1))
|
|
324
|
-
return false;
|
|
325
|
-
if (!equals(this.l60_1, other.l60_1))
|
|
326
|
-
return false;
|
|
327
|
-
if (!equals(this.m60_1, other.m60_1))
|
|
328
|
-
return false;
|
|
329
|
-
return true;
|
|
330
|
-
};
|
|
331
|
-
function KotestFieldArray(generate) {
|
|
332
|
-
this.n60_1 = generate;
|
|
333
|
-
}
|
|
334
|
-
protoOf(KotestFieldArray).toString = function () {
|
|
335
|
-
return 'KotestFieldArray(generate=' + toString(this.n60_1) + ')';
|
|
336
|
-
};
|
|
337
|
-
protoOf(KotestFieldArray).hashCode = function () {
|
|
338
|
-
return hashCode(this.n60_1);
|
|
339
|
-
};
|
|
340
|
-
protoOf(KotestFieldArray).equals = function (other) {
|
|
341
|
-
if (this === other)
|
|
342
|
-
return true;
|
|
343
|
-
if (!(other instanceof KotestFieldArray))
|
|
344
|
-
return false;
|
|
345
|
-
if (!equals(this.n60_1, other.n60_1))
|
|
346
|
-
return false;
|
|
347
|
-
return true;
|
|
348
|
-
};
|
|
349
|
-
function KotestFieldNullable(generate) {
|
|
350
|
-
this.o60_1 = generate;
|
|
351
|
-
}
|
|
352
|
-
protoOf(KotestFieldNullable).toString = function () {
|
|
353
|
-
return 'KotestFieldNullable(generate=' + toString(this.o60_1) + ')';
|
|
354
|
-
};
|
|
355
|
-
protoOf(KotestFieldNullable).hashCode = function () {
|
|
356
|
-
return hashCode(this.o60_1);
|
|
357
|
-
};
|
|
358
|
-
protoOf(KotestFieldNullable).equals = function (other) {
|
|
359
|
-
if (this === other)
|
|
360
|
-
return true;
|
|
361
|
-
if (!(other instanceof KotestFieldNullable))
|
|
362
|
-
return false;
|
|
363
|
-
if (!equals(this.o60_1, other.o60_1))
|
|
364
|
-
return false;
|
|
365
|
-
return true;
|
|
366
|
-
};
|
|
367
|
-
function KotestFieldShape(annotations, generate, type) {
|
|
368
|
-
this.p60_1 = annotations;
|
|
369
|
-
this.q60_1 = generate;
|
|
370
|
-
this.r60_1 = type;
|
|
371
|
-
}
|
|
372
|
-
protoOf(KotestFieldShape).toString = function () {
|
|
373
|
-
return 'KotestFieldShape(annotations=' + toString(this.p60_1) + ', generate=' + toString(this.q60_1) + ', type=' + toString(this.r60_1) + ')';
|
|
374
|
-
};
|
|
375
|
-
protoOf(KotestFieldShape).hashCode = function () {
|
|
376
|
-
var result = hashCode(this.p60_1);
|
|
377
|
-
result = imul(result, 31) + hashCode(this.q60_1) | 0;
|
|
378
|
-
result = imul(result, 31) + hashCode(this.r60_1) | 0;
|
|
379
|
-
return result;
|
|
380
|
-
};
|
|
381
|
-
protoOf(KotestFieldShape).equals = function (other) {
|
|
382
|
-
if (this === other)
|
|
383
|
-
return true;
|
|
384
|
-
if (!(other instanceof KotestFieldShape))
|
|
385
|
-
return false;
|
|
386
|
-
if (!equals(this.p60_1, other.p60_1))
|
|
387
|
-
return false;
|
|
388
|
-
if (!equals(this.q60_1, other.q60_1))
|
|
389
|
-
return false;
|
|
390
|
-
if (!equals(this.r60_1, other.r60_1))
|
|
391
|
-
return false;
|
|
392
|
-
return true;
|
|
393
|
-
};
|
|
394
|
-
function KotestFieldDict(generate) {
|
|
395
|
-
this.s60_1 = generate;
|
|
396
|
-
}
|
|
397
|
-
protoOf(KotestFieldDict).toString = function () {
|
|
398
|
-
return 'KotestFieldDict(generate=' + toString(this.s60_1) + ')';
|
|
399
|
-
};
|
|
400
|
-
protoOf(KotestFieldDict).hashCode = function () {
|
|
401
|
-
return hashCode(this.s60_1);
|
|
402
|
-
};
|
|
403
|
-
protoOf(KotestFieldDict).equals = function (other) {
|
|
404
|
-
if (this === other)
|
|
405
|
-
return true;
|
|
406
|
-
if (!(other instanceof KotestFieldDict))
|
|
407
|
-
return false;
|
|
408
|
-
if (!equals(this.s60_1, other.s60_1))
|
|
409
|
-
return false;
|
|
410
|
-
return true;
|
|
411
|
-
};
|
|
412
|
-
function IdentityRefinedWrapper() {
|
|
413
|
-
}
|
|
414
|
-
protoOf(IdentityRefinedWrapper).t60 = function (drawn, field, path) {
|
|
415
|
-
return drawn;
|
|
416
|
-
};
|
|
417
|
-
var IdentityRefinedWrapper_instance;
|
|
418
|
-
function IdentityRefinedWrapper_getInstance() {
|
|
419
|
-
return IdentityRefinedWrapper_instance;
|
|
420
|
-
}
|
|
421
|
-
function OverrideRegistry$findPath$lambda(it) {
|
|
422
|
-
return it.tf_1.toString();
|
|
423
|
-
}
|
|
424
|
-
function OverrideRegistry() {
|
|
425
|
-
var tmp = this;
|
|
426
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
427
|
-
tmp.u60_1 = ArrayList_init_$Create$();
|
|
428
|
-
var tmp_0 = this;
|
|
429
|
-
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
430
|
-
tmp_0.v60_1 = LinkedHashMap_init_$Create$();
|
|
431
|
-
}
|
|
432
|
-
protoOf(OverrideRegistry).w60 = function (path) {
|
|
433
|
-
// Inline function 'kotlin.collections.filter' call
|
|
434
|
-
var tmp0 = this.u60_1;
|
|
435
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
436
|
-
var destination = ArrayList_init_$Create$();
|
|
437
|
-
var _iterator__ex2g4s = tmp0.t();
|
|
438
|
-
while (_iterator__ex2g4s.u()) {
|
|
439
|
-
var element = _iterator__ex2g4s.v();
|
|
440
|
-
var pattern = element.kf();
|
|
441
|
-
if (pattern.z60(path)) {
|
|
442
|
-
destination.x(element);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
var matches = destination;
|
|
446
|
-
if (matches.r())
|
|
447
|
-
return null;
|
|
448
|
-
// Inline function 'kotlin.collections.maxOf' call
|
|
449
|
-
var iterator = matches.t();
|
|
450
|
-
if (!iterator.u())
|
|
451
|
-
throw NoSuchElementException_init_$Create$();
|
|
452
|
-
var maxValue = iterator.v().tf_1.y60_1;
|
|
453
|
-
while (iterator.u()) {
|
|
454
|
-
var v = iterator.v().tf_1.y60_1;
|
|
455
|
-
if (compareTo(maxValue, v) < 0) {
|
|
456
|
-
maxValue = v;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
var maxSpec = maxValue;
|
|
460
|
-
// Inline function 'kotlin.collections.filter' call
|
|
461
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
462
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
463
|
-
var _iterator__ex2g4s_0 = matches.t();
|
|
464
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
465
|
-
var element_0 = _iterator__ex2g4s_0.v();
|
|
466
|
-
if (element_0.tf_1.y60_1 === maxSpec) {
|
|
467
|
-
destination_0.x(element_0);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
var best = destination_0;
|
|
471
|
-
if (best.a1() > 1) {
|
|
472
|
-
var tmp = 'Ambiguous path overrides for ' + joinToString(path, '/') + ': ';
|
|
473
|
-
// Inline function 'kotlin.error' call
|
|
474
|
-
var message = tmp + joinToString(best, ', ', VOID, VOID, VOID, VOID, OverrideRegistry$findPath$lambda);
|
|
475
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
476
|
-
}
|
|
477
|
-
return single(best).uf_1;
|
|
478
|
-
};
|
|
479
|
-
protoOf(OverrideRegistry).a61 = function (key) {
|
|
480
|
-
return this.v60_1.q2(key);
|
|
481
|
-
};
|
|
482
|
-
function FieldKey(parentTypeName, fieldName) {
|
|
483
|
-
this.b61_1 = parentTypeName;
|
|
484
|
-
this.c61_1 = fieldName;
|
|
485
|
-
}
|
|
486
|
-
protoOf(FieldKey).toString = function () {
|
|
487
|
-
return 'FieldKey(parentTypeName=' + this.b61_1 + ', fieldName=' + this.c61_1 + ')';
|
|
488
|
-
};
|
|
489
|
-
protoOf(FieldKey).hashCode = function () {
|
|
490
|
-
var result = getStringHashCode(this.b61_1);
|
|
491
|
-
result = imul(result, 31) + getStringHashCode(this.c61_1) | 0;
|
|
492
|
-
return result;
|
|
493
|
-
};
|
|
494
|
-
protoOf(FieldKey).equals = function (other) {
|
|
495
|
-
if (this === other)
|
|
496
|
-
return true;
|
|
497
|
-
if (!(other instanceof FieldKey))
|
|
498
|
-
return false;
|
|
499
|
-
if (!(this.b61_1 === other.b61_1))
|
|
500
|
-
return false;
|
|
501
|
-
if (!(this.c61_1 === other.c61_1))
|
|
502
|
-
return false;
|
|
503
|
-
return true;
|
|
504
|
-
};
|
|
505
|
-
function PathPattern$toString$lambda(it) {
|
|
506
|
-
var tmp;
|
|
507
|
-
if (it instanceof Literal) {
|
|
508
|
-
tmp = it.d61_1;
|
|
509
|
-
} else {
|
|
510
|
-
if (equals(it, Wildcard_instance)) {
|
|
511
|
-
tmp = '*';
|
|
512
|
-
} else {
|
|
513
|
-
noWhenBranchMatchedException();
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
return tmp;
|
|
517
|
-
}
|
|
518
|
-
function Literal() {
|
|
519
|
-
}
|
|
520
|
-
function Wildcard() {
|
|
521
|
-
}
|
|
522
|
-
protoOf(Wildcard).toString = function () {
|
|
523
|
-
return 'Wildcard';
|
|
524
|
-
};
|
|
525
|
-
protoOf(Wildcard).hashCode = function () {
|
|
526
|
-
return -359688756;
|
|
527
|
-
};
|
|
528
|
-
protoOf(Wildcard).equals = function (other) {
|
|
529
|
-
if (this === other)
|
|
530
|
-
return true;
|
|
531
|
-
if (!(other instanceof Wildcard))
|
|
532
|
-
return false;
|
|
533
|
-
return true;
|
|
534
|
-
};
|
|
535
|
-
var Wildcard_instance;
|
|
536
|
-
function Wildcard_getInstance() {
|
|
537
|
-
return Wildcard_instance;
|
|
538
|
-
}
|
|
539
|
-
function kotestGenerator(seed, refinedWrapper, block) {
|
|
540
|
-
seed = seed === VOID ? new Long(0, 0) : seed;
|
|
541
|
-
refinedWrapper = refinedWrapper === VOID ? IdentityRefinedWrapper_instance : refinedWrapper;
|
|
542
|
-
var tmp;
|
|
543
|
-
if (block === VOID) {
|
|
544
|
-
tmp = kotestGenerator$lambda;
|
|
545
|
-
} else {
|
|
546
|
-
tmp = block;
|
|
547
|
-
}
|
|
548
|
-
block = tmp;
|
|
549
|
-
// Inline function 'kotlin.apply' call
|
|
550
|
-
var this_0 = new KotestWirespecGeneratorBuilder();
|
|
551
|
-
block(this_0);
|
|
552
|
-
var builder = this_0;
|
|
553
|
-
return new KotestWirespecGenerator(seed, builder.e61_1, refinedWrapper);
|
|
554
|
-
}
|
|
555
|
-
function KotestWirespecGeneratorBuilder() {
|
|
556
|
-
this.e61_1 = new OverrideRegistry();
|
|
557
|
-
}
|
|
558
|
-
function ParentFrame(typeName) {
|
|
559
|
-
this.f61_1 = typeName;
|
|
560
|
-
}
|
|
561
|
-
protoOf(ParentFrame).toString = function () {
|
|
562
|
-
return 'ParentFrame(typeName=' + this.f61_1 + ')';
|
|
563
|
-
};
|
|
564
|
-
protoOf(ParentFrame).hashCode = function () {
|
|
565
|
-
return getStringHashCode(this.f61_1);
|
|
566
|
-
};
|
|
567
|
-
protoOf(ParentFrame).equals = function (other) {
|
|
568
|
-
if (this === other)
|
|
569
|
-
return true;
|
|
570
|
-
if (!(other instanceof ParentFrame))
|
|
571
|
-
return false;
|
|
572
|
-
if (!(this.f61_1 === other.f61_1))
|
|
573
|
-
return false;
|
|
574
|
-
return true;
|
|
575
|
-
};
|
|
576
|
-
function PendingSeed(value, target, pathPrefix) {
|
|
577
|
-
this.g61_1 = value;
|
|
578
|
-
this.h61_1 = target;
|
|
579
|
-
this.i61_1 = pathPrefix;
|
|
580
|
-
}
|
|
581
|
-
protoOf(PendingSeed).toString = function () {
|
|
582
|
-
return 'PendingSeed(value=' + this.g61_1 + ', target=' + this.h61_1 + ', pathPrefix=' + toString(this.i61_1) + ')';
|
|
583
|
-
};
|
|
584
|
-
protoOf(PendingSeed).hashCode = function () {
|
|
585
|
-
var result = getStringHashCode(this.g61_1);
|
|
586
|
-
result = imul(result, 31) + getStringHashCode(this.h61_1) | 0;
|
|
587
|
-
result = imul(result, 31) + hashCode(this.i61_1) | 0;
|
|
588
|
-
return result;
|
|
589
|
-
};
|
|
590
|
-
protoOf(PendingSeed).equals = function (other) {
|
|
591
|
-
if (this === other)
|
|
592
|
-
return true;
|
|
593
|
-
if (!(other instanceof PendingSeed))
|
|
594
|
-
return false;
|
|
595
|
-
if (!(this.g61_1 === other.g61_1))
|
|
596
|
-
return false;
|
|
597
|
-
if (!(this.h61_1 === other.h61_1))
|
|
598
|
-
return false;
|
|
599
|
-
if (!equals(this.i61_1, other.i61_1))
|
|
600
|
-
return false;
|
|
601
|
-
return true;
|
|
602
|
-
};
|
|
603
|
-
function Capture(shapePath, fieldName) {
|
|
604
|
-
this.j61_1 = shapePath;
|
|
605
|
-
this.k61_1 = fieldName;
|
|
606
|
-
this.l61_1 = null;
|
|
607
|
-
}
|
|
608
|
-
function rsFor($this, path) {
|
|
609
|
-
return Companion_instance.q5z(bitwiseXor($this.m61_1, fromInt(getStringHashCode(joinToString(path, '/')))));
|
|
610
|
-
}
|
|
611
|
-
function captureSeedIfMatches($this, path, field) {
|
|
612
|
-
var tmp0_elvis_lhs = $this.q61_1.xe();
|
|
613
|
-
var tmp;
|
|
614
|
-
if (tmp0_elvis_lhs == null) {
|
|
615
|
-
return null;
|
|
616
|
-
} else {
|
|
617
|
-
tmp = tmp0_elvis_lhs;
|
|
618
|
-
}
|
|
619
|
-
var capture = tmp;
|
|
620
|
-
if (!(capture.l61_1 == null))
|
|
621
|
-
return null;
|
|
622
|
-
var expectedPrefix = plus(capture.j61_1, capture.k61_1);
|
|
623
|
-
if (path.a1() < expectedPrefix.a1() || !equals(path.m2(0, expectedPrefix.a1()), expectedPrefix))
|
|
624
|
-
return null;
|
|
625
|
-
var rs = rsFor($this, path);
|
|
626
|
-
var tmp_0;
|
|
627
|
-
if (field instanceof KotestFieldString) {
|
|
628
|
-
var tmp_1;
|
|
629
|
-
if (field.r5z_1 == null) {
|
|
630
|
-
tmp_1 = null;
|
|
631
|
-
} else {
|
|
632
|
-
// Inline function 'kotlin.let' call
|
|
633
|
-
tmp_1 = '';
|
|
634
|
-
}
|
|
635
|
-
var tmp3_elvis_lhs = tmp_1;
|
|
636
|
-
var tmp_2;
|
|
637
|
-
if (tmp3_elvis_lhs == null) {
|
|
638
|
-
// Inline function 'kotlin.text.orEmpty' call
|
|
639
|
-
var tmp0_elvis_lhs_0 = lastOrNull(path);
|
|
640
|
-
tmp_2 = (tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0) + '-';
|
|
641
|
-
} else {
|
|
642
|
-
tmp_2 = tmp3_elvis_lhs;
|
|
643
|
-
}
|
|
644
|
-
var prefix = tmp_2;
|
|
645
|
-
var tmp4_elvis_lhs = field.r5z_1;
|
|
646
|
-
var regex = tmp4_elvis_lhs == null ? '\\w{8}' : tmp4_elvis_lhs;
|
|
647
|
-
var value = prefix + Companion_instance_1.s4e(regex).b4f(rs.z5q_1);
|
|
648
|
-
capture.l61_1 = value;
|
|
649
|
-
tmp_0 = value;
|
|
650
|
-
} else {
|
|
651
|
-
if (field instanceof KotestFieldInteger64) {
|
|
652
|
-
var tmp5_elvis_lhs = field.t5z_1;
|
|
653
|
-
var lo = tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs;
|
|
654
|
-
var tmp6_elvis_lhs = field.u5z_1;
|
|
655
|
-
var hi = tmp6_elvis_lhs == null ? new Long(-1, 2147483647) : tmp6_elvis_lhs;
|
|
656
|
-
var value_0 = next(long(Companion_instance_0, longRangeToLong(lo, hi)), rs);
|
|
657
|
-
capture.l61_1 = value_0.toString();
|
|
658
|
-
tmp_0 = value_0;
|
|
659
|
-
} else {
|
|
660
|
-
if (field instanceof KotestFieldInteger32) {
|
|
661
|
-
var tmp7_elvis_lhs = field.w5z_1;
|
|
662
|
-
var lo_0 = tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs;
|
|
663
|
-
var tmp8_elvis_lhs = field.x5z_1;
|
|
664
|
-
var hi_0 = tmp8_elvis_lhs == null ? 2147483647 : tmp8_elvis_lhs;
|
|
665
|
-
var value_1 = next(int(Companion_instance_0, numberRangeToNumber(lo_0, hi_0)), rs);
|
|
666
|
-
capture.l61_1 = value_1.toString();
|
|
667
|
-
tmp_0 = value_1;
|
|
668
|
-
} else {
|
|
669
|
-
tmp_0 = null;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
return tmp_0;
|
|
674
|
-
}
|
|
675
|
-
function consumePendingSeedIfMatches($this, path, field) {
|
|
676
|
-
var tmp0_elvis_lhs = $this.p61_1.xe();
|
|
677
|
-
var tmp;
|
|
678
|
-
if (tmp0_elvis_lhs == null) {
|
|
679
|
-
return null;
|
|
680
|
-
} else {
|
|
681
|
-
tmp = tmp0_elvis_lhs;
|
|
682
|
-
}
|
|
683
|
-
var pending = tmp;
|
|
684
|
-
if (!(path.a1() === (pending.i61_1.a1() + 1 | 0)))
|
|
685
|
-
return null;
|
|
686
|
-
if (!(last(path) === pending.h61_1))
|
|
687
|
-
return null;
|
|
688
|
-
if (!equals(path.m2(0, pending.i61_1.a1()), pending.i61_1))
|
|
689
|
-
return null;
|
|
690
|
-
var tmp_0;
|
|
691
|
-
if (field instanceof KotestFieldString) {
|
|
692
|
-
$this.p61_1.bf();
|
|
693
|
-
tmp_0 = pending.g61_1;
|
|
694
|
-
} else {
|
|
695
|
-
if (field instanceof KotestFieldInteger64) {
|
|
696
|
-
$this.p61_1.bf();
|
|
697
|
-
tmp_0 = toLong(pending.g61_1);
|
|
698
|
-
} else {
|
|
699
|
-
if (field instanceof KotestFieldInteger32) {
|
|
700
|
-
$this.p61_1.bf();
|
|
701
|
-
tmp_0 = toInt(pending.g61_1);
|
|
702
|
-
} else {
|
|
703
|
-
tmp_0 = null;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return tmp_0;
|
|
708
|
-
}
|
|
709
|
-
function seedAnnotationValueFor($this, field, candidate) {
|
|
710
|
-
var tmp;
|
|
711
|
-
if (field instanceof KotestFieldString) {
|
|
712
|
-
tmp = candidate;
|
|
713
|
-
} else {
|
|
714
|
-
if (field instanceof KotestFieldInteger64) {
|
|
715
|
-
tmp = toLongOrNull(candidate);
|
|
716
|
-
} else {
|
|
717
|
-
if (field instanceof KotestFieldInteger32) {
|
|
718
|
-
tmp = toIntOrNull(candidate);
|
|
719
|
-
} else {
|
|
720
|
-
tmp = null;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
return tmp;
|
|
725
|
-
}
|
|
726
|
-
function generateSeededShape($this, path, field, seedFieldName) {
|
|
727
|
-
var tmp0_safe_receiver = lastOrNull(path);
|
|
728
|
-
var isArrayContext = !((tmp0_safe_receiver == null ? null : toIntOrNull(tmp0_safe_receiver)) == null);
|
|
729
|
-
if (isArrayContext && $this.q61_1.r()) {
|
|
730
|
-
var capture = new Capture(path, seedFieldName);
|
|
731
|
-
// Inline function 'community.flock.wirespec.integration.kotest.withFrame' call
|
|
732
|
-
var stack = $this.q61_1;
|
|
733
|
-
var mark = stack.ue_1;
|
|
734
|
-
stack.ze(capture);
|
|
735
|
-
var tmp;
|
|
736
|
-
try {
|
|
737
|
-
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withParentFrame' call
|
|
738
|
-
var frame = new ParentFrame(toString(field.r60_1));
|
|
739
|
-
$this.s61_1.ze(frame);
|
|
740
|
-
var tmp_0;
|
|
741
|
-
try {
|
|
742
|
-
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withShapeDepth' call
|
|
743
|
-
$this.r61_1 = $this.r61_1 + 1 | 0;
|
|
744
|
-
var tmp_1;
|
|
745
|
-
try {
|
|
746
|
-
tmp_1 = field.q60_1(path);
|
|
747
|
-
}finally {
|
|
748
|
-
$this.r61_1 = $this.r61_1 - 1 | 0;
|
|
749
|
-
}
|
|
750
|
-
tmp_0 = tmp_1;
|
|
751
|
-
}finally {
|
|
752
|
-
$this.s61_1.bf();
|
|
753
|
-
}
|
|
754
|
-
var tmp0_elvis_lhs = capture.l61_1;
|
|
755
|
-
var tmp_2;
|
|
756
|
-
if (tmp0_elvis_lhs == null) {
|
|
757
|
-
var message = 'Failed to capture @Seed value at ' + toString(path) + ' for field ' + seedFieldName;
|
|
758
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
759
|
-
} else {
|
|
760
|
-
tmp_2 = tmp0_elvis_lhs;
|
|
761
|
-
}
|
|
762
|
-
tmp = tmp_2;
|
|
763
|
-
}finally {
|
|
764
|
-
while (stack.ue_1 > mark) {
|
|
765
|
-
stack.bf();
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
var seed = tmp;
|
|
769
|
-
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withParentFrame' call
|
|
770
|
-
var frame_0 = new ParentFrame(toString(field.r60_1));
|
|
771
|
-
$this.s61_1.ze(frame_0);
|
|
772
|
-
var tmp_3;
|
|
773
|
-
try {
|
|
774
|
-
tmp_3 = field.q60_1(listOf(seed));
|
|
775
|
-
}finally {
|
|
776
|
-
$this.s61_1.bf();
|
|
777
|
-
}
|
|
778
|
-
return tmp_3;
|
|
779
|
-
}
|
|
780
|
-
var tmp1_elvis_lhs = lastOrNull(dropLast(path, 1));
|
|
781
|
-
var tmp_4;
|
|
782
|
-
if (tmp1_elvis_lhs == null) {
|
|
783
|
-
return null;
|
|
784
|
-
} else {
|
|
785
|
-
tmp_4 = tmp1_elvis_lhs;
|
|
786
|
-
}
|
|
787
|
-
var candidate = tmp_4;
|
|
788
|
-
var tmp0 = $this.p61_1;
|
|
789
|
-
// Inline function 'community.flock.wirespec.integration.kotest.withFrame' call
|
|
790
|
-
var frame_1 = new PendingSeed(candidate, seedFieldName, path);
|
|
791
|
-
var mark_0 = tmp0.ue_1;
|
|
792
|
-
tmp0.ze(frame_1);
|
|
793
|
-
var tmp_5;
|
|
794
|
-
try {
|
|
795
|
-
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withParentFrame' call
|
|
796
|
-
var frame_2 = new ParentFrame(toString(field.r60_1));
|
|
797
|
-
$this.s61_1.ze(frame_2);
|
|
798
|
-
var tmp_6;
|
|
799
|
-
try {
|
|
800
|
-
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withShapeDepth' call
|
|
801
|
-
$this.r61_1 = $this.r61_1 + 1 | 0;
|
|
802
|
-
var tmp_7;
|
|
803
|
-
try {
|
|
804
|
-
tmp_7 = field.q60_1(path);
|
|
805
|
-
}finally {
|
|
806
|
-
$this.r61_1 = $this.r61_1 - 1 | 0;
|
|
807
|
-
}
|
|
808
|
-
tmp_6 = tmp_7;
|
|
809
|
-
}finally {
|
|
810
|
-
$this.s61_1.bf();
|
|
811
|
-
}
|
|
812
|
-
tmp_5 = tmp_6;
|
|
813
|
-
}finally {
|
|
814
|
-
while (tmp0.ue_1 > mark_0) {
|
|
815
|
-
tmp0.bf();
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
return tmp_5;
|
|
819
|
-
}
|
|
820
|
-
function seedFieldNameOf($this, field) {
|
|
821
|
-
var tmp0 = field.p60_1.k1();
|
|
822
|
-
var tmp$ret$4;
|
|
823
|
-
$l$block_1: {
|
|
824
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
825
|
-
var _iterator__ex2g4s = tmp0.t();
|
|
826
|
-
while (_iterator__ex2g4s.u()) {
|
|
827
|
-
var element = _iterator__ex2g4s.v();
|
|
828
|
-
// Inline function 'kotlin.collections.component2' call
|
|
829
|
-
var anns = element.m1();
|
|
830
|
-
var tmp$ret$1;
|
|
831
|
-
$l$block_0: {
|
|
832
|
-
// Inline function 'kotlin.collections.any' call
|
|
833
|
-
var tmp;
|
|
834
|
-
if (isInterface(anns, Collection)) {
|
|
835
|
-
tmp = anns.r();
|
|
836
|
-
} else {
|
|
837
|
-
tmp = false;
|
|
838
|
-
}
|
|
839
|
-
if (tmp) {
|
|
840
|
-
tmp$ret$1 = false;
|
|
841
|
-
break $l$block_0;
|
|
842
|
-
}
|
|
843
|
-
var _iterator__ex2g4s_0 = anns.t();
|
|
844
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
845
|
-
var element_0 = _iterator__ex2g4s_0.v();
|
|
846
|
-
if (equals(element_0.q2('name'), 'Seed')) {
|
|
847
|
-
tmp$ret$1 = true;
|
|
848
|
-
break $l$block_0;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
tmp$ret$1 = false;
|
|
852
|
-
}
|
|
853
|
-
if (tmp$ret$1) {
|
|
854
|
-
tmp$ret$4 = element;
|
|
855
|
-
break $l$block_1;
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
tmp$ret$4 = null;
|
|
859
|
-
}
|
|
860
|
-
var tmp0_safe_receiver = tmp$ret$4;
|
|
861
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1();
|
|
862
|
-
}
|
|
863
|
-
function generateLeaf($this, field, path) {
|
|
864
|
-
var rs = rsFor($this, path);
|
|
865
|
-
var tmp;
|
|
866
|
-
if (field instanceof KotestFieldString) {
|
|
867
|
-
var tmp_0;
|
|
868
|
-
if (field.r5z_1 == null) {
|
|
869
|
-
tmp_0 = null;
|
|
870
|
-
} else {
|
|
871
|
-
// Inline function 'kotlin.let' call
|
|
872
|
-
tmp_0 = '';
|
|
873
|
-
}
|
|
874
|
-
var tmp2_elvis_lhs = tmp_0;
|
|
875
|
-
var tmp_1;
|
|
876
|
-
if (tmp2_elvis_lhs == null) {
|
|
877
|
-
// Inline function 'kotlin.text.orEmpty' call
|
|
878
|
-
var tmp0_elvis_lhs = lastOrNull(path);
|
|
879
|
-
tmp_1 = (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + '-';
|
|
880
|
-
} else {
|
|
881
|
-
tmp_1 = tmp2_elvis_lhs;
|
|
882
|
-
}
|
|
883
|
-
var prefix = tmp_1;
|
|
884
|
-
var tmp3_elvis_lhs = field.r5z_1;
|
|
885
|
-
var regex = tmp3_elvis_lhs == null ? '\\w{8}' : tmp3_elvis_lhs;
|
|
886
|
-
var tmp_2 = prefix + Companion_instance_1.s4e(regex).b4f(rs.z5q_1);
|
|
887
|
-
tmp = !(tmp_2 == null) ? tmp_2 : THROW_CCE();
|
|
888
|
-
} else {
|
|
889
|
-
if (field instanceof KotestFieldInteger64) {
|
|
890
|
-
var tmp4_elvis_lhs = field.t5z_1;
|
|
891
|
-
var lo = tmp4_elvis_lhs == null ? new Long(0, -2147483648) : tmp4_elvis_lhs;
|
|
892
|
-
var tmp5_elvis_lhs = field.u5z_1;
|
|
893
|
-
var hi = tmp5_elvis_lhs == null ? new Long(-1, 2147483647) : tmp5_elvis_lhs;
|
|
894
|
-
var tmp_3 = next(long(Companion_instance_0, longRangeToLong(lo, hi)), rs);
|
|
895
|
-
tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE();
|
|
896
|
-
} else {
|
|
897
|
-
if (field instanceof KotestFieldInteger32) {
|
|
898
|
-
var tmp6_elvis_lhs = field.w5z_1;
|
|
899
|
-
var lo_0 = tmp6_elvis_lhs == null ? -2147483648 : tmp6_elvis_lhs;
|
|
900
|
-
var tmp7_elvis_lhs = field.x5z_1;
|
|
901
|
-
var hi_0 = tmp7_elvis_lhs == null ? 2147483647 : tmp7_elvis_lhs;
|
|
902
|
-
var tmp_4 = next(int(Companion_instance_0, numberRangeToNumber(lo_0, hi_0)), rs);
|
|
903
|
-
tmp = !(tmp_4 == null) ? tmp_4 : THROW_CCE();
|
|
904
|
-
} else {
|
|
905
|
-
if (field instanceof KotestFieldNumber64) {
|
|
906
|
-
var tmp8_elvis_lhs = field.z5z_1;
|
|
907
|
-
var lo_1 = tmp8_elvis_lhs == null ? -1000000.0 : tmp8_elvis_lhs;
|
|
908
|
-
var tmp9_elvis_lhs = field.a60_1;
|
|
909
|
-
var hi_1 = tmp9_elvis_lhs == null ? 1000000.0 : tmp9_elvis_lhs;
|
|
910
|
-
var tmp_5 = next(double(Companion_instance_0, lo_1, hi_1), rs);
|
|
911
|
-
tmp = !(tmp_5 == null) ? tmp_5 : THROW_CCE();
|
|
912
|
-
} else {
|
|
913
|
-
if (field instanceof KotestFieldNumber32) {
|
|
914
|
-
var tmp10_elvis_lhs = field.c60_1;
|
|
915
|
-
var lo_2 = tmp10_elvis_lhs == null ? -1000000.0 : tmp10_elvis_lhs;
|
|
916
|
-
var tmp11_elvis_lhs = field.d60_1;
|
|
917
|
-
var hi_2 = tmp11_elvis_lhs == null ? 1000000.0 : tmp11_elvis_lhs;
|
|
918
|
-
var tmp_6 = next(float(Companion_instance_0, lo_2, hi_2), rs);
|
|
919
|
-
tmp = !(tmp_6 == null) ? tmp_6 : THROW_CCE();
|
|
920
|
-
} else {
|
|
921
|
-
if (field instanceof KotestFieldBoolean) {
|
|
922
|
-
var tmp_7 = next(boolean(Companion_instance_0), rs);
|
|
923
|
-
tmp = !(tmp_7 == null) ? tmp_7 : THROW_CCE();
|
|
924
|
-
} else {
|
|
925
|
-
if (field instanceof KotestFieldBytes) {
|
|
926
|
-
var tmp_8 = next(byteArray(Companion_instance_0, int(Companion_instance_0, numberRangeToNumber(0, 16)), byte(Companion_instance_0)), rs);
|
|
927
|
-
tmp = !(tmp_8 == null) ? tmp_8 : THROW_CCE();
|
|
928
|
-
} else {
|
|
929
|
-
if (field instanceof KotestFieldEnum) {
|
|
930
|
-
var tmp_9 = next(element(Companion_instance_0, field.h60_1), rs);
|
|
931
|
-
tmp = !(tmp_9 == null) ? tmp_9 : THROW_CCE();
|
|
932
|
-
} else {
|
|
933
|
-
if (field instanceof KotestFieldUnion) {
|
|
934
|
-
var tmp_10 = next(element(Companion_instance_0, field.k60_1), rs);
|
|
935
|
-
tmp = !(tmp_10 == null) ? tmp_10 : THROW_CCE();
|
|
936
|
-
} else {
|
|
937
|
-
if (field instanceof KotestFieldArray) {
|
|
938
|
-
var size = next(int(Companion_instance_0, numberRangeToNumber(1, 10)), rs);
|
|
939
|
-
// Inline function 'kotlin.collections.map' call
|
|
940
|
-
var this_0 = until(0, size);
|
|
941
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
942
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
943
|
-
var inductionVariable = this_0.p1_1;
|
|
944
|
-
var last = this_0.q1_1;
|
|
945
|
-
if (inductionVariable <= last)
|
|
946
|
-
do {
|
|
947
|
-
var item = inductionVariable;
|
|
948
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
949
|
-
var i = item;
|
|
950
|
-
var tmp$ret$3 = field.n60_1(plus(path, '' + i));
|
|
951
|
-
destination.x(tmp$ret$3);
|
|
952
|
-
}
|
|
953
|
-
while (!(item === last));
|
|
954
|
-
var tmp_11 = destination;
|
|
955
|
-
tmp = !(tmp_11 == null) ? tmp_11 : THROW_CCE();
|
|
956
|
-
} else {
|
|
957
|
-
if (field instanceof KotestFieldNullable) {
|
|
958
|
-
var tmp_12 = field.o60_1(path);
|
|
959
|
-
tmp = !(tmp_12 == null) ? tmp_12 : THROW_CCE();
|
|
960
|
-
} else {
|
|
961
|
-
if (field instanceof KotestFieldShape) {
|
|
962
|
-
// Inline function 'community.flock.wirespec.integration.kotest.KotestWirespecGenerator.withParentFrame' call
|
|
963
|
-
var frame = new ParentFrame(toString(field.r60_1));
|
|
964
|
-
$this.s61_1.ze(frame);
|
|
965
|
-
var tmp_13;
|
|
966
|
-
try {
|
|
967
|
-
tmp_13 = field.q60_1(path);
|
|
968
|
-
}finally {
|
|
969
|
-
$this.s61_1.bf();
|
|
970
|
-
}
|
|
971
|
-
var tmp_14 = tmp_13;
|
|
972
|
-
tmp = !(tmp_14 == null) ? tmp_14 : THROW_CCE();
|
|
973
|
-
} else {
|
|
974
|
-
if (field instanceof KotestFieldDict) {
|
|
975
|
-
var tmp_15 = mapOf(to('a', field.s60_1(plus(path, 'a'))));
|
|
976
|
-
tmp = !(tmp_15 == null) ? tmp_15 : THROW_CCE();
|
|
977
|
-
} else {
|
|
978
|
-
noWhenBranchMatchedException();
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
return tmp;
|
|
993
|
-
}
|
|
994
|
-
function fieldAnnotations($this, _this__u8e3s4) {
|
|
995
|
-
var tmp;
|
|
996
|
-
if (_this__u8e3s4 instanceof KotestFieldString) {
|
|
997
|
-
tmp = _this__u8e3s4.s5z_1;
|
|
998
|
-
} else {
|
|
999
|
-
if (_this__u8e3s4 instanceof KotestFieldInteger64) {
|
|
1000
|
-
tmp = _this__u8e3s4.v5z_1;
|
|
1001
|
-
} else {
|
|
1002
|
-
if (_this__u8e3s4 instanceof KotestFieldInteger32) {
|
|
1003
|
-
tmp = _this__u8e3s4.y5z_1;
|
|
1004
|
-
} else {
|
|
1005
|
-
if (_this__u8e3s4 instanceof KotestFieldNumber64) {
|
|
1006
|
-
tmp = _this__u8e3s4.b60_1;
|
|
1007
|
-
} else {
|
|
1008
|
-
if (_this__u8e3s4 instanceof KotestFieldNumber32) {
|
|
1009
|
-
tmp = _this__u8e3s4.e60_1;
|
|
1010
|
-
} else {
|
|
1011
|
-
if (_this__u8e3s4 instanceof KotestFieldBoolean) {
|
|
1012
|
-
tmp = _this__u8e3s4.f60_1;
|
|
1013
|
-
} else {
|
|
1014
|
-
if (_this__u8e3s4 instanceof KotestFieldBytes) {
|
|
1015
|
-
tmp = _this__u8e3s4.g60_1;
|
|
1016
|
-
} else {
|
|
1017
|
-
if (_this__u8e3s4 instanceof KotestFieldEnum) {
|
|
1018
|
-
tmp = _this__u8e3s4.i60_1;
|
|
1019
|
-
} else {
|
|
1020
|
-
if (_this__u8e3s4 instanceof KotestFieldUnion) {
|
|
1021
|
-
tmp = _this__u8e3s4.l60_1;
|
|
1022
|
-
} else {
|
|
1023
|
-
tmp = emptyList();
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
return tmp;
|
|
1034
|
-
}
|
|
1035
|
-
function KotestWirespecGenerator(baseSeed, overrides, refinedWrapper) {
|
|
1036
|
-
this.m61_1 = baseSeed;
|
|
1037
|
-
this.n61_1 = overrides;
|
|
1038
|
-
this.o61_1 = refinedWrapper;
|
|
1039
|
-
this.p61_1 = ArrayDeque_init_$Create$();
|
|
1040
|
-
this.q61_1 = ArrayDeque_init_$Create$();
|
|
1041
|
-
this.r61_1 = 0;
|
|
1042
|
-
this.s61_1 = ArrayDeque_init_$Create$();
|
|
1043
|
-
}
|
|
1044
|
-
protoOf(KotestWirespecGenerator).t61 = function (path, field) {
|
|
1045
|
-
var tmp0_safe_receiver = captureSeedIfMatches(this, path, field);
|
|
1046
|
-
if (tmp0_safe_receiver == null)
|
|
1047
|
-
null;
|
|
1048
|
-
else {
|
|
1049
|
-
// Inline function 'kotlin.let' call
|
|
1050
|
-
return !(tmp0_safe_receiver == null) ? tmp0_safe_receiver : THROW_CCE();
|
|
1051
|
-
}
|
|
1052
|
-
var tmp1_safe_receiver = consumePendingSeedIfMatches(this, path, field);
|
|
1053
|
-
if (tmp1_safe_receiver == null)
|
|
1054
|
-
null;
|
|
1055
|
-
else {
|
|
1056
|
-
// Inline function 'kotlin.let' call
|
|
1057
|
-
return !(tmp1_safe_receiver == null) ? tmp1_safe_receiver : THROW_CCE();
|
|
1058
|
-
}
|
|
1059
|
-
var annotations = fieldAnnotations(this, field);
|
|
1060
|
-
var tmp;
|
|
1061
|
-
if (this.r61_1 === 0) {
|
|
1062
|
-
var tmp$ret$2;
|
|
1063
|
-
$l$block_0: {
|
|
1064
|
-
// Inline function 'kotlin.collections.any' call
|
|
1065
|
-
var tmp_0;
|
|
1066
|
-
if (isInterface(annotations, Collection)) {
|
|
1067
|
-
tmp_0 = annotations.r();
|
|
1068
|
-
} else {
|
|
1069
|
-
tmp_0 = false;
|
|
1070
|
-
}
|
|
1071
|
-
if (tmp_0) {
|
|
1072
|
-
tmp$ret$2 = false;
|
|
1073
|
-
break $l$block_0;
|
|
1074
|
-
}
|
|
1075
|
-
var _iterator__ex2g4s = annotations.t();
|
|
1076
|
-
while (_iterator__ex2g4s.u()) {
|
|
1077
|
-
var element = _iterator__ex2g4s.v();
|
|
1078
|
-
if (equals(element.q2('name'), 'Seed')) {
|
|
1079
|
-
tmp$ret$2 = true;
|
|
1080
|
-
break $l$block_0;
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
tmp$ret$2 = false;
|
|
1084
|
-
}
|
|
1085
|
-
tmp = tmp$ret$2;
|
|
1086
|
-
} else {
|
|
1087
|
-
tmp = false;
|
|
1088
|
-
}
|
|
1089
|
-
if (tmp) {
|
|
1090
|
-
var tmp2_safe_receiver = lastOrNull(dropLast(path, 1));
|
|
1091
|
-
if (tmp2_safe_receiver == null)
|
|
1092
|
-
null;
|
|
1093
|
-
else {
|
|
1094
|
-
// Inline function 'kotlin.let' call
|
|
1095
|
-
var tmp0_safe_receiver_0 = seedAnnotationValueFor(this, field, tmp2_safe_receiver);
|
|
1096
|
-
var tmp_1;
|
|
1097
|
-
if (tmp0_safe_receiver_0 == null) {
|
|
1098
|
-
tmp_1 = null;
|
|
1099
|
-
} else {
|
|
1100
|
-
// Inline function 'kotlin.let' call
|
|
1101
|
-
return !(tmp0_safe_receiver_0 == null) ? tmp0_safe_receiver_0 : THROW_CCE();
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
var tmp_2;
|
|
1106
|
-
if (this.r61_1 === 0) {
|
|
1107
|
-
tmp_2 = field instanceof KotestFieldShape;
|
|
1108
|
-
} else {
|
|
1109
|
-
tmp_2 = false;
|
|
1110
|
-
}
|
|
1111
|
-
if (tmp_2) {
|
|
1112
|
-
var tmp3_safe_receiver = seedFieldNameOf(this, field);
|
|
1113
|
-
if (tmp3_safe_receiver == null)
|
|
1114
|
-
null;
|
|
1115
|
-
else {
|
|
1116
|
-
// Inline function 'kotlin.let' call
|
|
1117
|
-
var tmp0_safe_receiver_1 = generateSeededShape(this, path, field, tmp3_safe_receiver);
|
|
1118
|
-
var tmp_3;
|
|
1119
|
-
if (tmp0_safe_receiver_1 == null) {
|
|
1120
|
-
tmp_3 = null;
|
|
1121
|
-
} else {
|
|
1122
|
-
// Inline function 'kotlin.let' call
|
|
1123
|
-
return !(tmp0_safe_receiver_1 == null) ? tmp0_safe_receiver_1 : THROW_CCE();
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
var tmp4_safe_receiver = this.n61_1.w60(path);
|
|
1128
|
-
if (tmp4_safe_receiver == null)
|
|
1129
|
-
null;
|
|
1130
|
-
else {
|
|
1131
|
-
// Inline function 'kotlin.let' call
|
|
1132
|
-
var drawn = next(tmp4_safe_receiver(), rsFor(this, path));
|
|
1133
|
-
var tmp_4 = this.o61_1.t60(drawn, field, path);
|
|
1134
|
-
return (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : THROW_CCE();
|
|
1135
|
-
}
|
|
1136
|
-
var parent = this.s61_1.xe();
|
|
1137
|
-
var leafName = lastOrNull(path);
|
|
1138
|
-
if (!(parent == null) && !(leafName == null)) {
|
|
1139
|
-
var tmp5_safe_receiver = this.n61_1.a61(new FieldKey(parent.f61_1, leafName));
|
|
1140
|
-
if (tmp5_safe_receiver == null)
|
|
1141
|
-
null;
|
|
1142
|
-
else {
|
|
1143
|
-
// Inline function 'kotlin.let' call
|
|
1144
|
-
var drawn_0 = next(tmp5_safe_receiver(), rsFor(this, path));
|
|
1145
|
-
var tmp_5 = this.o61_1.t60(drawn_0, field, path);
|
|
1146
|
-
return (tmp_5 == null ? true : !(tmp_5 == null)) ? tmp_5 : THROW_CCE();
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
return generateLeaf(this, field, path);
|
|
1150
|
-
};
|
|
1151
|
-
function kotestGenerator$lambda(_this__u8e3s4) {
|
|
1152
|
-
return Unit_instance;
|
|
1153
|
-
}
|
|
1154
|
-
function KotestWirespecGeneratorJs(inner) {
|
|
1155
|
-
this.u61_1 = inner;
|
|
1156
|
-
}
|
|
1157
|
-
protoOf(KotestWirespecGeneratorJs).generate = function (path, field) {
|
|
1158
|
-
var kotlinField = jsToKotestField(field);
|
|
1159
|
-
var tmp = toList(path);
|
|
1160
|
-
var result = this.u61_1.t61(tmp, isInterface(kotlinField, KotestField) ? kotlinField : THROW_CCE());
|
|
1161
|
-
return kotlinToJs(result);
|
|
1162
|
-
};
|
|
1163
|
-
function kotestWirespecGeneratorJs(seed) {
|
|
1164
|
-
var inner = kotestGenerator(fromInt(seed));
|
|
1165
|
-
return new KotestWirespecGeneratorJs(inner);
|
|
1166
|
-
}
|
|
1167
|
-
function jsToKotestField(field) {
|
|
1168
|
-
var tmp = field.kind;
|
|
1169
|
-
var kind = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
|
|
1170
|
-
var tmp_0;
|
|
1171
|
-
switch (kind) {
|
|
1172
|
-
case 'string':
|
|
1173
|
-
var tmp_1 = field.regex;
|
|
1174
|
-
tmp_0 = new KotestFieldString((tmp_1 == null ? true : typeof tmp_1 === 'string') ? tmp_1 : THROW_CCE(), jsAnnotationsToKotlin(field.annotations));
|
|
1175
|
-
break;
|
|
1176
|
-
case 'integer64':
|
|
1177
|
-
var tmp_2 = field.min;
|
|
1178
|
-
var tmp1_safe_receiver = isNumber(tmp_2) ? tmp_2 : null;
|
|
1179
|
-
var tmp_3 = tmp1_safe_receiver == null ? null : numberToLong(tmp1_safe_receiver);
|
|
1180
|
-
var tmp_4 = field.max;
|
|
1181
|
-
var tmp2_safe_receiver = isNumber(tmp_4) ? tmp_4 : null;
|
|
1182
|
-
tmp_0 = new KotestFieldInteger64(tmp_3, tmp2_safe_receiver == null ? null : numberToLong(tmp2_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1183
|
-
break;
|
|
1184
|
-
case 'integer32':
|
|
1185
|
-
var tmp_5 = field.min;
|
|
1186
|
-
var tmp3_safe_receiver = isNumber(tmp_5) ? tmp_5 : null;
|
|
1187
|
-
var tmp_6 = tmp3_safe_receiver == null ? null : numberToInt(tmp3_safe_receiver);
|
|
1188
|
-
var tmp_7 = field.max;
|
|
1189
|
-
var tmp4_safe_receiver = isNumber(tmp_7) ? tmp_7 : null;
|
|
1190
|
-
tmp_0 = new KotestFieldInteger32(tmp_6, tmp4_safe_receiver == null ? null : numberToInt(tmp4_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1191
|
-
break;
|
|
1192
|
-
case 'number64':
|
|
1193
|
-
var tmp_8 = field.min;
|
|
1194
|
-
var tmp5_safe_receiver = isNumber(tmp_8) ? tmp_8 : null;
|
|
1195
|
-
var tmp_9 = tmp5_safe_receiver == null ? null : numberToDouble(tmp5_safe_receiver);
|
|
1196
|
-
var tmp_10 = field.max;
|
|
1197
|
-
var tmp6_safe_receiver = isNumber(tmp_10) ? tmp_10 : null;
|
|
1198
|
-
tmp_0 = new KotestFieldNumber64(tmp_9, tmp6_safe_receiver == null ? null : numberToDouble(tmp6_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1199
|
-
break;
|
|
1200
|
-
case 'number32':
|
|
1201
|
-
var tmp_11 = field.min;
|
|
1202
|
-
var tmp7_safe_receiver = isNumber(tmp_11) ? tmp_11 : null;
|
|
1203
|
-
var tmp_12 = tmp7_safe_receiver == null ? null : numberToDouble(tmp7_safe_receiver);
|
|
1204
|
-
var tmp_13 = field.max;
|
|
1205
|
-
var tmp8_safe_receiver = isNumber(tmp_13) ? tmp_13 : null;
|
|
1206
|
-
tmp_0 = new KotestFieldNumber32(tmp_12, tmp8_safe_receiver == null ? null : numberToDouble(tmp8_safe_receiver), jsAnnotationsToKotlin(field.annotations));
|
|
1207
|
-
break;
|
|
1208
|
-
case 'boolean':
|
|
1209
|
-
tmp_0 = new KotestFieldBoolean(jsAnnotationsToKotlin(field.annotations));
|
|
1210
|
-
break;
|
|
1211
|
-
case 'bytes':
|
|
1212
|
-
tmp_0 = new KotestFieldBytes(jsAnnotationsToKotlin(field.annotations));
|
|
1213
|
-
break;
|
|
1214
|
-
case 'enum':
|
|
1215
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1216
|
-
|
|
1217
|
-
var tmp$ret$0 = field.values;
|
|
1218
|
-
tmp_0 = new KotestFieldEnum(toList(tmp$ret$0), jsAnnotationsToKotlin(field.annotations), createKType(PrimitiveClasses_getInstance().hb(), arrayOf([]), false));
|
|
1219
|
-
break;
|
|
1220
|
-
case 'union':
|
|
1221
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1222
|
-
|
|
1223
|
-
var tmp$ret$1 = field.variants;
|
|
1224
|
-
tmp_0 = new KotestFieldUnion(toList(tmp$ret$1), jsAnnotationsToKotlin(field.annotations), createKType(PrimitiveClasses_getInstance().hb(), arrayOf([]), false));
|
|
1225
|
-
break;
|
|
1226
|
-
case 'array':
|
|
1227
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1228
|
-
|
|
1229
|
-
var jsGen = field.generate;
|
|
1230
|
-
tmp_0 = new KotestFieldArray(jsToKotestField$lambda(jsGen));
|
|
1231
|
-
break;
|
|
1232
|
-
case 'nullable':
|
|
1233
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1234
|
-
|
|
1235
|
-
var jsGen_0 = field.generate;
|
|
1236
|
-
tmp_0 = new KotestFieldNullable(jsToKotestField$lambda_0(jsGen_0));
|
|
1237
|
-
break;
|
|
1238
|
-
case 'shape':
|
|
1239
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1240
|
-
|
|
1241
|
-
var jsGen_1 = field.generate;
|
|
1242
|
-
var tmp_14 = jsShapeAnnotationsToKotlin(field.annotations);
|
|
1243
|
-
tmp_0 = new KotestFieldShape(tmp_14, jsToKotestField$lambda_1(jsGen_1), createKType(PrimitiveClasses_getInstance().wa(), arrayOf([]), false));
|
|
1244
|
-
break;
|
|
1245
|
-
case 'dict':
|
|
1246
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1247
|
-
|
|
1248
|
-
var jsGen_2 = field.generate;
|
|
1249
|
-
tmp_0 = new KotestFieldDict(jsToKotestField$lambda_2(jsGen_2));
|
|
1250
|
-
break;
|
|
1251
|
-
default:
|
|
1252
|
-
var message = "Unknown KotestField kind: '" + kind + "'";
|
|
1253
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1254
|
-
}
|
|
1255
|
-
return tmp_0;
|
|
1256
|
-
}
|
|
1257
|
-
function jsAnnotationsToKotlin(jsAnns) {
|
|
1258
|
-
if (jsAnns == null)
|
|
1259
|
-
return emptyList();
|
|
1260
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1261
|
-
var arr = jsAnns;
|
|
1262
|
-
// Inline function 'kotlin.collections.map' call
|
|
1263
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1264
|
-
var destination = ArrayList_init_$Create$_0(arr.length);
|
|
1265
|
-
var inductionVariable = 0;
|
|
1266
|
-
var last = arr.length;
|
|
1267
|
-
while (inductionVariable < last) {
|
|
1268
|
-
var item = arr[inductionVariable];
|
|
1269
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
1270
|
-
var tmp$ret$1 = jsObjToKotlinMap(item);
|
|
1271
|
-
destination.x(tmp$ret$1);
|
|
1272
|
-
}
|
|
1273
|
-
return destination;
|
|
1274
|
-
}
|
|
1275
|
-
function jsShapeAnnotationsToKotlin(jsAnns) {
|
|
1276
|
-
if (jsAnns == null)
|
|
1277
|
-
return emptyMap();
|
|
1278
|
-
var tmp = Object.keys(jsAnns);
|
|
1279
|
-
var keys = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
1280
|
-
// Inline function 'kotlin.collections.associateWith' call
|
|
1281
|
-
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(keys.length), 16));
|
|
1282
|
-
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1283
|
-
var inductionVariable = 0;
|
|
1284
|
-
var last = keys.length;
|
|
1285
|
-
while (inductionVariable < last) {
|
|
1286
|
-
var element = keys[inductionVariable];
|
|
1287
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
1288
|
-
var tmp$ret$0 = jsAnnotationsToKotlin(jsAnns[element]);
|
|
1289
|
-
result.y2(element, tmp$ret$0);
|
|
1290
|
-
}
|
|
1291
|
-
return result;
|
|
1292
|
-
}
|
|
1293
|
-
function jsObjToKotlinMap(obj) {
|
|
1294
|
-
var tmp = Object.keys(obj);
|
|
1295
|
-
var keys = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
1296
|
-
// Inline function 'kotlin.collections.associateWith' call
|
|
1297
|
-
var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(keys.length), 16));
|
|
1298
|
-
// Inline function 'kotlin.collections.associateWithTo' call
|
|
1299
|
-
var inductionVariable = 0;
|
|
1300
|
-
var last = keys.length;
|
|
1301
|
-
while (inductionVariable < last) {
|
|
1302
|
-
var element = keys[inductionVariable];
|
|
1303
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
1304
|
-
var tmp$ret$0 = jsValueToAny(obj[element]);
|
|
1305
|
-
result.y2(element, tmp$ret$0);
|
|
1306
|
-
}
|
|
1307
|
-
return result;
|
|
1308
|
-
}
|
|
1309
|
-
function jsValueToAny(v) {
|
|
1310
|
-
var tmp = typeof v;
|
|
1311
|
-
var type = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
|
|
1312
|
-
var tmp_0;
|
|
1313
|
-
if (type === 'object') {
|
|
1314
|
-
var tmp_1;
|
|
1315
|
-
if (v == null) {
|
|
1316
|
-
var message = 'Unexpected null in annotation value';
|
|
1317
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1318
|
-
} else {
|
|
1319
|
-
var tmp_2 = Array.isArray(v);
|
|
1320
|
-
if ((!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : THROW_CCE()) {
|
|
1321
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
1322
|
-
// Inline function 'kotlin.collections.map' call
|
|
1323
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
1324
|
-
var destination = ArrayList_init_$Create$_0(v.length);
|
|
1325
|
-
var inductionVariable = 0;
|
|
1326
|
-
var last = v.length;
|
|
1327
|
-
while (inductionVariable < last) {
|
|
1328
|
-
var item = v[inductionVariable];
|
|
1329
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
1330
|
-
var tmp$ret$1 = jsValueToAny(item);
|
|
1331
|
-
destination.x(tmp$ret$1);
|
|
1332
|
-
}
|
|
1333
|
-
tmp_1 = destination;
|
|
1334
|
-
} else {
|
|
1335
|
-
tmp_1 = jsObjToKotlinMap(v);
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
tmp_0 = tmp_1;
|
|
1339
|
-
} else {
|
|
1340
|
-
tmp_0 = !(v == null) ? v : THROW_CCE();
|
|
1341
|
-
}
|
|
1342
|
-
return tmp_0;
|
|
1343
|
-
}
|
|
1344
|
-
function kotlinToJs(value) {
|
|
1345
|
-
if (value == null)
|
|
1346
|
-
return null;
|
|
1347
|
-
var tmp;
|
|
1348
|
-
if (value instanceof Long) {
|
|
1349
|
-
tmp = toNumber(value);
|
|
1350
|
-
} else {
|
|
1351
|
-
if (isInterface(value, KtList)) {
|
|
1352
|
-
var arr = [];
|
|
1353
|
-
var _iterator__ex2g4s = value.t();
|
|
1354
|
-
while (_iterator__ex2g4s.u()) {
|
|
1355
|
-
var item = _iterator__ex2g4s.v();
|
|
1356
|
-
arr.push(kotlinToJs(item));
|
|
1357
|
-
}
|
|
1358
|
-
tmp = arr;
|
|
1359
|
-
} else {
|
|
1360
|
-
if (isInterface(value, KtMap)) {
|
|
1361
|
-
var obj = {};
|
|
1362
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
1363
|
-
var _iterator__ex2g4s_0 = value.k1().t();
|
|
1364
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
1365
|
-
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
1366
|
-
// Inline function 'kotlin.collections.component1' call
|
|
1367
|
-
var k = _destruct__k2r9zo.l1();
|
|
1368
|
-
// Inline function 'kotlin.collections.component2' call
|
|
1369
|
-
var v = _destruct__k2r9zo.m1();
|
|
1370
|
-
obj[(!(k == null) ? typeof k === 'string' : false) ? k : THROW_CCE()] = kotlinToJs(v);
|
|
1371
|
-
}
|
|
1372
|
-
tmp = obj;
|
|
1373
|
-
} else {
|
|
1374
|
-
tmp = value;
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
return tmp;
|
|
1379
|
-
}
|
|
1380
|
-
function jsToKotestField$lambda($jsGen) {
|
|
1381
|
-
return function (p) {
|
|
1382
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1383
|
-
var tmp$ret$0 = copyToArray(p);
|
|
1384
|
-
var tmp = $jsGen(tmp$ret$0);
|
|
1385
|
-
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1386
|
-
var tmp_0;
|
|
1387
|
-
if (tmp0_elvis_lhs == null) {
|
|
1388
|
-
var message = 'array element callback returned null at path ' + toString(p);
|
|
1389
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1390
|
-
} else {
|
|
1391
|
-
tmp_0 = tmp0_elvis_lhs;
|
|
1392
|
-
}
|
|
1393
|
-
return tmp_0;
|
|
1394
|
-
};
|
|
1395
|
-
}
|
|
1396
|
-
function jsToKotestField$lambda_0($jsGen) {
|
|
1397
|
-
return function (p) {
|
|
1398
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1399
|
-
var tmp$ret$0 = copyToArray(p);
|
|
1400
|
-
var tmp = $jsGen(tmp$ret$0);
|
|
1401
|
-
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1402
|
-
var tmp_0;
|
|
1403
|
-
if (tmp0_elvis_lhs == null) {
|
|
1404
|
-
var message = 'nullable inner callback returned null at path ' + toString(p);
|
|
1405
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1406
|
-
} else {
|
|
1407
|
-
tmp_0 = tmp0_elvis_lhs;
|
|
1408
|
-
}
|
|
1409
|
-
return tmp_0;
|
|
1410
|
-
};
|
|
1411
|
-
}
|
|
1412
|
-
function jsToKotestField$lambda_1($jsGen) {
|
|
1413
|
-
return function (p) {
|
|
1414
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1415
|
-
var tmp$ret$0 = copyToArray(p);
|
|
1416
|
-
var tmp = $jsGen(tmp$ret$0);
|
|
1417
|
-
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1418
|
-
var tmp_0;
|
|
1419
|
-
if (tmp0_elvis_lhs == null) {
|
|
1420
|
-
var message = 'shape callback returned null at path ' + toString(p);
|
|
1421
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1422
|
-
} else {
|
|
1423
|
-
tmp_0 = tmp0_elvis_lhs;
|
|
1424
|
-
}
|
|
1425
|
-
return tmp_0;
|
|
1426
|
-
};
|
|
1427
|
-
}
|
|
1428
|
-
function jsToKotestField$lambda_2($jsGen) {
|
|
1429
|
-
return function (p) {
|
|
1430
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1431
|
-
var tmp$ret$0 = copyToArray(p);
|
|
1432
|
-
var tmp = $jsGen(tmp$ret$0);
|
|
1433
|
-
var tmp0_elvis_lhs = !(tmp == null) ? tmp : null;
|
|
1434
|
-
var tmp_0;
|
|
1435
|
-
if (tmp0_elvis_lhs == null) {
|
|
1436
|
-
var message = 'dict value callback returned null at path ' + toString(p);
|
|
1437
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
1438
|
-
} else {
|
|
1439
|
-
tmp_0 = tmp0_elvis_lhs;
|
|
1440
|
-
}
|
|
1441
|
-
return tmp_0;
|
|
1442
|
-
};
|
|
1443
|
-
}
|
|
1444
|
-
//region block: init
|
|
1445
|
-
IdentityRefinedWrapper_instance = new IdentityRefinedWrapper();
|
|
1446
|
-
Wildcard_instance = new Wildcard();
|
|
1447
|
-
//endregion
|
|
1448
|
-
//region block: exports
|
|
1449
|
-
export {
|
|
1450
|
-
KotestWirespecGeneratorJs as KotestWirespecGeneratorJs,
|
|
1451
|
-
kotestWirespecGeneratorJs as kotestWirespecGeneratorJs,
|
|
1452
|
-
};
|
|
1453
|
-
//endregion
|
|
1454
|
-
|
|
1455
|
-
//# sourceMappingURL=wirespec-src-integration-kotest.mjs.map
|