@flock/wirespec 0.14.29 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clikt-clikt.mjs +1125 -1125
- package/colormath-root-colormath.mjs +400 -400
- package/kotlin-kotlin-stdlib.mjs +9 -9
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1764 -1764
- package/kotlinx-io-kotlinx-io-core.mjs +371 -371
- package/markdown.mjs +1816 -1816
- package/mordant-mordant.mjs +1531 -1531
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +632 -508
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +269 -269
- package/wirespec-src-converter-avro.mjs +263 -263
- package/wirespec-src-converter-openapi.mjs +171 -171
- package/wirespec-src-plugin-arguments.mjs +119 -119
- package/wirespec-src-plugin-cli.mjs +61 -61
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +13 -12
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +3 -3
|
@@ -65,7 +65,8 @@ import {
|
|
|
65
65
|
sortedWith2csnbbb21k0lg as sortedWith,
|
|
66
66
|
trimIndent1qytc1wvt8suh as trimIndent,
|
|
67
67
|
prependIndentkl9wuvcodvmu as prependIndent,
|
|
68
|
-
|
|
68
|
+
LinkedHashMap_init_$Create$2gfxg59gogbfz as LinkedHashMap_init_$Create$,
|
|
69
|
+
HashSet_init_$Create$2bsk5herqkxxm as HashSet_init_$Create$,
|
|
69
70
|
firstOrNull1982767dljvdy as firstOrNull_0,
|
|
70
71
|
isUpperCase16ivdixranflt as isUpperCase,
|
|
71
72
|
repeat2w4c6j8zoq09o as repeat,
|
|
@@ -75,7 +76,6 @@ import {
|
|
|
75
76
|
IndexedValue22atz80p92rrf as IndexedValue,
|
|
76
77
|
listOfNotNull1v4ggfackvuny as listOfNotNull_0,
|
|
77
78
|
flatten2dh4kibw1u0qq as flatten,
|
|
78
|
-
HashSet_init_$Create$2bsk5herqkxxm as HashSet_init_$Create$,
|
|
79
79
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
80
80
|
plus310ted5e4i90h as plus,
|
|
81
81
|
filterNotNull3qfgcwmxhwfxe as filterNotNull,
|
|
@@ -91,8 +91,8 @@ import {
|
|
|
91
91
|
dropLast1vpiyky649o34 as dropLast_0,
|
|
92
92
|
zipWithNext2nnv9puh4xyfv as zipWithNext,
|
|
93
93
|
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
|
|
94
|
+
last1vo29oleiqj36 as last,
|
|
94
95
|
Paire9pteg33gng7 as Pair,
|
|
95
|
-
LinkedHashMap_init_$Create$2gfxg59gogbfz as LinkedHashMap_init_$Create$,
|
|
96
96
|
println2shhhgwwt4c61 as println,
|
|
97
97
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
98
98
|
import {
|
|
@@ -101,11 +101,11 @@ import {
|
|
|
101
101
|
_NonEmptySet___get_elements__impl__g09gj93rk9dtepr20b0 as _NonEmptySet___get_elements__impl__g09gj9,
|
|
102
102
|
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
103
103
|
Right351sh2v8odavg as Right,
|
|
104
|
-
nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
|
|
105
104
|
DefaultRaisevd10gc79qxh8 as DefaultRaise,
|
|
106
105
|
nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow,
|
|
107
106
|
raisedOrRethrow397oyvsdde7oq as raisedOrRethrow,
|
|
108
107
|
RaiseCancellationException3n5raogfhbd1l as RaiseCancellationException,
|
|
108
|
+
nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
|
|
109
109
|
right2w60qw9uivnyr as right,
|
|
110
110
|
Companion_instancel37dvvdi0gn2 as Companion_instance,
|
|
111
111
|
left3pixsqou14wpr as left,
|
|
@@ -3070,49 +3070,64 @@ function emitSerialize(_this__u8e3s4, $this, fields) {
|
|
|
3070
3070
|
return $this.v25(_this__u8e3s4.t25_1) + ': serialization.serialize(it.' + fields + '[' + $this.v25(_this__u8e3s4.t25_1) + '])';
|
|
3071
3071
|
}
|
|
3072
3072
|
function TypeScriptEmitter$emit$lambda(it) {
|
|
3073
|
+
return 'export {' + it.w24().b1() + "} from './" + it.w24().b1() + "'";
|
|
3074
|
+
}
|
|
3075
|
+
function TypeScriptEmitter$emit$lambda_0(it) {
|
|
3076
|
+
// Inline function 'kotlin.text.trimStart' call
|
|
3077
|
+
return toString(trimStart(isCharSequence(it) ? it : THROW_CCE()));
|
|
3078
|
+
}
|
|
3079
|
+
function TypeScriptEmitter$emit$lambda_1(it) {
|
|
3073
3080
|
return '"' + it + '"';
|
|
3074
3081
|
}
|
|
3075
|
-
function TypeScriptEmitter$emit$
|
|
3082
|
+
function TypeScriptEmitter$emit$lambda_2(this$0) {
|
|
3076
3083
|
return function (it) {
|
|
3077
3084
|
return this$0.b26(it);
|
|
3078
3085
|
};
|
|
3079
3086
|
}
|
|
3080
|
-
function TypeScriptEmitter$emit$
|
|
3087
|
+
function TypeScriptEmitter$emit$lambda_3(it) {
|
|
3088
|
+
// Inline function 'kotlin.text.trimStart' call
|
|
3089
|
+
return toString(trimStart(isCharSequence(it) ? it : THROW_CCE()));
|
|
3090
|
+
}
|
|
3091
|
+
function TypeScriptEmitter$emit$lambda_4(this$0) {
|
|
3081
3092
|
return function (it) {
|
|
3082
3093
|
return this$0.q29(it);
|
|
3083
3094
|
};
|
|
3084
3095
|
}
|
|
3085
|
-
function TypeScriptEmitter$emit$
|
|
3096
|
+
function TypeScriptEmitter$emit$lambda_5(this$0) {
|
|
3086
3097
|
return function (it) {
|
|
3087
3098
|
return this$0.b26(it);
|
|
3088
3099
|
};
|
|
3089
3100
|
}
|
|
3090
|
-
function TypeScriptEmitter$emit$
|
|
3101
|
+
function TypeScriptEmitter$emit$lambda_6(this$0) {
|
|
3091
3102
|
return function (it) {
|
|
3092
3103
|
return this$0.b26(it);
|
|
3093
3104
|
};
|
|
3094
3105
|
}
|
|
3095
|
-
function TypeScriptEmitter$emit$
|
|
3106
|
+
function TypeScriptEmitter$emit$lambda_7(this$0) {
|
|
3096
3107
|
return function (it) {
|
|
3097
3108
|
return emitType_3(it, this$0);
|
|
3098
3109
|
};
|
|
3099
3110
|
}
|
|
3100
|
-
function TypeScriptEmitter$emit$
|
|
3111
|
+
function TypeScriptEmitter$emit$lambda_8(this$0) {
|
|
3101
3112
|
return function (it) {
|
|
3102
3113
|
return emitName(it, this$0);
|
|
3103
3114
|
};
|
|
3104
3115
|
}
|
|
3105
|
-
function TypeScriptEmitter$emit$
|
|
3116
|
+
function TypeScriptEmitter$emit$lambda_9(this$0) {
|
|
3106
3117
|
return function (it) {
|
|
3107
3118
|
return emitFunction_0(it, this$0);
|
|
3108
3119
|
};
|
|
3109
3120
|
}
|
|
3110
|
-
function TypeScriptEmitter$emit$
|
|
3121
|
+
function TypeScriptEmitter$emit$lambda_10(this$0) {
|
|
3111
3122
|
return function (it) {
|
|
3112
3123
|
return this$0.f26(it);
|
|
3113
3124
|
};
|
|
3114
3125
|
}
|
|
3115
|
-
function TypeScriptEmitter$emit$
|
|
3126
|
+
function TypeScriptEmitter$emit$lambda_11(it) {
|
|
3127
|
+
// Inline function 'kotlin.text.trimStart' call
|
|
3128
|
+
return toString(trimStart(isCharSequence(it) ? it : THROW_CCE()));
|
|
3129
|
+
}
|
|
3130
|
+
function TypeScriptEmitter$emit$lambda_12(this$0) {
|
|
3116
3131
|
return function (it) {
|
|
3117
3132
|
return this$0.j24(it);
|
|
3118
3133
|
};
|
|
@@ -3227,40 +3242,112 @@ protoOf(TypeScriptEmitter).k26 = function () {
|
|
|
3227
3242
|
protoOf(TypeScriptEmitter).l26 = function () {
|
|
3228
3243
|
return this.p29_1;
|
|
3229
3244
|
};
|
|
3230
|
-
protoOf(TypeScriptEmitter).
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3245
|
+
protoOf(TypeScriptEmitter).n23 = function (ast, logger) {
|
|
3246
|
+
// Inline function 'kotlin.let' call
|
|
3247
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3248
|
+
var it = protoOf(Emitter).n23.call(this, ast, logger);
|
|
3249
|
+
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
3250
|
+
var this_0 = ast.r29_1;
|
|
3251
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
3252
|
+
var tmp = this_0.uk_1.d27_1.sk();
|
|
3253
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
3254
|
+
var tmp0 = this_0.vk_1;
|
|
3255
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3256
|
+
var destination = ArrayList_init_$Create$_0();
|
|
3257
|
+
var _iterator__ex2g4s = tmp0.g();
|
|
3258
|
+
while (_iterator__ex2g4s.h()) {
|
|
3259
|
+
var element = _iterator__ex2g4s.i();
|
|
3260
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
3261
|
+
var list = element.d27_1;
|
|
3262
|
+
addAll(destination, list);
|
|
3263
|
+
}
|
|
3264
|
+
// Inline function 'kotlin.collections.groupBy' call
|
|
3265
|
+
var tmp0_0 = tmp.zk(destination);
|
|
3266
|
+
// Inline function 'kotlin.collections.groupByTo' call
|
|
3267
|
+
var destination_0 = LinkedHashMap_init_$Create$();
|
|
3268
|
+
var _iterator__ex2g4s_0 = tmp0_0.g();
|
|
3269
|
+
while (_iterator__ex2g4s_0.h()) {
|
|
3270
|
+
var element_0 = _iterator__ex2g4s_0.i();
|
|
3271
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
3272
|
+
var key = namespace(element_0);
|
|
3273
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
3274
|
+
var value = destination_0.g2(key);
|
|
3275
|
+
var tmp_0;
|
|
3276
|
+
if (value == null) {
|
|
3277
|
+
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
3278
|
+
var answer = ArrayList_init_$Create$_0();
|
|
3279
|
+
destination_0.n2(key, answer);
|
|
3280
|
+
tmp_0 = answer;
|
|
3281
|
+
} else {
|
|
3282
|
+
tmp_0 = value;
|
|
3283
|
+
}
|
|
3284
|
+
var list_0 = tmp_0;
|
|
3285
|
+
list_0.e(element_0);
|
|
3286
|
+
}
|
|
3237
3287
|
// Inline function 'kotlin.collections.map' call
|
|
3238
|
-
var this_1 = this_0.vk_1;
|
|
3239
3288
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3240
|
-
var
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3289
|
+
var destination_1 = ArrayList_init_$Create$(destination_0.j());
|
|
3290
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3291
|
+
var _iterator__ex2g4s_1 = destination_0.z().g();
|
|
3292
|
+
while (_iterator__ex2g4s_1.h()) {
|
|
3293
|
+
var item = _iterator__ex2g4s_1.i();
|
|
3294
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
3295
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3296
|
+
var ns = item.a1();
|
|
3297
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3298
|
+
var defs = item.b1();
|
|
3299
|
+
var tmp_1 = ns + '/index.' + this.j26().u29_1;
|
|
3300
|
+
var tmp$ret$13 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda));
|
|
3301
|
+
destination_1.e(tmp$ret$13);
|
|
3247
3302
|
}
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3303
|
+
return it.zk(destination_1);
|
|
3304
|
+
};
|
|
3305
|
+
protoOf(TypeScriptEmitter).m26 = function (module_0, logger) {
|
|
3306
|
+
// Inline function 'kotlin.let' call
|
|
3307
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3308
|
+
var it = protoOf(Emitter).m26.call(this, module_0, logger);
|
|
3309
|
+
return this.m29_1.q26_1 ? it.al(new Emitted('Wirespec', this.k26().w29_1)) : it;
|
|
3310
|
+
};
|
|
3311
|
+
protoOf(TypeScriptEmitter).r26 = function (definition, module_0, logger) {
|
|
3312
|
+
// Inline function 'kotlin.let' call
|
|
3313
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3314
|
+
var it = protoOf(Emitter).r26.call(this, definition, module_0, logger);
|
|
3315
|
+
var subPackageName = plus_0(Companion_instance_6.h26(''), definition);
|
|
3316
|
+
return new Emitted(subPackageName.n26() + sanitizeSymbol_3(it.s26_1, this), trimMargin('\n |' + TypeScriptShared_getInstance().w29_1 + '\n |\n |' + it.t26_1 + '\n '));
|
|
3254
3317
|
};
|
|
3255
3318
|
protoOf(TypeScriptEmitter).v26 = function (type, module_0) {
|
|
3256
|
-
|
|
3319
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
3320
|
+
var this_0 = this.b28(type);
|
|
3321
|
+
var set = HashSet_init_$Create$();
|
|
3322
|
+
var list = ArrayList_init_$Create$_0();
|
|
3323
|
+
var _iterator__ex2g4s = this_0.g();
|
|
3324
|
+
while (_iterator__ex2g4s.h()) {
|
|
3325
|
+
var e = _iterator__ex2g4s.i();
|
|
3326
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3327
|
+
var key = e.y23_1;
|
|
3328
|
+
if (set.e(key)) {
|
|
3329
|
+
list.e(e);
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
// Inline function 'kotlin.collections.map' call
|
|
3333
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3334
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(list, 10));
|
|
3335
|
+
var _iterator__ex2g4s_0 = list.g();
|
|
3336
|
+
while (_iterator__ex2g4s_0.h()) {
|
|
3337
|
+
var item = _iterator__ex2g4s_0.i();
|
|
3338
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3339
|
+
var tmp$ret$2 = 'import {' + item.y23_1 + "} from './" + item.y23_1 + "'";
|
|
3340
|
+
destination.e(tmp$ret$2);
|
|
3341
|
+
}
|
|
3342
|
+
var tmp = destination;
|
|
3343
|
+
return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0) + '\n |export type ' + sanitizeSymbol_2(type.x26_1, this) + ' = {\n |' + this.a27(type.y26_1) + '\n |}\n |\n ');
|
|
3257
3344
|
};
|
|
3258
3345
|
protoOf(TypeScriptEmitter).q27 = function (enum_0, module_0) {
|
|
3259
3346
|
var tmp = sanitizeSymbol_2(enum_0.s27_1, this);
|
|
3260
|
-
return 'export type ' + tmp + ' = ' + joinToString(enum_0.t27_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$
|
|
3347
|
+
return 'export type ' + tmp + ' = ' + joinToString(enum_0.t27_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1) + '\n';
|
|
3261
3348
|
};
|
|
3262
3349
|
protoOf(TypeScriptEmitter).a27 = function (_this__u8e3s4) {
|
|
3263
|
-
return joinToString(_this__u8e3s4.h27_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$
|
|
3350
|
+
return joinToString(_this__u8e3s4.h27_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_2(this));
|
|
3264
3351
|
};
|
|
3265
3352
|
protoOf(TypeScriptEmitter).q29 = function (_this__u8e3s4) {
|
|
3266
3353
|
return Spacer_instance.toString() + this.v25(_this__u8e3s4.w25_1) + ': ' + this.j24(_this__u8e3s4.x25_1);
|
|
@@ -3329,32 +3416,57 @@ protoOf(TypeScriptEmitter).n27 = function (_this__u8e3s4) {
|
|
|
3329
3416
|
return _this__u8e3s4.o27_1;
|
|
3330
3417
|
};
|
|
3331
3418
|
protoOf(TypeScriptEmitter).c28 = function (endpoint) {
|
|
3332
|
-
|
|
3333
|
-
var
|
|
3334
|
-
var
|
|
3335
|
-
var
|
|
3336
|
-
var
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
var
|
|
3348
|
-
var
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3419
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
3420
|
+
var this_0 = this.b28(endpoint);
|
|
3421
|
+
var set = HashSet_init_$Create$();
|
|
3422
|
+
var list = ArrayList_init_$Create$_0();
|
|
3423
|
+
var _iterator__ex2g4s = this_0.g();
|
|
3424
|
+
while (_iterator__ex2g4s.h()) {
|
|
3425
|
+
var e = _iterator__ex2g4s.i();
|
|
3426
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3427
|
+
var key = e.y23_1;
|
|
3428
|
+
if (set.e(key)) {
|
|
3429
|
+
list.e(e);
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
// Inline function 'kotlin.collections.map' call
|
|
3433
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3434
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(list, 10));
|
|
3435
|
+
var _iterator__ex2g4s_0 = list.g();
|
|
3436
|
+
while (_iterator__ex2g4s_0.h()) {
|
|
3437
|
+
var item = _iterator__ex2g4s_0.i();
|
|
3438
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3439
|
+
var tmp$ret$2 = 'import {' + item.y23_1 + "} from '../model'";
|
|
3440
|
+
destination.e(tmp$ret$2);
|
|
3441
|
+
}
|
|
3442
|
+
var tmp = destination;
|
|
3443
|
+
var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_3);
|
|
3444
|
+
var tmp_1 = sanitizeSymbol_2(endpoint.z24_1, this);
|
|
3445
|
+
var tmp_2 = this.q25(endpoint);
|
|
3446
|
+
var tmp_3 = emitType_1(tmp_2, this, 'Path', TypeScriptEmitter$emit$lambda_4(this));
|
|
3447
|
+
var tmp_4 = emitType_1(endpoint.c25_1, this, 'Queries', TypeScriptEmitter$emit$lambda_5(this));
|
|
3448
|
+
var tmp_5 = emitType_1(endpoint.d25_1, this, 'Headers', TypeScriptEmitter$emit$lambda_6(this));
|
|
3449
|
+
var tmp_6 = emitType_2(first_0(endpoint.e25_1), this, endpoint);
|
|
3450
|
+
var tmp_7 = this.j25(endpoint.f25_1);
|
|
3451
|
+
var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_7(this));
|
|
3452
|
+
var tmp_9 = Spacer_instance.toString();
|
|
3453
|
+
var tmp_10 = this.j25(endpoint.f25_1);
|
|
3454
|
+
var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_8(this));
|
|
3455
|
+
var tmp_12 = emitFunction(first_0(endpoint.e25_1), this, endpoint);
|
|
3456
|
+
var tmp_13 = this.j25(endpoint.f25_1);
|
|
3457
|
+
var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_9(this));
|
|
3458
|
+
var tmp_15 = Spacer_instance.toString();
|
|
3459
|
+
var tmp_16 = Spacer_instance.l25(2);
|
|
3460
|
+
var tmp_17 = emitHandleFunction(this, endpoint);
|
|
3461
|
+
var tmp_18 = Spacer_instance.toString();
|
|
3462
|
+
var tmp_19 = prependIndent(emitClient(endpoint, this), Spacer_instance.l25(1));
|
|
3463
|
+
var tmp_20 = prependIndent(emitServer(endpoint, this), Spacer_instance.l25(1));
|
|
3464
|
+
var tmp_21 = Spacer_instance.toString();
|
|
3355
3465
|
var tmp_22 = Spacer_instance.l25(2);
|
|
3356
|
-
var tmp_23 =
|
|
3357
|
-
|
|
3466
|
+
var tmp_23 = Companion_instance_5.y25(sanitizeSymbol_2(endpoint.z24_1, this));
|
|
3467
|
+
var tmp_24 = Spacer_instance.l25(2);
|
|
3468
|
+
var tmp_25 = Spacer_instance.l25(2);
|
|
3469
|
+
return trimMargin('\n |' + tmp_0 + '\n |export namespace ' + tmp_1 + ' {\n |' + tmp_3 + '\n |' + tmp_4 + '\n |' + tmp_5 + '\n |' + tmp_6 + '\n |' + tmp_8 + '\n |' + tmp_9 + 'export type Response = ' + tmp_11 + '\n |' + tmp_12 + '\n |' + tmp_14 + '\n |' + tmp_15 + 'export type Handler = {\n |' + tmp_16 + tmp_17 + '\n |' + tmp_18 + '}\n |' + tmp_19 + '\n |' + tmp_20 + '\n |' + tmp_21 + 'export const api = {\n |' + tmp_22 + 'name: "' + tmp_23 + '",\n |' + tmp_24 + 'method: "' + endpoint.a25_1.q2_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.b25_1, '/', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_10(this)) + '",\n |' + Spacer_instance.l25(2) + 'server,\n |' + Spacer_instance.l25(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
|
|
3358
3470
|
};
|
|
3359
3471
|
protoOf(TypeScriptEmitter).f26 = function (_this__u8e3s4) {
|
|
3360
3472
|
var tmp;
|
|
@@ -3370,14 +3482,39 @@ protoOf(TypeScriptEmitter).f26 = function (_this__u8e3s4) {
|
|
|
3370
3482
|
return tmp;
|
|
3371
3483
|
};
|
|
3372
3484
|
protoOf(TypeScriptEmitter).v27 = function (union) {
|
|
3373
|
-
|
|
3374
|
-
|
|
3485
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
3486
|
+
var this_0 = this.b28(union);
|
|
3487
|
+
var set = HashSet_init_$Create$();
|
|
3488
|
+
var list = ArrayList_init_$Create$_0();
|
|
3489
|
+
var _iterator__ex2g4s = this_0.g();
|
|
3490
|
+
while (_iterator__ex2g4s.h()) {
|
|
3491
|
+
var e = _iterator__ex2g4s.i();
|
|
3492
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3493
|
+
var key = e.y23_1;
|
|
3494
|
+
if (set.e(key)) {
|
|
3495
|
+
list.e(e);
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
// Inline function 'kotlin.collections.map' call
|
|
3499
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3500
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(list, 10));
|
|
3501
|
+
var _iterator__ex2g4s_0 = list.g();
|
|
3502
|
+
while (_iterator__ex2g4s_0.h()) {
|
|
3503
|
+
var item = _iterator__ex2g4s_0.i();
|
|
3504
|
+
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>' call
|
|
3505
|
+
var tmp$ret$2 = 'import {' + item.y23_1 + "} from '../model'";
|
|
3506
|
+
destination.e(tmp$ret$2);
|
|
3507
|
+
}
|
|
3508
|
+
var tmp = destination;
|
|
3509
|
+
var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_11);
|
|
3510
|
+
var tmp_1 = sanitizeSymbol_2(union.f27_1, this);
|
|
3511
|
+
return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.g27_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_12(this)) + '\n |\n ');
|
|
3375
3512
|
};
|
|
3376
3513
|
protoOf(TypeScriptEmitter).v25 = function (identifier) {
|
|
3377
3514
|
return '"' + identifier.b1() + '"';
|
|
3378
3515
|
};
|
|
3379
3516
|
protoOf(TypeScriptEmitter).w27 = function (channel) {
|
|
3380
|
-
return this.
|
|
3517
|
+
return this.x29();
|
|
3381
3518
|
};
|
|
3382
3519
|
function emitPath(_this__u8e3s4, $this) {
|
|
3383
3520
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, WirespecEmitter$emitPath$lambda($this));
|
|
@@ -3451,7 +3588,7 @@ function capitalize(_this__u8e3s4, $this) {
|
|
|
3451
3588
|
}
|
|
3452
3589
|
function Companion_2() {
|
|
3453
3590
|
Companion_instance_3 = this;
|
|
3454
|
-
this.
|
|
3591
|
+
this.b2a_1 = setOf(['type', 'enum', 'endpoint']);
|
|
3455
3592
|
}
|
|
3456
3593
|
var Companion_instance_3;
|
|
3457
3594
|
function Companion_getInstance_3() {
|
|
@@ -3516,15 +3653,15 @@ function WirespecEmitter$emitQuery$lambda(this$0) {
|
|
|
3516
3653
|
function WirespecEmitter() {
|
|
3517
3654
|
Companion_getInstance_3();
|
|
3518
3655
|
Emitter.call(this);
|
|
3519
|
-
this.
|
|
3520
|
-
this.
|
|
3521
|
-
this.
|
|
3656
|
+
this.y29_1 = FileExtension_Wirespec_getInstance();
|
|
3657
|
+
this.z29_1 = null;
|
|
3658
|
+
this.a2a_1 = '\n';
|
|
3522
3659
|
}
|
|
3523
3660
|
protoOf(WirespecEmitter).j26 = function () {
|
|
3524
|
-
return this.
|
|
3661
|
+
return this.y29_1;
|
|
3525
3662
|
};
|
|
3526
3663
|
protoOf(WirespecEmitter).l26 = function () {
|
|
3527
|
-
return this.
|
|
3664
|
+
return this.a2a_1;
|
|
3528
3665
|
};
|
|
3529
3666
|
protoOf(WirespecEmitter).v26 = function (type, module_0) {
|
|
3530
3667
|
return trimMargin('\n |type ' + this.v25(type.x26_1) + ' {\n |' + this.a27(type.y26_1) + '\n |}\n |');
|
|
@@ -3540,12 +3677,12 @@ protoOf(WirespecEmitter).v25 = function (identifier) {
|
|
|
3540
3677
|
if (identifier instanceof DefinitionIdentifier) {
|
|
3541
3678
|
// Inline function 'kotlin.run' call
|
|
3542
3679
|
// Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>' call
|
|
3543
|
-
tmp = Companion_getInstance_3().
|
|
3680
|
+
tmp = Companion_getInstance_3().b2a_1.o1(identifier.b1()) ? addBackticks(identifier.b1()) : identifier.b1();
|
|
3544
3681
|
} else {
|
|
3545
3682
|
if (identifier instanceof FieldIdentifier) {
|
|
3546
3683
|
// Inline function 'kotlin.run' call
|
|
3547
3684
|
// Inline function 'community.flock.wirespec.compiler.core.emit.WirespecEmitter.emit.<anonymous>' call
|
|
3548
|
-
tmp = Companion_getInstance_3().
|
|
3685
|
+
tmp = Companion_getInstance_3().b2a_1.o1(identifier.b1()) || isUpperCase(first(identifier.b1())) ? addBackticks(identifier.b1()) : identifier.b1();
|
|
3549
3686
|
} else {
|
|
3550
3687
|
noWhenBranchMatchedException();
|
|
3551
3688
|
}
|
|
@@ -3700,12 +3837,12 @@ function namespace(_this__u8e3s4) {
|
|
|
3700
3837
|
}
|
|
3701
3838
|
function Companion_3() {
|
|
3702
3839
|
}
|
|
3703
|
-
protoOf(Companion_3).
|
|
3840
|
+
protoOf(Companion_3).c2a = function (value) {
|
|
3704
3841
|
return new EmitShared(value == null ? false : value);
|
|
3705
3842
|
};
|
|
3706
3843
|
protoOf(Companion_3).i26 = function (value, $super) {
|
|
3707
3844
|
value = value === VOID ? null : value;
|
|
3708
|
-
return $super === VOID ? this.
|
|
3845
|
+
return $super === VOID ? this.c2a(value) : $super.c2a.call(this, value);
|
|
3709
3846
|
};
|
|
3710
3847
|
var Companion_instance_4;
|
|
3711
3848
|
function Companion_getInstance_4() {
|
|
@@ -3925,34 +4062,6 @@ protoOf(Companion_4).u26 = function (_this__u8e3s4) {
|
|
|
3925
4062
|
}
|
|
3926
4063
|
return tmp$ret$0;
|
|
3927
4064
|
};
|
|
3928
|
-
protoOf(Companion_4).t29 = function (_this__u8e3s4) {
|
|
3929
|
-
var tmp0 = _this__u8e3s4.d27_1;
|
|
3930
|
-
var tmp$ret$0;
|
|
3931
|
-
$l$block_0: {
|
|
3932
|
-
// Inline function 'kotlin.collections.any' call
|
|
3933
|
-
var tmp;
|
|
3934
|
-
if (isInterface(tmp0, Collection)) {
|
|
3935
|
-
tmp = tmp0.l();
|
|
3936
|
-
} else {
|
|
3937
|
-
tmp = false;
|
|
3938
|
-
}
|
|
3939
|
-
if (tmp) {
|
|
3940
|
-
tmp$ret$0 = false;
|
|
3941
|
-
break $l$block_0;
|
|
3942
|
-
}
|
|
3943
|
-
var _iterator__ex2g4s = tmp0.g();
|
|
3944
|
-
while (_iterator__ex2g4s.h()) {
|
|
3945
|
-
var element = _iterator__ex2g4s.i();
|
|
3946
|
-
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Companion.hasEndpoints.<anonymous>' call
|
|
3947
|
-
if (element instanceof Endpoint) {
|
|
3948
|
-
tmp$ret$0 = true;
|
|
3949
|
-
break $l$block_0;
|
|
3950
|
-
}
|
|
3951
|
-
}
|
|
3952
|
-
tmp$ret$0 = false;
|
|
3953
|
-
}
|
|
3954
|
-
return tmp$ret$0;
|
|
3955
|
-
};
|
|
3956
4065
|
protoOf(Companion_4).e28 = function (_this__u8e3s4) {
|
|
3957
4066
|
var tmp0_safe_receiver = toIntOrNull(_this__u8e3s4);
|
|
3958
4067
|
var tmp;
|
|
@@ -3990,7 +4099,7 @@ function Emitter() {
|
|
|
3990
4099
|
}
|
|
3991
4100
|
protoOf(Emitter).n23 = function (ast, logger) {
|
|
3992
4101
|
// Inline function 'arrow.core.NonEmptyList.flatMap' call
|
|
3993
|
-
var this_0 = ast.
|
|
4102
|
+
var this_0 = ast.r29_1;
|
|
3994
4103
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
3995
4104
|
var it = this_0.uk_1;
|
|
3996
4105
|
var tmp = this.m26(it, logger).sk();
|
|
@@ -4009,7 +4118,7 @@ protoOf(Emitter).n23 = function (ast, logger) {
|
|
|
4009
4118
|
var this_1 = tmp.zk(destination);
|
|
4010
4119
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
4011
4120
|
var e = this_1.uk_1;
|
|
4012
|
-
var tmp_0 = new Emitted(e.s26_1 + '.' + this.j26().
|
|
4121
|
+
var tmp_0 = new Emitted(e.s26_1 + '.' + this.j26().u29_1, e.t26_1);
|
|
4013
4122
|
// Inline function 'kotlin.collections.map' call
|
|
4014
4123
|
var this_2 = this_1.vk_1;
|
|
4015
4124
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -4018,7 +4127,7 @@ protoOf(Emitter).n23 = function (ast, logger) {
|
|
|
4018
4127
|
while (_iterator__ex2g4s_0.h()) {
|
|
4019
4128
|
var item = _iterator__ex2g4s_0.i();
|
|
4020
4129
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
4021
|
-
var tmp$ret$6 = new Emitted(item.s26_1 + '.' + this.j26().
|
|
4130
|
+
var tmp$ret$6 = new Emitted(item.s26_1 + '.' + this.j26().u29_1, item.t26_1);
|
|
4022
4131
|
destination_0.e(tmp$ret$6);
|
|
4023
4132
|
}
|
|
4024
4133
|
return new NonEmptyList(tmp_0, destination_0);
|
|
@@ -4045,7 +4154,7 @@ protoOf(Emitter).m26 = function (module_0, logger) {
|
|
|
4045
4154
|
protoOf(Emitter).r26 = function (definition, module_0, logger) {
|
|
4046
4155
|
// Inline function 'kotlin.run' call
|
|
4047
4156
|
// Inline function 'community.flock.wirespec.compiler.core.emit.common.Emitter.emit.<anonymous>' call
|
|
4048
|
-
logger.
|
|
4157
|
+
logger.d2a('Emitting Node ' + definition.w24().b1());
|
|
4049
4158
|
var tmp;
|
|
4050
4159
|
if (definition instanceof Type) {
|
|
4051
4160
|
tmp = new Emitted(this.v25(definition.x26_1), this.v26(definition, module_0));
|
|
@@ -4361,17 +4470,32 @@ protoOf(Emitter).b28 = function (_this__u8e3s4) {
|
|
|
4361
4470
|
}
|
|
4362
4471
|
tmp = distinct(destination_10);
|
|
4363
4472
|
} else {
|
|
4364
|
-
if (_this__u8e3s4 instanceof
|
|
4365
|
-
|
|
4366
|
-
var
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4473
|
+
if (_this__u8e3s4 instanceof Union) {
|
|
4474
|
+
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
4475
|
+
var tmp0_2 = _this__u8e3s4.g27_1;
|
|
4476
|
+
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
4477
|
+
var destination_11 = ArrayList_init_$Create$_0();
|
|
4478
|
+
var _iterator__ex2g4s_11 = tmp0_2.g();
|
|
4479
|
+
while (_iterator__ex2g4s_11.h()) {
|
|
4480
|
+
var element_4 = _iterator__ex2g4s_11.i();
|
|
4481
|
+
if (element_4 instanceof Custom) {
|
|
4482
|
+
destination_11.e(element_4);
|
|
4483
|
+
}
|
|
4371
4484
|
}
|
|
4372
|
-
tmp =
|
|
4485
|
+
tmp = destination_11;
|
|
4373
4486
|
} else {
|
|
4374
|
-
|
|
4487
|
+
if (_this__u8e3s4 instanceof Channel) {
|
|
4488
|
+
var tmp_5;
|
|
4489
|
+
var tmp_6 = _this__u8e3s4.a28_1;
|
|
4490
|
+
if (tmp_6 instanceof Custom) {
|
|
4491
|
+
tmp_5 = listOf_0(_this__u8e3s4.a28_1);
|
|
4492
|
+
} else {
|
|
4493
|
+
tmp_5 = emptyList();
|
|
4494
|
+
}
|
|
4495
|
+
tmp = tmp_5;
|
|
4496
|
+
} else {
|
|
4497
|
+
tmp = emptyList();
|
|
4498
|
+
}
|
|
4375
4499
|
}
|
|
4376
4500
|
}
|
|
4377
4501
|
}
|
|
@@ -4410,7 +4534,7 @@ function FileExtension_initEntries() {
|
|
|
4410
4534
|
var $ENTRIES;
|
|
4411
4535
|
function FileExtension(name, ordinal, value) {
|
|
4412
4536
|
Enum.call(this, name, ordinal);
|
|
4413
|
-
this.
|
|
4537
|
+
this.u29_1 = value;
|
|
4414
4538
|
}
|
|
4415
4539
|
function FileExtension_Java_getInstance() {
|
|
4416
4540
|
FileExtension_initEntries();
|
|
@@ -4541,8 +4665,8 @@ function PythonShared_getInstance() {
|
|
|
4541
4665
|
}
|
|
4542
4666
|
function TypeScriptShared() {
|
|
4543
4667
|
TypeScriptShared_instance = this;
|
|
4544
|
-
this.
|
|
4545
|
-
this.
|
|
4668
|
+
this.v29_1 = 'community.flock.wirespec';
|
|
4669
|
+
this.w29_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, queries?: Record<string, unknown>, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
|
|
4546
4670
|
}
|
|
4547
4671
|
protoOf(TypeScriptShared).toString = function () {
|
|
4548
4672
|
return 'TypeScriptShared';
|
|
@@ -4571,7 +4695,7 @@ function Companion_getInstance_7() {
|
|
|
4571
4695
|
return Companion_instance_7;
|
|
4572
4696
|
}
|
|
4573
4697
|
function WrongTokenException(expected, actual) {
|
|
4574
|
-
EatTokenException.call(this, actual.
|
|
4698
|
+
EatTokenException.call(this, actual.g2a_1, '' + expected.t9() + ' expected, not: ' + name(actual.f2a_1) + ' at line ' + actual.g2a_1.h2a_1 + ' and position ' + (actual.g2a_1.i2a_1 - actual.e2a_1.length | 0));
|
|
4575
4699
|
}
|
|
4576
4700
|
function DefinitionNotExistsException(referenceName, coordinates) {
|
|
4577
4701
|
EatTokenException.call(this, coordinates, 'Cannot find reference: ' + referenceName);
|
|
@@ -4607,11 +4731,11 @@ function ValidationError(coordinates, message) {
|
|
|
4607
4731
|
WirespecException.call(this, message, coordinates);
|
|
4608
4732
|
}
|
|
4609
4733
|
function WirespecException(message, coordinates) {
|
|
4610
|
-
this.
|
|
4611
|
-
this.
|
|
4734
|
+
this.k2a_1 = message;
|
|
4735
|
+
this.l2a_1 = coordinates;
|
|
4612
4736
|
}
|
|
4613
4737
|
protoOf(WirespecException).r1 = function () {
|
|
4614
|
-
return this.
|
|
4738
|
+
return this.k2a_1;
|
|
4615
4739
|
};
|
|
4616
4740
|
function parseChannelDefinition(_this__u8e3s4, $this, comment, identifier) {
|
|
4617
4741
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -4624,34 +4748,34 @@ function parseChannelDefinition(_this__u8e3s4, $this, comment, identifier) {
|
|
|
4624
4748
|
try {
|
|
4625
4749
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4626
4750
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>' call
|
|
4627
|
-
raise.ll(_this__u8e3s4.
|
|
4628
|
-
if (_this__u8e3s4.
|
|
4629
|
-
raise.ll(_this__u8e3s4.
|
|
4751
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4752
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Arrow)
|
|
4753
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4630
4754
|
else {
|
|
4631
4755
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4632
|
-
var actual = _this__u8e3s4.
|
|
4756
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
4633
4757
|
// Inline function 'kotlin.also' call
|
|
4634
4758
|
var this_0 = new WrongTokenException(getKClass(Colon), actual);
|
|
4635
4759
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
4636
|
-
raise.ll(_this__u8e3s4.
|
|
4760
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4637
4761
|
raise.kl(this_0);
|
|
4638
4762
|
}
|
|
4639
4763
|
// Inline function 'kotlin.with' call
|
|
4640
4764
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>' call
|
|
4641
|
-
var type = _this__u8e3s4.
|
|
4765
|
+
var type = _this__u8e3s4.n2a_1.f2a_1;
|
|
4642
4766
|
var tmp_0;
|
|
4643
4767
|
if (type instanceof LeftCurly) {
|
|
4644
|
-
tmp_0 = raise.ll(TypeParser_instance.
|
|
4768
|
+
tmp_0 = raise.ll(TypeParser_instance.t2a(_this__u8e3s4));
|
|
4645
4769
|
} else {
|
|
4646
4770
|
if (isInterface(type, WirespecType_0)) {
|
|
4647
|
-
tmp_0 = raise.ll(TypeParser_instance.
|
|
4771
|
+
tmp_0 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4, type));
|
|
4648
4772
|
} else {
|
|
4649
4773
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4650
|
-
var actual_0 = _this__u8e3s4.
|
|
4774
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
4651
4775
|
// Inline function 'kotlin.also' call
|
|
4652
4776
|
var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
|
|
4653
4777
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannelDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4654
|
-
raise.ll(_this__u8e3s4.
|
|
4778
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4655
4779
|
raise.kl(this_1);
|
|
4656
4780
|
}
|
|
4657
4781
|
}
|
|
@@ -4683,7 +4807,7 @@ function parseChannelDefinition(_this__u8e3s4, $this, comment, identifier) {
|
|
|
4683
4807
|
}
|
|
4684
4808
|
function ChannelParser() {
|
|
4685
4809
|
}
|
|
4686
|
-
protoOf(ChannelParser).
|
|
4810
|
+
protoOf(ChannelParser).u2a = function (_this__u8e3s4, comment) {
|
|
4687
4811
|
// Inline function 'arrow.core.raise.either' call
|
|
4688
4812
|
// Inline function 'arrow.core.raise.fold' call
|
|
4689
4813
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4694,19 +4818,19 @@ protoOf(ChannelParser).v2a = function (_this__u8e3s4, comment) {
|
|
|
4694
4818
|
try {
|
|
4695
4819
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4696
4820
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannel.<anonymous>' call
|
|
4697
|
-
raise.ll(_this__u8e3s4.
|
|
4698
|
-
_this__u8e3s4.
|
|
4699
|
-
var tmp0_subject = _this__u8e3s4.
|
|
4821
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4822
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
4823
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
4700
4824
|
var tmp_0;
|
|
4701
4825
|
if (isInterface(tmp0_subject, WirespecType_0)) {
|
|
4702
|
-
tmp_0 = raise.ll(parseChannelDefinition(_this__u8e3s4, ChannelParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.
|
|
4826
|
+
tmp_0 = raise.ll(parseChannelDefinition(_this__u8e3s4, ChannelParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.n2a_1.e2a_1)));
|
|
4703
4827
|
} else {
|
|
4704
4828
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4705
|
-
var actual = _this__u8e3s4.
|
|
4829
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
4706
4830
|
// Inline function 'kotlin.also' call
|
|
4707
4831
|
var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual);
|
|
4708
4832
|
// Inline function 'community.flock.wirespec.compiler.core.parse.ChannelParser.parseChannel.<anonymous>.<anonymous>' call
|
|
4709
|
-
raise.ll(_this__u8e3s4.
|
|
4833
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4710
4834
|
raise.kl(this_0);
|
|
4711
4835
|
}
|
|
4712
4836
|
var res = tmp_0;
|
|
@@ -4749,31 +4873,31 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
|
|
|
4749
4873
|
try {
|
|
4750
4874
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4751
4875
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>' call
|
|
4752
|
-
raise.ll(_this__u8e3s4.
|
|
4753
|
-
_this__u8e3s4.
|
|
4876
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4877
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
4754
4878
|
var tmp_0;
|
|
4755
|
-
if (_this__u8e3s4.
|
|
4756
|
-
tmp_0 = valueOf(_this__u8e3s4.
|
|
4879
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Method_0) {
|
|
4880
|
+
tmp_0 = valueOf(_this__u8e3s4.n2a_1.e2a_1);
|
|
4757
4881
|
} else {
|
|
4758
4882
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4759
|
-
var actual = _this__u8e3s4.
|
|
4883
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
4760
4884
|
var tmp$ret$0 = new WrongTokenException(getKClass(Method_0), actual);
|
|
4761
4885
|
raise.kl(tmp$ret$0);
|
|
4762
4886
|
}
|
|
4763
4887
|
// Inline function 'kotlin.also' call
|
|
4764
4888
|
var this_0 = tmp_0;
|
|
4765
4889
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4766
|
-
raise.ll(_this__u8e3s4.
|
|
4890
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4767
4891
|
var method = this_0;
|
|
4768
4892
|
// Inline function 'kotlin.with' call
|
|
4769
4893
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4770
|
-
var type = _this__u8e3s4.
|
|
4894
|
+
var type = _this__u8e3s4.n2a_1.f2a_1;
|
|
4771
4895
|
var tmp_1;
|
|
4772
4896
|
if (type instanceof LeftCurly) {
|
|
4773
|
-
tmp_1 = raise.ll(TypeParser_instance.
|
|
4897
|
+
tmp_1 = raise.ll(TypeParser_instance.t2a(_this__u8e3s4));
|
|
4774
4898
|
} else {
|
|
4775
4899
|
if (isInterface(type, WirespecType_0)) {
|
|
4776
|
-
tmp_1 = raise.ll(TypeParser_instance.
|
|
4900
|
+
tmp_1 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4, type));
|
|
4777
4901
|
} else {
|
|
4778
4902
|
tmp_1 = null;
|
|
4779
4903
|
}
|
|
@@ -4806,15 +4930,15 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
|
|
|
4806
4930
|
$l$loop: while (true) {
|
|
4807
4931
|
var tmp_3;
|
|
4808
4932
|
var tmp_4;
|
|
4809
|
-
var tmp_5 = _this__u8e3s4.
|
|
4933
|
+
var tmp_5 = _this__u8e3s4.n2a_1.f2a_1;
|
|
4810
4934
|
if (!(tmp_5 instanceof QuestionMark)) {
|
|
4811
|
-
var tmp_6 = _this__u8e3s4.
|
|
4935
|
+
var tmp_6 = _this__u8e3s4.n2a_1.f2a_1;
|
|
4812
4936
|
tmp_4 = !(tmp_6 instanceof Hash);
|
|
4813
4937
|
} else {
|
|
4814
4938
|
tmp_4 = false;
|
|
4815
4939
|
}
|
|
4816
4940
|
if (tmp_4) {
|
|
4817
|
-
var tmp_7 = _this__u8e3s4.
|
|
4941
|
+
var tmp_7 = _this__u8e3s4.n2a_1.f2a_1;
|
|
4818
4942
|
tmp_3 = !(tmp_7 instanceof Arrow);
|
|
4819
4943
|
} else {
|
|
4820
4944
|
tmp_3 = false;
|
|
@@ -4826,16 +4950,16 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
|
|
|
4826
4950
|
}
|
|
4827
4951
|
var segments = this_2;
|
|
4828
4952
|
var tmp_8;
|
|
4829
|
-
if (_this__u8e3s4.
|
|
4830
|
-
raise.ll(_this__u8e3s4.
|
|
4953
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof QuestionMark) {
|
|
4954
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4831
4955
|
var tmp_9;
|
|
4832
|
-
if (_this__u8e3s4.
|
|
4956
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof LeftCurly) {
|
|
4833
4957
|
// Inline function 'kotlin.with' call
|
|
4834
4958
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4835
|
-
tmp_9 = raise.ll(TypeParser_instance.
|
|
4959
|
+
tmp_9 = raise.ll(TypeParser_instance.w2a(_this__u8e3s4)).h27_1;
|
|
4836
4960
|
} else {
|
|
4837
4961
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4838
|
-
var actual_0 = _this__u8e3s4.
|
|
4962
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
4839
4963
|
var tmp$ret$13 = new WrongTokenException(getKClass(LeftCurly), actual_0);
|
|
4840
4964
|
raise.kl(tmp$ret$13);
|
|
4841
4965
|
}
|
|
@@ -4845,23 +4969,23 @@ function parseEndpointDefinition(_this__u8e3s4, $this, comment, name) {
|
|
|
4845
4969
|
}
|
|
4846
4970
|
var queryParams = tmp_8;
|
|
4847
4971
|
var headers = raise.ll(parseHeaders(_this__u8e3s4, EndpointParser_instance));
|
|
4848
|
-
if (_this__u8e3s4.
|
|
4849
|
-
raise.ll(_this__u8e3s4.
|
|
4972
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Arrow)
|
|
4973
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4850
4974
|
else {
|
|
4851
4975
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4852
|
-
var actual_1 = _this__u8e3s4.
|
|
4976
|
+
var actual_1 = _this__u8e3s4.n2a_1;
|
|
4853
4977
|
var tmp$ret$14 = new WrongTokenException(getKClass(Arrow), actual_1);
|
|
4854
4978
|
raise.kl(tmp$ret$14);
|
|
4855
4979
|
}
|
|
4856
|
-
if (!(_this__u8e3s4.
|
|
4980
|
+
if (!(_this__u8e3s4.n2a_1.f2a_1 instanceof LeftCurly)) {
|
|
4857
4981
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4858
|
-
var actual_2 = _this__u8e3s4.
|
|
4982
|
+
var actual_2 = _this__u8e3s4.n2a_1;
|
|
4859
4983
|
var tmp$ret$15 = new WrongTokenException(getKClass(LeftCurly), actual_2);
|
|
4860
4984
|
raise.kl(tmp$ret$15);
|
|
4861
4985
|
}
|
|
4862
4986
|
// Inline function 'kotlin.also' call
|
|
4863
4987
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
4864
|
-
raise.ll(_this__u8e3s4.
|
|
4988
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4865
4989
|
var responses = raise.ll(parseEndpointResponses(_this__u8e3s4, EndpointParser_instance));
|
|
4866
4990
|
var res = new Endpoint(comment, name, method, segments, queryParams, headers, requests, responses);
|
|
4867
4991
|
raise.il();
|
|
@@ -4899,21 +5023,21 @@ function parseEndpointSegments(_this__u8e3s4, $this) {
|
|
|
4899
5023
|
try {
|
|
4900
5024
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4901
5025
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>' call
|
|
4902
|
-
_this__u8e3s4.
|
|
4903
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5026
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5027
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
4904
5028
|
var tmp_0;
|
|
4905
5029
|
if (tmp0_subject instanceof Path) {
|
|
4906
5030
|
// Inline function 'kotlin.also' call
|
|
4907
|
-
var this_0 = new Literal(drop(_this__u8e3s4.
|
|
5031
|
+
var this_0 = new Literal(drop(_this__u8e3s4.n2a_1.e2a_1, 1));
|
|
4908
5032
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegments.<anonymous>.<anonymous>' call
|
|
4909
|
-
raise.ll(_this__u8e3s4.
|
|
5033
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4910
5034
|
tmp_0 = this_0;
|
|
4911
5035
|
} else {
|
|
4912
5036
|
if (tmp0_subject instanceof ForwardSlash) {
|
|
4913
5037
|
tmp_0 = raise.ll(parseEndpointSegmentParam(_this__u8e3s4, EndpointParser_instance));
|
|
4914
5038
|
} else {
|
|
4915
5039
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4916
|
-
var actual = _this__u8e3s4.
|
|
5040
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
4917
5041
|
var tmp$ret$1 = new WrongTokenException(getKClass(Path), actual);
|
|
4918
5042
|
raise.kl(tmp$ret$1);
|
|
4919
5043
|
}
|
|
@@ -4954,64 +5078,64 @@ function parseEndpointSegmentParam(_this__u8e3s4, $this) {
|
|
|
4954
5078
|
try {
|
|
4955
5079
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4956
5080
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>' call
|
|
4957
|
-
raise.ll(_this__u8e3s4.
|
|
4958
|
-
_this__u8e3s4.
|
|
4959
|
-
if (_this__u8e3s4.
|
|
4960
|
-
raise.ll(_this__u8e3s4.
|
|
5081
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5082
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5083
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof LeftCurly)
|
|
5084
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4961
5085
|
else {
|
|
4962
5086
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4963
|
-
var actual = _this__u8e3s4.
|
|
5087
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
4964
5088
|
var tmp$ret$0 = new WrongTokenException(getKClass(LeftCurly), actual);
|
|
4965
5089
|
raise.kl(tmp$ret$0);
|
|
4966
5090
|
}
|
|
4967
|
-
var tmp1_subject = _this__u8e3s4.
|
|
5091
|
+
var tmp1_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
4968
5092
|
var tmp_0;
|
|
4969
5093
|
if (isInterface(tmp1_subject, WirespecIdentifier)) {
|
|
4970
5094
|
// Inline function 'kotlin.also' call
|
|
4971
|
-
var this_0 = new FieldIdentifier(_this__u8e3s4.
|
|
5095
|
+
var this_0 = new FieldIdentifier(_this__u8e3s4.n2a_1.e2a_1);
|
|
4972
5096
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
4973
|
-
raise.ll(_this__u8e3s4.
|
|
5097
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4974
5098
|
tmp_0 = this_0;
|
|
4975
5099
|
} else {
|
|
4976
5100
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4977
|
-
var actual_0 = _this__u8e3s4.
|
|
5101
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
4978
5102
|
var tmp$ret$2 = new WrongTokenException(getKClass(WirespecIdentifier), actual_0);
|
|
4979
5103
|
raise.kl(tmp$ret$2);
|
|
4980
5104
|
}
|
|
4981
5105
|
var identifier = tmp_0;
|
|
4982
|
-
if (_this__u8e3s4.
|
|
4983
|
-
raise.ll(_this__u8e3s4.
|
|
5106
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Colon)
|
|
5107
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
4984
5108
|
else {
|
|
4985
5109
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4986
|
-
var actual_1 = _this__u8e3s4.
|
|
5110
|
+
var actual_1 = _this__u8e3s4.n2a_1;
|
|
4987
5111
|
var tmp$ret$3 = new WrongTokenException(getKClass(Colon), actual_1);
|
|
4988
5112
|
raise.kl(tmp$ret$3);
|
|
4989
5113
|
}
|
|
4990
5114
|
// Inline function 'kotlin.with' call
|
|
4991
5115
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>' call
|
|
4992
|
-
var type = _this__u8e3s4.
|
|
5116
|
+
var type = _this__u8e3s4.n2a_1.f2a_1;
|
|
4993
5117
|
var tmp_1;
|
|
4994
5118
|
if (type instanceof LeftCurly) {
|
|
4995
|
-
tmp_1 = raise.ll(TypeParser_instance.
|
|
5119
|
+
tmp_1 = raise.ll(TypeParser_instance.t2a(_this__u8e3s4));
|
|
4996
5120
|
} else {
|
|
4997
5121
|
if (isInterface(type, WirespecType_0)) {
|
|
4998
|
-
tmp_1 = raise.ll(TypeParser_instance.
|
|
5122
|
+
tmp_1 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4, type));
|
|
4999
5123
|
} else {
|
|
5000
5124
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5001
|
-
var actual_2 = _this__u8e3s4.
|
|
5125
|
+
var actual_2 = _this__u8e3s4.n2a_1;
|
|
5002
5126
|
// Inline function 'kotlin.also' call
|
|
5003
5127
|
var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_2);
|
|
5004
5128
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointSegmentParam.<anonymous>.<anonymous>.<anonymous>' call
|
|
5005
|
-
raise.ll(_this__u8e3s4.
|
|
5129
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5006
5130
|
raise.kl(this_1);
|
|
5007
5131
|
}
|
|
5008
5132
|
}
|
|
5009
5133
|
var reference = tmp_1;
|
|
5010
|
-
if (_this__u8e3s4.
|
|
5011
|
-
raise.ll(_this__u8e3s4.
|
|
5134
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof RightCurly)
|
|
5135
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5012
5136
|
else {
|
|
5013
5137
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5014
|
-
var actual_3 = _this__u8e3s4.
|
|
5138
|
+
var actual_3 = _this__u8e3s4.n2a_1;
|
|
5015
5139
|
var tmp$ret$8 = new WrongTokenException(getKClass(RightCurly), actual_3);
|
|
5016
5140
|
raise.kl(tmp$ret$8);
|
|
5017
5141
|
}
|
|
@@ -5051,32 +5175,32 @@ function parseEndpointResponses(_this__u8e3s4, $this) {
|
|
|
5051
5175
|
try {
|
|
5052
5176
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5053
5177
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>' call
|
|
5054
|
-
_this__u8e3s4.
|
|
5178
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5055
5179
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5056
5180
|
var responses = ArrayList_init_$Create$_0();
|
|
5057
5181
|
$l$loop: while (true) {
|
|
5058
|
-
var tmp_0 = _this__u8e3s4.
|
|
5182
|
+
var tmp_0 = _this__u8e3s4.n2a_1.f2a_1;
|
|
5059
5183
|
if (!!(tmp_0 instanceof RightCurly)) {
|
|
5060
5184
|
break $l$loop;
|
|
5061
5185
|
}
|
|
5062
|
-
if (_this__u8e3s4.
|
|
5063
|
-
responses.e(raise.ll(parseEndpointResponse(_this__u8e3s4, EndpointParser_instance, _this__u8e3s4.
|
|
5186
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof StatusCode)
|
|
5187
|
+
responses.e(raise.ll(parseEndpointResponse(_this__u8e3s4, EndpointParser_instance, _this__u8e3s4.n2a_1.e2a_1)));
|
|
5064
5188
|
else {
|
|
5065
5189
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5066
|
-
var actual = _this__u8e3s4.
|
|
5190
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5067
5191
|
var tmp$ret$1 = new WrongTokenException(getKClass(StatusCode), actual);
|
|
5068
5192
|
raise.kl(tmp$ret$1);
|
|
5069
5193
|
}
|
|
5070
5194
|
}
|
|
5071
|
-
if (!(_this__u8e3s4.
|
|
5195
|
+
if (!(_this__u8e3s4.n2a_1.f2a_1 instanceof RightCurly)) {
|
|
5072
5196
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5073
|
-
var actual_0 = _this__u8e3s4.
|
|
5197
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
5074
5198
|
var tmp$ret$2 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
5075
5199
|
raise.kl(tmp$ret$2);
|
|
5076
5200
|
}
|
|
5077
5201
|
// Inline function 'kotlin.also' call
|
|
5078
5202
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>.<anonymous>' call
|
|
5079
|
-
raise.ll(_this__u8e3s4.
|
|
5203
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5080
5204
|
var res = toList(responses);
|
|
5081
5205
|
raise.il();
|
|
5082
5206
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -5113,32 +5237,32 @@ function parseEndpointResponse(_this__u8e3s4, $this, statusCode) {
|
|
|
5113
5237
|
try {
|
|
5114
5238
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5115
5239
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>' call
|
|
5116
|
-
raise.ll(_this__u8e3s4.
|
|
5117
|
-
_this__u8e3s4.
|
|
5118
|
-
if (!(_this__u8e3s4.
|
|
5240
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5241
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5242
|
+
if (!(_this__u8e3s4.n2a_1.f2a_1 instanceof Arrow)) {
|
|
5119
5243
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5120
|
-
var actual = _this__u8e3s4.
|
|
5244
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5121
5245
|
var tmp$ret$0 = new WrongTokenException(getKClass(Arrow), actual);
|
|
5122
5246
|
raise.kl(tmp$ret$0);
|
|
5123
5247
|
}
|
|
5124
|
-
raise.ll(_this__u8e3s4.
|
|
5125
|
-
_this__u8e3s4.
|
|
5248
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5249
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5126
5250
|
// Inline function 'kotlin.with' call
|
|
5127
5251
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>' call
|
|
5128
|
-
var type = _this__u8e3s4.
|
|
5252
|
+
var type = _this__u8e3s4.n2a_1.f2a_1;
|
|
5129
5253
|
var tmp_0;
|
|
5130
5254
|
if (type instanceof LeftCurly) {
|
|
5131
|
-
tmp_0 = raise.ll(TypeParser_instance.
|
|
5255
|
+
tmp_0 = raise.ll(TypeParser_instance.t2a(_this__u8e3s4));
|
|
5132
5256
|
} else {
|
|
5133
5257
|
if (isInterface(type, WirespecType_0)) {
|
|
5134
|
-
tmp_0 = raise.ll(TypeParser_instance.
|
|
5258
|
+
tmp_0 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4, type));
|
|
5135
5259
|
} else {
|
|
5136
5260
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5137
|
-
var actual_0 = _this__u8e3s4.
|
|
5261
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
5138
5262
|
// Inline function 'kotlin.also' call
|
|
5139
5263
|
var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
|
|
5140
5264
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>.<anonymous>.<anonymous>' call
|
|
5141
|
-
raise.ll(_this__u8e3s4.
|
|
5265
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5142
5266
|
raise.kl(this_0);
|
|
5143
5267
|
}
|
|
5144
5268
|
}
|
|
@@ -5187,18 +5311,18 @@ function parseHeaders(_this__u8e3s4, $this) {
|
|
|
5187
5311
|
try {
|
|
5188
5312
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5189
5313
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseHeaders.<anonymous>' call
|
|
5190
|
-
_this__u8e3s4.
|
|
5314
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5191
5315
|
var tmp_0;
|
|
5192
|
-
if (_this__u8e3s4.
|
|
5193
|
-
raise.ll(_this__u8e3s4.
|
|
5316
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Hash) {
|
|
5317
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5194
5318
|
var tmp_1;
|
|
5195
|
-
if (_this__u8e3s4.
|
|
5319
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof LeftCurly) {
|
|
5196
5320
|
// Inline function 'kotlin.with' call
|
|
5197
5321
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseHeaders.<anonymous>.<anonymous>' call
|
|
5198
|
-
tmp_1 = raise.ll(TypeParser_instance.
|
|
5322
|
+
tmp_1 = raise.ll(TypeParser_instance.w2a(_this__u8e3s4)).h27_1;
|
|
5199
5323
|
} else {
|
|
5200
5324
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5201
|
-
var actual = _this__u8e3s4.
|
|
5325
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5202
5326
|
var tmp$ret$2 = new WrongTokenException(getKClass(LeftCurly), actual);
|
|
5203
5327
|
raise.kl(tmp$ret$2);
|
|
5204
5328
|
}
|
|
@@ -5233,7 +5357,7 @@ function parseHeaders(_this__u8e3s4, $this) {
|
|
|
5233
5357
|
}
|
|
5234
5358
|
function EndpointParser() {
|
|
5235
5359
|
}
|
|
5236
|
-
protoOf(EndpointParser).
|
|
5360
|
+
protoOf(EndpointParser).x2a = function (_this__u8e3s4, comment) {
|
|
5237
5361
|
// Inline function 'arrow.core.raise.either' call
|
|
5238
5362
|
// Inline function 'arrow.core.raise.fold' call
|
|
5239
5363
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5244,19 +5368,19 @@ protoOf(EndpointParser).y2a = function (_this__u8e3s4, comment) {
|
|
|
5244
5368
|
try {
|
|
5245
5369
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5246
5370
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>' call
|
|
5247
|
-
raise.ll(_this__u8e3s4.
|
|
5248
|
-
_this__u8e3s4.
|
|
5249
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5371
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5372
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5373
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
5250
5374
|
var tmp_0;
|
|
5251
5375
|
if (isInterface(tmp0_subject, WirespecType_0)) {
|
|
5252
|
-
tmp_0 = raise.ll(parseEndpointDefinition(_this__u8e3s4, EndpointParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.
|
|
5376
|
+
tmp_0 = raise.ll(parseEndpointDefinition(_this__u8e3s4, EndpointParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.n2a_1.e2a_1)));
|
|
5253
5377
|
} else {
|
|
5254
5378
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5255
|
-
var actual = _this__u8e3s4.
|
|
5379
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5256
5380
|
// Inline function 'kotlin.also' call
|
|
5257
5381
|
var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual);
|
|
5258
5382
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
5259
|
-
raise.ll(_this__u8e3s4.
|
|
5383
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5260
5384
|
raise.kl(this_0);
|
|
5261
5385
|
}
|
|
5262
5386
|
var res = tmp_0;
|
|
@@ -5299,32 +5423,32 @@ function parseEnumTypeDefinition(_this__u8e3s4, $this, comment, typeName) {
|
|
|
5299
5423
|
try {
|
|
5300
5424
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5301
5425
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>' call
|
|
5302
|
-
raise.ll(_this__u8e3s4.
|
|
5303
|
-
_this__u8e3s4.
|
|
5426
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5427
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5304
5428
|
var tmp_0;
|
|
5305
|
-
if (_this__u8e3s4.
|
|
5429
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof LeftCurly) {
|
|
5306
5430
|
tmp_0 = new Enum_0(comment, typeName, raise.ll(parseEnumTypeEntries(_this__u8e3s4, EnumParser_instance)));
|
|
5307
5431
|
} else {
|
|
5308
5432
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5309
|
-
var actual = _this__u8e3s4.
|
|
5433
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5310
5434
|
// Inline function 'kotlin.also' call
|
|
5311
5435
|
var this_0 = new WrongTokenException(getKClass(LeftCurly), actual);
|
|
5312
5436
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
5313
|
-
raise.ll(_this__u8e3s4.
|
|
5437
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5314
5438
|
raise.kl(this_0);
|
|
5315
5439
|
}
|
|
5316
5440
|
// Inline function 'kotlin.also' call
|
|
5317
5441
|
var this_1 = tmp_0;
|
|
5318
5442
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
5319
|
-
if (_this__u8e3s4.
|
|
5320
|
-
raise.ll(_this__u8e3s4.
|
|
5443
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof RightCurly)
|
|
5444
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5321
5445
|
else {
|
|
5322
5446
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5323
|
-
var actual_0 = _this__u8e3s4.
|
|
5447
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
5324
5448
|
// Inline function 'kotlin.also' call
|
|
5325
5449
|
var this_2 = new WrongTokenException(getKClass(RightCurly), actual_0);
|
|
5326
5450
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
5327
|
-
raise.ll(_this__u8e3s4.
|
|
5451
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5328
5452
|
raise.kl(this_2);
|
|
5329
5453
|
}
|
|
5330
5454
|
var res = this_1;
|
|
@@ -5363,43 +5487,43 @@ function parseEnumTypeEntries(_this__u8e3s4, $this) {
|
|
|
5363
5487
|
try {
|
|
5364
5488
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5365
5489
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>' call
|
|
5366
|
-
raise.ll(_this__u8e3s4.
|
|
5367
|
-
_this__u8e3s4.
|
|
5368
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5490
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5491
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5492
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
5369
5493
|
var tmp_0;
|
|
5370
5494
|
if (isInterface(tmp0_subject, WirespecType_0)) {
|
|
5371
5495
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5372
5496
|
// Inline function 'kotlin.apply' call
|
|
5373
5497
|
var this_0 = ArrayList_init_$Create$_0();
|
|
5374
5498
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
5375
|
-
this_0.e(_this__u8e3s4.
|
|
5376
|
-
raise.ll(_this__u8e3s4.
|
|
5377
|
-
while (equals(_this__u8e3s4.
|
|
5378
|
-
raise.ll(_this__u8e3s4.
|
|
5379
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
5499
|
+
this_0.e(_this__u8e3s4.n2a_1.e2a_1);
|
|
5500
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5501
|
+
while (equals(_this__u8e3s4.n2a_1.f2a_1, Comma_instance)) {
|
|
5502
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5503
|
+
var tmp0_subject_0 = _this__u8e3s4.n2a_1.f2a_1;
|
|
5380
5504
|
if (isInterface(tmp0_subject_0, WirespecType_0)) {
|
|
5381
5505
|
// Inline function 'kotlin.also' call
|
|
5382
|
-
this_0.e(_this__u8e3s4.
|
|
5506
|
+
this_0.e(_this__u8e3s4.n2a_1.e2a_1);
|
|
5383
5507
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
5384
|
-
raise.ll(_this__u8e3s4.
|
|
5508
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5385
5509
|
} else {
|
|
5386
5510
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5387
|
-
var actual = _this__u8e3s4.
|
|
5511
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5388
5512
|
// Inline function 'kotlin.also' call
|
|
5389
5513
|
var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual);
|
|
5390
5514
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
5391
|
-
raise.ll(_this__u8e3s4.
|
|
5515
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5392
5516
|
raise.kl(this_1);
|
|
5393
5517
|
}
|
|
5394
5518
|
}
|
|
5395
5519
|
tmp_0 = this_0;
|
|
5396
5520
|
} else {
|
|
5397
5521
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5398
|
-
var actual_0 = _this__u8e3s4.
|
|
5522
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
5399
5523
|
// Inline function 'kotlin.also' call
|
|
5400
5524
|
var this_2 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
|
|
5401
5525
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
5402
|
-
raise.ll(_this__u8e3s4.
|
|
5526
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5403
5527
|
raise.kl(this_2);
|
|
5404
5528
|
}
|
|
5405
5529
|
var res = toSet(tmp_0);
|
|
@@ -5429,7 +5553,7 @@ function parseEnumTypeEntries(_this__u8e3s4, $this) {
|
|
|
5429
5553
|
}
|
|
5430
5554
|
function EnumParser() {
|
|
5431
5555
|
}
|
|
5432
|
-
protoOf(EnumParser).
|
|
5556
|
+
protoOf(EnumParser).y2a = function (_this__u8e3s4, comment) {
|
|
5433
5557
|
// Inline function 'arrow.core.raise.either' call
|
|
5434
5558
|
// Inline function 'arrow.core.raise.fold' call
|
|
5435
5559
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -5440,19 +5564,19 @@ protoOf(EnumParser).z2a = function (_this__u8e3s4, comment) {
|
|
|
5440
5564
|
try {
|
|
5441
5565
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
5442
5566
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>' call
|
|
5443
|
-
raise.ll(_this__u8e3s4.
|
|
5444
|
-
_this__u8e3s4.
|
|
5445
|
-
var tmp0_subject = _this__u8e3s4.
|
|
5567
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5568
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
5569
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
5446
5570
|
var tmp_0;
|
|
5447
5571
|
if (isInterface(tmp0_subject, WirespecType_0)) {
|
|
5448
|
-
tmp_0 = raise.ll(parseEnumTypeDefinition(_this__u8e3s4, EnumParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.
|
|
5572
|
+
tmp_0 = raise.ll(parseEnumTypeDefinition(_this__u8e3s4, EnumParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.n2a_1.e2a_1)));
|
|
5449
5573
|
} else {
|
|
5450
5574
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
5451
|
-
var actual = _this__u8e3s4.
|
|
5575
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
5452
5576
|
// Inline function 'kotlin.also' call
|
|
5453
5577
|
var this_0 = new WrongTokenException(getKClass(WirespecType_0), actual);
|
|
5454
5578
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>.<anonymous>' call
|
|
5455
|
-
raise.ll(_this__u8e3s4.
|
|
5579
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
5456
5580
|
raise.kl(this_0);
|
|
5457
5581
|
}
|
|
5458
5582
|
var res = tmp_0;
|
|
@@ -5488,13 +5612,13 @@ function Module(uri, statements) {
|
|
|
5488
5612
|
this.c27_1 = uri;
|
|
5489
5613
|
this.d27_1 = statements;
|
|
5490
5614
|
}
|
|
5491
|
-
protoOf(Module).
|
|
5615
|
+
protoOf(Module).z2a = function (uri, statements) {
|
|
5492
5616
|
return new Module(uri, statements);
|
|
5493
5617
|
};
|
|
5494
5618
|
protoOf(Module).j29 = function (uri, statements, $super) {
|
|
5495
5619
|
uri = uri === VOID ? this.c27_1 : uri;
|
|
5496
5620
|
statements = statements === VOID ? this.d27_1 : statements;
|
|
5497
|
-
return $super === VOID ? this.
|
|
5621
|
+
return $super === VOID ? this.z2a(uri, statements) : $super.z2a.call(this, uri, statements);
|
|
5498
5622
|
};
|
|
5499
5623
|
protoOf(Module).toString = function () {
|
|
5500
5624
|
return 'Module(uri=' + this.c27_1 + ', statements=' + this.d27_1.toString() + ')';
|
|
@@ -5517,13 +5641,13 @@ protoOf(Module).equals = function (other) {
|
|
|
5517
5641
|
return true;
|
|
5518
5642
|
};
|
|
5519
5643
|
function AST(modules) {
|
|
5520
|
-
this.
|
|
5644
|
+
this.r29_1 = modules;
|
|
5521
5645
|
}
|
|
5522
5646
|
protoOf(AST).toString = function () {
|
|
5523
|
-
return 'AST(modules=' + this.
|
|
5647
|
+
return 'AST(modules=' + this.r29_1.toString() + ')';
|
|
5524
5648
|
};
|
|
5525
5649
|
protoOf(AST).hashCode = function () {
|
|
5526
|
-
return this.
|
|
5650
|
+
return this.r29_1.hashCode();
|
|
5527
5651
|
};
|
|
5528
5652
|
protoOf(AST).equals = function (other) {
|
|
5529
5653
|
if (this === other)
|
|
@@ -5531,7 +5655,7 @@ protoOf(AST).equals = function (other) {
|
|
|
5531
5655
|
if (!(other instanceof AST))
|
|
5532
5656
|
return false;
|
|
5533
5657
|
var tmp0_other_with_cast = other instanceof AST ? other : THROW_CCE();
|
|
5534
|
-
if (!this.
|
|
5658
|
+
if (!this.r29_1.equals(tmp0_other_with_cast.r29_1))
|
|
5535
5659
|
return false;
|
|
5536
5660
|
return true;
|
|
5537
5661
|
};
|
|
@@ -5543,7 +5667,7 @@ function _Comment___get_value__impl__8r3pla($this) {
|
|
|
5543
5667
|
}
|
|
5544
5668
|
function Companion_7() {
|
|
5545
5669
|
}
|
|
5546
|
-
protoOf(Companion_7).
|
|
5670
|
+
protoOf(Companion_7).a2b = function (comment) {
|
|
5547
5671
|
return _Comment___init__impl__cg8s2u(removeCommentMarkers(comment));
|
|
5548
5672
|
};
|
|
5549
5673
|
var Companion_instance_8;
|
|
@@ -5559,21 +5683,21 @@ function Comment__hashCode_impl_tr9dgt($this) {
|
|
|
5559
5683
|
function Comment__equals_impl_3xkmkx($this, other) {
|
|
5560
5684
|
if (!(other instanceof Comment))
|
|
5561
5685
|
return false;
|
|
5562
|
-
if (!($this === (other instanceof Comment ? other.
|
|
5686
|
+
if (!($this === (other instanceof Comment ? other.b2b_1 : THROW_CCE())))
|
|
5563
5687
|
return false;
|
|
5564
5688
|
return true;
|
|
5565
5689
|
}
|
|
5566
5690
|
function Comment(value) {
|
|
5567
|
-
this.
|
|
5691
|
+
this.b2b_1 = value;
|
|
5568
5692
|
}
|
|
5569
5693
|
protoOf(Comment).toString = function () {
|
|
5570
|
-
return Comment__toString_impl_803gny(this.
|
|
5694
|
+
return Comment__toString_impl_803gny(this.b2b_1);
|
|
5571
5695
|
};
|
|
5572
5696
|
protoOf(Comment).hashCode = function () {
|
|
5573
|
-
return Comment__hashCode_impl_tr9dgt(this.
|
|
5697
|
+
return Comment__hashCode_impl_tr9dgt(this.b2b_1);
|
|
5574
5698
|
};
|
|
5575
5699
|
protoOf(Comment).equals = function (other) {
|
|
5576
|
-
return Comment__equals_impl_3xkmkx(this.
|
|
5700
|
+
return Comment__equals_impl_3xkmkx(this.b2b_1, other);
|
|
5577
5701
|
};
|
|
5578
5702
|
function Identifier(name) {
|
|
5579
5703
|
this.x24_1 = removeBackticks(name);
|
|
@@ -5598,10 +5722,10 @@ function Precision(name, ordinal) {
|
|
|
5598
5722
|
Enum.call(this, name, ordinal);
|
|
5599
5723
|
}
|
|
5600
5724
|
function String_0() {
|
|
5601
|
-
this.
|
|
5725
|
+
this.c2b_1 = 'String';
|
|
5602
5726
|
}
|
|
5603
5727
|
protoOf(String_0).s2 = function () {
|
|
5604
|
-
return this.
|
|
5728
|
+
return this.c2b_1;
|
|
5605
5729
|
};
|
|
5606
5730
|
protoOf(String_0).toString = function () {
|
|
5607
5731
|
return 'String';
|
|
@@ -5670,10 +5794,10 @@ protoOf(Number_0).equals = function (other) {
|
|
|
5670
5794
|
return true;
|
|
5671
5795
|
};
|
|
5672
5796
|
function Boolean_0() {
|
|
5673
|
-
this.
|
|
5797
|
+
this.d2b_1 = 'Boolean';
|
|
5674
5798
|
}
|
|
5675
5799
|
protoOf(Boolean_0).s2 = function () {
|
|
5676
|
-
return this.
|
|
5800
|
+
return this.d2b_1;
|
|
5677
5801
|
};
|
|
5678
5802
|
protoOf(Boolean_0).toString = function () {
|
|
5679
5803
|
return 'Boolean';
|
|
@@ -5694,10 +5818,10 @@ function Boolean_getInstance() {
|
|
|
5694
5818
|
return Boolean_instance;
|
|
5695
5819
|
}
|
|
5696
5820
|
function Bytes() {
|
|
5697
|
-
this.
|
|
5821
|
+
this.e2b_1 = 'Bytes';
|
|
5698
5822
|
}
|
|
5699
5823
|
protoOf(Bytes).s2 = function () {
|
|
5700
|
-
return this.
|
|
5824
|
+
return this.e2b_1;
|
|
5701
5825
|
};
|
|
5702
5826
|
protoOf(Bytes).toString = function () {
|
|
5703
5827
|
return 'Bytes';
|
|
@@ -5726,20 +5850,20 @@ function Precision_P64_getInstance() {
|
|
|
5726
5850
|
return Precision_P64_instance;
|
|
5727
5851
|
}
|
|
5728
5852
|
function Any(isNullable) {
|
|
5729
|
-
this.
|
|
5730
|
-
this.
|
|
5853
|
+
this.f2b_1 = isNullable;
|
|
5854
|
+
this.g2b_1 = 'Any';
|
|
5731
5855
|
}
|
|
5732
5856
|
protoOf(Any).sm = function () {
|
|
5733
|
-
return this.
|
|
5857
|
+
return this.f2b_1;
|
|
5734
5858
|
};
|
|
5735
5859
|
protoOf(Any).b1 = function () {
|
|
5736
|
-
return this.
|
|
5860
|
+
return this.g2b_1;
|
|
5737
5861
|
};
|
|
5738
5862
|
protoOf(Any).toString = function () {
|
|
5739
|
-
return 'Any(isNullable=' + this.
|
|
5863
|
+
return 'Any(isNullable=' + this.f2b_1 + ')';
|
|
5740
5864
|
};
|
|
5741
5865
|
protoOf(Any).hashCode = function () {
|
|
5742
|
-
return getBooleanHashCode(this.
|
|
5866
|
+
return getBooleanHashCode(this.f2b_1);
|
|
5743
5867
|
};
|
|
5744
5868
|
protoOf(Any).equals = function (other) {
|
|
5745
5869
|
if (this === other)
|
|
@@ -5747,25 +5871,25 @@ protoOf(Any).equals = function (other) {
|
|
|
5747
5871
|
if (!(other instanceof Any))
|
|
5748
5872
|
return false;
|
|
5749
5873
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
5750
|
-
if (!(this.
|
|
5874
|
+
if (!(this.f2b_1 === tmp0_other_with_cast.f2b_1))
|
|
5751
5875
|
return false;
|
|
5752
5876
|
return true;
|
|
5753
5877
|
};
|
|
5754
5878
|
function Unit(isNullable) {
|
|
5755
|
-
this.
|
|
5756
|
-
this.
|
|
5879
|
+
this.h2b_1 = isNullable;
|
|
5880
|
+
this.i2b_1 = 'Unit';
|
|
5757
5881
|
}
|
|
5758
5882
|
protoOf(Unit).sm = function () {
|
|
5759
|
-
return this.
|
|
5883
|
+
return this.h2b_1;
|
|
5760
5884
|
};
|
|
5761
5885
|
protoOf(Unit).b1 = function () {
|
|
5762
|
-
return this.
|
|
5886
|
+
return this.i2b_1;
|
|
5763
5887
|
};
|
|
5764
5888
|
protoOf(Unit).toString = function () {
|
|
5765
|
-
return 'Unit(isNullable=' + this.
|
|
5889
|
+
return 'Unit(isNullable=' + this.h2b_1 + ')';
|
|
5766
5890
|
};
|
|
5767
5891
|
protoOf(Unit).hashCode = function () {
|
|
5768
|
-
return getBooleanHashCode(this.
|
|
5892
|
+
return getBooleanHashCode(this.h2b_1);
|
|
5769
5893
|
};
|
|
5770
5894
|
protoOf(Unit).equals = function (other) {
|
|
5771
5895
|
if (this === other)
|
|
@@ -5773,7 +5897,7 @@ protoOf(Unit).equals = function (other) {
|
|
|
5773
5897
|
if (!(other instanceof Unit))
|
|
5774
5898
|
return false;
|
|
5775
5899
|
var tmp0_other_with_cast = other instanceof Unit ? other : THROW_CCE();
|
|
5776
|
-
if (!(this.
|
|
5900
|
+
if (!(this.h2b_1 === tmp0_other_with_cast.h2b_1))
|
|
5777
5901
|
return false;
|
|
5778
5902
|
return true;
|
|
5779
5903
|
};
|
|
@@ -5928,19 +6052,19 @@ function Type(comment, identifier, shape, extends_0) {
|
|
|
5928
6052
|
protoOf(Type).w24 = function () {
|
|
5929
6053
|
return this.x26_1;
|
|
5930
6054
|
};
|
|
5931
|
-
protoOf(Type).
|
|
6055
|
+
protoOf(Type).j2b = function (comment, identifier, shape, extends_0) {
|
|
5932
6056
|
return new Type(comment, identifier, shape, extends_0);
|
|
5933
6057
|
};
|
|
5934
|
-
protoOf(Type).
|
|
6058
|
+
protoOf(Type).k2b = function (comment, identifier, shape, extends_0, $super) {
|
|
5935
6059
|
comment = comment === VOID ? this.w26_1 : comment;
|
|
5936
6060
|
identifier = identifier === VOID ? this.x26_1 : identifier;
|
|
5937
6061
|
shape = shape === VOID ? this.y26_1 : shape;
|
|
5938
6062
|
extends_0 = extends_0 === VOID ? this.z26_1 : extends_0;
|
|
5939
6063
|
var tmp;
|
|
5940
6064
|
if ($super === VOID) {
|
|
5941
|
-
tmp = this.
|
|
6065
|
+
tmp = this.j2b(comment, identifier, shape, extends_0);
|
|
5942
6066
|
} else {
|
|
5943
|
-
var tmp_0 = $super.
|
|
6067
|
+
var tmp_0 = $super.j2b;
|
|
5944
6068
|
var tmp_1 = comment;
|
|
5945
6069
|
tmp = tmp_0.call(this, tmp_1 == null ? null : new Comment(tmp_1), identifier, shape, extends_0);
|
|
5946
6070
|
}
|
|
@@ -5985,13 +6109,13 @@ protoOf(Type).equals = function (other) {
|
|
|
5985
6109
|
};
|
|
5986
6110
|
function DefinitionIdentifier(name) {
|
|
5987
6111
|
Identifier.call(this, name);
|
|
5988
|
-
this.
|
|
6112
|
+
this.m2b_1 = name;
|
|
5989
6113
|
}
|
|
5990
6114
|
protoOf(DefinitionIdentifier).toString = function () {
|
|
5991
|
-
return 'DefinitionIdentifier(name=' + this.
|
|
6115
|
+
return 'DefinitionIdentifier(name=' + this.m2b_1 + ')';
|
|
5992
6116
|
};
|
|
5993
6117
|
protoOf(DefinitionIdentifier).hashCode = function () {
|
|
5994
|
-
return getStringHashCode(this.
|
|
6118
|
+
return getStringHashCode(this.m2b_1);
|
|
5995
6119
|
};
|
|
5996
6120
|
protoOf(DefinitionIdentifier).equals = function (other) {
|
|
5997
6121
|
if (this === other)
|
|
@@ -5999,7 +6123,7 @@ protoOf(DefinitionIdentifier).equals = function (other) {
|
|
|
5999
6123
|
if (!(other instanceof DefinitionIdentifier))
|
|
6000
6124
|
return false;
|
|
6001
6125
|
var tmp0_other_with_cast = other instanceof DefinitionIdentifier ? other : THROW_CCE();
|
|
6002
|
-
if (!(this.
|
|
6126
|
+
if (!(this.m2b_1 === tmp0_other_with_cast.m2b_1))
|
|
6003
6127
|
return false;
|
|
6004
6128
|
return true;
|
|
6005
6129
|
};
|
|
@@ -6459,13 +6583,13 @@ protoOf(Channel).equals = function (other) {
|
|
|
6459
6583
|
};
|
|
6460
6584
|
function FieldIdentifier(name) {
|
|
6461
6585
|
Identifier.call(this, name);
|
|
6462
|
-
this.
|
|
6586
|
+
this.o2b_1 = name;
|
|
6463
6587
|
}
|
|
6464
6588
|
protoOf(FieldIdentifier).toString = function () {
|
|
6465
|
-
return 'FieldIdentifier(name=' + this.
|
|
6589
|
+
return 'FieldIdentifier(name=' + this.o2b_1 + ')';
|
|
6466
6590
|
};
|
|
6467
6591
|
protoOf(FieldIdentifier).hashCode = function () {
|
|
6468
|
-
return getStringHashCode(this.
|
|
6592
|
+
return getStringHashCode(this.o2b_1);
|
|
6469
6593
|
};
|
|
6470
6594
|
protoOf(FieldIdentifier).equals = function (other) {
|
|
6471
6595
|
if (this === other)
|
|
@@ -6473,7 +6597,7 @@ protoOf(FieldIdentifier).equals = function (other) {
|
|
|
6473
6597
|
if (!(other instanceof FieldIdentifier))
|
|
6474
6598
|
return false;
|
|
6475
6599
|
var tmp0_other_with_cast = other instanceof FieldIdentifier ? other : THROW_CCE();
|
|
6476
|
-
if (!(this.
|
|
6600
|
+
if (!(this.o2b_1 === tmp0_other_with_cast.o2b_1))
|
|
6477
6601
|
return false;
|
|
6478
6602
|
return true;
|
|
6479
6603
|
};
|
|
@@ -6638,47 +6762,47 @@ function parseDefinition(_this__u8e3s4, $this) {
|
|
|
6638
6762
|
try {
|
|
6639
6763
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
6640
6764
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
6641
|
-
_this__u8e3s4.
|
|
6765
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
6642
6766
|
var tmp_0;
|
|
6643
|
-
if (_this__u8e3s4.
|
|
6767
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Comment_0) {
|
|
6644
6768
|
// Inline function 'kotlin.also' call
|
|
6645
|
-
var this_0 = new Comment(Companion_instance_8.
|
|
6769
|
+
var this_0 = new Comment(Companion_instance_8.a2b(_this__u8e3s4.n2a_1.e2a_1));
|
|
6646
6770
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
6647
|
-
this_0.
|
|
6648
|
-
raise.ll(_this__u8e3s4.
|
|
6649
|
-
tmp_0 = this_0.
|
|
6771
|
+
this_0.b2b_1;
|
|
6772
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
6773
|
+
tmp_0 = this_0.b2b_1;
|
|
6650
6774
|
} else {
|
|
6651
6775
|
tmp_0 = null;
|
|
6652
6776
|
}
|
|
6653
6777
|
var comment = tmp_0;
|
|
6654
|
-
var tmp1_subject = _this__u8e3s4.
|
|
6778
|
+
var tmp1_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
6655
6779
|
var tmp_1;
|
|
6656
6780
|
if (isInterface(tmp1_subject, WirespecDefinition)) {
|
|
6657
|
-
var tmp_2 = _this__u8e3s4.
|
|
6781
|
+
var tmp_2 = _this__u8e3s4.n2a_1.f2a_1;
|
|
6658
6782
|
var tmp2_subject = isInterface(tmp_2, WirespecDefinition) ? tmp_2 : THROW_CCE();
|
|
6659
6783
|
var tmp_3;
|
|
6660
6784
|
if (tmp2_subject instanceof TypeDefinition) {
|
|
6661
6785
|
// Inline function 'kotlin.with' call
|
|
6662
6786
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
6663
|
-
var tmp$ret$2 = Parser_getInstance().v22_1.
|
|
6787
|
+
var tmp$ret$2 = Parser_getInstance().v22_1.p2b(_this__u8e3s4, comment);
|
|
6664
6788
|
tmp_3 = raise.ll(tmp$ret$2);
|
|
6665
6789
|
} else {
|
|
6666
6790
|
if (tmp2_subject instanceof EnumTypeDefinition) {
|
|
6667
6791
|
// Inline function 'kotlin.with' call
|
|
6668
6792
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
6669
|
-
var tmp$ret$4 = Parser_getInstance().w22_1.
|
|
6793
|
+
var tmp$ret$4 = Parser_getInstance().w22_1.y2a(_this__u8e3s4, comment);
|
|
6670
6794
|
tmp_3 = raise.ll(tmp$ret$4);
|
|
6671
6795
|
} else {
|
|
6672
6796
|
if (tmp2_subject instanceof EndpointDefinition) {
|
|
6673
6797
|
// Inline function 'kotlin.with' call
|
|
6674
6798
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
6675
|
-
var tmp$ret$6 = Parser_getInstance().x22_1.
|
|
6799
|
+
var tmp$ret$6 = Parser_getInstance().x22_1.x2a(_this__u8e3s4, comment);
|
|
6676
6800
|
tmp_3 = raise.ll(tmp$ret$6);
|
|
6677
6801
|
} else {
|
|
6678
6802
|
if (tmp2_subject instanceof ChannelDefinition) {
|
|
6679
6803
|
// Inline function 'kotlin.with' call
|
|
6680
6804
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
6681
|
-
var tmp$ret$8 = Parser_getInstance().y22_1.
|
|
6805
|
+
var tmp$ret$8 = Parser_getInstance().y22_1.u2a(_this__u8e3s4, comment);
|
|
6682
6806
|
tmp_3 = raise.ll(tmp$ret$8);
|
|
6683
6807
|
} else {
|
|
6684
6808
|
noWhenBranchMatchedException();
|
|
@@ -6689,11 +6813,11 @@ function parseDefinition(_this__u8e3s4, $this) {
|
|
|
6689
6813
|
tmp_1 = tmp_3;
|
|
6690
6814
|
} else {
|
|
6691
6815
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
6692
|
-
var actual = _this__u8e3s4.
|
|
6816
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
6693
6817
|
// Inline function 'kotlin.also' call
|
|
6694
6818
|
var this_1 = new WrongTokenException(getKClass(WirespecDefinition), actual);
|
|
6695
6819
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
6696
|
-
raise.ll(_this__u8e3s4.
|
|
6820
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
6697
6821
|
raise.kl(this_1);
|
|
6698
6822
|
}
|
|
6699
6823
|
var res = tmp_1;
|
|
@@ -6806,7 +6930,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
|
|
|
6806
6930
|
var tmp$ret$9 = new Custom(item_0.f27_1.b1(), false);
|
|
6807
6931
|
destination_2.e(tmp$ret$9);
|
|
6808
6932
|
}
|
|
6809
|
-
tmp_0 = definition.
|
|
6933
|
+
tmp_0 = definition.k2b(VOID, VOID, VOID, destination_2);
|
|
6810
6934
|
} else {
|
|
6811
6935
|
if (definition instanceof Union) {
|
|
6812
6936
|
tmp_0 = definition;
|
|
@@ -6892,7 +7016,7 @@ function fillExtendsClause(_this__u8e3s4, $this) {
|
|
|
6892
7016
|
var tmp$ret$22 = new Custom(item_3.f27_1.b1(), false);
|
|
6893
7017
|
destination_7.e(tmp$ret$22);
|
|
6894
7018
|
}
|
|
6895
|
-
tmp_3 = item_1.
|
|
7019
|
+
tmp_3 = item_1.k2b(VOID, VOID, VOID, destination_7);
|
|
6896
7020
|
} else {
|
|
6897
7021
|
if (item_1 instanceof Union) {
|
|
6898
7022
|
tmp_3 = item_1;
|
|
@@ -6938,7 +7062,7 @@ function Parser$validate$lambda$lambda($this$runOption) {
|
|
|
6938
7062
|
function Parser$validate$lambda($options) {
|
|
6939
7063
|
return function (defs) {
|
|
6940
7064
|
var tmp = Parser_getInstance();
|
|
6941
|
-
return runOption(defs, tmp, $options.
|
|
7065
|
+
return runOption(defs, tmp, $options.r2b_1, Parser$validate$lambda$lambda);
|
|
6942
7066
|
};
|
|
6943
7067
|
}
|
|
6944
7068
|
function Parser() {
|
|
@@ -6948,7 +7072,7 @@ function Parser() {
|
|
|
6948
7072
|
this.x22_1 = EndpointParser_instance;
|
|
6949
7073
|
this.y22_1 = ChannelParser_instance;
|
|
6950
7074
|
}
|
|
6951
|
-
protoOf(Parser).
|
|
7075
|
+
protoOf(Parser).s2b = function (_this__u8e3s4, modules, options) {
|
|
6952
7076
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
6953
7077
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
|
|
6954
7078
|
var it = modules.uk_1;
|
|
@@ -7022,11 +7146,11 @@ protoOf(Parser).t2b = function (_this__u8e3s4, modules, options) {
|
|
|
7022
7146
|
// Inline function 'kotlin.let' call
|
|
7023
7147
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parse.<anonymous>' call
|
|
7024
7148
|
var it_2 = tmp_2;
|
|
7025
|
-
return Validator_instance.
|
|
7149
|
+
return Validator_instance.t2b(it_2);
|
|
7026
7150
|
};
|
|
7027
7151
|
protoOf(Parser).z22 = function (_this__u8e3s4, modules, options, $super) {
|
|
7028
7152
|
options = options === VOID ? new ParseOptions() : options;
|
|
7029
|
-
return $super === VOID ? this.
|
|
7153
|
+
return $super === VOID ? this.s2b(_this__u8e3s4, modules, options) : $super.s2b.call(this, _this__u8e3s4, modules, options);
|
|
7030
7154
|
};
|
|
7031
7155
|
var Parser_instance;
|
|
7032
7156
|
function Parser_getInstance() {
|
|
@@ -7037,15 +7161,15 @@ function Parser_getInstance() {
|
|
|
7037
7161
|
function ParseOptions(strict, allowUnions) {
|
|
7038
7162
|
strict = strict === VOID ? false : strict;
|
|
7039
7163
|
allowUnions = allowUnions === VOID ? true : allowUnions;
|
|
7040
|
-
this.
|
|
7041
|
-
this.
|
|
7164
|
+
this.q2b_1 = strict;
|
|
7165
|
+
this.r2b_1 = allowUnions;
|
|
7042
7166
|
}
|
|
7043
7167
|
protoOf(ParseOptions).toString = function () {
|
|
7044
|
-
return 'ParseOptions(strict=' + this.
|
|
7168
|
+
return 'ParseOptions(strict=' + this.q2b_1 + ', allowUnions=' + this.r2b_1 + ')';
|
|
7045
7169
|
};
|
|
7046
7170
|
protoOf(ParseOptions).hashCode = function () {
|
|
7047
|
-
var result = getBooleanHashCode(this.
|
|
7048
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
7171
|
+
var result = getBooleanHashCode(this.q2b_1);
|
|
7172
|
+
result = imul(result, 31) + getBooleanHashCode(this.r2b_1) | 0;
|
|
7049
7173
|
return result;
|
|
7050
7174
|
};
|
|
7051
7175
|
protoOf(ParseOptions).equals = function (other) {
|
|
@@ -7054,9 +7178,9 @@ protoOf(ParseOptions).equals = function (other) {
|
|
|
7054
7178
|
if (!(other instanceof ParseOptions))
|
|
7055
7179
|
return false;
|
|
7056
7180
|
var tmp0_other_with_cast = other instanceof ParseOptions ? other : THROW_CCE();
|
|
7057
|
-
if (!(this.
|
|
7181
|
+
if (!(this.q2b_1 === tmp0_other_with_cast.q2b_1))
|
|
7058
7182
|
return false;
|
|
7059
|
-
if (!(this.
|
|
7183
|
+
if (!(this.r2b_1 === tmp0_other_with_cast.r2b_1))
|
|
7060
7184
|
return false;
|
|
7061
7185
|
return true;
|
|
7062
7186
|
};
|
|
@@ -7067,25 +7191,25 @@ function printTokens($this, previousToken) {
|
|
|
7067
7191
|
} else {
|
|
7068
7192
|
// Inline function 'kotlin.run' call
|
|
7069
7193
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
7070
|
-
tmp = "Eating: '" + previousToken.
|
|
7194
|
+
tmp = "Eating: '" + previousToken.e2a_1 + "', ";
|
|
7071
7195
|
}
|
|
7072
7196
|
var tmp1_elvis_lhs = tmp;
|
|
7073
7197
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
7074
7198
|
// Inline function 'kotlin.run' call
|
|
7075
7199
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
7076
|
-
var curr = "Current: '" + $this.
|
|
7077
|
-
var tmp2_safe_receiver = $this.
|
|
7200
|
+
var curr = "Current: '" + $this.n2a_1.e2a_1 + "'";
|
|
7201
|
+
var tmp2_safe_receiver = $this.p2a_1;
|
|
7078
7202
|
var tmp_0;
|
|
7079
7203
|
if (tmp2_safe_receiver == null) {
|
|
7080
7204
|
tmp_0 = null;
|
|
7081
7205
|
} else {
|
|
7082
7206
|
// Inline function 'kotlin.run' call
|
|
7083
7207
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
7084
|
-
tmp_0 = ", Next: '" + tmp2_safe_receiver.
|
|
7208
|
+
tmp_0 = ", Next: '" + tmp2_safe_receiver.e2a_1 + "'";
|
|
7085
7209
|
}
|
|
7086
7210
|
var tmp3_elvis_lhs = tmp_0;
|
|
7087
7211
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
7088
|
-
$this.
|
|
7212
|
+
$this.m2a_1.f23(prev + curr + next);
|
|
7089
7213
|
}
|
|
7090
7214
|
function printTokens$default($this, previousToken, $super) {
|
|
7091
7215
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -7098,7 +7222,7 @@ function nextToken($this) {
|
|
|
7098
7222
|
try {
|
|
7099
7223
|
// Inline function 'arrow.core.Companion.catch.<anonymous>' call
|
|
7100
7224
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
7101
|
-
var tmp$ret$0 = $this.
|
|
7225
|
+
var tmp$ret$0 = $this.o2a_1.i();
|
|
7102
7226
|
tmp = right(tmp$ret$0);
|
|
7103
7227
|
} catch ($p) {
|
|
7104
7228
|
var tmp_0;
|
|
@@ -7115,10 +7239,10 @@ function nextToken($this) {
|
|
|
7115
7239
|
return tmp.ok();
|
|
7116
7240
|
}
|
|
7117
7241
|
function TokenProvider(logger, tokens) {
|
|
7118
|
-
this.
|
|
7119
|
-
this.
|
|
7120
|
-
this.
|
|
7121
|
-
this.
|
|
7242
|
+
this.m2a_1 = logger;
|
|
7243
|
+
this.n2a_1 = tokens.uk_1;
|
|
7244
|
+
this.o2a_1 = tokens.vk_1.g();
|
|
7245
|
+
this.p2a_1 = nextToken(this);
|
|
7122
7246
|
var tmp = this;
|
|
7123
7247
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
7124
7248
|
var tmp0 = zipWithNext(tokens);
|
|
@@ -7132,10 +7256,10 @@ function TokenProvider(logger, tokens) {
|
|
|
7132
7256
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.definitionNames.<anonymous>' call
|
|
7133
7257
|
var first = element.yd();
|
|
7134
7258
|
var second = element.zd();
|
|
7135
|
-
var tmp0_subject = first.
|
|
7259
|
+
var tmp0_subject = first.f2a_1;
|
|
7136
7260
|
var tmp_0;
|
|
7137
7261
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
7138
|
-
tmp_0 = second.
|
|
7262
|
+
tmp_0 = second.e2a_1;
|
|
7139
7263
|
} else {
|
|
7140
7264
|
tmp_0 = null;
|
|
7141
7265
|
}
|
|
@@ -7148,10 +7272,10 @@ function TokenProvider(logger, tokens) {
|
|
|
7148
7272
|
destination.e(tmp0_safe_receiver);
|
|
7149
7273
|
}
|
|
7150
7274
|
}
|
|
7151
|
-
tmp.
|
|
7275
|
+
tmp.q2a_1 = destination;
|
|
7152
7276
|
printTokens$default(this);
|
|
7153
7277
|
}
|
|
7154
|
-
protoOf(TokenProvider).
|
|
7278
|
+
protoOf(TokenProvider).u2b = function (_this__u8e3s4) {
|
|
7155
7279
|
// Inline function 'arrow.core.raise.either' call
|
|
7156
7280
|
// Inline function 'arrow.core.raise.fold' call
|
|
7157
7281
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7161,8 +7285,8 @@ protoOf(TokenProvider).v2b = function (_this__u8e3s4) {
|
|
|
7161
7285
|
var tmp;
|
|
7162
7286
|
try {
|
|
7163
7287
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7164
|
-
if (!this.
|
|
7165
|
-
raise.kl(new DefinitionNotExistsException(_this__u8e3s4.
|
|
7288
|
+
if (!this.q2a_1.o1(_this__u8e3s4.e2a_1)) {
|
|
7289
|
+
raise.kl(new DefinitionNotExistsException(_this__u8e3s4.e2a_1, _this__u8e3s4.g2a_1));
|
|
7166
7290
|
}
|
|
7167
7291
|
var res = Unit_instance;
|
|
7168
7292
|
raise.il();
|
|
@@ -7190,9 +7314,9 @@ protoOf(TokenProvider).v2b = function (_this__u8e3s4) {
|
|
|
7190
7314
|
return tmp;
|
|
7191
7315
|
};
|
|
7192
7316
|
protoOf(TokenProvider).h = function () {
|
|
7193
|
-
return !(this.
|
|
7317
|
+
return !(this.p2a_1 == null);
|
|
7194
7318
|
};
|
|
7195
|
-
protoOf(TokenProvider).
|
|
7319
|
+
protoOf(TokenProvider).r2a = function () {
|
|
7196
7320
|
// Inline function 'arrow.core.raise.either' call
|
|
7197
7321
|
// Inline function 'arrow.core.raise.fold' call
|
|
7198
7322
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7203,17 +7327,17 @@ protoOf(TokenProvider).s2a = function () {
|
|
|
7203
7327
|
try {
|
|
7204
7328
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7205
7329
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.eatToken.<anonymous>' call
|
|
7206
|
-
var previousToken = this.
|
|
7330
|
+
var previousToken = this.n2a_1;
|
|
7207
7331
|
var tmp_0 = this;
|
|
7208
|
-
var tmp0_elvis_lhs = this.
|
|
7332
|
+
var tmp0_elvis_lhs = this.p2a_1;
|
|
7209
7333
|
var tmp_1;
|
|
7210
7334
|
if (tmp0_elvis_lhs == null) {
|
|
7211
|
-
raise.kl(new NextException(previousToken.
|
|
7335
|
+
raise.kl(new NextException(previousToken.g2a_1));
|
|
7212
7336
|
} else {
|
|
7213
7337
|
tmp_1 = tmp0_elvis_lhs;
|
|
7214
7338
|
}
|
|
7215
|
-
tmp_0.
|
|
7216
|
-
this.
|
|
7339
|
+
tmp_0.n2a_1 = tmp_1;
|
|
7340
|
+
this.p2a_1 = nextToken(this);
|
|
7217
7341
|
printTokens(this, previousToken);
|
|
7218
7342
|
var res = previousToken;
|
|
7219
7343
|
raise.il();
|
|
@@ -7240,8 +7364,8 @@ protoOf(TokenProvider).s2a = function () {
|
|
|
7240
7364
|
}
|
|
7241
7365
|
return tmp;
|
|
7242
7366
|
};
|
|
7243
|
-
protoOf(TokenProvider).
|
|
7244
|
-
return this.
|
|
7367
|
+
protoOf(TokenProvider).v2a = function (_this__u8e3s4) {
|
|
7368
|
+
return this.m2a_1.f23('Parsing ' + toString(_this__u8e3s4.f2a_1) + ' at line ' + _this__u8e3s4.g2a_1.h2a_1 + ' position ' + _this__u8e3s4.g2a_1.i2a_1);
|
|
7245
7369
|
};
|
|
7246
7370
|
function toProvider(_this__u8e3s4, logger) {
|
|
7247
7371
|
return new TokenProvider(logger, _this__u8e3s4);
|
|
@@ -7257,9 +7381,9 @@ function parseRefinedValidator(_this__u8e3s4, $this, accumulatedString) {
|
|
|
7257
7381
|
try {
|
|
7258
7382
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7259
7383
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseRefinedValidator.<anonymous>' call
|
|
7260
|
-
raise.ll(_this__u8e3s4.
|
|
7261
|
-
_this__u8e3s4.
|
|
7262
|
-
var tmp0_subject = _this__u8e3s4.
|
|
7384
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7385
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
7386
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
7263
7387
|
var tmp_0;
|
|
7264
7388
|
var tmp_1;
|
|
7265
7389
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
@@ -7270,7 +7394,7 @@ function parseRefinedValidator(_this__u8e3s4, $this, accumulatedString) {
|
|
|
7270
7394
|
if (tmp_1) {
|
|
7271
7395
|
tmp_0 = accumulatedString;
|
|
7272
7396
|
} else {
|
|
7273
|
-
tmp_0 = raise.ll(parseRefinedValidator(_this__u8e3s4, TypeParser_instance, accumulatedString + _this__u8e3s4.
|
|
7397
|
+
tmp_0 = raise.ll(parseRefinedValidator(_this__u8e3s4, TypeParser_instance, accumulatedString + _this__u8e3s4.n2a_1.e2a_1));
|
|
7274
7398
|
}
|
|
7275
7399
|
var res = tmp_0;
|
|
7276
7400
|
raise.il();
|
|
@@ -7308,12 +7432,12 @@ function parseTypeDefinition(_this__u8e3s4, $this, comment, typeName) {
|
|
|
7308
7432
|
try {
|
|
7309
7433
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7310
7434
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>' call
|
|
7311
|
-
raise.ll(_this__u8e3s4.
|
|
7312
|
-
_this__u8e3s4.
|
|
7313
|
-
var tmp0_subject = _this__u8e3s4.
|
|
7435
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7436
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
7437
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
7314
7438
|
var tmp_0;
|
|
7315
7439
|
if (tmp0_subject instanceof LeftCurly) {
|
|
7316
|
-
tmp_0 = new Type(comment, typeName, raise.ll(TypeParser_instance.
|
|
7440
|
+
tmp_0 = new Type(comment, typeName, raise.ll(TypeParser_instance.w2a(_this__u8e3s4)), emptyList());
|
|
7317
7441
|
} else {
|
|
7318
7442
|
if (tmp0_subject instanceof ForwardSlash) {
|
|
7319
7443
|
tmp_0 = new Refined(comment, typeName, new Validator(raise.ll(parseRefinedValidator(_this__u8e3s4, TypeParser_instance, '/'))));
|
|
@@ -7322,11 +7446,11 @@ function parseTypeDefinition(_this__u8e3s4, $this, comment, typeName) {
|
|
|
7322
7446
|
tmp_0 = new Union(comment, typeName, raise.ll(parseUnionTypeEntries(_this__u8e3s4, TypeParser_instance)));
|
|
7323
7447
|
} else {
|
|
7324
7448
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7325
|
-
var actual = _this__u8e3s4.
|
|
7449
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
7326
7450
|
// Inline function 'kotlin.also' call
|
|
7327
7451
|
var this_0 = new WrongTokenException(getKClass(TypeDefinitionStart), actual);
|
|
7328
7452
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
7329
|
-
raise.ll(_this__u8e3s4.
|
|
7453
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7330
7454
|
raise.kl(this_0);
|
|
7331
7455
|
}
|
|
7332
7456
|
}
|
|
@@ -7367,33 +7491,33 @@ function parseField(_this__u8e3s4, $this, identifier) {
|
|
|
7367
7491
|
try {
|
|
7368
7492
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7369
7493
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>' call
|
|
7370
|
-
raise.ll(_this__u8e3s4.
|
|
7371
|
-
_this__u8e3s4.
|
|
7372
|
-
if (_this__u8e3s4.
|
|
7373
|
-
raise.ll(_this__u8e3s4.
|
|
7494
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7495
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
7496
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Colon)
|
|
7497
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7374
7498
|
else {
|
|
7375
7499
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7376
|
-
var actual = _this__u8e3s4.
|
|
7500
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
7377
7501
|
// Inline function 'kotlin.also' call
|
|
7378
7502
|
var this_0 = new WrongTokenException(getKClass(Colon), actual);
|
|
7379
7503
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
7380
|
-
raise.ll(_this__u8e3s4.
|
|
7504
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7381
7505
|
raise.kl(this_0);
|
|
7382
7506
|
}
|
|
7383
|
-
var type = _this__u8e3s4.
|
|
7507
|
+
var type = _this__u8e3s4.n2a_1.f2a_1;
|
|
7384
7508
|
var tmp_0;
|
|
7385
7509
|
if (type instanceof LeftCurly) {
|
|
7386
|
-
tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.
|
|
7510
|
+
tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.t2a(_this__u8e3s4)));
|
|
7387
7511
|
} else {
|
|
7388
7512
|
if (isInterface(type, WirespecType_0)) {
|
|
7389
|
-
tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.
|
|
7513
|
+
tmp_0 = new Field(identifier, raise.ll(TypeParser_instance.s2a(_this__u8e3s4, type)));
|
|
7390
7514
|
} else {
|
|
7391
7515
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7392
|
-
var actual_0 = _this__u8e3s4.
|
|
7516
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
7393
7517
|
// Inline function 'kotlin.also' call
|
|
7394
7518
|
var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
|
|
7395
7519
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
7396
|
-
raise.ll(_this__u8e3s4.
|
|
7520
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7397
7521
|
raise.kl(this_1);
|
|
7398
7522
|
}
|
|
7399
7523
|
}
|
|
@@ -7433,45 +7557,45 @@ function parseUnionTypeEntries(_this__u8e3s4, $this) {
|
|
|
7433
7557
|
try {
|
|
7434
7558
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7435
7559
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>' call
|
|
7436
|
-
raise.ll(_this__u8e3s4.
|
|
7437
|
-
_this__u8e3s4.
|
|
7438
|
-
var tmp0_subject = _this__u8e3s4.
|
|
7560
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7561
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
7562
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
7439
7563
|
var tmp_0;
|
|
7440
7564
|
if (isInterface(tmp0_subject, TypeIdentifier)) {
|
|
7441
7565
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
7442
7566
|
// Inline function 'kotlin.apply' call
|
|
7443
7567
|
var this_0 = ArrayList_init_$Create$_0();
|
|
7444
7568
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
7445
|
-
raise.ll(_this__u8e3s4.
|
|
7446
|
-
this_0.e(new Custom(_this__u8e3s4.
|
|
7447
|
-
raise.ll(_this__u8e3s4.
|
|
7448
|
-
while (equals(_this__u8e3s4.
|
|
7449
|
-
raise.ll(_this__u8e3s4.
|
|
7450
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
7569
|
+
raise.ll(_this__u8e3s4.u2b(_this__u8e3s4.n2a_1));
|
|
7570
|
+
this_0.e(new Custom(_this__u8e3s4.n2a_1.e2a_1, false));
|
|
7571
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7572
|
+
while (equals(_this__u8e3s4.n2a_1.f2a_1, Pipe_instance)) {
|
|
7573
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7574
|
+
var tmp0_subject_0 = _this__u8e3s4.n2a_1.f2a_1;
|
|
7451
7575
|
if (isInterface(tmp0_subject_0, TypeIdentifier)) {
|
|
7452
|
-
raise.ll(_this__u8e3s4.
|
|
7576
|
+
raise.ll(_this__u8e3s4.u2b(_this__u8e3s4.n2a_1));
|
|
7453
7577
|
// Inline function 'kotlin.also' call
|
|
7454
|
-
this_0.e(new Custom(_this__u8e3s4.
|
|
7578
|
+
this_0.e(new Custom(_this__u8e3s4.n2a_1.e2a_1, false));
|
|
7455
7579
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
7456
|
-
raise.ll(_this__u8e3s4.
|
|
7580
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7457
7581
|
} else {
|
|
7458
7582
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7459
|
-
var actual = _this__u8e3s4.
|
|
7583
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
7460
7584
|
// Inline function 'kotlin.also' call
|
|
7461
7585
|
var this_1 = new WrongTokenException(getKClass(TypeIdentifier), actual);
|
|
7462
7586
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
7463
|
-
raise.ll(_this__u8e3s4.
|
|
7587
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7464
7588
|
raise.kl(this_1);
|
|
7465
7589
|
}
|
|
7466
7590
|
}
|
|
7467
7591
|
tmp_0 = this_0;
|
|
7468
7592
|
} else {
|
|
7469
7593
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7470
|
-
var actual_0 = _this__u8e3s4.
|
|
7594
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
7471
7595
|
// Inline function 'kotlin.also' call
|
|
7472
7596
|
var this_2 = new WrongTokenException(getKClass(TypeIdentifier), actual_0);
|
|
7473
7597
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseUnionTypeEntries.<anonymous>.<anonymous>' call
|
|
7474
|
-
raise.ll(_this__u8e3s4.
|
|
7598
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7475
7599
|
raise.kl(this_2);
|
|
7476
7600
|
}
|
|
7477
7601
|
var res = toSet(tmp_0);
|
|
@@ -7511,10 +7635,10 @@ function isNullable(_this__u8e3s4, $this) {
|
|
|
7511
7635
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7512
7636
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.isNullable.<anonymous>' call
|
|
7513
7637
|
var tmp_0;
|
|
7514
|
-
if (_this__u8e3s4.
|
|
7638
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof QuestionMark) {
|
|
7515
7639
|
// Inline function 'kotlin.also' call
|
|
7516
7640
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.isNullable.<anonymous>.<anonymous>' call
|
|
7517
|
-
raise.ll(_this__u8e3s4.
|
|
7641
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7518
7642
|
tmp_0 = true;
|
|
7519
7643
|
} else {
|
|
7520
7644
|
tmp_0 = false;
|
|
@@ -7552,12 +7676,12 @@ function TypeParser$parseWirespecType$lambda_0(it) {
|
|
|
7552
7676
|
}
|
|
7553
7677
|
function TypeParser$parseWirespecType$lambda_1($type) {
|
|
7554
7678
|
return function (it) {
|
|
7555
|
-
return new Primitive(new Integer(toPrimitivePrecision($type.
|
|
7679
|
+
return new Primitive(new Integer(toPrimitivePrecision($type.v2b_1)), it);
|
|
7556
7680
|
};
|
|
7557
7681
|
}
|
|
7558
7682
|
function TypeParser$parseWirespecType$lambda_2($type) {
|
|
7559
7683
|
return function (it) {
|
|
7560
|
-
return new Primitive(new Number_0(toPrimitivePrecision($type.
|
|
7684
|
+
return new Primitive(new Number_0(toPrimitivePrecision($type.w2b_1)), it);
|
|
7561
7685
|
};
|
|
7562
7686
|
}
|
|
7563
7687
|
function TypeParser$parseWirespecType$lambda_3(it) {
|
|
@@ -7572,13 +7696,13 @@ function Reference$Unit$_init_$ref_od8ye0() {
|
|
|
7572
7696
|
}
|
|
7573
7697
|
function TypeParser$parseWirespecType$lambda_4($$this$either, $this_parseWirespecType, $current) {
|
|
7574
7698
|
return function (it) {
|
|
7575
|
-
$$this$either.ll($this_parseWirespecType.
|
|
7576
|
-
return new Custom($current.
|
|
7699
|
+
$$this$either.ll($this_parseWirespecType.u2b($current));
|
|
7700
|
+
return new Custom($current.e2a_1, it);
|
|
7577
7701
|
};
|
|
7578
7702
|
}
|
|
7579
7703
|
function TypeParser() {
|
|
7580
7704
|
}
|
|
7581
|
-
protoOf(TypeParser).
|
|
7705
|
+
protoOf(TypeParser).p2b = function (_this__u8e3s4, comment) {
|
|
7582
7706
|
// Inline function 'arrow.core.raise.either' call
|
|
7583
7707
|
// Inline function 'arrow.core.raise.fold' call
|
|
7584
7708
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7589,19 +7713,19 @@ protoOf(TypeParser).q2b = function (_this__u8e3s4, comment) {
|
|
|
7589
7713
|
try {
|
|
7590
7714
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7591
7715
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>' call
|
|
7592
|
-
raise.ll(_this__u8e3s4.
|
|
7593
|
-
_this__u8e3s4.
|
|
7594
|
-
var tmp0_subject = _this__u8e3s4.
|
|
7716
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7717
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
7718
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
7595
7719
|
var tmp_0;
|
|
7596
7720
|
if (isInterface(tmp0_subject, TypeIdentifier)) {
|
|
7597
|
-
tmp_0 = raise.ll(parseTypeDefinition(_this__u8e3s4, TypeParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.
|
|
7721
|
+
tmp_0 = raise.ll(parseTypeDefinition(_this__u8e3s4, TypeParser_instance, comment, new DefinitionIdentifier(_this__u8e3s4.n2a_1.e2a_1)));
|
|
7598
7722
|
} else {
|
|
7599
7723
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7600
|
-
var actual = _this__u8e3s4.
|
|
7724
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
7601
7725
|
// Inline function 'kotlin.also' call
|
|
7602
7726
|
var this_0 = new WrongTokenException(getKClass(TypeIdentifier), actual);
|
|
7603
7727
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>.<anonymous>' call
|
|
7604
|
-
raise.ll(_this__u8e3s4.
|
|
7728
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7605
7729
|
raise.kl(this_0);
|
|
7606
7730
|
}
|
|
7607
7731
|
var res = tmp_0;
|
|
@@ -7629,7 +7753,7 @@ protoOf(TypeParser).q2b = function (_this__u8e3s4, comment) {
|
|
|
7629
7753
|
}
|
|
7630
7754
|
return tmp;
|
|
7631
7755
|
};
|
|
7632
|
-
protoOf(TypeParser).
|
|
7756
|
+
protoOf(TypeParser).w2a = function (_this__u8e3s4) {
|
|
7633
7757
|
// Inline function 'arrow.core.raise.either' call
|
|
7634
7758
|
// Inline function 'arrow.core.raise.fold' call
|
|
7635
7759
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7640,53 +7764,53 @@ protoOf(TypeParser).x2a = function (_this__u8e3s4) {
|
|
|
7640
7764
|
try {
|
|
7641
7765
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7642
7766
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>' call
|
|
7643
|
-
raise.ll(_this__u8e3s4.
|
|
7644
|
-
_this__u8e3s4.
|
|
7645
|
-
var tmp0_subject = _this__u8e3s4.
|
|
7767
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7768
|
+
_this__u8e3s4.v2a(_this__u8e3s4.n2a_1);
|
|
7769
|
+
var tmp0_subject = _this__u8e3s4.n2a_1.f2a_1;
|
|
7646
7770
|
var tmp_0;
|
|
7647
7771
|
if (isInterface(tmp0_subject, WirespecIdentifier)) {
|
|
7648
7772
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
7649
7773
|
// Inline function 'kotlin.apply' call
|
|
7650
7774
|
var this_0 = ArrayList_init_$Create$_0();
|
|
7651
7775
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
7652
|
-
this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.
|
|
7653
|
-
while (equals(_this__u8e3s4.
|
|
7654
|
-
raise.ll(_this__u8e3s4.
|
|
7655
|
-
var tmp0_subject_0 = _this__u8e3s4.
|
|
7776
|
+
this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.n2a_1.e2a_1))));
|
|
7777
|
+
while (equals(_this__u8e3s4.n2a_1.f2a_1, Comma_instance)) {
|
|
7778
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7779
|
+
var tmp0_subject_0 = _this__u8e3s4.n2a_1.f2a_1;
|
|
7656
7780
|
if (isInterface(tmp0_subject_0, WirespecIdentifier))
|
|
7657
|
-
this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.
|
|
7781
|
+
this_0.e(raise.ll(parseField(_this__u8e3s4, TypeParser_instance, new FieldIdentifier(_this__u8e3s4.n2a_1.e2a_1))));
|
|
7658
7782
|
else {
|
|
7659
7783
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7660
|
-
var actual = _this__u8e3s4.
|
|
7784
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
7661
7785
|
// Inline function 'kotlin.also' call
|
|
7662
7786
|
var this_1 = new WrongTokenException(getKClass(WirespecIdentifier), actual);
|
|
7663
7787
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
7664
|
-
raise.ll(_this__u8e3s4.
|
|
7788
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7665
7789
|
raise.kl(this_1);
|
|
7666
7790
|
}
|
|
7667
7791
|
}
|
|
7668
7792
|
tmp_0 = this_0;
|
|
7669
7793
|
} else {
|
|
7670
7794
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7671
|
-
var actual_0 = _this__u8e3s4.
|
|
7795
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
7672
7796
|
// Inline function 'kotlin.also' call
|
|
7673
7797
|
var this_2 = new WrongTokenException(getKClass(WirespecIdentifier), actual_0);
|
|
7674
7798
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
7675
|
-
raise.ll(_this__u8e3s4.
|
|
7799
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7676
7800
|
raise.kl(this_2);
|
|
7677
7801
|
}
|
|
7678
7802
|
// Inline function 'kotlin.also' call
|
|
7679
7803
|
var this_3 = tmp_0;
|
|
7680
7804
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
7681
|
-
if (_this__u8e3s4.
|
|
7682
|
-
raise.ll(_this__u8e3s4.
|
|
7805
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof RightCurly)
|
|
7806
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7683
7807
|
else {
|
|
7684
7808
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7685
|
-
var actual_1 = _this__u8e3s4.
|
|
7809
|
+
var actual_1 = _this__u8e3s4.n2a_1;
|
|
7686
7810
|
// Inline function 'kotlin.also' call
|
|
7687
7811
|
var this_4 = new WrongTokenException(getKClass(RightCurly), actual_1);
|
|
7688
7812
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
7689
|
-
raise.ll(_this__u8e3s4.
|
|
7813
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7690
7814
|
raise.kl(this_4);
|
|
7691
7815
|
}
|
|
7692
7816
|
// Inline function 'kotlin.let' call
|
|
@@ -7716,7 +7840,7 @@ protoOf(TypeParser).x2a = function (_this__u8e3s4) {
|
|
|
7716
7840
|
}
|
|
7717
7841
|
return tmp;
|
|
7718
7842
|
};
|
|
7719
|
-
protoOf(TypeParser).
|
|
7843
|
+
protoOf(TypeParser).t2a = function (_this__u8e3s4) {
|
|
7720
7844
|
// Inline function 'arrow.core.raise.either' call
|
|
7721
7845
|
// Inline function 'arrow.core.raise.fold' call
|
|
7722
7846
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7727,32 +7851,32 @@ protoOf(TypeParser).u2a = function (_this__u8e3s4) {
|
|
|
7727
7851
|
try {
|
|
7728
7852
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7729
7853
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseDict.<anonymous>' call
|
|
7730
|
-
raise.ll(_this__u8e3s4.
|
|
7731
|
-
var type = _this__u8e3s4.
|
|
7854
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7855
|
+
var type = _this__u8e3s4.n2a_1.f2a_1;
|
|
7732
7856
|
var tmp_0;
|
|
7733
7857
|
if (isInterface(type, WirespecType_0)) {
|
|
7734
|
-
var tmp_1 = raise.ll(TypeParser_instance.
|
|
7858
|
+
var tmp_1 = raise.ll(TypeParser_instance.s2a(_this__u8e3s4, type));
|
|
7735
7859
|
var tmp_2;
|
|
7736
|
-
if (_this__u8e3s4.
|
|
7737
|
-
raise.ll(_this__u8e3s4.
|
|
7860
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof RightCurly) {
|
|
7861
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7738
7862
|
tmp_2 = raise.ll(isNullable(_this__u8e3s4, TypeParser_instance));
|
|
7739
7863
|
} else {
|
|
7740
7864
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7741
|
-
var actual = _this__u8e3s4.
|
|
7865
|
+
var actual = _this__u8e3s4.n2a_1;
|
|
7742
7866
|
// Inline function 'kotlin.also' call
|
|
7743
7867
|
var this_0 = new WrongTokenException(getKClass(RightCurly), actual);
|
|
7744
7868
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseDict.<anonymous>.<anonymous>' call
|
|
7745
|
-
raise.ll(_this__u8e3s4.
|
|
7869
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7746
7870
|
raise.kl(this_0);
|
|
7747
7871
|
}
|
|
7748
7872
|
tmp_0 = new Dict(tmp_1, tmp_2);
|
|
7749
7873
|
} else {
|
|
7750
7874
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
7751
|
-
var actual_0 = _this__u8e3s4.
|
|
7875
|
+
var actual_0 = _this__u8e3s4.n2a_1;
|
|
7752
7876
|
// Inline function 'kotlin.also' call
|
|
7753
7877
|
var this_1 = new WrongTokenException(getKClass(WirespecType_0), actual_0);
|
|
7754
7878
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseDict.<anonymous>.<anonymous>' call
|
|
7755
|
-
raise.ll(_this__u8e3s4.
|
|
7879
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7756
7880
|
raise.kl(this_1);
|
|
7757
7881
|
}
|
|
7758
7882
|
var res = tmp_0;
|
|
@@ -7780,7 +7904,7 @@ protoOf(TypeParser).u2a = function (_this__u8e3s4) {
|
|
|
7780
7904
|
}
|
|
7781
7905
|
return tmp;
|
|
7782
7906
|
};
|
|
7783
|
-
protoOf(TypeParser).
|
|
7907
|
+
protoOf(TypeParser).s2a = function (_this__u8e3s4, type) {
|
|
7784
7908
|
// Inline function 'arrow.core.raise.either' call
|
|
7785
7909
|
// Inline function 'arrow.core.raise.fold' call
|
|
7786
7910
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7791,7 +7915,7 @@ protoOf(TypeParser).t2a = function (_this__u8e3s4, type) {
|
|
|
7791
7915
|
try {
|
|
7792
7916
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
7793
7917
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseWirespecType.<anonymous>' call
|
|
7794
|
-
var current = raise.ll(_this__u8e3s4.
|
|
7918
|
+
var current = raise.ll(_this__u8e3s4.r2a());
|
|
7795
7919
|
var tmp_0;
|
|
7796
7920
|
if (type instanceof WsString) {
|
|
7797
7921
|
tmp_0 = TypeParser$parseWirespecType$lambda;
|
|
@@ -7824,8 +7948,8 @@ protoOf(TypeParser).t2a = function (_this__u8e3s4, type) {
|
|
|
7824
7948
|
}
|
|
7825
7949
|
var wirespecType = tmp_0(raise.ll(isNullable(_this__u8e3s4, TypeParser_instance)));
|
|
7826
7950
|
var tmp_1;
|
|
7827
|
-
if (_this__u8e3s4.
|
|
7828
|
-
raise.ll(_this__u8e3s4.
|
|
7951
|
+
if (_this__u8e3s4.n2a_1.f2a_1 instanceof Brackets) {
|
|
7952
|
+
raise.ll(_this__u8e3s4.r2a());
|
|
7829
7953
|
tmp_1 = new Iterable(wirespecType, raise.ll(isNullable(_this__u8e3s4, TypeParser_instance)));
|
|
7830
7954
|
} else {
|
|
7831
7955
|
tmp_1 = wirespecType;
|
|
@@ -7877,15 +8001,15 @@ function toPrimitivePrecision(_this__u8e3s4) {
|
|
|
7877
8001
|
function IdxAndLength(idx, length) {
|
|
7878
8002
|
idx = idx === VOID ? 0 : idx;
|
|
7879
8003
|
length = length === VOID ? 0 : length;
|
|
7880
|
-
this.
|
|
7881
|
-
this.
|
|
8004
|
+
this.x2b_1 = idx;
|
|
8005
|
+
this.y2b_1 = length;
|
|
7882
8006
|
}
|
|
7883
8007
|
protoOf(IdxAndLength).toString = function () {
|
|
7884
|
-
return 'IdxAndLength(idx=' + this.
|
|
8008
|
+
return 'IdxAndLength(idx=' + this.x2b_1 + ', length=' + this.y2b_1 + ')';
|
|
7885
8009
|
};
|
|
7886
8010
|
protoOf(IdxAndLength).hashCode = function () {
|
|
7887
|
-
var result = this.
|
|
7888
|
-
result = imul(result, 31) + this.
|
|
8011
|
+
var result = this.x2b_1;
|
|
8012
|
+
result = imul(result, 31) + this.y2b_1 | 0;
|
|
7889
8013
|
return result;
|
|
7890
8014
|
};
|
|
7891
8015
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -7894,9 +8018,9 @@ protoOf(IdxAndLength).equals = function (other) {
|
|
|
7894
8018
|
if (!(other instanceof IdxAndLength))
|
|
7895
8019
|
return false;
|
|
7896
8020
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
7897
|
-
if (!(this.
|
|
8021
|
+
if (!(this.x2b_1 === tmp0_other_with_cast.x2b_1))
|
|
7898
8022
|
return false;
|
|
7899
|
-
if (!(this.
|
|
8023
|
+
if (!(this.y2b_1 === tmp0_other_with_cast.y2b_1))
|
|
7900
8024
|
return false;
|
|
7901
8025
|
return true;
|
|
7902
8026
|
};
|
|
@@ -7904,26 +8028,26 @@ function Coordinates(line, position, idxAndLength) {
|
|
|
7904
8028
|
line = line === VOID ? 1 : line;
|
|
7905
8029
|
position = position === VOID ? 1 : position;
|
|
7906
8030
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
7907
|
-
this.
|
|
7908
|
-
this.
|
|
7909
|
-
this.
|
|
8031
|
+
this.h2a_1 = line;
|
|
8032
|
+
this.i2a_1 = position;
|
|
8033
|
+
this.j2a_1 = idxAndLength;
|
|
7910
8034
|
}
|
|
7911
|
-
protoOf(Coordinates).
|
|
8035
|
+
protoOf(Coordinates).z2b = function (line, position, idxAndLength) {
|
|
7912
8036
|
return new Coordinates(line, position, idxAndLength);
|
|
7913
8037
|
};
|
|
7914
|
-
protoOf(Coordinates).
|
|
7915
|
-
line = line === VOID ? this.
|
|
7916
|
-
position = position === VOID ? this.
|
|
7917
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
7918
|
-
return $super === VOID ? this.
|
|
8038
|
+
protoOf(Coordinates).a2c = function (line, position, idxAndLength, $super) {
|
|
8039
|
+
line = line === VOID ? this.h2a_1 : line;
|
|
8040
|
+
position = position === VOID ? this.i2a_1 : position;
|
|
8041
|
+
idxAndLength = idxAndLength === VOID ? this.j2a_1 : idxAndLength;
|
|
8042
|
+
return $super === VOID ? this.z2b(line, position, idxAndLength) : $super.z2b.call(this, line, position, idxAndLength);
|
|
7919
8043
|
};
|
|
7920
8044
|
protoOf(Coordinates).toString = function () {
|
|
7921
|
-
return 'Coordinates(line=' + this.
|
|
8045
|
+
return 'Coordinates(line=' + this.h2a_1 + ', position=' + this.i2a_1 + ', idxAndLength=' + this.j2a_1.toString() + ')';
|
|
7922
8046
|
};
|
|
7923
8047
|
protoOf(Coordinates).hashCode = function () {
|
|
7924
|
-
var result = this.
|
|
7925
|
-
result = imul(result, 31) + this.
|
|
7926
|
-
result = imul(result, 31) + this.
|
|
8048
|
+
var result = this.h2a_1;
|
|
8049
|
+
result = imul(result, 31) + this.i2a_1 | 0;
|
|
8050
|
+
result = imul(result, 31) + this.j2a_1.hashCode() | 0;
|
|
7927
8051
|
return result;
|
|
7928
8052
|
};
|
|
7929
8053
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -7932,35 +8056,35 @@ protoOf(Coordinates).equals = function (other) {
|
|
|
7932
8056
|
if (!(other instanceof Coordinates))
|
|
7933
8057
|
return false;
|
|
7934
8058
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
7935
|
-
if (!(this.
|
|
8059
|
+
if (!(this.h2a_1 === tmp0_other_with_cast.h2a_1))
|
|
7936
8060
|
return false;
|
|
7937
|
-
if (!(this.
|
|
8061
|
+
if (!(this.i2a_1 === tmp0_other_with_cast.i2a_1))
|
|
7938
8062
|
return false;
|
|
7939
|
-
if (!this.
|
|
8063
|
+
if (!this.j2a_1.equals(tmp0_other_with_cast.j2a_1))
|
|
7940
8064
|
return false;
|
|
7941
8065
|
return true;
|
|
7942
8066
|
};
|
|
7943
8067
|
function Token(value, type, coordinates) {
|
|
7944
|
-
this.
|
|
7945
|
-
this.
|
|
7946
|
-
this.
|
|
8068
|
+
this.e2a_1 = value;
|
|
8069
|
+
this.f2a_1 = type;
|
|
8070
|
+
this.g2a_1 = coordinates;
|
|
7947
8071
|
}
|
|
7948
|
-
protoOf(Token).
|
|
8072
|
+
protoOf(Token).b2c = function (value, type, coordinates) {
|
|
7949
8073
|
return new Token(value, type, coordinates);
|
|
7950
8074
|
};
|
|
7951
|
-
protoOf(Token).
|
|
7952
|
-
value = value === VOID ? this.
|
|
7953
|
-
type = type === VOID ? this.
|
|
7954
|
-
coordinates = coordinates === VOID ? this.
|
|
7955
|
-
return $super === VOID ? this.
|
|
8075
|
+
protoOf(Token).c2c = function (value, type, coordinates, $super) {
|
|
8076
|
+
value = value === VOID ? this.e2a_1 : value;
|
|
8077
|
+
type = type === VOID ? this.f2a_1 : type;
|
|
8078
|
+
coordinates = coordinates === VOID ? this.g2a_1 : coordinates;
|
|
8079
|
+
return $super === VOID ? this.b2c(value, type, coordinates) : $super.b2c.call(this, value, type, coordinates);
|
|
7956
8080
|
};
|
|
7957
8081
|
protoOf(Token).toString = function () {
|
|
7958
|
-
return 'Token(value=' + this.
|
|
8082
|
+
return 'Token(value=' + this.e2a_1 + ', type=' + toString(this.f2a_1) + ', coordinates=' + this.g2a_1.toString() + ')';
|
|
7959
8083
|
};
|
|
7960
8084
|
protoOf(Token).hashCode = function () {
|
|
7961
|
-
var result = getStringHashCode(this.
|
|
7962
|
-
result = imul(result, 31) + hashCode(this.
|
|
7963
|
-
result = imul(result, 31) + this.
|
|
8085
|
+
var result = getStringHashCode(this.e2a_1);
|
|
8086
|
+
result = imul(result, 31) + hashCode(this.f2a_1) | 0;
|
|
8087
|
+
result = imul(result, 31) + this.g2a_1.hashCode() | 0;
|
|
7964
8088
|
return result;
|
|
7965
8089
|
};
|
|
7966
8090
|
protoOf(Token).equals = function (other) {
|
|
@@ -7969,19 +8093,19 @@ protoOf(Token).equals = function (other) {
|
|
|
7969
8093
|
if (!(other instanceof Token))
|
|
7970
8094
|
return false;
|
|
7971
8095
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
7972
|
-
if (!(this.
|
|
8096
|
+
if (!(this.e2a_1 === tmp0_other_with_cast.e2a_1))
|
|
7973
8097
|
return false;
|
|
7974
|
-
if (!equals(this.
|
|
8098
|
+
if (!equals(this.f2a_1, tmp0_other_with_cast.f2a_1))
|
|
7975
8099
|
return false;
|
|
7976
|
-
if (!this.
|
|
8100
|
+
if (!this.g2a_1.equals(tmp0_other_with_cast.g2a_1))
|
|
7977
8101
|
return false;
|
|
7978
8102
|
return true;
|
|
7979
8103
|
};
|
|
7980
8104
|
function plus_2(_this__u8e3s4, length) {
|
|
7981
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
8105
|
+
return new IdxAndLength(_this__u8e3s4.x2b_1 + length | 0, length);
|
|
7982
8106
|
}
|
|
7983
8107
|
function plus_3(_this__u8e3s4, length) {
|
|
7984
|
-
return _this__u8e3s4.
|
|
8108
|
+
return _this__u8e3s4.a2c(VOID, _this__u8e3s4.i2a_1 + length | 0, plus_2(_this__u8e3s4.j2a_1, length));
|
|
7985
8109
|
}
|
|
7986
8110
|
function StartOfProgram() {
|
|
7987
8111
|
}
|
|
@@ -8008,7 +8132,7 @@ function FieldIdentifier_0() {
|
|
|
8008
8132
|
function TypeIdentifier() {
|
|
8009
8133
|
}
|
|
8010
8134
|
function EndOfProgram() {
|
|
8011
|
-
this.
|
|
8135
|
+
this.d2c_1 = 'EOP';
|
|
8012
8136
|
}
|
|
8013
8137
|
protoOf(EndOfProgram).toString = function () {
|
|
8014
8138
|
return 'EndOfProgram';
|
|
@@ -8511,13 +8635,13 @@ function WsBytes_getInstance() {
|
|
|
8511
8635
|
return WsBytes_instance;
|
|
8512
8636
|
}
|
|
8513
8637
|
function WsInteger(precision) {
|
|
8514
|
-
this.
|
|
8638
|
+
this.v2b_1 = precision;
|
|
8515
8639
|
}
|
|
8516
8640
|
protoOf(WsInteger).toString = function () {
|
|
8517
|
-
return 'WsInteger(precision=' + this.
|
|
8641
|
+
return 'WsInteger(precision=' + this.v2b_1.toString() + ')';
|
|
8518
8642
|
};
|
|
8519
8643
|
protoOf(WsInteger).hashCode = function () {
|
|
8520
|
-
return this.
|
|
8644
|
+
return this.v2b_1.hashCode();
|
|
8521
8645
|
};
|
|
8522
8646
|
protoOf(WsInteger).equals = function (other) {
|
|
8523
8647
|
if (this === other)
|
|
@@ -8525,7 +8649,7 @@ protoOf(WsInteger).equals = function (other) {
|
|
|
8525
8649
|
if (!(other instanceof WsInteger))
|
|
8526
8650
|
return false;
|
|
8527
8651
|
var tmp0_other_with_cast = other instanceof WsInteger ? other : THROW_CCE();
|
|
8528
|
-
if (!this.
|
|
8652
|
+
if (!this.v2b_1.equals(tmp0_other_with_cast.v2b_1))
|
|
8529
8653
|
return false;
|
|
8530
8654
|
return true;
|
|
8531
8655
|
};
|
|
@@ -8543,13 +8667,13 @@ function Precision_0(name, ordinal) {
|
|
|
8543
8667
|
Enum.call(this, name, ordinal);
|
|
8544
8668
|
}
|
|
8545
8669
|
function WsNumber(precision) {
|
|
8546
|
-
this.
|
|
8670
|
+
this.w2b_1 = precision;
|
|
8547
8671
|
}
|
|
8548
8672
|
protoOf(WsNumber).toString = function () {
|
|
8549
|
-
return 'WsNumber(precision=' + this.
|
|
8673
|
+
return 'WsNumber(precision=' + this.w2b_1.toString() + ')';
|
|
8550
8674
|
};
|
|
8551
8675
|
protoOf(WsNumber).hashCode = function () {
|
|
8552
|
-
return this.
|
|
8676
|
+
return this.w2b_1.hashCode();
|
|
8553
8677
|
};
|
|
8554
8678
|
protoOf(WsNumber).equals = function (other) {
|
|
8555
8679
|
if (this === other)
|
|
@@ -8557,7 +8681,7 @@ protoOf(WsNumber).equals = function (other) {
|
|
|
8557
8681
|
if (!(other instanceof WsNumber))
|
|
8558
8682
|
return false;
|
|
8559
8683
|
var tmp0_other_with_cast = other instanceof WsNumber ? other : THROW_CCE();
|
|
8560
|
-
if (!this.
|
|
8684
|
+
if (!this.w2b_1.equals(tmp0_other_with_cast.w2b_1))
|
|
8561
8685
|
return false;
|
|
8562
8686
|
return true;
|
|
8563
8687
|
};
|
|
@@ -8751,17 +8875,17 @@ function TokenizeOptions(removeWhitespace, specifyTypes, specifyFieldIdentifiers
|
|
|
8751
8875
|
removeWhitespace = removeWhitespace === VOID ? true : removeWhitespace;
|
|
8752
8876
|
specifyTypes = specifyTypes === VOID ? true : specifyTypes;
|
|
8753
8877
|
specifyFieldIdentifiers = specifyFieldIdentifiers === VOID ? true : specifyFieldIdentifiers;
|
|
8754
|
-
this.
|
|
8755
|
-
this.
|
|
8756
|
-
this.
|
|
8878
|
+
this.e2c_1 = removeWhitespace;
|
|
8879
|
+
this.f2c_1 = specifyTypes;
|
|
8880
|
+
this.g2c_1 = specifyFieldIdentifiers;
|
|
8757
8881
|
}
|
|
8758
8882
|
protoOf(TokenizeOptions).toString = function () {
|
|
8759
|
-
return 'TokenizeOptions(removeWhitespace=' + this.
|
|
8883
|
+
return 'TokenizeOptions(removeWhitespace=' + this.e2c_1 + ', specifyTypes=' + this.f2c_1 + ', specifyFieldIdentifiers=' + this.g2c_1 + ')';
|
|
8760
8884
|
};
|
|
8761
8885
|
protoOf(TokenizeOptions).hashCode = function () {
|
|
8762
|
-
var result = getBooleanHashCode(this.
|
|
8886
|
+
var result = getBooleanHashCode(this.e2c_1);
|
|
8887
|
+
result = imul(result, 31) + getBooleanHashCode(this.f2c_1) | 0;
|
|
8763
8888
|
result = imul(result, 31) + getBooleanHashCode(this.g2c_1) | 0;
|
|
8764
|
-
result = imul(result, 31) + getBooleanHashCode(this.h2c_1) | 0;
|
|
8765
8889
|
return result;
|
|
8766
8890
|
};
|
|
8767
8891
|
protoOf(TokenizeOptions).equals = function (other) {
|
|
@@ -8770,12 +8894,12 @@ protoOf(TokenizeOptions).equals = function (other) {
|
|
|
8770
8894
|
if (!(other instanceof TokenizeOptions))
|
|
8771
8895
|
return false;
|
|
8772
8896
|
var tmp0_other_with_cast = other instanceof TokenizeOptions ? other : THROW_CCE();
|
|
8897
|
+
if (!(this.e2c_1 === tmp0_other_with_cast.e2c_1))
|
|
8898
|
+
return false;
|
|
8773
8899
|
if (!(this.f2c_1 === tmp0_other_with_cast.f2c_1))
|
|
8774
8900
|
return false;
|
|
8775
8901
|
if (!(this.g2c_1 === tmp0_other_with_cast.g2c_1))
|
|
8776
8902
|
return false;
|
|
8777
|
-
if (!(this.h2c_1 === tmp0_other_with_cast.h2c_1))
|
|
8778
|
-
return false;
|
|
8779
8903
|
return true;
|
|
8780
8904
|
};
|
|
8781
8905
|
function optimize(_this__u8e3s4, options) {
|
|
@@ -8787,12 +8911,12 @@ function tokenize_1(_this__u8e3s4, source, incompleteTokens) {
|
|
|
8787
8911
|
var incompleteTokens_0 = incompleteTokens;
|
|
8788
8912
|
$l$1: do {
|
|
8789
8913
|
$l$0: do {
|
|
8790
|
-
var _destruct__k2r9zo = extractToken($this, source_0, last(incompleteTokens_0).
|
|
8914
|
+
var _destruct__k2r9zo = extractToken($this, source_0, last(incompleteTokens_0).g2a_1);
|
|
8791
8915
|
var token = _destruct__k2r9zo.yd();
|
|
8792
8916
|
var remaining = _destruct__k2r9zo.zd();
|
|
8793
8917
|
var tokens = incompleteTokens_0.al(token);
|
|
8794
8918
|
var tmp;
|
|
8795
|
-
if (token.
|
|
8919
|
+
if (token.f2a_1 instanceof EndOfProgram) {
|
|
8796
8920
|
tmp = tokens;
|
|
8797
8921
|
} else {
|
|
8798
8922
|
$this = $this;
|
|
@@ -8810,7 +8934,7 @@ function runOption_0(_this__u8e3s4, bool, block) {
|
|
|
8810
8934
|
return bool ? block(_this__u8e3s4) : _this__u8e3s4;
|
|
8811
8935
|
}
|
|
8812
8936
|
function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
|
|
8813
|
-
var tmp0_subject = _this__u8e3s4.
|
|
8937
|
+
var tmp0_subject = _this__u8e3s4.f2a_1;
|
|
8814
8938
|
var tmp;
|
|
8815
8939
|
if (isInterface(tmp0_subject, FieldIdentifier_0)) {
|
|
8816
8940
|
var tmp$ret$1;
|
|
@@ -8822,7 +8946,7 @@ function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
|
|
|
8822
8946
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyFieldIdentifier.<anonymous>' call
|
|
8823
8947
|
var regex = element.yd();
|
|
8824
8948
|
var variant = element.zd();
|
|
8825
|
-
var result = regex.cc(removeBackticks(_this__u8e3s4.
|
|
8949
|
+
var result = regex.cc(removeBackticks(_this__u8e3s4.e2a_1)) ? _this__u8e3s4.c2c(VOID, variant) : null;
|
|
8826
8950
|
if (!(result == null)) {
|
|
8827
8951
|
tmp$ret$1 = result;
|
|
8828
8952
|
break $l$block;
|
|
@@ -8838,17 +8962,17 @@ function specifyFieldIdentifier(_this__u8e3s4, caseVariants) {
|
|
|
8838
8962
|
return tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
8839
8963
|
}
|
|
8840
8964
|
function specifyType(_this__u8e3s4, entries) {
|
|
8841
|
-
var tmp0_subject = _this__u8e3s4.
|
|
8965
|
+
var tmp0_subject = _this__u8e3s4.f2a_1;
|
|
8842
8966
|
var tmp;
|
|
8843
8967
|
if (isInterface(tmp0_subject, TypeIdentifier)) {
|
|
8844
|
-
var tmp1_safe_receiver = entries.g2(_this__u8e3s4.
|
|
8968
|
+
var tmp1_safe_receiver = entries.g2(_this__u8e3s4.e2a_1);
|
|
8845
8969
|
var tmp_0;
|
|
8846
8970
|
if (tmp1_safe_receiver == null) {
|
|
8847
8971
|
tmp_0 = null;
|
|
8848
8972
|
} else {
|
|
8849
8973
|
// Inline function 'kotlin.let' call
|
|
8850
8974
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.specifyType.<anonymous>' call
|
|
8851
|
-
tmp_0 = _this__u8e3s4.
|
|
8975
|
+
tmp_0 = _this__u8e3s4.c2c(VOID, tmp1_safe_receiver);
|
|
8852
8976
|
}
|
|
8853
8977
|
var tmp2_elvis_lhs = tmp_0;
|
|
8854
8978
|
tmp = tmp2_elvis_lhs == null ? _this__u8e3s4 : tmp2_elvis_lhs;
|
|
@@ -8865,7 +8989,7 @@ function removeWhiteSpace(_this__u8e3s4) {
|
|
|
8865
8989
|
while (_iterator__ex2g4s.h()) {
|
|
8866
8990
|
var element = _iterator__ex2g4s.i();
|
|
8867
8991
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.removeWhiteSpace.<anonymous>' call
|
|
8868
|
-
var tmp = element.
|
|
8992
|
+
var tmp = element.f2a_1;
|
|
8869
8993
|
if (!isInterface(tmp, WhiteSpace)) {
|
|
8870
8994
|
destination.e(element);
|
|
8871
8995
|
}
|
|
@@ -8908,7 +9032,7 @@ function extractToken(_this__u8e3s4, source, previousTokenCoordinates) {
|
|
|
8908
9032
|
} else {
|
|
8909
9033
|
// Inline function 'kotlin.let' call
|
|
8910
9034
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
8911
|
-
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.
|
|
9035
|
+
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.e2a_1));
|
|
8912
9036
|
}
|
|
8913
9037
|
var tmp1_elvis_lhs = tmp;
|
|
8914
9038
|
return tmp1_elvis_lhs == null ? new Pair(endToken(previousTokenCoordinates), '') : tmp1_elvis_lhs;
|
|
@@ -8924,7 +9048,7 @@ function toToken(_this__u8e3s4, type, previousTokenCoordinates) {
|
|
|
8924
9048
|
function nextCoordinates(_this__u8e3s4, type, value) {
|
|
8925
9049
|
var tmp;
|
|
8926
9050
|
if (type instanceof NewLine) {
|
|
8927
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
9051
|
+
tmp = new Coordinates(_this__u8e3s4.h2a_1 + 1 | 0, VOID, plus_2(_this__u8e3s4.j2a_1, value.length));
|
|
8928
9052
|
} else {
|
|
8929
9053
|
tmp = plus_3(_this__u8e3s4, value.length);
|
|
8930
9054
|
}
|
|
@@ -8975,14 +9099,14 @@ function optimize$lambda$lambda_1($this_optimize) {
|
|
|
8975
9099
|
}
|
|
8976
9100
|
function optimize$lambda($options, $this_optimize) {
|
|
8977
9101
|
return function (tokens) {
|
|
8978
|
-
var tmp = runOption_0(tokens, $options.
|
|
8979
|
-
var tmp_0 = runOption_0(tmp, $options.
|
|
8980
|
-
return runOption_0(tmp_0, $options.
|
|
9102
|
+
var tmp = runOption_0(tokens, $options.e2c_1, optimize$lambda$lambda);
|
|
9103
|
+
var tmp_0 = runOption_0(tmp, $options.f2c_1, optimize$lambda$lambda_0($this_optimize));
|
|
9104
|
+
return runOption_0(tmp_0, $options.g2c_1, optimize$lambda$lambda_1($this_optimize));
|
|
8981
9105
|
};
|
|
8982
9106
|
}
|
|
8983
9107
|
function validateEndpoints($this, ast) {
|
|
8984
9108
|
// Inline function 'kotlin.collections.flatMap' call
|
|
8985
|
-
var tmp0 = ast.
|
|
9109
|
+
var tmp0 = ast.r29_1.yk();
|
|
8986
9110
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
8987
9111
|
var destination = ArrayList_init_$Create$_0();
|
|
8988
9112
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -9083,7 +9207,7 @@ function validateEndpoints($this, ast) {
|
|
|
9083
9207
|
}
|
|
9084
9208
|
function validateTypes($this, ast) {
|
|
9085
9209
|
// Inline function 'kotlin.collections.flatMap' call
|
|
9086
|
-
var tmp0 = ast.
|
|
9210
|
+
var tmp0 = ast.r29_1.yk();
|
|
9087
9211
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
9088
9212
|
var destination = ArrayList_init_$Create$_0();
|
|
9089
9213
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -9183,7 +9307,7 @@ function validateTypes($this, ast) {
|
|
|
9183
9307
|
}
|
|
9184
9308
|
function validateChannels($this, ast) {
|
|
9185
9309
|
// Inline function 'kotlin.collections.flatMap' call
|
|
9186
|
-
var tmp0 = ast.
|
|
9310
|
+
var tmp0 = ast.r29_1.yk();
|
|
9187
9311
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
9188
9312
|
var destination = ArrayList_init_$Create$_0();
|
|
9189
9313
|
var _iterator__ex2g4s = tmp0.g();
|
|
@@ -9284,7 +9408,7 @@ function validateChannels($this, ast) {
|
|
|
9284
9408
|
}
|
|
9285
9409
|
function Validator_0() {
|
|
9286
9410
|
}
|
|
9287
|
-
protoOf(Validator_0).
|
|
9411
|
+
protoOf(Validator_0).t2b = function (ast) {
|
|
9288
9412
|
// Inline function 'arrow.core.flatMap' call
|
|
9289
9413
|
// Inline function 'kotlin.contracts.contract' call
|
|
9290
9414
|
var tmp;
|
|
@@ -9563,17 +9687,17 @@ function Logger(logLevel) {
|
|
|
9563
9687
|
}
|
|
9564
9688
|
tmp_5.e23_1 = tmp_6;
|
|
9565
9689
|
}
|
|
9566
|
-
protoOf(Logger).
|
|
9690
|
+
protoOf(Logger).h2c = function () {
|
|
9567
9691
|
return this.b23_1;
|
|
9568
9692
|
};
|
|
9569
|
-
protoOf(Logger).
|
|
9693
|
+
protoOf(Logger).i2c = function () {
|
|
9570
9694
|
return this.c23_1;
|
|
9571
9695
|
};
|
|
9572
9696
|
protoOf(Logger).f23 = function (string) {
|
|
9573
|
-
return logIf(string, this, this.
|
|
9697
|
+
return logIf(string, this, this.h2c());
|
|
9574
9698
|
};
|
|
9575
|
-
protoOf(Logger).
|
|
9576
|
-
return logIf(string, this, this.
|
|
9699
|
+
protoOf(Logger).d2a = function (string) {
|
|
9700
|
+
return logIf(string, this, this.i2c());
|
|
9577
9701
|
};
|
|
9578
9702
|
function NoLogger() {
|
|
9579
9703
|
}
|
|
@@ -9588,7 +9712,7 @@ function _init_properties_Logger_kt__mpqsw() {
|
|
|
9588
9712
|
}
|
|
9589
9713
|
}
|
|
9590
9714
|
//region block: post-declaration
|
|
9591
|
-
protoOf(Emitter).
|
|
9715
|
+
protoOf(Emitter).x29 = notYetImplemented;
|
|
9592
9716
|
//endregion
|
|
9593
9717
|
//region block: init
|
|
9594
9718
|
Spacer_instance = new Spacer();
|