@flock/wirespec 0.17.14 → 0.17.15
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 +3 -3
- package/kotlinx-io-kotlinx-io-core.mjs +2 -2
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +116 -122
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +148 -106
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +92 -56
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +133 -100
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +100 -57
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +25 -25
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +13 -13
- package/wirespec-src-converter-avro.mjs +4 -4
- package/wirespec-src-converter-openapi.mjs +73 -62
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +10 -10
- package/wirespec-src-plugin-npm.mjs +2 -2
- package/wirespec-src-tools-generator.mjs +4 -4
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -100,8 +100,8 @@ initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
|
100
100
|
initMetadataForInterface(Entry, 'Entry');
|
|
101
101
|
initMetadataForInterface(KtMap, 'Map');
|
|
102
102
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
103
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
104
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
103
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
|
|
104
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
|
|
105
105
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
106
106
|
initMetadataForCompanion(Companion_0);
|
|
107
107
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -121,7 +121,7 @@ initMetadataForObject(Letter, 'Letter');
|
|
|
121
121
|
initMetadataForObject(OtherLowercase, 'OtherLowercase');
|
|
122
122
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
123
123
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
124
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
124
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
|
|
125
125
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
126
126
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
127
127
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
|
|
@@ -551,7 +551,7 @@ function Companion_getInstance() {
|
|
|
551
551
|
}
|
|
552
552
|
protoOf(Segment).l2g = function () {
|
|
553
553
|
var tmp1_safe_receiver = this.w2f_1;
|
|
554
|
-
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
554
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q2a();
|
|
555
555
|
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
556
556
|
};
|
|
557
557
|
protoOf(Segment).e2h = function () {
|
|
@@ -775,7 +775,7 @@ function AlwaysSharedCopyTracker() {
|
|
|
775
775
|
AlwaysSharedCopyTracker_instance = this;
|
|
776
776
|
SegmentCopyTracker.call(this);
|
|
777
777
|
}
|
|
778
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
778
|
+
protoOf(AlwaysSharedCopyTracker).q2a = function () {
|
|
779
779
|
return true;
|
|
780
780
|
};
|
|
781
781
|
protoOf(AlwaysSharedCopyTracker).g2h = function () {
|
package/package.json
CHANGED
|
@@ -233,22 +233,22 @@ initMetadataForObject(Bytes, 'Bytes');
|
|
|
233
233
|
function copy(isNullable) {
|
|
234
234
|
var tmp;
|
|
235
235
|
if (this instanceof Any) {
|
|
236
|
-
tmp = this.
|
|
236
|
+
tmp = this.c29(isNullable == null ? this.a29_1 : isNullable);
|
|
237
237
|
} else {
|
|
238
238
|
if (this instanceof Custom) {
|
|
239
|
-
tmp = this.
|
|
239
|
+
tmp = this.m29(VOID, isNullable == null ? this.k29_1 : isNullable);
|
|
240
240
|
} else {
|
|
241
241
|
if (this instanceof Dict_0) {
|
|
242
|
-
tmp = this.
|
|
242
|
+
tmp = this.h29(VOID, isNullable == null ? this.f23_1 : isNullable);
|
|
243
243
|
} else {
|
|
244
244
|
if (this instanceof Iterable) {
|
|
245
|
-
tmp = this.
|
|
245
|
+
tmp = this.i29(VOID, isNullable == null ? this.c23_1 : isNullable);
|
|
246
246
|
} else {
|
|
247
247
|
if (this instanceof Primitive) {
|
|
248
|
-
tmp = this.
|
|
248
|
+
tmp = this.r29(VOID, isNullable == null ? this.o29_1 : isNullable);
|
|
249
249
|
} else {
|
|
250
250
|
if (this instanceof Unit) {
|
|
251
|
-
tmp = this.
|
|
251
|
+
tmp = this.c29(isNullable == null ? this.e29_1 : isNullable);
|
|
252
252
|
} else {
|
|
253
253
|
noWhenBranchMatchedException();
|
|
254
254
|
}
|
|
@@ -524,7 +524,7 @@ function WirespecSpec() {
|
|
|
524
524
|
WirespecSpec_instance = this;
|
|
525
525
|
this.r22_1 = WirespecType_getInstance();
|
|
526
526
|
this.s22_1 = WirespecField_getInstance();
|
|
527
|
-
this.t22_1 = listOf([to(Regex_init_$Create$('^\\btype\\b'), TypeDefinition_instance), to(Regex_init_$Create$('^\\benum\\b'), EnumTypeDefinition_instance), to(Regex_init_$Create$('^\\bendpoint\\b'), EndpointDefinition_instance), to(Regex_init_$Create$('^\\bchannel\\b'), ChannelDefinition_instance), to(Regex_init_$Create$('^[^\\S\\r\\n]+'), WhiteSpaceExceptNewLine_instance), to(Regex_init_$Create$('^[\\r\\n]'), NewLine_instance), to(Regex_init_$Create$('^\\{'), LeftCurly_instance), to(Regex_init_$Create$('^\\}'), RightCurly_instance), to(Regex_init_$Create$('^\\('), LeftParenthesis_instance), to(Regex_init_$Create$('^\\)'), RightParenthesis_instance), to(Regex_init_$Create$('^->'), Arrow_instance), to(Regex_init_$Create$('^='), Equals_instance), to(Regex_init_$Create$('^\\|'), Pipe_instance), to(Regex_init_$Create$('^:'), Colon_instance), to(Regex_init_$Create$('^,'), Comma_instance), to(Regex_init_$Create$('^\\?'), QuestionMark_instance), to(Regex_init_$Create$('^#'), Hash_instance), to(Regex_init_$Create$('^\\[\\]'), Brackets_instance), to(Regex_init_$Create$('^\\['), LeftBracket_instance), to(Regex_init_$Create$('^\\]'), RightBracket_instance), to(Regex_init_$Create$('^\\b(GET|POST|PUT|DELETE|OPTIONS|HEAD|PATCH|TRACE)\\b'), Method_instance), to(Regex_init_$Create$('^@[A-Z][a-zA-Z0-9_]*'), Annotation_instance), to(Regex_init_$Create$('^[a-z`][a-zA-Z0-9_\\-`]*'), this.s22_1), to(Regex_init_$Create$('^\\b[A-Z][a-zA-Z0-9_]*\\b'), this.r22_1), to(Regex_init_$Create$('^/[a-zA-Z0-9-_]+'), Path_instance), to(Regex_init_$Create$('^//.*\n'), Comment_instance), to(Regex_init_$Create$('^\\/\\*(\\*(?!\\/)|[^*])*\\*\\/'), Comment_instance), to(Regex_init_$Create$('^"([^"\\\\]|\\\\.)*"'), LiteralString_instance), to(Regex_init_$Create$('^/'), ForwardSlash_instance), to(Regex_init_$Create$('
|
|
527
|
+
this.t22_1 = listOf([to(Regex_init_$Create$('^\\btype\\b'), TypeDefinition_instance), to(Regex_init_$Create$('^\\benum\\b'), EnumTypeDefinition_instance), to(Regex_init_$Create$('^\\bendpoint\\b'), EndpointDefinition_instance), to(Regex_init_$Create$('^\\bchannel\\b'), ChannelDefinition_instance), to(Regex_init_$Create$('^[^\\S\\r\\n]+'), WhiteSpaceExceptNewLine_instance), to(Regex_init_$Create$('^[\\r\\n]'), NewLine_instance), to(Regex_init_$Create$('^\\{'), LeftCurly_instance), to(Regex_init_$Create$('^\\}'), RightCurly_instance), to(Regex_init_$Create$('^\\('), LeftParenthesis_instance), to(Regex_init_$Create$('^\\)'), RightParenthesis_instance), to(Regex_init_$Create$('^->'), Arrow_instance), to(Regex_init_$Create$('^='), Equals_instance), to(Regex_init_$Create$('^\\|'), Pipe_instance), to(Regex_init_$Create$('^:'), Colon_instance), to(Regex_init_$Create$('^,'), Comma_instance), to(Regex_init_$Create$('^\\?'), QuestionMark_instance), to(Regex_init_$Create$('^#'), Hash_instance), to(Regex_init_$Create$('^\\[\\]'), Brackets_instance), to(Regex_init_$Create$('^\\['), LeftBracket_instance), to(Regex_init_$Create$('^\\]'), RightBracket_instance), to(Regex_init_$Create$('^\\b(GET|POST|PUT|DELETE|OPTIONS|HEAD|PATCH|TRACE)\\b'), Method_instance), to(Regex_init_$Create$('^@[A-Z][a-zA-Z0-9_]*'), Annotation_instance), to(Regex_init_$Create$('^[a-z`][a-zA-Z0-9_\\-`]*'), this.s22_1), to(Regex_init_$Create$('^\\b[A-Z][a-zA-Z0-9_]*\\b'), this.r22_1), to(Regex_init_$Create$('^/[a-zA-Z0-9-_]+'), Path_instance), to(Regex_init_$Create$('^//.*\n'), Comment_instance), to(Regex_init_$Create$('^\\/\\*(\\*(?!\\/)|[^*])*\\*\\/'), Comment_instance), to(Regex_init_$Create$('^"([^"\\\\]|\\\\.)*"'), LiteralString_instance), to(Regex_init_$Create$('^/'), ForwardSlash_instance), to(Regex_init_$Create$('^-?[0-9]+\\.[0-9]+'), Number_instance), to(Regex_init_$Create$('^-?[0-9]+'), Integer_instance), to(Regex_init_$Create$('^_'), Underscore_instance), to(Regex_init_$Create$('^.'), Character_instance)]);
|
|
528
528
|
}
|
|
529
529
|
protoOf(WirespecSpec).u22 = function () {
|
|
530
530
|
return this.r22_1;
|
|
@@ -7192,9 +7192,6 @@ function Integer(precision, constraint) {
|
|
|
7192
7192
|
this.t28_1 = constraint;
|
|
7193
7193
|
this.u28_1 = 'Integer';
|
|
7194
7194
|
}
|
|
7195
|
-
protoOf(Integer).v28 = function () {
|
|
7196
|
-
return this.t28_1;
|
|
7197
|
-
};
|
|
7198
7195
|
protoOf(Integer).s2 = function () {
|
|
7199
7196
|
return this.u28_1;
|
|
7200
7197
|
};
|
|
@@ -7220,22 +7217,19 @@ protoOf(Integer).equals = function (other) {
|
|
|
7220
7217
|
};
|
|
7221
7218
|
function Number_0(precision, constraint) {
|
|
7222
7219
|
precision = precision === VOID ? Precision_P64_getInstance() : precision;
|
|
7223
|
-
this.
|
|
7224
|
-
this.
|
|
7225
|
-
this.
|
|
7220
|
+
this.v28_1 = precision;
|
|
7221
|
+
this.w28_1 = constraint;
|
|
7222
|
+
this.x28_1 = 'Number';
|
|
7226
7223
|
}
|
|
7227
|
-
protoOf(Number_0).v28 = function () {
|
|
7228
|
-
return this.x28_1;
|
|
7229
|
-
};
|
|
7230
7224
|
protoOf(Number_0).s2 = function () {
|
|
7231
|
-
return this.
|
|
7225
|
+
return this.x28_1;
|
|
7232
7226
|
};
|
|
7233
7227
|
protoOf(Number_0).toString = function () {
|
|
7234
|
-
return 'Number(precision=' + this.
|
|
7228
|
+
return 'Number(precision=' + this.v28_1.toString() + ', constraint=' + toString_1(this.w28_1) + ')';
|
|
7235
7229
|
};
|
|
7236
7230
|
protoOf(Number_0).hashCode = function () {
|
|
7237
|
-
var result = this.
|
|
7238
|
-
result = imul(result, 31) + (this.
|
|
7231
|
+
var result = this.v28_1.hashCode();
|
|
7232
|
+
result = imul(result, 31) + (this.w28_1 == null ? 0 : this.w28_1.hashCode()) | 0;
|
|
7239
7233
|
return result;
|
|
7240
7234
|
};
|
|
7241
7235
|
protoOf(Number_0).equals = function (other) {
|
|
@@ -7244,17 +7238,17 @@ protoOf(Number_0).equals = function (other) {
|
|
|
7244
7238
|
if (!(other instanceof Number_0))
|
|
7245
7239
|
return false;
|
|
7246
7240
|
var tmp0_other_with_cast = other instanceof Number_0 ? other : THROW_CCE();
|
|
7247
|
-
if (!this.
|
|
7241
|
+
if (!this.v28_1.equals(tmp0_other_with_cast.v28_1))
|
|
7248
7242
|
return false;
|
|
7249
|
-
if (!equals(this.
|
|
7243
|
+
if (!equals(this.w28_1, tmp0_other_with_cast.w28_1))
|
|
7250
7244
|
return false;
|
|
7251
7245
|
return true;
|
|
7252
7246
|
};
|
|
7253
7247
|
function Boolean_0() {
|
|
7254
|
-
this.
|
|
7248
|
+
this.y28_1 = 'Boolean';
|
|
7255
7249
|
}
|
|
7256
7250
|
protoOf(Boolean_0).s2 = function () {
|
|
7257
|
-
return this.
|
|
7251
|
+
return this.y28_1;
|
|
7258
7252
|
};
|
|
7259
7253
|
protoOf(Boolean_0).toString = function () {
|
|
7260
7254
|
return 'Boolean';
|
|
@@ -7275,10 +7269,10 @@ function Boolean_getInstance() {
|
|
|
7275
7269
|
return Boolean_instance;
|
|
7276
7270
|
}
|
|
7277
7271
|
function Bytes() {
|
|
7278
|
-
this.
|
|
7272
|
+
this.z28_1 = 'Bytes';
|
|
7279
7273
|
}
|
|
7280
7274
|
protoOf(Bytes).s2 = function () {
|
|
7281
|
-
return this.
|
|
7275
|
+
return this.z28_1;
|
|
7282
7276
|
};
|
|
7283
7277
|
protoOf(Bytes).toString = function () {
|
|
7284
7278
|
return 'Bytes';
|
|
@@ -7307,23 +7301,23 @@ function Precision_P64_getInstance() {
|
|
|
7307
7301
|
return Precision_P64_instance;
|
|
7308
7302
|
}
|
|
7309
7303
|
function Any(isNullable) {
|
|
7310
|
-
this.
|
|
7311
|
-
this.
|
|
7304
|
+
this.a29_1 = isNullable;
|
|
7305
|
+
this.b29_1 = 'Any';
|
|
7312
7306
|
}
|
|
7313
7307
|
protoOf(Any).jm = function () {
|
|
7314
|
-
return this.
|
|
7308
|
+
return this.a29_1;
|
|
7315
7309
|
};
|
|
7316
7310
|
protoOf(Any).b1 = function () {
|
|
7317
|
-
return this.
|
|
7311
|
+
return this.b29_1;
|
|
7318
7312
|
};
|
|
7319
|
-
protoOf(Any).
|
|
7313
|
+
protoOf(Any).c29 = function (isNullable) {
|
|
7320
7314
|
return new Any(isNullable);
|
|
7321
7315
|
};
|
|
7322
7316
|
protoOf(Any).toString = function () {
|
|
7323
|
-
return 'Any(isNullable=' + this.
|
|
7317
|
+
return 'Any(isNullable=' + this.a29_1 + ')';
|
|
7324
7318
|
};
|
|
7325
7319
|
protoOf(Any).hashCode = function () {
|
|
7326
|
-
return getBooleanHashCode(this.
|
|
7320
|
+
return getBooleanHashCode(this.a29_1);
|
|
7327
7321
|
};
|
|
7328
7322
|
protoOf(Any).equals = function (other) {
|
|
7329
7323
|
if (this === other)
|
|
@@ -7331,28 +7325,28 @@ protoOf(Any).equals = function (other) {
|
|
|
7331
7325
|
if (!(other instanceof Any))
|
|
7332
7326
|
return false;
|
|
7333
7327
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
7334
|
-
if (!(this.
|
|
7328
|
+
if (!(this.a29_1 === tmp0_other_with_cast.a29_1))
|
|
7335
7329
|
return false;
|
|
7336
7330
|
return true;
|
|
7337
7331
|
};
|
|
7338
7332
|
function Unit(isNullable) {
|
|
7339
|
-
this.
|
|
7340
|
-
this.
|
|
7333
|
+
this.e29_1 = isNullable;
|
|
7334
|
+
this.f29_1 = 'Unit';
|
|
7341
7335
|
}
|
|
7342
7336
|
protoOf(Unit).jm = function () {
|
|
7343
|
-
return this.
|
|
7337
|
+
return this.e29_1;
|
|
7344
7338
|
};
|
|
7345
7339
|
protoOf(Unit).b1 = function () {
|
|
7346
|
-
return this.
|
|
7340
|
+
return this.f29_1;
|
|
7347
7341
|
};
|
|
7348
|
-
protoOf(Unit).
|
|
7342
|
+
protoOf(Unit).c29 = function (isNullable) {
|
|
7349
7343
|
return new Unit(isNullable);
|
|
7350
7344
|
};
|
|
7351
7345
|
protoOf(Unit).toString = function () {
|
|
7352
|
-
return 'Unit(isNullable=' + this.
|
|
7346
|
+
return 'Unit(isNullable=' + this.e29_1 + ')';
|
|
7353
7347
|
};
|
|
7354
7348
|
protoOf(Unit).hashCode = function () {
|
|
7355
|
-
return getBooleanHashCode(this.
|
|
7349
|
+
return getBooleanHashCode(this.e29_1);
|
|
7356
7350
|
};
|
|
7357
7351
|
protoOf(Unit).equals = function (other) {
|
|
7358
7352
|
if (this === other)
|
|
@@ -7360,7 +7354,7 @@ protoOf(Unit).equals = function (other) {
|
|
|
7360
7354
|
if (!(other instanceof Unit))
|
|
7361
7355
|
return false;
|
|
7362
7356
|
var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
|
|
7363
|
-
if (!(this.
|
|
7357
|
+
if (!(this.e29_1 === tmp0_other_with_cast.e29_1))
|
|
7364
7358
|
return false;
|
|
7365
7359
|
return true;
|
|
7366
7360
|
};
|
|
@@ -7375,13 +7369,13 @@ protoOf(Dict_0).jm = function () {
|
|
|
7375
7369
|
protoOf(Dict_0).b1 = function () {
|
|
7376
7370
|
return this.g23_1;
|
|
7377
7371
|
};
|
|
7378
|
-
protoOf(Dict_0).
|
|
7372
|
+
protoOf(Dict_0).g29 = function (reference, isNullable) {
|
|
7379
7373
|
return new Dict_0(reference, isNullable);
|
|
7380
7374
|
};
|
|
7381
|
-
protoOf(Dict_0).
|
|
7375
|
+
protoOf(Dict_0).h29 = function (reference, isNullable, $super) {
|
|
7382
7376
|
reference = reference === VOID ? this.e23_1 : reference;
|
|
7383
7377
|
isNullable = isNullable === VOID ? this.f23_1 : isNullable;
|
|
7384
|
-
return $super === VOID ? this.
|
|
7378
|
+
return $super === VOID ? this.g29(reference, isNullable) : $super.g29.call(this, reference, isNullable);
|
|
7385
7379
|
};
|
|
7386
7380
|
protoOf(Dict_0).toString = function () {
|
|
7387
7381
|
return 'Dict(reference=' + toString(this.e23_1) + ', isNullable=' + this.f23_1 + ')';
|
|
@@ -7414,13 +7408,13 @@ protoOf(Iterable).jm = function () {
|
|
|
7414
7408
|
protoOf(Iterable).b1 = function () {
|
|
7415
7409
|
return this.d23_1;
|
|
7416
7410
|
};
|
|
7417
|
-
protoOf(Iterable).
|
|
7411
|
+
protoOf(Iterable).g29 = function (reference, isNullable) {
|
|
7418
7412
|
return new Iterable(reference, isNullable);
|
|
7419
7413
|
};
|
|
7420
|
-
protoOf(Iterable).
|
|
7414
|
+
protoOf(Iterable).i29 = function (reference, isNullable, $super) {
|
|
7421
7415
|
reference = reference === VOID ? this.b23_1 : reference;
|
|
7422
7416
|
isNullable = isNullable === VOID ? this.c23_1 : isNullable;
|
|
7423
|
-
return $super === VOID ? this.
|
|
7417
|
+
return $super === VOID ? this.g29(reference, isNullable) : $super.g29.call(this, reference, isNullable);
|
|
7424
7418
|
};
|
|
7425
7419
|
protoOf(Iterable).toString = function () {
|
|
7426
7420
|
return 'Iterable(reference=' + toString(this.b23_1) + ', isNullable=' + this.c23_1 + ')';
|
|
@@ -7443,29 +7437,29 @@ protoOf(Iterable).equals = function (other) {
|
|
|
7443
7437
|
return true;
|
|
7444
7438
|
};
|
|
7445
7439
|
function Custom(value, isNullable) {
|
|
7446
|
-
this.
|
|
7447
|
-
this.
|
|
7440
|
+
this.j29_1 = value;
|
|
7441
|
+
this.k29_1 = isNullable;
|
|
7448
7442
|
}
|
|
7449
7443
|
protoOf(Custom).b1 = function () {
|
|
7450
|
-
return this.
|
|
7444
|
+
return this.j29_1;
|
|
7451
7445
|
};
|
|
7452
7446
|
protoOf(Custom).jm = function () {
|
|
7453
|
-
return this.
|
|
7447
|
+
return this.k29_1;
|
|
7454
7448
|
};
|
|
7455
|
-
protoOf(Custom).
|
|
7449
|
+
protoOf(Custom).l29 = function (value, isNullable) {
|
|
7456
7450
|
return new Custom(value, isNullable);
|
|
7457
7451
|
};
|
|
7458
|
-
protoOf(Custom).
|
|
7459
|
-
value = value === VOID ? this.
|
|
7460
|
-
isNullable = isNullable === VOID ? this.
|
|
7461
|
-
return $super === VOID ? this.
|
|
7452
|
+
protoOf(Custom).m29 = function (value, isNullable, $super) {
|
|
7453
|
+
value = value === VOID ? this.j29_1 : value;
|
|
7454
|
+
isNullable = isNullable === VOID ? this.k29_1 : isNullable;
|
|
7455
|
+
return $super === VOID ? this.l29(value, isNullable) : $super.l29.call(this, value, isNullable);
|
|
7462
7456
|
};
|
|
7463
7457
|
protoOf(Custom).toString = function () {
|
|
7464
|
-
return 'Custom(value=' + this.
|
|
7458
|
+
return 'Custom(value=' + this.j29_1 + ', isNullable=' + this.k29_1 + ')';
|
|
7465
7459
|
};
|
|
7466
7460
|
protoOf(Custom).hashCode = function () {
|
|
7467
|
-
var result = getStringHashCode(this.
|
|
7468
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
7461
|
+
var result = getStringHashCode(this.j29_1);
|
|
7462
|
+
result = imul(result, 31) + getBooleanHashCode(this.k29_1) | 0;
|
|
7469
7463
|
return result;
|
|
7470
7464
|
};
|
|
7471
7465
|
protoOf(Custom).equals = function (other) {
|
|
@@ -7474,37 +7468,37 @@ protoOf(Custom).equals = function (other) {
|
|
|
7474
7468
|
if (!(other instanceof Custom))
|
|
7475
7469
|
return false;
|
|
7476
7470
|
var tmp0_other_with_cast = other instanceof Custom ? other : THROW_CCE();
|
|
7477
|
-
if (!(this.
|
|
7471
|
+
if (!(this.j29_1 === tmp0_other_with_cast.j29_1))
|
|
7478
7472
|
return false;
|
|
7479
|
-
if (!(this.
|
|
7473
|
+
if (!(this.k29_1 === tmp0_other_with_cast.k29_1))
|
|
7480
7474
|
return false;
|
|
7481
7475
|
return true;
|
|
7482
7476
|
};
|
|
7483
7477
|
function Primitive(type, isNullable) {
|
|
7484
|
-
this.
|
|
7485
|
-
this.
|
|
7486
|
-
this.
|
|
7478
|
+
this.n29_1 = type;
|
|
7479
|
+
this.o29_1 = isNullable;
|
|
7480
|
+
this.p29_1 = this.n29_1.s2();
|
|
7487
7481
|
}
|
|
7488
7482
|
protoOf(Primitive).jm = function () {
|
|
7489
|
-
return this.
|
|
7483
|
+
return this.o29_1;
|
|
7490
7484
|
};
|
|
7491
7485
|
protoOf(Primitive).b1 = function () {
|
|
7492
|
-
return this.
|
|
7486
|
+
return this.p29_1;
|
|
7493
7487
|
};
|
|
7494
|
-
protoOf(Primitive).
|
|
7488
|
+
protoOf(Primitive).q29 = function (type, isNullable) {
|
|
7495
7489
|
return new Primitive(type, isNullable);
|
|
7496
7490
|
};
|
|
7497
|
-
protoOf(Primitive).
|
|
7498
|
-
type = type === VOID ? this.
|
|
7499
|
-
isNullable = isNullable === VOID ? this.
|
|
7500
|
-
return $super === VOID ? this.
|
|
7491
|
+
protoOf(Primitive).r29 = function (type, isNullable, $super) {
|
|
7492
|
+
type = type === VOID ? this.n29_1 : type;
|
|
7493
|
+
isNullable = isNullable === VOID ? this.o29_1 : isNullable;
|
|
7494
|
+
return $super === VOID ? this.q29(type, isNullable) : $super.q29.call(this, type, isNullable);
|
|
7501
7495
|
};
|
|
7502
7496
|
protoOf(Primitive).toString = function () {
|
|
7503
|
-
return 'Primitive(type=' + toString(this.
|
|
7497
|
+
return 'Primitive(type=' + toString(this.n29_1) + ', isNullable=' + this.o29_1 + ')';
|
|
7504
7498
|
};
|
|
7505
7499
|
protoOf(Primitive).hashCode = function () {
|
|
7506
|
-
var result = hashCode(this.
|
|
7507
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
7500
|
+
var result = hashCode(this.n29_1);
|
|
7501
|
+
result = imul(result, 31) + getBooleanHashCode(this.o29_1) | 0;
|
|
7508
7502
|
return result;
|
|
7509
7503
|
};
|
|
7510
7504
|
protoOf(Primitive).equals = function (other) {
|
|
@@ -7513,9 +7507,9 @@ protoOf(Primitive).equals = function (other) {
|
|
|
7513
7507
|
if (!(other instanceof Primitive))
|
|
7514
7508
|
return false;
|
|
7515
7509
|
var tmp0_other_with_cast = other instanceof Primitive ? other : THROW_CCE();
|
|
7516
|
-
if (!equals(this.
|
|
7510
|
+
if (!equals(this.n29_1, tmp0_other_with_cast.n29_1))
|
|
7517
7511
|
return false;
|
|
7518
|
-
if (!(this.
|
|
7512
|
+
if (!(this.o29_1 === tmp0_other_with_cast.o29_1))
|
|
7519
7513
|
return false;
|
|
7520
7514
|
return true;
|
|
7521
7515
|
};
|
|
@@ -7531,13 +7525,13 @@ protoOf(Module).sd = function () {
|
|
|
7531
7525
|
protoOf(Module).td = function () {
|
|
7532
7526
|
return this.f25_1;
|
|
7533
7527
|
};
|
|
7534
|
-
protoOf(Module).
|
|
7528
|
+
protoOf(Module).s29 = function (fileUri, statements) {
|
|
7535
7529
|
return new Module(fileUri, statements);
|
|
7536
7530
|
};
|
|
7537
|
-
protoOf(Module).
|
|
7531
|
+
protoOf(Module).t29 = function (fileUri, statements, $super) {
|
|
7538
7532
|
fileUri = fileUri === VOID ? this.e25_1 : fileUri;
|
|
7539
7533
|
statements = statements === VOID ? this.f25_1 : statements;
|
|
7540
|
-
return $super === VOID ? this.
|
|
7534
|
+
return $super === VOID ? this.s29(fileUri, statements) : $super.s29.call(this, fileUri, statements);
|
|
7541
7535
|
};
|
|
7542
7536
|
protoOf(Module).toString = function () {
|
|
7543
7537
|
return 'Module(fileUri=' + this.e25_1.toString() + ', statements=' + this.f25_1.toString() + ')';
|
|
@@ -7581,15 +7575,15 @@ protoOf(Root).equals = function (other) {
|
|
|
7581
7575
|
function IdxAndLength(idx, length) {
|
|
7582
7576
|
idx = idx === VOID ? 0 : idx;
|
|
7583
7577
|
length = length === VOID ? 0 : length;
|
|
7584
|
-
this.
|
|
7585
|
-
this.
|
|
7578
|
+
this.u29_1 = idx;
|
|
7579
|
+
this.v29_1 = length;
|
|
7586
7580
|
}
|
|
7587
7581
|
protoOf(IdxAndLength).toString = function () {
|
|
7588
|
-
return 'IdxAndLength(idx=' + this.
|
|
7582
|
+
return 'IdxAndLength(idx=' + this.u29_1 + ', length=' + this.v29_1 + ')';
|
|
7589
7583
|
};
|
|
7590
7584
|
protoOf(IdxAndLength).hashCode = function () {
|
|
7591
|
-
var result = this.
|
|
7592
|
-
result = imul(result, 31) + this.
|
|
7585
|
+
var result = this.u29_1;
|
|
7586
|
+
result = imul(result, 31) + this.v29_1 | 0;
|
|
7593
7587
|
return result;
|
|
7594
7588
|
};
|
|
7595
7589
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -7598,9 +7592,9 @@ protoOf(IdxAndLength).equals = function (other) {
|
|
|
7598
7592
|
if (!(other instanceof IdxAndLength))
|
|
7599
7593
|
return false;
|
|
7600
7594
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
7601
|
-
if (!(this.
|
|
7595
|
+
if (!(this.u29_1 === tmp0_other_with_cast.u29_1))
|
|
7602
7596
|
return false;
|
|
7603
|
-
if (!(this.
|
|
7597
|
+
if (!(this.v29_1 === tmp0_other_with_cast.v29_1))
|
|
7604
7598
|
return false;
|
|
7605
7599
|
return true;
|
|
7606
7600
|
};
|
|
@@ -7612,14 +7606,14 @@ function Coordinates(line, position, idxAndLength) {
|
|
|
7612
7606
|
this.x26_1 = position;
|
|
7613
7607
|
this.y26_1 = idxAndLength;
|
|
7614
7608
|
}
|
|
7615
|
-
protoOf(Coordinates).
|
|
7609
|
+
protoOf(Coordinates).w29 = function (line, position, idxAndLength) {
|
|
7616
7610
|
return new Coordinates(line, position, idxAndLength);
|
|
7617
7611
|
};
|
|
7618
|
-
protoOf(Coordinates).
|
|
7612
|
+
protoOf(Coordinates).x29 = function (line, position, idxAndLength, $super) {
|
|
7619
7613
|
line = line === VOID ? this.w26_1 : line;
|
|
7620
7614
|
position = position === VOID ? this.x26_1 : position;
|
|
7621
7615
|
idxAndLength = idxAndLength === VOID ? this.y26_1 : idxAndLength;
|
|
7622
|
-
return $super === VOID ? this.
|
|
7616
|
+
return $super === VOID ? this.w29(line, position, idxAndLength) : $super.w29.call(this, line, position, idxAndLength);
|
|
7623
7617
|
};
|
|
7624
7618
|
protoOf(Coordinates).toString = function () {
|
|
7625
7619
|
return 'Coordinates(line=' + this.w26_1 + ', position=' + this.x26_1 + ', idxAndLength=' + this.y26_1.toString() + ')';
|
|
@@ -7649,14 +7643,14 @@ function Token(value, type, coordinates) {
|
|
|
7649
7643
|
this.u26_1 = type;
|
|
7650
7644
|
this.v26_1 = coordinates;
|
|
7651
7645
|
}
|
|
7652
|
-
protoOf(Token).
|
|
7646
|
+
protoOf(Token).y29 = function (value, type, coordinates) {
|
|
7653
7647
|
return new Token(value, type, coordinates);
|
|
7654
7648
|
};
|
|
7655
|
-
protoOf(Token).
|
|
7649
|
+
protoOf(Token).z29 = function (value, type, coordinates, $super) {
|
|
7656
7650
|
value = value === VOID ? this.t26_1 : value;
|
|
7657
7651
|
type = type === VOID ? this.u26_1 : type;
|
|
7658
7652
|
coordinates = coordinates === VOID ? this.v26_1 : coordinates;
|
|
7659
|
-
return $super === VOID ? this.
|
|
7653
|
+
return $super === VOID ? this.y29(value, type, coordinates) : $super.y29.call(this, value, type, coordinates);
|
|
7660
7654
|
};
|
|
7661
7655
|
protoOf(Token).toString = function () {
|
|
7662
7656
|
return 'Token(value=' + this.t26_1 + ', type=' + toString(this.u26_1) + ', coordinates=' + this.v26_1.toString() + ')';
|
|
@@ -7682,10 +7676,10 @@ protoOf(Token).equals = function (other) {
|
|
|
7682
7676
|
return true;
|
|
7683
7677
|
};
|
|
7684
7678
|
function plus_2(_this__u8e3s4, length) {
|
|
7685
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
7679
|
+
return new IdxAndLength(_this__u8e3s4.u29_1 + length | 0, length);
|
|
7686
7680
|
}
|
|
7687
7681
|
function plus_3(_this__u8e3s4, length) {
|
|
7688
|
-
return _this__u8e3s4.
|
|
7682
|
+
return _this__u8e3s4.x29(VOID, _this__u8e3s4.x26_1 + length | 0, plus_2(_this__u8e3s4.y26_1, length));
|
|
7689
7683
|
}
|
|
7690
7684
|
function StartOfProgram() {
|
|
7691
7685
|
}
|
|
@@ -7714,7 +7708,7 @@ function SpecificType() {
|
|
|
7714
7708
|
function TypeIdentifier() {
|
|
7715
7709
|
}
|
|
7716
7710
|
function EndOfProgram() {
|
|
7717
|
-
this.
|
|
7711
|
+
this.a2a_1 = 'EOP';
|
|
7718
7712
|
}
|
|
7719
7713
|
protoOf(EndOfProgram).toString = function () {
|
|
7720
7714
|
return 'EndOfProgram';
|
|
@@ -8640,17 +8634,17 @@ function TokenizeOptions(removeWhitespace, specifyTypes, specifyFieldIdentifiers
|
|
|
8640
8634
|
removeWhitespace = removeWhitespace === VOID ? true : removeWhitespace;
|
|
8641
8635
|
specifyTypes = specifyTypes === VOID ? true : specifyTypes;
|
|
8642
8636
|
specifyFieldIdentifiers = specifyFieldIdentifiers === VOID ? true : specifyFieldIdentifiers;
|
|
8643
|
-
this.
|
|
8644
|
-
this.
|
|
8645
|
-
this.
|
|
8637
|
+
this.b2a_1 = removeWhitespace;
|
|
8638
|
+
this.c2a_1 = specifyTypes;
|
|
8639
|
+
this.d2a_1 = specifyFieldIdentifiers;
|
|
8646
8640
|
}
|
|
8647
8641
|
protoOf(TokenizeOptions).toString = function () {
|
|
8648
|
-
return 'TokenizeOptions(removeWhitespace=' + this.
|
|
8642
|
+
return 'TokenizeOptions(removeWhitespace=' + this.b2a_1 + ', specifyTypes=' + this.c2a_1 + ', specifyFieldIdentifiers=' + this.d2a_1 + ')';
|
|
8649
8643
|
};
|
|
8650
8644
|
protoOf(TokenizeOptions).hashCode = function () {
|
|
8651
|
-
var result = getBooleanHashCode(this.
|
|
8645
|
+
var result = getBooleanHashCode(this.b2a_1);
|
|
8646
|
+
result = imul(result, 31) + getBooleanHashCode(this.c2a_1) | 0;
|
|
8652
8647
|
result = imul(result, 31) + getBooleanHashCode(this.d2a_1) | 0;
|
|
8653
|
-
result = imul(result, 31) + getBooleanHashCode(this.e2a_1) | 0;
|
|
8654
8648
|
return result;
|
|
8655
8649
|
};
|
|
8656
8650
|
protoOf(TokenizeOptions).equals = function (other) {
|
|
@@ -8659,12 +8653,12 @@ protoOf(TokenizeOptions).equals = function (other) {
|
|
|
8659
8653
|
if (!(other instanceof TokenizeOptions))
|
|
8660
8654
|
return false;
|
|
8661
8655
|
var tmp0_other_with_cast = other instanceof TokenizeOptions ? other : THROW_CCE();
|
|
8656
|
+
if (!(this.b2a_1 === tmp0_other_with_cast.b2a_1))
|
|
8657
|
+
return false;
|
|
8662
8658
|
if (!(this.c2a_1 === tmp0_other_with_cast.c2a_1))
|
|
8663
8659
|
return false;
|
|
8664
8660
|
if (!(this.d2a_1 === tmp0_other_with_cast.d2a_1))
|
|
8665
8661
|
return false;
|
|
8666
|
-
if (!(this.e2a_1 === tmp0_other_with_cast.e2a_1))
|
|
8667
|
-
return false;
|
|
8668
8662
|
return true;
|
|
8669
8663
|
};
|
|
8670
8664
|
function optimize(_this__u8e3s4, options) {
|
|
@@ -8716,7 +8710,7 @@ function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
|
|
|
8716
8710
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyFieldIdentifier.<anonymous>' call
|
|
8717
8711
|
var regex = element.sd();
|
|
8718
8712
|
var variant = element.td();
|
|
8719
|
-
var result = regex.tb(removeBackticks(_this__u8e3s4.t26_1)) ? _this__u8e3s4.
|
|
8713
|
+
var result = regex.tb(removeBackticks(_this__u8e3s4.t26_1)) ? _this__u8e3s4.z29(VOID, variant) : null;
|
|
8720
8714
|
if (!(result == null)) {
|
|
8721
8715
|
tmp$ret$1 = result;
|
|
8722
8716
|
break $l$block;
|
|
@@ -8743,7 +8737,7 @@ function specifyType(_this__u8e3s4, entries) {
|
|
|
8743
8737
|
// Inline function 'kotlin.let' call
|
|
8744
8738
|
// Inline function 'kotlin.contracts.contract' call
|
|
8745
8739
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyType.<anonymous>' call
|
|
8746
|
-
tmp_0 = _this__u8e3s4.
|
|
8740
|
+
tmp_0 = _this__u8e3s4.z29(VOID, tmp1_safe_receiver);
|
|
8747
8741
|
}
|
|
8748
8742
|
var tmp2_elvis_lhs = tmp_0;
|
|
8749
8743
|
tmp = tmp2_elvis_lhs == null ? _this__u8e3s4 : tmp2_elvis_lhs;
|
|
@@ -8874,7 +8868,7 @@ function nextCoordinates(_this__u8e3s4, type, value) {
|
|
|
8874
8868
|
}
|
|
8875
8869
|
function nextToken_0(_this__u8e3s4, type, value) {
|
|
8876
8870
|
var tmp0_coordinates = nextCoordinates(_this__u8e3s4.v26_1, type, value);
|
|
8877
|
-
return _this__u8e3s4.
|
|
8871
|
+
return _this__u8e3s4.y29(value, type, tmp0_coordinates);
|
|
8878
8872
|
}
|
|
8879
8873
|
function optimize$lambda$lambda($this$runOption) {
|
|
8880
8874
|
return removeWhiteSpace($this$runOption);
|
|
@@ -8921,9 +8915,9 @@ function optimize$lambda$lambda_1($this_optimize) {
|
|
|
8921
8915
|
}
|
|
8922
8916
|
function optimize$lambda($options, $this_optimize) {
|
|
8923
8917
|
return function (tokens) {
|
|
8924
|
-
var tmp = runOption(tokens, $options.
|
|
8925
|
-
var tmp_0 = runOption(tmp, $options.
|
|
8926
|
-
return runOption(tmp_0, $options.
|
|
8918
|
+
var tmp = runOption(tokens, $options.b2a_1, optimize$lambda$lambda);
|
|
8919
|
+
var tmp_0 = runOption(tmp, $options.c2a_1, optimize$lambda$lambda_0($this_optimize));
|
|
8920
|
+
return runOption(tmp_0, $options.d2a_1, optimize$lambda$lambda_1($this_optimize));
|
|
8927
8921
|
};
|
|
8928
8922
|
}
|
|
8929
8923
|
function validateWithOptions($this, ast, options) {
|
|
@@ -9105,7 +9099,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
|
|
|
9105
9099
|
// Inline function 'community.flock.wirespec.compiler.core.validate.Validator.fillExtendsClause.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
9106
9100
|
var tmp_1;
|
|
9107
9101
|
if (item instanceof Custom) {
|
|
9108
|
-
tmp_1 = item.
|
|
9102
|
+
tmp_1 = item.j29_1;
|
|
9109
9103
|
} else {
|
|
9110
9104
|
// Inline function 'arrow.core.nel' call
|
|
9111
9105
|
var this_1 = new UnionError();
|
|
@@ -9191,7 +9185,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
|
|
|
9191
9185
|
// Inline function 'community.flock.wirespec.compiler.core.validate.Validator.fillExtendsClause.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
9192
9186
|
var tmp_4;
|
|
9193
9187
|
if (item_2 instanceof Custom) {
|
|
9194
|
-
tmp_4 = item_2.
|
|
9188
|
+
tmp_4 = item_2.j29_1;
|
|
9195
9189
|
} else {
|
|
9196
9190
|
// Inline function 'arrow.core.nel' call
|
|
9197
9191
|
var this_4 = new UnionError();
|
|
@@ -9787,17 +9781,17 @@ function Logger(logLevel) {
|
|
|
9787
9781
|
}
|
|
9788
9782
|
tmp_5.h22_1 = tmp_6;
|
|
9789
9783
|
}
|
|
9790
|
-
protoOf(Logger).
|
|
9784
|
+
protoOf(Logger).e2a = function () {
|
|
9791
9785
|
return this.e22_1;
|
|
9792
9786
|
};
|
|
9793
|
-
protoOf(Logger).
|
|
9787
|
+
protoOf(Logger).f2a = function () {
|
|
9794
9788
|
return this.f22_1;
|
|
9795
9789
|
};
|
|
9796
9790
|
protoOf(Logger).i22 = function (string) {
|
|
9797
|
-
return logIf(string, this, this.
|
|
9791
|
+
return logIf(string, this, this.e2a());
|
|
9798
9792
|
};
|
|
9799
9793
|
protoOf(Logger).u25 = function (string) {
|
|
9800
|
-
return logIf(string, this, this.
|
|
9794
|
+
return logIf(string, this, this.f2a());
|
|
9801
9795
|
};
|
|
9802
9796
|
function NoLogger() {
|
|
9803
9797
|
}
|
|
@@ -9814,12 +9808,12 @@ function _init_properties_Logger_kt__mpqsw() {
|
|
|
9814
9808
|
//region block: post-declaration
|
|
9815
9809
|
protoOf(LanguageEmitter).b25 = get_expression;
|
|
9816
9810
|
protoOf(LanguageEmitter).i25 = notYetImplemented;
|
|
9817
|
-
protoOf(Any).
|
|
9818
|
-
protoOf(Unit).
|
|
9819
|
-
protoOf(Dict_0).
|
|
9820
|
-
protoOf(Iterable).
|
|
9821
|
-
protoOf(Custom).
|
|
9822
|
-
protoOf(Primitive).
|
|
9811
|
+
protoOf(Any).d29 = copy;
|
|
9812
|
+
protoOf(Unit).d29 = copy;
|
|
9813
|
+
protoOf(Dict_0).d29 = copy;
|
|
9814
|
+
protoOf(Iterable).d29 = copy;
|
|
9815
|
+
protoOf(Custom).d29 = copy;
|
|
9816
|
+
protoOf(Primitive).d29 = copy;
|
|
9823
9817
|
//endregion
|
|
9824
9818
|
//region block: init
|
|
9825
9819
|
Companion_instance_0 = new Companion();
|