@flock/wirespec 0.20.0-RC.10 → 0.20.0-RC.11
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/kotlin-kotlin-stdlib.mjs +9 -9
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +13 -13
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +157 -148
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +30 -30
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +30 -30
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +89 -89
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +10 -10
- package/wirespec-src-compiler-emitters-scala.mjs +9 -9
- package/wirespec-src-compiler-emitters-typescript.mjs +79 -79
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +48 -38
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +53 -53
- package/wirespec-src-compiler-lib.mjs +30 -30
- package/wirespec-src-converter-avro.mjs +6 -6
- package/wirespec-src-converter-openapi.mjs +79 -79
- package/wirespec-src-tools-generator.mjs +11 -11
|
@@ -196,6 +196,7 @@ initMetadataForClass(WrongTokenException, 'WrongTokenException', VOID, EatTokenE
|
|
|
196
196
|
initMetadataForClass(NullTokenException, 'NullTokenException', VOID, EatTokenException);
|
|
197
197
|
initMetadataForClass(NextException, 'NextException', VOID, NullTokenException);
|
|
198
198
|
initMetadataForClass(DefinitionNotExistsException, 'DefinitionNotExistsException', VOID, EatTokenException);
|
|
199
|
+
initMetadataForClass(NullableRefinedReferenceException, 'NullableRefinedReferenceException', VOID, ParserException);
|
|
199
200
|
initMetadataForClass(ValidationError, 'ValidationError', VOID, WirespecException);
|
|
200
201
|
initMetadataForClass(EmptyModule, 'EmptyModule', EmptyModule, ValidationError);
|
|
201
202
|
initMetadataForClass(UnionError, 'UnionError', UnionError, ValidationError);
|
|
@@ -246,22 +247,22 @@ initMetadataForObject(Bytes, 'Bytes');
|
|
|
246
247
|
function copy(isNullable) {
|
|
247
248
|
var tmp;
|
|
248
249
|
if (this instanceof Any) {
|
|
249
|
-
tmp = this.
|
|
250
|
+
tmp = this.yu(isNullable == null ? this.vu_1 : isNullable);
|
|
250
251
|
} else {
|
|
251
252
|
if (this instanceof Custom) {
|
|
252
|
-
tmp = this.
|
|
253
|
+
tmp = this.iv(VOID, isNullable == null ? this.gv_1 : isNullable);
|
|
253
254
|
} else {
|
|
254
255
|
if (this instanceof Dict_0) {
|
|
255
|
-
tmp = this.
|
|
256
|
+
tmp = this.dv(VOID, isNullable == null ? this.to_1 : isNullable);
|
|
256
257
|
} else {
|
|
257
258
|
if (this instanceof Iterable) {
|
|
258
|
-
tmp = this.
|
|
259
|
+
tmp = this.ev(VOID, isNullable == null ? this.qo_1 : isNullable);
|
|
259
260
|
} else {
|
|
260
261
|
if (this instanceof Primitive) {
|
|
261
|
-
tmp = this.kv(VOID, isNullable == null ? this.
|
|
262
|
+
tmp = this.kv(VOID, isNullable == null ? this.st_1 : isNullable);
|
|
262
263
|
} else {
|
|
263
264
|
if (this instanceof Unit) {
|
|
264
|
-
tmp = this.
|
|
265
|
+
tmp = this.yu(isNullable == null ? this.av_1 : isNullable);
|
|
265
266
|
} else {
|
|
266
267
|
noWhenBranchMatchedException();
|
|
267
268
|
}
|
|
@@ -1556,6 +1557,9 @@ function NextException(fileUri, coordinates) {
|
|
|
1556
1557
|
function DefinitionNotExistsException(fileUri, referenceName, coordinates) {
|
|
1557
1558
|
EatTokenException.call(this, fileUri, coordinates, 'Cannot find reference: ' + referenceName);
|
|
1558
1559
|
}
|
|
1560
|
+
function NullableRefinedReferenceException(fileUri, referenceName, coordinates) {
|
|
1561
|
+
ParserException.call(this, fileUri, coordinates, 'A refined type cannot be nullable: ' + referenceName);
|
|
1562
|
+
}
|
|
1559
1563
|
function EatTokenException(fileUri, coordinates, message) {
|
|
1560
1564
|
ParserException.call(this, fileUri, coordinates, message);
|
|
1561
1565
|
}
|
|
@@ -4639,7 +4643,12 @@ function parseRefined(_this__u8e3s4, comment, annotations, identifier) {
|
|
|
4639
4643
|
var tmp0_subject = _this__u8e3s4.ws_1.ks_1;
|
|
4640
4644
|
var tmp_0;
|
|
4641
4645
|
if (isInterface(tmp0_subject, PrimitiveType)) {
|
|
4642
|
-
|
|
4646
|
+
var coordinates = _this__u8e3s4.ws_1.ls_1;
|
|
4647
|
+
var reference = raise.vm(parsePrimitiveType(_this__u8e3s4, raise.vm(_this__u8e3s4.zs())));
|
|
4648
|
+
if (reference.st_1) {
|
|
4649
|
+
raise.rm(new NullableRefinedReferenceException(_this__u8e3s4.ts_1, identifier.l1(), coordinates));
|
|
4650
|
+
}
|
|
4651
|
+
tmp_0 = new Refined(comment, annotations, identifier, reference);
|
|
4643
4652
|
} else {
|
|
4644
4653
|
// Inline function 'community.flock.wirespec.compiler.core.parse.raiseWrongToken' call
|
|
4645
4654
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -5562,10 +5571,10 @@ function Type(comment, annotations, identifier, shape, extends_0) {
|
|
|
5562
5571
|
protoOf(Type).nr = function () {
|
|
5563
5572
|
return this.mp_1;
|
|
5564
5573
|
};
|
|
5565
|
-
protoOf(Type).
|
|
5574
|
+
protoOf(Type).ut = function (comment, annotations, identifier, shape, extends_0) {
|
|
5566
5575
|
return new Type(comment, annotations, identifier, shape, extends_0);
|
|
5567
5576
|
};
|
|
5568
|
-
protoOf(Type).
|
|
5577
|
+
protoOf(Type).vt = function (comment, annotations, identifier, shape, extends_0, $super) {
|
|
5569
5578
|
comment = comment === VOID ? this.kp_1 : comment;
|
|
5570
5579
|
annotations = annotations === VOID ? this.lp_1 : annotations;
|
|
5571
5580
|
identifier = identifier === VOID ? this.mp_1 : identifier;
|
|
@@ -5573,9 +5582,9 @@ protoOf(Type).st = function (comment, annotations, identifier, shape, extends_0,
|
|
|
5573
5582
|
extends_0 = extends_0 === VOID ? this.op_1 : extends_0;
|
|
5574
5583
|
var tmp;
|
|
5575
5584
|
if ($super === VOID) {
|
|
5576
|
-
tmp = this.
|
|
5585
|
+
tmp = this.ut(comment, annotations, identifier, shape, extends_0);
|
|
5577
5586
|
} else {
|
|
5578
|
-
var tmp_0 = $super.
|
|
5587
|
+
var tmp_0 = $super.ut;
|
|
5579
5588
|
var tmp_1 = comment;
|
|
5580
5589
|
tmp = tmp_0.call(this, tmp_1 == null ? null : new Comment(tmp_1), annotations, identifier, shape, extends_0);
|
|
5581
5590
|
}
|
|
@@ -5840,10 +5849,10 @@ function Endpoint(comment, annotations, identifier, method, path, queries, heade
|
|
|
5840
5849
|
protoOf(Endpoint).nr = function () {
|
|
5841
5850
|
return this.vp_1;
|
|
5842
5851
|
};
|
|
5843
|
-
protoOf(Endpoint).
|
|
5852
|
+
protoOf(Endpoint).wt = function (comment, annotations, identifier, method, path, queries, headers, requests, responses) {
|
|
5844
5853
|
return new Endpoint(comment, annotations, identifier, method, path, queries, headers, requests, responses);
|
|
5845
5854
|
};
|
|
5846
|
-
protoOf(Endpoint).
|
|
5855
|
+
protoOf(Endpoint).xt = function (comment, annotations, identifier, method, path, queries, headers, requests, responses, $super) {
|
|
5847
5856
|
comment = comment === VOID ? this.tp_1 : comment;
|
|
5848
5857
|
annotations = annotations === VOID ? this.up_1 : annotations;
|
|
5849
5858
|
identifier = identifier === VOID ? this.vp_1 : identifier;
|
|
@@ -5855,9 +5864,9 @@ protoOf(Endpoint).ut = function (comment, annotations, identifier, method, path,
|
|
|
5855
5864
|
responses = responses === VOID ? this.bq_1 : responses;
|
|
5856
5865
|
var tmp;
|
|
5857
5866
|
if ($super === VOID) {
|
|
5858
|
-
tmp = this.
|
|
5867
|
+
tmp = this.wt(comment, annotations, identifier, method, path, queries, headers, requests, responses);
|
|
5859
5868
|
} else {
|
|
5860
|
-
var tmp_0 = $super.
|
|
5869
|
+
var tmp_0 = $super.wt;
|
|
5861
5870
|
var tmp_1 = comment;
|
|
5862
5871
|
tmp = tmp_0.call(this, tmp_1 == null ? null : new Comment(tmp_1), annotations, identifier, method, path, queries, headers, requests, responses);
|
|
5863
5872
|
}
|
|
@@ -6125,39 +6134,39 @@ function Model() {
|
|
|
6125
6134
|
}
|
|
6126
6135
|
function DefinitionIdentifier(name) {
|
|
6127
6136
|
Identifier.call(this, name);
|
|
6128
|
-
this.
|
|
6137
|
+
this.zt_1 = name;
|
|
6129
6138
|
}
|
|
6130
6139
|
protoOf(DefinitionIdentifier).toString = function () {
|
|
6131
|
-
return 'DefinitionIdentifier(name=' + this.
|
|
6140
|
+
return 'DefinitionIdentifier(name=' + this.zt_1 + ')';
|
|
6132
6141
|
};
|
|
6133
6142
|
protoOf(DefinitionIdentifier).hashCode = function () {
|
|
6134
|
-
return getStringHashCode(this.
|
|
6143
|
+
return getStringHashCode(this.zt_1);
|
|
6135
6144
|
};
|
|
6136
6145
|
protoOf(DefinitionIdentifier).equals = function (other) {
|
|
6137
6146
|
if (this === other)
|
|
6138
6147
|
return true;
|
|
6139
6148
|
if (!(other instanceof DefinitionIdentifier))
|
|
6140
6149
|
return false;
|
|
6141
|
-
if (!(this.
|
|
6150
|
+
if (!(this.zt_1 === other.zt_1))
|
|
6142
6151
|
return false;
|
|
6143
6152
|
return true;
|
|
6144
6153
|
};
|
|
6145
6154
|
function FieldIdentifier(name) {
|
|
6146
6155
|
Identifier.call(this, name);
|
|
6147
|
-
this.
|
|
6156
|
+
this.bu_1 = name;
|
|
6148
6157
|
}
|
|
6149
6158
|
protoOf(FieldIdentifier).toString = function () {
|
|
6150
|
-
return 'FieldIdentifier(name=' + this.
|
|
6159
|
+
return 'FieldIdentifier(name=' + this.bu_1 + ')';
|
|
6151
6160
|
};
|
|
6152
6161
|
protoOf(FieldIdentifier).hashCode = function () {
|
|
6153
|
-
return getStringHashCode(this.
|
|
6162
|
+
return getStringHashCode(this.bu_1);
|
|
6154
6163
|
};
|
|
6155
6164
|
protoOf(FieldIdentifier).equals = function (other) {
|
|
6156
6165
|
if (this === other)
|
|
6157
6166
|
return true;
|
|
6158
6167
|
if (!(other instanceof FieldIdentifier))
|
|
6159
6168
|
return false;
|
|
6160
|
-
if (!(this.
|
|
6169
|
+
if (!(this.bu_1 === other.bu_1))
|
|
6161
6170
|
return false;
|
|
6162
6171
|
return true;
|
|
6163
6172
|
};
|
|
@@ -6214,69 +6223,69 @@ protoOf(Comment).equals = function (other) {
|
|
|
6214
6223
|
return Comment__equals_impl_3xkmkx(this.lt_1, other);
|
|
6215
6224
|
};
|
|
6216
6225
|
function Single(value) {
|
|
6217
|
-
this.
|
|
6226
|
+
this.cu_1 = value;
|
|
6218
6227
|
}
|
|
6219
6228
|
protoOf(Single).toString = function () {
|
|
6220
|
-
return 'Single(value=' + this.
|
|
6229
|
+
return 'Single(value=' + this.cu_1 + ')';
|
|
6221
6230
|
};
|
|
6222
6231
|
protoOf(Single).hashCode = function () {
|
|
6223
|
-
return getStringHashCode(this.
|
|
6232
|
+
return getStringHashCode(this.cu_1);
|
|
6224
6233
|
};
|
|
6225
6234
|
protoOf(Single).equals = function (other) {
|
|
6226
6235
|
if (this === other)
|
|
6227
6236
|
return true;
|
|
6228
6237
|
if (!(other instanceof Single))
|
|
6229
6238
|
return false;
|
|
6230
|
-
if (!(this.
|
|
6239
|
+
if (!(this.cu_1 === other.cu_1))
|
|
6231
6240
|
return false;
|
|
6232
6241
|
return true;
|
|
6233
6242
|
};
|
|
6234
6243
|
function Array_0(value) {
|
|
6235
|
-
this.
|
|
6244
|
+
this.du_1 = value;
|
|
6236
6245
|
}
|
|
6237
6246
|
protoOf(Array_0).toString = function () {
|
|
6238
|
-
return 'Array(value=' + toString(this.
|
|
6247
|
+
return 'Array(value=' + toString(this.du_1) + ')';
|
|
6239
6248
|
};
|
|
6240
6249
|
protoOf(Array_0).hashCode = function () {
|
|
6241
|
-
return hashCode(this.
|
|
6250
|
+
return hashCode(this.du_1);
|
|
6242
6251
|
};
|
|
6243
6252
|
protoOf(Array_0).equals = function (other) {
|
|
6244
6253
|
if (this === other)
|
|
6245
6254
|
return true;
|
|
6246
6255
|
if (!(other instanceof Array_0))
|
|
6247
6256
|
return false;
|
|
6248
|
-
if (!equals(this.
|
|
6257
|
+
if (!equals(this.du_1, other.du_1))
|
|
6249
6258
|
return false;
|
|
6250
6259
|
return true;
|
|
6251
6260
|
};
|
|
6252
6261
|
function Dict(value) {
|
|
6253
|
-
this.
|
|
6262
|
+
this.eu_1 = value;
|
|
6254
6263
|
}
|
|
6255
6264
|
protoOf(Dict).toString = function () {
|
|
6256
|
-
return 'Dict(value=' + toString(this.
|
|
6265
|
+
return 'Dict(value=' + toString(this.eu_1) + ')';
|
|
6257
6266
|
};
|
|
6258
6267
|
protoOf(Dict).hashCode = function () {
|
|
6259
|
-
return hashCode(this.
|
|
6268
|
+
return hashCode(this.eu_1);
|
|
6260
6269
|
};
|
|
6261
6270
|
protoOf(Dict).equals = function (other) {
|
|
6262
6271
|
if (this === other)
|
|
6263
6272
|
return true;
|
|
6264
6273
|
if (!(other instanceof Dict))
|
|
6265
6274
|
return false;
|
|
6266
|
-
if (!equals(this.
|
|
6275
|
+
if (!equals(this.eu_1, other.eu_1))
|
|
6267
6276
|
return false;
|
|
6268
6277
|
return true;
|
|
6269
6278
|
};
|
|
6270
6279
|
function Parameter(name, value) {
|
|
6271
|
-
this.
|
|
6272
|
-
this.
|
|
6280
|
+
this.fu_1 = name;
|
|
6281
|
+
this.gu_1 = value;
|
|
6273
6282
|
}
|
|
6274
6283
|
protoOf(Parameter).toString = function () {
|
|
6275
|
-
return 'Parameter(name=' + this.
|
|
6284
|
+
return 'Parameter(name=' + this.fu_1 + ', value=' + toString(this.gu_1) + ')';
|
|
6276
6285
|
};
|
|
6277
6286
|
protoOf(Parameter).hashCode = function () {
|
|
6278
|
-
var result = getStringHashCode(this.
|
|
6279
|
-
result = imul(result, 31) + hashCode(this.
|
|
6287
|
+
var result = getStringHashCode(this.fu_1);
|
|
6288
|
+
result = imul(result, 31) + hashCode(this.gu_1) | 0;
|
|
6280
6289
|
return result;
|
|
6281
6290
|
};
|
|
6282
6291
|
protoOf(Parameter).equals = function (other) {
|
|
@@ -6284,22 +6293,22 @@ protoOf(Parameter).equals = function (other) {
|
|
|
6284
6293
|
return true;
|
|
6285
6294
|
if (!(other instanceof Parameter))
|
|
6286
6295
|
return false;
|
|
6287
|
-
if (!(this.
|
|
6296
|
+
if (!(this.fu_1 === other.fu_1))
|
|
6288
6297
|
return false;
|
|
6289
|
-
if (!equals(this.
|
|
6298
|
+
if (!equals(this.gu_1, other.gu_1))
|
|
6290
6299
|
return false;
|
|
6291
6300
|
return true;
|
|
6292
6301
|
};
|
|
6293
6302
|
function Annotation(name, parameters) {
|
|
6294
|
-
this.
|
|
6295
|
-
this.
|
|
6303
|
+
this.hu_1 = name;
|
|
6304
|
+
this.iu_1 = parameters;
|
|
6296
6305
|
}
|
|
6297
6306
|
protoOf(Annotation).toString = function () {
|
|
6298
|
-
return 'Annotation(name=' + this.
|
|
6307
|
+
return 'Annotation(name=' + this.hu_1 + ', parameters=' + toString(this.iu_1) + ')';
|
|
6299
6308
|
};
|
|
6300
6309
|
protoOf(Annotation).hashCode = function () {
|
|
6301
|
-
var result = getStringHashCode(this.
|
|
6302
|
-
result = imul(result, 31) + hashCode(this.
|
|
6310
|
+
var result = getStringHashCode(this.hu_1);
|
|
6311
|
+
result = imul(result, 31) + hashCode(this.iu_1) | 0;
|
|
6303
6312
|
return result;
|
|
6304
6313
|
};
|
|
6305
6314
|
protoOf(Annotation).equals = function (other) {
|
|
@@ -6307,9 +6316,9 @@ protoOf(Annotation).equals = function (other) {
|
|
|
6307
6316
|
return true;
|
|
6308
6317
|
if (!(other instanceof Annotation))
|
|
6309
6318
|
return false;
|
|
6310
|
-
if (!(this.
|
|
6319
|
+
if (!(this.hu_1 === other.hu_1))
|
|
6311
6320
|
return false;
|
|
6312
|
-
if (!equals(this.
|
|
6321
|
+
if (!equals(this.iu_1, other.iu_1))
|
|
6313
6322
|
return false;
|
|
6314
6323
|
return true;
|
|
6315
6324
|
};
|
|
@@ -6358,15 +6367,15 @@ protoOf(RegExp_0).equals = function (other) {
|
|
|
6358
6367
|
return RegExp__equals_impl_fyc0d7(this.qt_1, other);
|
|
6359
6368
|
};
|
|
6360
6369
|
function Bound(min, max) {
|
|
6361
|
-
this.
|
|
6362
|
-
this.
|
|
6370
|
+
this.ju_1 = min;
|
|
6371
|
+
this.ku_1 = max;
|
|
6363
6372
|
}
|
|
6364
6373
|
protoOf(Bound).toString = function () {
|
|
6365
|
-
return 'Bound(min=' + this.
|
|
6374
|
+
return 'Bound(min=' + this.ju_1 + ', max=' + this.ku_1 + ')';
|
|
6366
6375
|
};
|
|
6367
6376
|
protoOf(Bound).hashCode = function () {
|
|
6368
|
-
var result = this.
|
|
6369
|
-
result = imul(result, 31) + (this.
|
|
6377
|
+
var result = this.ju_1 == null ? 0 : getStringHashCode(this.ju_1);
|
|
6378
|
+
result = imul(result, 31) + (this.ku_1 == null ? 0 : getStringHashCode(this.ku_1)) | 0;
|
|
6370
6379
|
return result;
|
|
6371
6380
|
};
|
|
6372
6381
|
protoOf(Bound).equals = function (other) {
|
|
@@ -6374,9 +6383,9 @@ protoOf(Bound).equals = function (other) {
|
|
|
6374
6383
|
return true;
|
|
6375
6384
|
if (!(other instanceof Bound))
|
|
6376
6385
|
return false;
|
|
6377
|
-
if (!(this.
|
|
6386
|
+
if (!(this.ju_1 == other.ju_1))
|
|
6378
6387
|
return false;
|
|
6379
|
-
if (!(this.
|
|
6388
|
+
if (!(this.ku_1 == other.ku_1))
|
|
6380
6389
|
return false;
|
|
6381
6390
|
return true;
|
|
6382
6391
|
};
|
|
@@ -6384,23 +6393,23 @@ function Precision(name, ordinal) {
|
|
|
6384
6393
|
Enum.call(this, name, ordinal);
|
|
6385
6394
|
}
|
|
6386
6395
|
function String_0(constraint) {
|
|
6387
|
-
this.
|
|
6388
|
-
this.
|
|
6396
|
+
this.lu_1 = constraint;
|
|
6397
|
+
this.mu_1 = 'String';
|
|
6389
6398
|
}
|
|
6390
6399
|
protoOf(String_0).m = function () {
|
|
6391
|
-
return this.
|
|
6400
|
+
return this.mu_1;
|
|
6392
6401
|
};
|
|
6393
6402
|
protoOf(String_0).toString = function () {
|
|
6394
|
-
var tmp = this.
|
|
6403
|
+
var tmp = this.lu_1;
|
|
6395
6404
|
return 'String(constraint=' + toString_1(tmp == null ? null : new RegExp_0(tmp)) + ')';
|
|
6396
6405
|
};
|
|
6397
6406
|
protoOf(String_0).hashCode = function () {
|
|
6398
6407
|
var tmp;
|
|
6399
|
-
var tmp_0 = this.
|
|
6408
|
+
var tmp_0 = this.lu_1;
|
|
6400
6409
|
if ((tmp_0 == null ? null : new RegExp_0(tmp_0)) == null) {
|
|
6401
6410
|
tmp = 0;
|
|
6402
6411
|
} else {
|
|
6403
|
-
tmp = RegExp__hashCode_impl_40vfcn(this.
|
|
6412
|
+
tmp = RegExp__hashCode_impl_40vfcn(this.lu_1);
|
|
6404
6413
|
}
|
|
6405
6414
|
return tmp;
|
|
6406
6415
|
};
|
|
@@ -6409,28 +6418,28 @@ protoOf(String_0).equals = function (other) {
|
|
|
6409
6418
|
return true;
|
|
6410
6419
|
if (!(other instanceof String_0))
|
|
6411
6420
|
return false;
|
|
6412
|
-
var tmp = this.
|
|
6421
|
+
var tmp = this.lu_1;
|
|
6413
6422
|
var tmp_0 = tmp == null ? null : new RegExp_0(tmp);
|
|
6414
|
-
var tmp_1 = other.
|
|
6423
|
+
var tmp_1 = other.lu_1;
|
|
6415
6424
|
if (!equals(tmp_0, tmp_1 == null ? null : new RegExp_0(tmp_1)))
|
|
6416
6425
|
return false;
|
|
6417
6426
|
return true;
|
|
6418
6427
|
};
|
|
6419
6428
|
function Integer(precision, constraint) {
|
|
6420
6429
|
precision = precision === VOID ? Precision_P64_getInstance() : precision;
|
|
6421
|
-
this.
|
|
6422
|
-
this.
|
|
6423
|
-
this.
|
|
6430
|
+
this.nu_1 = precision;
|
|
6431
|
+
this.ou_1 = constraint;
|
|
6432
|
+
this.pu_1 = 'Integer';
|
|
6424
6433
|
}
|
|
6425
6434
|
protoOf(Integer).m = function () {
|
|
6426
|
-
return this.
|
|
6435
|
+
return this.pu_1;
|
|
6427
6436
|
};
|
|
6428
6437
|
protoOf(Integer).toString = function () {
|
|
6429
|
-
return 'Integer(precision=' + this.
|
|
6438
|
+
return 'Integer(precision=' + this.nu_1.toString() + ', constraint=' + toString_1(this.ou_1) + ')';
|
|
6430
6439
|
};
|
|
6431
6440
|
protoOf(Integer).hashCode = function () {
|
|
6432
|
-
var result = this.
|
|
6433
|
-
result = imul(result, 31) + (this.
|
|
6441
|
+
var result = this.nu_1.hashCode();
|
|
6442
|
+
result = imul(result, 31) + (this.ou_1 == null ? 0 : this.ou_1.hashCode()) | 0;
|
|
6434
6443
|
return result;
|
|
6435
6444
|
};
|
|
6436
6445
|
protoOf(Integer).equals = function (other) {
|
|
@@ -6438,27 +6447,27 @@ protoOf(Integer).equals = function (other) {
|
|
|
6438
6447
|
return true;
|
|
6439
6448
|
if (!(other instanceof Integer))
|
|
6440
6449
|
return false;
|
|
6441
|
-
if (!this.
|
|
6450
|
+
if (!this.nu_1.equals(other.nu_1))
|
|
6442
6451
|
return false;
|
|
6443
|
-
if (!equals(this.
|
|
6452
|
+
if (!equals(this.ou_1, other.ou_1))
|
|
6444
6453
|
return false;
|
|
6445
6454
|
return true;
|
|
6446
6455
|
};
|
|
6447
6456
|
function Number_0(precision, constraint) {
|
|
6448
6457
|
precision = precision === VOID ? Precision_P64_getInstance() : precision;
|
|
6449
|
-
this.
|
|
6450
|
-
this.
|
|
6451
|
-
this.
|
|
6458
|
+
this.qu_1 = precision;
|
|
6459
|
+
this.ru_1 = constraint;
|
|
6460
|
+
this.su_1 = 'Number';
|
|
6452
6461
|
}
|
|
6453
6462
|
protoOf(Number_0).m = function () {
|
|
6454
|
-
return this.
|
|
6463
|
+
return this.su_1;
|
|
6455
6464
|
};
|
|
6456
6465
|
protoOf(Number_0).toString = function () {
|
|
6457
|
-
return 'Number(precision=' + this.
|
|
6466
|
+
return 'Number(precision=' + this.qu_1.toString() + ', constraint=' + toString_1(this.ru_1) + ')';
|
|
6458
6467
|
};
|
|
6459
6468
|
protoOf(Number_0).hashCode = function () {
|
|
6460
|
-
var result = this.
|
|
6461
|
-
result = imul(result, 31) + (this.
|
|
6469
|
+
var result = this.qu_1.hashCode();
|
|
6470
|
+
result = imul(result, 31) + (this.ru_1 == null ? 0 : this.ru_1.hashCode()) | 0;
|
|
6462
6471
|
return result;
|
|
6463
6472
|
};
|
|
6464
6473
|
protoOf(Number_0).equals = function (other) {
|
|
@@ -6466,17 +6475,17 @@ protoOf(Number_0).equals = function (other) {
|
|
|
6466
6475
|
return true;
|
|
6467
6476
|
if (!(other instanceof Number_0))
|
|
6468
6477
|
return false;
|
|
6469
|
-
if (!this.
|
|
6478
|
+
if (!this.qu_1.equals(other.qu_1))
|
|
6470
6479
|
return false;
|
|
6471
|
-
if (!equals(this.
|
|
6480
|
+
if (!equals(this.ru_1, other.ru_1))
|
|
6472
6481
|
return false;
|
|
6473
6482
|
return true;
|
|
6474
6483
|
};
|
|
6475
6484
|
function Boolean_0() {
|
|
6476
|
-
this.
|
|
6485
|
+
this.tu_1 = 'Boolean';
|
|
6477
6486
|
}
|
|
6478
6487
|
protoOf(Boolean_0).m = function () {
|
|
6479
|
-
return this.
|
|
6488
|
+
return this.tu_1;
|
|
6480
6489
|
};
|
|
6481
6490
|
protoOf(Boolean_0).toString = function () {
|
|
6482
6491
|
return 'Boolean';
|
|
@@ -6496,10 +6505,10 @@ function Boolean_getInstance() {
|
|
|
6496
6505
|
return Boolean_instance;
|
|
6497
6506
|
}
|
|
6498
6507
|
function Bytes() {
|
|
6499
|
-
this.
|
|
6508
|
+
this.uu_1 = 'Bytes';
|
|
6500
6509
|
}
|
|
6501
6510
|
protoOf(Bytes).m = function () {
|
|
6502
|
-
return this.
|
|
6511
|
+
return this.uu_1;
|
|
6503
6512
|
};
|
|
6504
6513
|
protoOf(Bytes).toString = function () {
|
|
6505
6514
|
return 'Bytes';
|
|
@@ -6527,58 +6536,58 @@ function Precision_P64_getInstance() {
|
|
|
6527
6536
|
return Precision_P64_instance;
|
|
6528
6537
|
}
|
|
6529
6538
|
function Any(isNullable) {
|
|
6530
|
-
this.
|
|
6531
|
-
this.
|
|
6539
|
+
this.vu_1 = isNullable;
|
|
6540
|
+
this.wu_1 = 'Any';
|
|
6532
6541
|
}
|
|
6533
|
-
protoOf(Any).
|
|
6534
|
-
return this.
|
|
6542
|
+
protoOf(Any).xu = function () {
|
|
6543
|
+
return this.vu_1;
|
|
6535
6544
|
};
|
|
6536
6545
|
protoOf(Any).l1 = function () {
|
|
6537
|
-
return this.
|
|
6546
|
+
return this.wu_1;
|
|
6538
6547
|
};
|
|
6539
|
-
protoOf(Any).
|
|
6548
|
+
protoOf(Any).yu = function (isNullable) {
|
|
6540
6549
|
return new Any(isNullable);
|
|
6541
6550
|
};
|
|
6542
6551
|
protoOf(Any).toString = function () {
|
|
6543
|
-
return 'Any(isNullable=' + this.
|
|
6552
|
+
return 'Any(isNullable=' + this.vu_1 + ')';
|
|
6544
6553
|
};
|
|
6545
6554
|
protoOf(Any).hashCode = function () {
|
|
6546
|
-
return getBooleanHashCode(this.
|
|
6555
|
+
return getBooleanHashCode(this.vu_1);
|
|
6547
6556
|
};
|
|
6548
6557
|
protoOf(Any).equals = function (other) {
|
|
6549
6558
|
if (this === other)
|
|
6550
6559
|
return true;
|
|
6551
6560
|
if (!(other instanceof Any))
|
|
6552
6561
|
return false;
|
|
6553
|
-
if (!(this.
|
|
6562
|
+
if (!(this.vu_1 === other.vu_1))
|
|
6554
6563
|
return false;
|
|
6555
6564
|
return true;
|
|
6556
6565
|
};
|
|
6557
6566
|
function Unit(isNullable) {
|
|
6558
|
-
this.
|
|
6559
|
-
this.
|
|
6567
|
+
this.av_1 = isNullable;
|
|
6568
|
+
this.bv_1 = 'Unit';
|
|
6560
6569
|
}
|
|
6561
|
-
protoOf(Unit).
|
|
6562
|
-
return this.
|
|
6570
|
+
protoOf(Unit).xu = function () {
|
|
6571
|
+
return this.av_1;
|
|
6563
6572
|
};
|
|
6564
6573
|
protoOf(Unit).l1 = function () {
|
|
6565
|
-
return this.
|
|
6574
|
+
return this.bv_1;
|
|
6566
6575
|
};
|
|
6567
|
-
protoOf(Unit).
|
|
6576
|
+
protoOf(Unit).yu = function (isNullable) {
|
|
6568
6577
|
return new Unit(isNullable);
|
|
6569
6578
|
};
|
|
6570
6579
|
protoOf(Unit).toString = function () {
|
|
6571
|
-
return 'Unit(isNullable=' + this.
|
|
6580
|
+
return 'Unit(isNullable=' + this.av_1 + ')';
|
|
6572
6581
|
};
|
|
6573
6582
|
protoOf(Unit).hashCode = function () {
|
|
6574
|
-
return getBooleanHashCode(this.
|
|
6583
|
+
return getBooleanHashCode(this.av_1);
|
|
6575
6584
|
};
|
|
6576
6585
|
protoOf(Unit).equals = function (other) {
|
|
6577
6586
|
if (this === other)
|
|
6578
6587
|
return true;
|
|
6579
6588
|
if (!(other instanceof Unit))
|
|
6580
6589
|
return false;
|
|
6581
|
-
if (!(this.
|
|
6590
|
+
if (!(this.av_1 === other.av_1))
|
|
6582
6591
|
return false;
|
|
6583
6592
|
return true;
|
|
6584
6593
|
};
|
|
@@ -6587,19 +6596,19 @@ function Dict_0(reference, isNullable) {
|
|
|
6587
6596
|
this.to_1 = isNullable;
|
|
6588
6597
|
this.uo_1 = 'Dict';
|
|
6589
6598
|
}
|
|
6590
|
-
protoOf(Dict_0).
|
|
6599
|
+
protoOf(Dict_0).xu = function () {
|
|
6591
6600
|
return this.to_1;
|
|
6592
6601
|
};
|
|
6593
6602
|
protoOf(Dict_0).l1 = function () {
|
|
6594
6603
|
return this.uo_1;
|
|
6595
6604
|
};
|
|
6596
|
-
protoOf(Dict_0).
|
|
6605
|
+
protoOf(Dict_0).cv = function (reference, isNullable) {
|
|
6597
6606
|
return new Dict_0(reference, isNullable);
|
|
6598
6607
|
};
|
|
6599
|
-
protoOf(Dict_0).
|
|
6608
|
+
protoOf(Dict_0).dv = function (reference, isNullable, $super) {
|
|
6600
6609
|
reference = reference === VOID ? this.so_1 : reference;
|
|
6601
6610
|
isNullable = isNullable === VOID ? this.to_1 : isNullable;
|
|
6602
|
-
return $super === VOID ? this.
|
|
6611
|
+
return $super === VOID ? this.cv(reference, isNullable) : $super.cv.call(this, reference, isNullable);
|
|
6603
6612
|
};
|
|
6604
6613
|
protoOf(Dict_0).toString = function () {
|
|
6605
6614
|
return 'Dict(reference=' + toString(this.so_1) + ', isNullable=' + this.to_1 + ')';
|
|
@@ -6625,19 +6634,19 @@ function Iterable(reference, isNullable) {
|
|
|
6625
6634
|
this.qo_1 = isNullable;
|
|
6626
6635
|
this.ro_1 = 'Iterable';
|
|
6627
6636
|
}
|
|
6628
|
-
protoOf(Iterable).
|
|
6637
|
+
protoOf(Iterable).xu = function () {
|
|
6629
6638
|
return this.qo_1;
|
|
6630
6639
|
};
|
|
6631
6640
|
protoOf(Iterable).l1 = function () {
|
|
6632
6641
|
return this.ro_1;
|
|
6633
6642
|
};
|
|
6634
|
-
protoOf(Iterable).
|
|
6643
|
+
protoOf(Iterable).cv = function (reference, isNullable) {
|
|
6635
6644
|
return new Iterable(reference, isNullable);
|
|
6636
6645
|
};
|
|
6637
|
-
protoOf(Iterable).
|
|
6646
|
+
protoOf(Iterable).ev = function (reference, isNullable, $super) {
|
|
6638
6647
|
reference = reference === VOID ? this.po_1 : reference;
|
|
6639
6648
|
isNullable = isNullable === VOID ? this.qo_1 : isNullable;
|
|
6640
|
-
return $super === VOID ? this.
|
|
6649
|
+
return $super === VOID ? this.cv(reference, isNullable) : $super.cv.call(this, reference, isNullable);
|
|
6641
6650
|
};
|
|
6642
6651
|
protoOf(Iterable).toString = function () {
|
|
6643
6652
|
return 'Iterable(reference=' + toString(this.po_1) + ', isNullable=' + this.qo_1 + ')';
|
|
@@ -6659,29 +6668,29 @@ protoOf(Iterable).equals = function (other) {
|
|
|
6659
6668
|
return true;
|
|
6660
6669
|
};
|
|
6661
6670
|
function Custom(value, isNullable) {
|
|
6662
|
-
this.
|
|
6663
|
-
this.
|
|
6671
|
+
this.fv_1 = value;
|
|
6672
|
+
this.gv_1 = isNullable;
|
|
6664
6673
|
}
|
|
6665
6674
|
protoOf(Custom).l1 = function () {
|
|
6666
|
-
return this.
|
|
6675
|
+
return this.fv_1;
|
|
6667
6676
|
};
|
|
6668
|
-
protoOf(Custom).
|
|
6669
|
-
return this.
|
|
6677
|
+
protoOf(Custom).xu = function () {
|
|
6678
|
+
return this.gv_1;
|
|
6670
6679
|
};
|
|
6671
|
-
protoOf(Custom).
|
|
6680
|
+
protoOf(Custom).hv = function (value, isNullable) {
|
|
6672
6681
|
return new Custom(value, isNullable);
|
|
6673
6682
|
};
|
|
6674
|
-
protoOf(Custom).
|
|
6675
|
-
value = value === VOID ? this.
|
|
6676
|
-
isNullable = isNullable === VOID ? this.
|
|
6677
|
-
return $super === VOID ? this.
|
|
6683
|
+
protoOf(Custom).iv = function (value, isNullable, $super) {
|
|
6684
|
+
value = value === VOID ? this.fv_1 : value;
|
|
6685
|
+
isNullable = isNullable === VOID ? this.gv_1 : isNullable;
|
|
6686
|
+
return $super === VOID ? this.hv(value, isNullable) : $super.hv.call(this, value, isNullable);
|
|
6678
6687
|
};
|
|
6679
6688
|
protoOf(Custom).toString = function () {
|
|
6680
|
-
return 'Custom(value=' + this.
|
|
6689
|
+
return 'Custom(value=' + this.fv_1 + ', isNullable=' + this.gv_1 + ')';
|
|
6681
6690
|
};
|
|
6682
6691
|
protoOf(Custom).hashCode = function () {
|
|
6683
|
-
var result = getStringHashCode(this.
|
|
6684
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
6692
|
+
var result = getStringHashCode(this.fv_1);
|
|
6693
|
+
result = imul(result, 31) + getBooleanHashCode(this.gv_1) | 0;
|
|
6685
6694
|
return result;
|
|
6686
6695
|
};
|
|
6687
6696
|
protoOf(Custom).equals = function (other) {
|
|
@@ -6689,37 +6698,37 @@ protoOf(Custom).equals = function (other) {
|
|
|
6689
6698
|
return true;
|
|
6690
6699
|
if (!(other instanceof Custom))
|
|
6691
6700
|
return false;
|
|
6692
|
-
if (!(this.
|
|
6701
|
+
if (!(this.fv_1 === other.fv_1))
|
|
6693
6702
|
return false;
|
|
6694
|
-
if (!(this.
|
|
6703
|
+
if (!(this.gv_1 === other.gv_1))
|
|
6695
6704
|
return false;
|
|
6696
6705
|
return true;
|
|
6697
6706
|
};
|
|
6698
6707
|
function Primitive(type, isNullable) {
|
|
6699
|
-
this.
|
|
6700
|
-
this.
|
|
6701
|
-
this.
|
|
6708
|
+
this.rt_1 = type;
|
|
6709
|
+
this.st_1 = isNullable;
|
|
6710
|
+
this.tt_1 = this.rt_1.m();
|
|
6702
6711
|
}
|
|
6703
|
-
protoOf(Primitive).
|
|
6704
|
-
return this.
|
|
6712
|
+
protoOf(Primitive).xu = function () {
|
|
6713
|
+
return this.st_1;
|
|
6705
6714
|
};
|
|
6706
6715
|
protoOf(Primitive).l1 = function () {
|
|
6707
|
-
return this.
|
|
6716
|
+
return this.tt_1;
|
|
6708
6717
|
};
|
|
6709
6718
|
protoOf(Primitive).jv = function (type, isNullable) {
|
|
6710
6719
|
return new Primitive(type, isNullable);
|
|
6711
6720
|
};
|
|
6712
6721
|
protoOf(Primitive).kv = function (type, isNullable, $super) {
|
|
6713
|
-
type = type === VOID ? this.
|
|
6714
|
-
isNullable = isNullable === VOID ? this.
|
|
6722
|
+
type = type === VOID ? this.rt_1 : type;
|
|
6723
|
+
isNullable = isNullable === VOID ? this.st_1 : isNullable;
|
|
6715
6724
|
return $super === VOID ? this.jv(type, isNullable) : $super.jv.call(this, type, isNullable);
|
|
6716
6725
|
};
|
|
6717
6726
|
protoOf(Primitive).toString = function () {
|
|
6718
|
-
return 'Primitive(type=' + toString(this.
|
|
6727
|
+
return 'Primitive(type=' + toString(this.rt_1) + ', isNullable=' + this.st_1 + ')';
|
|
6719
6728
|
};
|
|
6720
6729
|
protoOf(Primitive).hashCode = function () {
|
|
6721
|
-
var result = hashCode(this.
|
|
6722
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
6730
|
+
var result = hashCode(this.rt_1);
|
|
6731
|
+
result = imul(result, 31) + getBooleanHashCode(this.st_1) | 0;
|
|
6723
6732
|
return result;
|
|
6724
6733
|
};
|
|
6725
6734
|
protoOf(Primitive).equals = function (other) {
|
|
@@ -6727,9 +6736,9 @@ protoOf(Primitive).equals = function (other) {
|
|
|
6727
6736
|
return true;
|
|
6728
6737
|
if (!(other instanceof Primitive))
|
|
6729
6738
|
return false;
|
|
6730
|
-
if (!equals(this.
|
|
6739
|
+
if (!equals(this.rt_1, other.rt_1))
|
|
6731
6740
|
return false;
|
|
6732
|
-
if (!(this.
|
|
6741
|
+
if (!(this.st_1 === other.st_1))
|
|
6733
6742
|
return false;
|
|
6734
6743
|
return true;
|
|
6735
6744
|
};
|
|
@@ -8233,7 +8242,7 @@ function fillExtendsClause($this, _this__u8e3s4) {
|
|
|
8233
8242
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
8234
8243
|
var tmp_1;
|
|
8235
8244
|
if (item_0 instanceof Custom) {
|
|
8236
|
-
tmp_1 = item_0.
|
|
8245
|
+
tmp_1 = item_0.fv_1;
|
|
8237
8246
|
} else {
|
|
8238
8247
|
// Inline function 'arrow.core.nel' call
|
|
8239
8248
|
var this_2 = new UnionError();
|
|
@@ -8256,7 +8265,7 @@ function fillExtendsClause($this, _this__u8e3s4) {
|
|
|
8256
8265
|
var tmp$ret$9 = new Custom(item_1.hp_1.l1(), false);
|
|
8257
8266
|
destination_3.x(tmp$ret$9);
|
|
8258
8267
|
}
|
|
8259
|
-
tmp_0 = item.
|
|
8268
|
+
tmp_0 = item.vt(VOID, VOID, VOID, VOID, destination_3);
|
|
8260
8269
|
} else {
|
|
8261
8270
|
if (item instanceof Union) {
|
|
8262
8271
|
tmp_0 = item;
|
|
@@ -8845,12 +8854,12 @@ function _init_properties_Logger_kt__mpqsw() {
|
|
|
8845
8854
|
//region block: post-declaration
|
|
8846
8855
|
protoOf(LanguageEmitter).qq = get_expression;
|
|
8847
8856
|
protoOf(LanguageEmitter).xq = notYetImplemented;
|
|
8848
|
-
protoOf(Any).
|
|
8849
|
-
protoOf(Unit).
|
|
8850
|
-
protoOf(Dict_0).
|
|
8851
|
-
protoOf(Iterable).
|
|
8852
|
-
protoOf(Custom).
|
|
8853
|
-
protoOf(Primitive).
|
|
8857
|
+
protoOf(Any).zu = copy;
|
|
8858
|
+
protoOf(Unit).zu = copy;
|
|
8859
|
+
protoOf(Dict_0).zu = copy;
|
|
8860
|
+
protoOf(Iterable).zu = copy;
|
|
8861
|
+
protoOf(Custom).zu = copy;
|
|
8862
|
+
protoOf(Primitive).zu = copy;
|
|
8854
8863
|
//endregion
|
|
8855
8864
|
//region block: init
|
|
8856
8865
|
Companion_instance_0 = new Companion();
|