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