@flock/wirespec 0.8.9 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +294 -294
- package/kotlin-kotlin-stdlib-js-ir.js +6 -6
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-openapi-bindings.js +3283 -3268
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1217 -1217
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +969 -969
- package/package.json +1 -1
- package/wirespec-bin.js +1 -1
- package/wirespec-src-compiler-cli.js +80 -80
- package/wirespec-src-compiler-core.js +352 -349
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +38 -38
- package/wirespec-src-openapi.js +432 -393
- package/wirespec-src-openapi.js.map +1 -1
|
@@ -93,40 +93,40 @@
|
|
|
93
93
|
setMetadataFor(Reported, 'Reported', classMeta, Enum);
|
|
94
94
|
setMetadataFor(Wirespec, 'Wirespec', objectMeta);
|
|
95
95
|
function withLogging(_this__u8e3s4, logger, block) {
|
|
96
|
-
return logger.
|
|
96
|
+
return logger.nl('Emitting Definition: Refined', block);
|
|
97
97
|
}
|
|
98
98
|
function withLogging_0(_this__u8e3s4, logger, block) {
|
|
99
|
-
return logger.
|
|
99
|
+
return logger.nl('Emitting Definition: Refined Validator', block);
|
|
100
100
|
}
|
|
101
|
+
setMetadataFor(RefinedTypeDefinitionEmitterLogger, 'RefinedTypeDefinitionEmitterLogger', interfaceMeta);
|
|
101
102
|
function withLogging_1(_this__u8e3s4, logger, block) {
|
|
102
|
-
return logger.
|
|
103
|
+
return logger.nl('Emitting Definition: Type', block);
|
|
103
104
|
}
|
|
104
105
|
function withLogging_2(_this__u8e3s4, logger, block) {
|
|
105
|
-
return logger.
|
|
106
|
+
return logger.nl('Emitting Definition: Type Shape', block);
|
|
106
107
|
}
|
|
107
108
|
function withLogging_3(_this__u8e3s4, logger, block) {
|
|
108
|
-
return logger.
|
|
109
|
+
return logger.nl('Emitting Definition: Type Shape Field', block);
|
|
109
110
|
}
|
|
110
|
-
setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
|
|
111
111
|
function withLogging_4(_this__u8e3s4, logger, block) {
|
|
112
|
-
return logger.
|
|
112
|
+
return logger.nl('Emitting Definition: Type Shape Field Key', block);
|
|
113
113
|
}
|
|
114
114
|
function withLogging_5(_this__u8e3s4, logger, block) {
|
|
115
|
-
return logger.
|
|
115
|
+
return logger.nl('Emitting Definition: Type Shape Field Value', block);
|
|
116
116
|
}
|
|
117
|
-
setMetadataFor(
|
|
117
|
+
setMetadataFor(TypeDefinitionEmitterLogger, 'TypeDefinitionEmitterLogger', interfaceMeta);
|
|
118
118
|
function withLogging_6(_this__u8e3s4, logger, block) {
|
|
119
|
-
return logger.
|
|
119
|
+
return logger.nl('Emitting Definition: Endpoint', block);
|
|
120
120
|
}
|
|
121
|
+
setMetadataFor(EnumDefinitionEmitterLogger, 'EnumDefinitionEmitterLogger', interfaceMeta);
|
|
121
122
|
function withLogging_7(_this__u8e3s4, logger, block) {
|
|
122
|
-
return logger.
|
|
123
|
+
return logger.nl('Emitting Definition: Endpoint', block);
|
|
123
124
|
}
|
|
124
|
-
setMetadataFor(RefinedTypeDefinitionEmitterLogger, 'RefinedTypeDefinitionEmitterLogger', interfaceMeta);
|
|
125
125
|
function withLogging_8(_this__u8e3s4, logger, block) {
|
|
126
|
-
return logger.
|
|
126
|
+
return logger.nl('Emitting Definition: Endpoint Segment', block);
|
|
127
127
|
}
|
|
128
|
-
setMetadataFor(
|
|
129
|
-
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [
|
|
128
|
+
setMetadataFor(EndpointDefinitionEmitterLogger, 'EndpointDefinitionEmitterLogger', interfaceMeta);
|
|
129
|
+
setMetadataFor(Emitter, 'Emitter', classMeta, VOID, [RefinedTypeDefinitionEmitterLogger, TypeDefinitionEmitterLogger, EnumDefinitionEmitterLogger, EndpointDefinitionEmitterLogger]);
|
|
130
130
|
setMetadataFor(JavaEmitter, 'JavaEmitter', classMeta, Emitter);
|
|
131
131
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
132
132
|
setMetadataFor(KotlinEmitter, 'KotlinEmitter', classMeta, Emitter);
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
}
|
|
1478
1478
|
tmp$ret$1 = tmp0_mapIndexedTo;
|
|
1479
1479
|
tmp$ret$2 = tmp$ret$1;
|
|
1480
|
-
return this$0.xk(joinToString(tmp$ret$2, ''));
|
|
1480
|
+
return this$0.yk(this$0.xk(joinToString(tmp$ret$2, '')));
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
1483
|
function KotlinEmitter$emit$lambda_3($this_emit) {
|
|
@@ -1528,7 +1528,7 @@
|
|
|
1528
1528
|
// Inline function 'kotlin.contracts.contract' call
|
|
1529
1529
|
var tmp$ret$2;
|
|
1530
1530
|
// Inline function 'community.flock.wirespec.compiler.core.emit.KotlinEmitter.emit.<anonymous>.<anonymous>' call
|
|
1531
|
-
tmp$ret$2 = $this_emit.
|
|
1531
|
+
tmp$ret$2 = $this_emit.zk() ? 'Map<String, ' + tmp1_let + '>' : tmp1_let;
|
|
1532
1532
|
tmp$ret$3 = tmp$ret$2;
|
|
1533
1533
|
return tmp$ret$3;
|
|
1534
1534
|
};
|
|
@@ -1872,7 +1872,7 @@
|
|
|
1872
1872
|
}
|
|
1873
1873
|
function KotlinEmitter$emitMap$lambda(this$0) {
|
|
1874
1874
|
return function (it) {
|
|
1875
|
-
return '"' +
|
|
1875
|
+
return '"' + it.lj_1.pj_1 + '" to listOf(' + this$0.oj(it.lj_1) + ')';
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
1878
|
function KotlinEmitter$emit$lambda_8($this_emit) {
|
|
@@ -1977,6 +1977,9 @@
|
|
|
1977
1977
|
protoOf(KotlinEmitter).xk = function (_this__u8e3s4) {
|
|
1978
1978
|
return Companion_getInstance_0().wk_1.j1(_this__u8e3s4) ? '`' + _this__u8e3s4 + '`' : _this__u8e3s4;
|
|
1979
1979
|
};
|
|
1980
|
+
protoOf(KotlinEmitter).yk = function (_this__u8e3s4) {
|
|
1981
|
+
return replace(_this__u8e3s4, '.', '');
|
|
1982
|
+
};
|
|
1980
1983
|
function toField(_this__u8e3s4, identifier, isNullable) {
|
|
1981
1984
|
return new Field(new Identifier(identifier), _this__u8e3s4, isNullable);
|
|
1982
1985
|
}
|
|
@@ -2003,7 +2006,7 @@
|
|
|
2003
2006
|
}
|
|
2004
2007
|
function Companion_0() {
|
|
2005
2008
|
Companion_instance_0 = this;
|
|
2006
|
-
this.
|
|
2009
|
+
this.al_1 = listOf(['abstract', 'case', 'catch', 'class', 'def', 'do', 'else', 'extends', 'false', 'final', 'finally', 'for', 'forSome', 'if', 'implicit', 'import', 'lazy', 'match', 'new', 'null', 'object', 'override', 'package', 'private', 'protected', 'return', 'sealed', 'super', 'this', 'throw', 'trait', 'true', 'try', 'type', 'val', 'var', 'while', 'with', 'yield']);
|
|
2007
2010
|
}
|
|
2008
2011
|
var Companion_instance_0;
|
|
2009
2012
|
function Companion_getInstance_1() {
|
|
@@ -2034,7 +2037,7 @@
|
|
|
2034
2037
|
}
|
|
2035
2038
|
function ScalaEmitter$emit$lambda_2($this_emit) {
|
|
2036
2039
|
return function () {
|
|
2037
|
-
return Companion_getInstance_1().
|
|
2040
|
+
return Companion_getInstance_1().al_1.j1($this_emit.pj_1) ? '`' + $this_emit.pj_1 + '`' : $this_emit.pj_1;
|
|
2038
2041
|
};
|
|
2039
2042
|
}
|
|
2040
2043
|
function ScalaEmitter$emit$lambda_3($this_emit) {
|
|
@@ -2132,8 +2135,8 @@
|
|
|
2132
2135
|
packageName = packageName === VOID ? get_DEFAULT_PACKAGE_NAME() : packageName;
|
|
2133
2136
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2134
2137
|
Emitter.call(this, logger);
|
|
2135
|
-
this.
|
|
2136
|
-
this.
|
|
2138
|
+
this.dl_1 = packageName;
|
|
2139
|
+
this.el_1 = '';
|
|
2137
2140
|
}
|
|
2138
2141
|
protoOf(ScalaEmitter).ci = function (ast) {
|
|
2139
2142
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2147,7 +2150,7 @@
|
|
|
2147
2150
|
// Inline function 'community.flock.wirespec.compiler.core.emit.ScalaEmitter.emit.<anonymous>' call
|
|
2148
2151
|
var name = item.j3();
|
|
2149
2152
|
var result = item.k3();
|
|
2150
|
-
tmp$ret$0 = to(name, isBlank(this.
|
|
2153
|
+
tmp$ret$0 = to(name, isBlank(this.dl_1) ? '' : 'package ' + this.dl_1 + '\n\n' + result);
|
|
2151
2154
|
tmp0_mapTo.a(tmp$ret$0);
|
|
2152
2155
|
}
|
|
2153
2156
|
return tmp0_mapTo;
|
|
@@ -2279,7 +2282,7 @@
|
|
|
2279
2282
|
// Inline function 'kotlin.contracts.contract' call
|
|
2280
2283
|
var tmp$ret$2;
|
|
2281
2284
|
// Inline function 'community.flock.wirespec.compiler.core.emit.TypeScriptEmitter.emit.<anonymous>.<anonymous>' call
|
|
2282
|
-
tmp$ret$2 = $this_emit.
|
|
2285
|
+
tmp$ret$2 = $this_emit.zk() ? 'Record<string, ' + tmp1_let + '>' : tmp1_let;
|
|
2283
2286
|
tmp$ret$3 = tmp$ret$2;
|
|
2284
2287
|
return tmp$ret$3;
|
|
2285
2288
|
};
|
|
@@ -2401,7 +2404,7 @@
|
|
|
2401
2404
|
function TypeScriptEmitter$emit$lambda$lambda_5(this$0, $this_emit) {
|
|
2402
2405
|
return function (it) {
|
|
2403
2406
|
var tmp = Companion_getInstance_2().ck(emitName(it, this$0));
|
|
2404
|
-
var tmp_0 = Companion_getInstance_2().
|
|
2407
|
+
var tmp_0 = Companion_getInstance_2().jl($this_emit, it.ii_1);
|
|
2405
2408
|
var tmp_1 = joinToString(tmp_0, ',', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda$lambda$lambda(this$0));
|
|
2406
2409
|
var tmp_2 = emitPath_1($this_emit.ti_1, this$0);
|
|
2407
2410
|
var tmp_3 = emitMap_1($this_emit.ui_1, this$0);
|
|
@@ -2495,13 +2498,13 @@
|
|
|
2495
2498
|
function TypeScriptEmitter(logger) {
|
|
2496
2499
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2497
2500
|
Emitter.call(this, logger);
|
|
2498
|
-
this.
|
|
2501
|
+
this.hl_1 = '';
|
|
2499
2502
|
var tmp = this;
|
|
2500
2503
|
Companion_getInstance_2();
|
|
2501
2504
|
Companion_getInstance_2();
|
|
2502
2505
|
Companion_getInstance_2();
|
|
2503
2506
|
Companion_getInstance_2();
|
|
2504
|
-
tmp.
|
|
2507
|
+
tmp.il_1 = trimMargin('\n |export namespace WirespecShared {\n |' + ' ' + 'type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + ' ' + 'type Content<T> = { type:string, body:T }\n |' + ' ' + 'export type Request<T> = { path:string, method: Method, query?: Record<string, any[]>, headers?: Record<string, any[]>, content?:Content<T> }\n |' + ' ' + 'export type Response<T> = { status:number, headers?: Record<string, any[]>, content?:Content<T> }\n |}\n ');
|
|
2505
2508
|
}
|
|
2506
2509
|
protoOf(TypeScriptEmitter).ci = function (ast) {
|
|
2507
2510
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2517,7 +2520,7 @@
|
|
|
2517
2520
|
var result = item.k3();
|
|
2518
2521
|
var tmp$ret$0;
|
|
2519
2522
|
// Inline function 'kotlin.text.trimStart' call
|
|
2520
|
-
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_2().gi(ast) ? this.
|
|
2523
|
+
var tmp0_trimStart = trimMargin('\n |' + (Companion_getInstance_2().gi(ast) ? this.il_1 : '') + '\n |' + result + '\n ');
|
|
2521
2524
|
tmp$ret$0 = toString(trimStart(isCharSequence(tmp0_trimStart) ? tmp0_trimStart : THROW_CCE()));
|
|
2522
2525
|
tmp$ret$1 = to(name, tmp$ret$0);
|
|
2523
2526
|
tmp0_mapTo.a(tmp$ret$1);
|
|
@@ -2644,7 +2647,7 @@
|
|
|
2644
2647
|
function WirespecEmitter(logger) {
|
|
2645
2648
|
logger = logger === VOID ? get_noLogger() : logger;
|
|
2646
2649
|
Emitter.call(this, logger);
|
|
2647
|
-
this.
|
|
2650
|
+
this.ml_1 = '';
|
|
2648
2651
|
}
|
|
2649
2652
|
protoOf(WirespecEmitter).ek = function (_this__u8e3s4) {
|
|
2650
2653
|
return this.fk(_this__u8e3s4, this.ai_1, WirespecEmitter$emit$lambda(_this__u8e3s4, this));
|
|
@@ -2748,7 +2751,7 @@
|
|
|
2748
2751
|
}
|
|
2749
2752
|
return tmp$ret$0;
|
|
2750
2753
|
};
|
|
2751
|
-
protoOf(Companion_1).
|
|
2754
|
+
protoOf(Companion_1).jl = function (_this__u8e3s4, content) {
|
|
2752
2755
|
// Inline function 'kotlin.collections.map' call
|
|
2753
2756
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
2754
2757
|
var tmp0_filterIsInstance = _this__u8e3s4.ti_1;
|
|
@@ -2859,7 +2862,7 @@
|
|
|
2859
2862
|
}
|
|
2860
2863
|
function WrongTokenException(expected, actual) {
|
|
2861
2864
|
Companion_getInstance_3();
|
|
2862
|
-
ParserException.call(this, actual.
|
|
2865
|
+
ParserException.call(this, actual.ql_1, '' + expected.kc() + ' expected, not: ' + actual.ol_1.rl() + ' at line ' + actual.ql_1.sl_1 + ' and position ' + (actual.ql_1.tl_1 - actual.pl_1.length | 0));
|
|
2863
2866
|
captureStack(this, WrongTokenException);
|
|
2864
2867
|
}
|
|
2865
2868
|
function NullTokenException(message, coordinates) {
|
|
@@ -2877,15 +2880,15 @@
|
|
|
2877
2880
|
function WirespecException(message, coordinates) {
|
|
2878
2881
|
RuntimeException_init_$Init$(message, this);
|
|
2879
2882
|
captureStack(this, WirespecException);
|
|
2880
|
-
this.
|
|
2883
|
+
this.vl_1 = coordinates;
|
|
2881
2884
|
}
|
|
2882
2885
|
function optimize(_this__u8e3s4) {
|
|
2883
2886
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
2884
2887
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
2885
2888
|
var tmp0_anonymous = _this__u8e3s4.zg_1;
|
|
2886
2889
|
var tmp;
|
|
2887
|
-
if (tmp0_anonymous.
|
|
2888
|
-
tmp = tmp0_anonymous.
|
|
2890
|
+
if (tmp0_anonymous.ol_1 instanceof CustomRegex) {
|
|
2891
|
+
tmp = tmp0_anonymous.wl(VOID, '"' + dropLast(drop(tmp0_anonymous.pl_1, 1), 2) + '"');
|
|
2889
2892
|
} else {
|
|
2890
2893
|
tmp = tmp0_anonymous;
|
|
2891
2894
|
}
|
|
@@ -2900,8 +2903,8 @@
|
|
|
2900
2903
|
var tmp$ret$1;
|
|
2901
2904
|
// Inline function 'community.flock.wirespec.compiler.core.optimize.optimize.<anonymous>' call
|
|
2902
2905
|
var tmp_1;
|
|
2903
|
-
if (item.
|
|
2904
|
-
tmp_1 = item.
|
|
2906
|
+
if (item.ol_1 instanceof CustomRegex) {
|
|
2907
|
+
tmp_1 = item.wl(VOID, '"' + dropLast(drop(item.pl_1, 1), 2) + '"');
|
|
2905
2908
|
} else {
|
|
2906
2909
|
tmp_1 = item;
|
|
2907
2910
|
}
|
|
@@ -2921,25 +2924,25 @@
|
|
|
2921
2924
|
try {
|
|
2922
2925
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
2923
2926
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>' call
|
|
2924
|
-
raise.kh(_this__u8e3s4.
|
|
2925
|
-
$this.
|
|
2927
|
+
raise.kh(_this__u8e3s4.bm());
|
|
2928
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
2926
2929
|
var method = raise.kh(parseEndpointMethod(_this__u8e3s4, $this));
|
|
2927
2930
|
var path = raise.kh(parseEndpointPath(_this__u8e3s4, $this));
|
|
2928
2931
|
// Inline function 'kotlin.also' call
|
|
2929
2932
|
var tmp_0;
|
|
2930
|
-
if (_this__u8e3s4.
|
|
2933
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof LeftCurly) {
|
|
2931
2934
|
tmp_0 = Unit_getInstance();
|
|
2932
2935
|
} else {
|
|
2933
2936
|
var tmp$ret$0;
|
|
2934
2937
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
2935
2938
|
Companion_getInstance_3();
|
|
2936
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
2939
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
2937
2940
|
tmp$ret$0 = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
2938
2941
|
raise.jh(tmp$ret$0);
|
|
2939
2942
|
}
|
|
2940
2943
|
// Inline function 'kotlin.contracts.contract' call
|
|
2941
2944
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointDefinition.<anonymous>.<anonymous>' call
|
|
2942
|
-
raise.kh(_this__u8e3s4.
|
|
2945
|
+
raise.kh(_this__u8e3s4.bm());
|
|
2943
2946
|
var responses = raise.kh(parseEndpointResponses(_this__u8e3s4, $this));
|
|
2944
2947
|
var res = new Endpoint(name, method, path, emptyList(), emptyList(), emptyList(), emptyList(), responses);
|
|
2945
2948
|
raise.hh();
|
|
@@ -2977,12 +2980,12 @@
|
|
|
2977
2980
|
try {
|
|
2978
2981
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
2979
2982
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointMethod.<anonymous>' call
|
|
2980
|
-
$this.
|
|
2983
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
2981
2984
|
// Inline function 'kotlin.also' call
|
|
2982
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2985
|
+
var tmp0_subject = _this__u8e3s4.zl_1.ol_1;
|
|
2983
2986
|
var tmp_0;
|
|
2984
2987
|
if (isInterface(tmp0_subject, Method_0)) {
|
|
2985
|
-
var tmp_1 = _this__u8e3s4.
|
|
2988
|
+
var tmp_1 = _this__u8e3s4.zl_1.ol_1;
|
|
2986
2989
|
var tmp1_subject = isInterface(tmp_1, Method_0) ? tmp_1 : THROW_CCE();
|
|
2987
2990
|
var tmp_2;
|
|
2988
2991
|
if (equals(tmp1_subject, DELETE_getInstance())) {
|
|
@@ -3009,14 +3012,14 @@
|
|
|
3009
3012
|
var tmp$ret$0;
|
|
3010
3013
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3011
3014
|
Companion_getInstance_3();
|
|
3012
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3015
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3013
3016
|
tmp$ret$0 = new WrongTokenException(getKClass(Method_0), tmp1_invoke);
|
|
3014
3017
|
raise.jh(tmp$ret$0);
|
|
3015
3018
|
}
|
|
3016
3019
|
var tmp2_also = tmp_0;
|
|
3017
3020
|
// Inline function 'kotlin.contracts.contract' call
|
|
3018
3021
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointMethod.<anonymous>.<anonymous>' call
|
|
3019
|
-
raise.kh(_this__u8e3s4.
|
|
3022
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3020
3023
|
var res = tmp2_also;
|
|
3021
3024
|
raise.hh();
|
|
3022
3025
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -3053,25 +3056,25 @@
|
|
|
3053
3056
|
try {
|
|
3054
3057
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3055
3058
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointPath.<anonymous>' call
|
|
3056
|
-
$this.
|
|
3059
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3057
3060
|
// Inline function 'kotlin.also' call
|
|
3058
3061
|
var tmp_0;
|
|
3059
|
-
if (_this__u8e3s4.
|
|
3062
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof Path) {
|
|
3060
3063
|
// Inline function 'arrow.core.nel' call
|
|
3061
|
-
var tmp0_nel = new Literal(drop(_this__u8e3s4.
|
|
3064
|
+
var tmp0_nel = new Literal(drop(_this__u8e3s4.zl_1.pl_1, 1));
|
|
3062
3065
|
tmp_0 = nonEmptyListOf(tmp0_nel, []);
|
|
3063
3066
|
} else {
|
|
3064
3067
|
var tmp$ret$1;
|
|
3065
3068
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3066
3069
|
Companion_getInstance_3();
|
|
3067
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
3070
|
+
var tmp2_invoke = _this__u8e3s4.zl_1;
|
|
3068
3071
|
tmp$ret$1 = new WrongTokenException(getKClass(Path), tmp2_invoke);
|
|
3069
3072
|
raise.jh(tmp$ret$1);
|
|
3070
3073
|
}
|
|
3071
3074
|
var tmp3_also = tmp_0;
|
|
3072
3075
|
// Inline function 'kotlin.contracts.contract' call
|
|
3073
3076
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointPath.<anonymous>.<anonymous>' call
|
|
3074
|
-
raise.kh(_this__u8e3s4.
|
|
3077
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3075
3078
|
var res = tmp3_also;
|
|
3076
3079
|
raise.hh();
|
|
3077
3080
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -3108,40 +3111,40 @@
|
|
|
3108
3111
|
try {
|
|
3109
3112
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3110
3113
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>' call
|
|
3111
|
-
$this.
|
|
3114
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3112
3115
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
3113
3116
|
var responses = ArrayList_init_$Create$();
|
|
3114
3117
|
$l$loop: while (true) {
|
|
3115
|
-
var tmp_0 = _this__u8e3s4.
|
|
3118
|
+
var tmp_0 = _this__u8e3s4.zl_1.ol_1;
|
|
3116
3119
|
if (!!(tmp_0 instanceof RightCurly)) {
|
|
3117
3120
|
break $l$loop;
|
|
3118
3121
|
}
|
|
3119
|
-
if (_this__u8e3s4.
|
|
3120
|
-
responses.a(raise.kh(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.
|
|
3122
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof StatusCode) {
|
|
3123
|
+
responses.a(raise.kh(parseEndpointResponse(_this__u8e3s4, $this, _this__u8e3s4.zl_1.pl_1)));
|
|
3121
3124
|
} else {
|
|
3122
3125
|
var tmp$ret$1;
|
|
3123
3126
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3124
3127
|
Companion_getInstance_3();
|
|
3125
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3128
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3126
3129
|
tmp$ret$1 = new WrongTokenException(getKClass(StatusCode), tmp1_invoke);
|
|
3127
3130
|
raise.jh(tmp$ret$1);
|
|
3128
3131
|
}
|
|
3129
3132
|
}
|
|
3130
3133
|
// Inline function 'kotlin.also' call
|
|
3131
3134
|
var tmp_1;
|
|
3132
|
-
if (_this__u8e3s4.
|
|
3135
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof RightCurly) {
|
|
3133
3136
|
tmp_1 = Unit_getInstance();
|
|
3134
3137
|
} else {
|
|
3135
3138
|
var tmp$ret$2;
|
|
3136
3139
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3137
3140
|
Companion_getInstance_3();
|
|
3138
|
-
var tmp3_invoke = _this__u8e3s4.
|
|
3141
|
+
var tmp3_invoke = _this__u8e3s4.zl_1;
|
|
3139
3142
|
tmp$ret$2 = new WrongTokenException(getKClass(RightCurly), tmp3_invoke);
|
|
3140
3143
|
raise.jh(tmp$ret$2);
|
|
3141
3144
|
}
|
|
3142
3145
|
// Inline function 'kotlin.contracts.contract' call
|
|
3143
3146
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponses.<anonymous>.<anonymous>' call
|
|
3144
|
-
raise.kh(_this__u8e3s4.
|
|
3147
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3145
3148
|
var res = toList(responses);
|
|
3146
3149
|
raise.hh();
|
|
3147
3150
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -3178,28 +3181,28 @@
|
|
|
3178
3181
|
try {
|
|
3179
3182
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3180
3183
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpointResponse.<anonymous>' call
|
|
3181
|
-
raise.kh(_this__u8e3s4.
|
|
3182
|
-
$this.
|
|
3183
|
-
if (!(_this__u8e3s4.
|
|
3184
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3185
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3186
|
+
if (!(_this__u8e3s4.zl_1.ol_1 instanceof Arrow)) {
|
|
3184
3187
|
var tmp$ret$0;
|
|
3185
3188
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3186
3189
|
Companion_getInstance_3();
|
|
3187
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3190
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3188
3191
|
tmp$ret$0 = new WrongTokenException(getKClass(Arrow), tmp1_invoke);
|
|
3189
3192
|
raise.jh(tmp$ret$0);
|
|
3190
3193
|
}
|
|
3191
|
-
raise.kh(_this__u8e3s4.
|
|
3192
|
-
$this.
|
|
3193
|
-
var tmp1_subject = _this__u8e3s4.
|
|
3194
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3195
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3196
|
+
var tmp1_subject = _this__u8e3s4.zl_1.ol_1;
|
|
3194
3197
|
var tmp_0;
|
|
3195
3198
|
if (isInterface(tmp1_subject, WirespecType)) {
|
|
3196
|
-
var tmp_1 = _this__u8e3s4.
|
|
3197
|
-
tmp_0 = raise.kh(parseContent(_this__u8e3s4, $this, isInterface(tmp_1, WirespecType) ? tmp_1 : THROW_CCE(), _this__u8e3s4.
|
|
3199
|
+
var tmp_1 = _this__u8e3s4.zl_1.ol_1;
|
|
3200
|
+
tmp_0 = raise.kh(parseContent(_this__u8e3s4, $this, isInterface(tmp_1, WirespecType) ? tmp_1 : THROW_CCE(), _this__u8e3s4.zl_1.pl_1));
|
|
3198
3201
|
} else {
|
|
3199
3202
|
var tmp$ret$1;
|
|
3200
3203
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3201
3204
|
Companion_getInstance_3();
|
|
3202
|
-
var tmp3_invoke = _this__u8e3s4.
|
|
3205
|
+
var tmp3_invoke = _this__u8e3s4.zl_1;
|
|
3203
3206
|
tmp$ret$1 = new WrongTokenException(getKClass(WirespecType), tmp3_invoke);
|
|
3204
3207
|
raise.jh(tmp$ret$1);
|
|
3205
3208
|
}
|
|
@@ -3240,15 +3243,15 @@
|
|
|
3240
3243
|
try {
|
|
3241
3244
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3242
3245
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseContent.<anonymous>' call
|
|
3243
|
-
raise.kh(_this__u8e3s4.
|
|
3244
|
-
$this.
|
|
3246
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3247
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3245
3248
|
// Inline function 'kotlin.also' call
|
|
3246
|
-
var tmp_0 = _this__u8e3s4.
|
|
3249
|
+
var tmp_0 = _this__u8e3s4.zl_1.ol_1;
|
|
3247
3250
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
3248
3251
|
// Inline function 'kotlin.contracts.contract' call
|
|
3249
3252
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseContent.<anonymous>.<anonymous>' call
|
|
3250
3253
|
if (tmp0_also)
|
|
3251
|
-
raise.kh(_this__u8e3s4.
|
|
3254
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3252
3255
|
var isIterable = tmp0_also;
|
|
3253
3256
|
var tmp_1;
|
|
3254
3257
|
if (wsType instanceof WsString) {
|
|
@@ -3297,7 +3300,7 @@
|
|
|
3297
3300
|
function EndpointParser(logger) {
|
|
3298
3301
|
AbstractParser.call(this, logger);
|
|
3299
3302
|
}
|
|
3300
|
-
protoOf(EndpointParser).
|
|
3303
|
+
protoOf(EndpointParser).fm = function (_this__u8e3s4) {
|
|
3301
3304
|
// Inline function 'arrow.core.raise.either' call
|
|
3302
3305
|
// Inline function 'arrow.core.raise.fold' call
|
|
3303
3306
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3308,20 +3311,20 @@
|
|
|
3308
3311
|
try {
|
|
3309
3312
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3310
3313
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>' call
|
|
3311
|
-
raise.kh(_this__u8e3s4.
|
|
3312
|
-
this.
|
|
3314
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3315
|
+
this.dm(_this__u8e3s4.zl_1);
|
|
3313
3316
|
var tmp_0;
|
|
3314
|
-
if (_this__u8e3s4.
|
|
3315
|
-
tmp_0 = raise.kh(parseEndpointDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
3317
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomType) {
|
|
3318
|
+
tmp_0 = raise.kh(parseEndpointDefinition(_this__u8e3s4, this, _this__u8e3s4.zl_1.pl_1));
|
|
3316
3319
|
} else {
|
|
3317
3320
|
// Inline function 'kotlin.also' call
|
|
3318
3321
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3319
3322
|
Companion_getInstance_3();
|
|
3320
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3323
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3321
3324
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
3322
3325
|
// Inline function 'kotlin.contracts.contract' call
|
|
3323
3326
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EndpointParser.parseEndpoint.<anonymous>.<anonymous>' call
|
|
3324
|
-
raise.kh(_this__u8e3s4.
|
|
3327
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3325
3328
|
raise.jh(tmp2_also);
|
|
3326
3329
|
}
|
|
3327
3330
|
var res = tmp_0;
|
|
@@ -3360,37 +3363,37 @@
|
|
|
3360
3363
|
try {
|
|
3361
3364
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3362
3365
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>' call
|
|
3363
|
-
raise.kh(_this__u8e3s4.
|
|
3364
|
-
$this.
|
|
3366
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3367
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3365
3368
|
// Inline function 'kotlin.also' call
|
|
3366
3369
|
var tmp_0;
|
|
3367
|
-
if (_this__u8e3s4.
|
|
3370
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof LeftCurly) {
|
|
3368
3371
|
tmp_0 = new Enum_0(typeName, raise.kh(parseEnumTypeEntries(_this__u8e3s4, $this)));
|
|
3369
3372
|
} else {
|
|
3370
3373
|
// Inline function 'kotlin.also' call
|
|
3371
3374
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3372
3375
|
Companion_getInstance_3();
|
|
3373
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3376
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3374
3377
|
var tmp2_also = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
3375
3378
|
// Inline function 'kotlin.contracts.contract' call
|
|
3376
3379
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
3377
|
-
raise.kh(_this__u8e3s4.
|
|
3380
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3378
3381
|
raise.jh(tmp2_also);
|
|
3379
3382
|
}
|
|
3380
3383
|
var tmp3_also = tmp_0;
|
|
3381
3384
|
// Inline function 'kotlin.contracts.contract' call
|
|
3382
3385
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>' call
|
|
3383
|
-
if (_this__u8e3s4.
|
|
3384
|
-
raise.kh(_this__u8e3s4.
|
|
3386
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof RightCurly)
|
|
3387
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3385
3388
|
else {
|
|
3386
3389
|
// Inline function 'kotlin.also' call
|
|
3387
3390
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3388
3391
|
Companion_getInstance_3();
|
|
3389
|
-
var tmp1_invoke_0 = _this__u8e3s4.
|
|
3392
|
+
var tmp1_invoke_0 = _this__u8e3s4.zl_1;
|
|
3390
3393
|
var tmp2_also_0 = new WrongTokenException(getKClass(RightCurly), tmp1_invoke_0);
|
|
3391
3394
|
// Inline function 'kotlin.contracts.contract' call
|
|
3392
3395
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
3393
|
-
raise.kh(_this__u8e3s4.
|
|
3396
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3394
3397
|
raise.jh(tmp2_also_0);
|
|
3395
3398
|
}
|
|
3396
3399
|
var res = tmp3_also;
|
|
@@ -3429,34 +3432,34 @@
|
|
|
3429
3432
|
try {
|
|
3430
3433
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3431
3434
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>' call
|
|
3432
|
-
raise.kh(_this__u8e3s4.
|
|
3433
|
-
$this.
|
|
3435
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3436
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3434
3437
|
var tmp_0;
|
|
3435
|
-
if (_this__u8e3s4.
|
|
3438
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomType) {
|
|
3436
3439
|
// Inline function 'kotlin.apply' call
|
|
3437
3440
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
3438
3441
|
var tmp0_apply = ArrayList_init_$Create$();
|
|
3439
3442
|
// Inline function 'kotlin.contracts.contract' call
|
|
3440
3443
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
3441
|
-
tmp0_apply.a(_this__u8e3s4.
|
|
3442
|
-
raise.kh(_this__u8e3s4.
|
|
3443
|
-
while (equals(_this__u8e3s4.
|
|
3444
|
-
raise.kh(_this__u8e3s4.
|
|
3445
|
-
if (_this__u8e3s4.
|
|
3444
|
+
tmp0_apply.a(_this__u8e3s4.zl_1.pl_1);
|
|
3445
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3446
|
+
while (equals(_this__u8e3s4.zl_1.ol_1, Comma_getInstance())) {
|
|
3447
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3448
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomType) {
|
|
3446
3449
|
// Inline function 'kotlin.also' call
|
|
3447
|
-
tmp0_apply.a(_this__u8e3s4.
|
|
3450
|
+
tmp0_apply.a(_this__u8e3s4.zl_1.pl_1);
|
|
3448
3451
|
// Inline function 'kotlin.contracts.contract' call
|
|
3449
3452
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
3450
|
-
raise.kh(_this__u8e3s4.
|
|
3453
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3451
3454
|
} else {
|
|
3452
3455
|
// Inline function 'kotlin.also' call
|
|
3453
3456
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3454
3457
|
Companion_getInstance_3();
|
|
3455
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
3458
|
+
var tmp2_invoke = _this__u8e3s4.zl_1;
|
|
3456
3459
|
var tmp3_also = new WrongTokenException(getKClass(CustomType), tmp2_invoke);
|
|
3457
3460
|
// Inline function 'kotlin.contracts.contract' call
|
|
3458
3461
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>.<anonymous>' call
|
|
3459
|
-
raise.kh(_this__u8e3s4.
|
|
3462
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3460
3463
|
raise.jh(tmp3_also);
|
|
3461
3464
|
}
|
|
3462
3465
|
}
|
|
@@ -3465,11 +3468,11 @@
|
|
|
3465
3468
|
// Inline function 'kotlin.also' call
|
|
3466
3469
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3467
3470
|
Companion_getInstance_3();
|
|
3468
|
-
var tmp2_invoke_0 = _this__u8e3s4.
|
|
3471
|
+
var tmp2_invoke_0 = _this__u8e3s4.zl_1;
|
|
3469
3472
|
var tmp3_also_0 = new WrongTokenException(getKClass(CustomType), tmp2_invoke_0);
|
|
3470
3473
|
// Inline function 'kotlin.contracts.contract' call
|
|
3471
3474
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnumTypeEntries.<anonymous>.<anonymous>' call
|
|
3472
|
-
raise.kh(_this__u8e3s4.
|
|
3475
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3473
3476
|
raise.jh(tmp3_also_0);
|
|
3474
3477
|
}
|
|
3475
3478
|
var res = toSet(tmp_0);
|
|
@@ -3500,7 +3503,7 @@
|
|
|
3500
3503
|
function EnumParser(logger) {
|
|
3501
3504
|
AbstractParser.call(this, logger);
|
|
3502
3505
|
}
|
|
3503
|
-
protoOf(EnumParser).
|
|
3506
|
+
protoOf(EnumParser).hm = function (_this__u8e3s4) {
|
|
3504
3507
|
// Inline function 'arrow.core.raise.either' call
|
|
3505
3508
|
// Inline function 'arrow.core.raise.fold' call
|
|
3506
3509
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3511,20 +3514,20 @@
|
|
|
3511
3514
|
try {
|
|
3512
3515
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3513
3516
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>' call
|
|
3514
|
-
raise.kh(_this__u8e3s4.
|
|
3515
|
-
this.
|
|
3517
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3518
|
+
this.dm(_this__u8e3s4.zl_1);
|
|
3516
3519
|
var tmp_0;
|
|
3517
|
-
if (_this__u8e3s4.
|
|
3518
|
-
tmp_0 = raise.kh(parseEnumTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
3520
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomType) {
|
|
3521
|
+
tmp_0 = raise.kh(parseEnumTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.zl_1.pl_1));
|
|
3519
3522
|
} else {
|
|
3520
3523
|
// Inline function 'kotlin.also' call
|
|
3521
3524
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3522
3525
|
Companion_getInstance_3();
|
|
3523
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3526
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3524
3527
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
3525
3528
|
// Inline function 'kotlin.contracts.contract' call
|
|
3526
3529
|
// Inline function 'community.flock.wirespec.compiler.core.parse.EnumParser.parseEnum.<anonymous>.<anonymous>' call
|
|
3527
|
-
raise.kh(_this__u8e3s4.
|
|
3530
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3528
3531
|
raise.jh(tmp2_also);
|
|
3529
3532
|
}
|
|
3530
3533
|
var res = tmp_0;
|
|
@@ -3643,11 +3646,11 @@
|
|
|
3643
3646
|
try {
|
|
3644
3647
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3645
3648
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>' call
|
|
3646
|
-
$this.
|
|
3647
|
-
var tmp0_subject = _this__u8e3s4.
|
|
3649
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3650
|
+
var tmp0_subject = _this__u8e3s4.zl_1.ol_1;
|
|
3648
3651
|
var tmp_0;
|
|
3649
3652
|
if (isInterface(tmp0_subject, WirespecDefinition)) {
|
|
3650
|
-
var tmp_1 = _this__u8e3s4.
|
|
3653
|
+
var tmp_1 = _this__u8e3s4.zl_1.ol_1;
|
|
3651
3654
|
var tmp1_subject = isInterface(tmp_1, WirespecDefinition) ? tmp_1 : THROW_CCE();
|
|
3652
3655
|
var tmp_2;
|
|
3653
3656
|
if (tmp1_subject instanceof WsTypeDef) {
|
|
@@ -3655,7 +3658,7 @@
|
|
|
3655
3658
|
// Inline function 'kotlin.with' call
|
|
3656
3659
|
// Inline function 'kotlin.contracts.contract' call
|
|
3657
3660
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3658
|
-
tmp$ret$1 = $this.vh_1.
|
|
3661
|
+
tmp$ret$1 = $this.vh_1.lm(_this__u8e3s4);
|
|
3659
3662
|
tmp_2 = raise.kh(tmp$ret$1);
|
|
3660
3663
|
} else {
|
|
3661
3664
|
if (tmp1_subject instanceof WsEnumTypeDef) {
|
|
@@ -3663,7 +3666,7 @@
|
|
|
3663
3666
|
// Inline function 'kotlin.with' call
|
|
3664
3667
|
// Inline function 'kotlin.contracts.contract' call
|
|
3665
3668
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3666
|
-
tmp$ret$3 = $this.wh_1.
|
|
3669
|
+
tmp$ret$3 = $this.wh_1.hm(_this__u8e3s4);
|
|
3667
3670
|
tmp_2 = raise.kh(tmp$ret$3);
|
|
3668
3671
|
} else {
|
|
3669
3672
|
if (tmp1_subject instanceof WsRefinedTypeDef) {
|
|
@@ -3671,7 +3674,7 @@
|
|
|
3671
3674
|
// Inline function 'kotlin.with' call
|
|
3672
3675
|
// Inline function 'kotlin.contracts.contract' call
|
|
3673
3676
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3674
|
-
tmp$ret$5 = $this.xh_1.
|
|
3677
|
+
tmp$ret$5 = $this.xh_1.jm(_this__u8e3s4);
|
|
3675
3678
|
tmp_2 = raise.kh(tmp$ret$5);
|
|
3676
3679
|
} else {
|
|
3677
3680
|
if (tmp1_subject instanceof WsEndpointDef) {
|
|
@@ -3679,7 +3682,7 @@
|
|
|
3679
3682
|
// Inline function 'kotlin.with' call
|
|
3680
3683
|
// Inline function 'kotlin.contracts.contract' call
|
|
3681
3684
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3682
|
-
tmp$ret$7 = $this.yh_1.
|
|
3685
|
+
tmp$ret$7 = $this.yh_1.fm(_this__u8e3s4);
|
|
3683
3686
|
tmp_2 = raise.kh(tmp$ret$7);
|
|
3684
3687
|
} else {
|
|
3685
3688
|
noWhenBranchMatchedException();
|
|
@@ -3692,11 +3695,11 @@
|
|
|
3692
3695
|
// Inline function 'kotlin.also' call
|
|
3693
3696
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3694
3697
|
Companion_getInstance_3();
|
|
3695
|
-
var tmp5_invoke = _this__u8e3s4.
|
|
3698
|
+
var tmp5_invoke = _this__u8e3s4.zl_1;
|
|
3696
3699
|
var tmp6_also = new WrongTokenException(getKClass(WirespecDefinition), tmp5_invoke);
|
|
3697
3700
|
// Inline function 'kotlin.contracts.contract' call
|
|
3698
3701
|
// Inline function 'community.flock.wirespec.compiler.core.parse.Parser.parseDefinition.<anonymous>.<anonymous>' call
|
|
3699
|
-
raise.kh(_this__u8e3s4.
|
|
3702
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3700
3703
|
raise.jh(tmp6_also);
|
|
3701
3704
|
}
|
|
3702
3705
|
var res = tmp_0;
|
|
@@ -3732,13 +3735,13 @@
|
|
|
3732
3735
|
this.yh_1 = new EndpointParser(logger);
|
|
3733
3736
|
}
|
|
3734
3737
|
protoOf(Parser).zh = function (tokens) {
|
|
3735
|
-
return parse(toProvider(removeWhiteSpace(tokens), this.
|
|
3738
|
+
return parse(toProvider(removeWhiteSpace(tokens), this.cm_1), this);
|
|
3736
3739
|
};
|
|
3737
3740
|
function AbstractParser(logger) {
|
|
3738
|
-
this.
|
|
3741
|
+
this.cm_1 = logger;
|
|
3739
3742
|
}
|
|
3740
|
-
protoOf(AbstractParser).
|
|
3741
|
-
return this.
|
|
3743
|
+
protoOf(AbstractParser).dm = function (_this__u8e3s4) {
|
|
3744
|
+
return this.cm_1.qh('Parsing ' + _this__u8e3s4.ol_1 + ' at line ' + _this__u8e3s4.ql_1.sl_1 + ' position ' + _this__u8e3s4.ql_1.tl_1);
|
|
3742
3745
|
};
|
|
3743
3746
|
function parseCustomRegex(_this__u8e3s4, $this, typeName) {
|
|
3744
3747
|
// Inline function 'arrow.core.raise.either' call
|
|
@@ -3751,27 +3754,27 @@
|
|
|
3751
3754
|
try {
|
|
3752
3755
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3753
3756
|
// Inline function 'community.flock.wirespec.compiler.core.parse.RefinedTypeParser.parseCustomRegex.<anonymous>' call
|
|
3754
|
-
raise.kh(_this__u8e3s4.
|
|
3755
|
-
$this.
|
|
3757
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3758
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3756
3759
|
// Inline function 'kotlin.also' call
|
|
3757
3760
|
var tmp_0;
|
|
3758
|
-
if (_this__u8e3s4.
|
|
3759
|
-
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.
|
|
3761
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomRegex) {
|
|
3762
|
+
tmp_0 = new Refined(typeName, new Validator(_this__u8e3s4.zl_1.pl_1));
|
|
3760
3763
|
} else {
|
|
3761
3764
|
// Inline function 'kotlin.also' call
|
|
3762
3765
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3763
3766
|
Companion_getInstance_3();
|
|
3764
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3767
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3765
3768
|
var tmp2_also = new WrongTokenException(getKClass(CustomRegex), tmp1_invoke);
|
|
3766
3769
|
// Inline function 'kotlin.contracts.contract' call
|
|
3767
3770
|
// Inline function 'community.flock.wirespec.compiler.core.parse.RefinedTypeParser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
3768
|
-
raise.kh(_this__u8e3s4.
|
|
3771
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3769
3772
|
raise.jh(tmp2_also);
|
|
3770
3773
|
}
|
|
3771
3774
|
var tmp3_also = tmp_0;
|
|
3772
3775
|
// Inline function 'kotlin.contracts.contract' call
|
|
3773
3776
|
// Inline function 'community.flock.wirespec.compiler.core.parse.RefinedTypeParser.parseCustomRegex.<anonymous>.<anonymous>' call
|
|
3774
|
-
raise.kh(_this__u8e3s4.
|
|
3777
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3775
3778
|
var res = tmp3_also;
|
|
3776
3779
|
raise.hh();
|
|
3777
3780
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
@@ -3800,7 +3803,7 @@
|
|
|
3800
3803
|
function RefinedTypeParser(logger) {
|
|
3801
3804
|
AbstractParser.call(this, logger);
|
|
3802
3805
|
}
|
|
3803
|
-
protoOf(RefinedTypeParser).
|
|
3806
|
+
protoOf(RefinedTypeParser).jm = function (_this__u8e3s4) {
|
|
3804
3807
|
// Inline function 'arrow.core.raise.either' call
|
|
3805
3808
|
// Inline function 'arrow.core.raise.fold' call
|
|
3806
3809
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3811,20 +3814,20 @@
|
|
|
3811
3814
|
try {
|
|
3812
3815
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3813
3816
|
// Inline function 'community.flock.wirespec.compiler.core.parse.RefinedTypeParser.parseRefinedType.<anonymous>' call
|
|
3814
|
-
raise.kh(_this__u8e3s4.
|
|
3815
|
-
this.
|
|
3817
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3818
|
+
this.dm(_this__u8e3s4.zl_1);
|
|
3816
3819
|
var tmp_0;
|
|
3817
|
-
if (_this__u8e3s4.
|
|
3818
|
-
tmp_0 = raise.kh(parseCustomRegex(_this__u8e3s4, this, _this__u8e3s4.
|
|
3820
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomType) {
|
|
3821
|
+
tmp_0 = raise.kh(parseCustomRegex(_this__u8e3s4, this, _this__u8e3s4.zl_1.pl_1));
|
|
3819
3822
|
} else {
|
|
3820
3823
|
// Inline function 'kotlin.also' call
|
|
3821
3824
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
3822
3825
|
Companion_getInstance_3();
|
|
3823
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
3826
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
3824
3827
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
3825
3828
|
// Inline function 'kotlin.contracts.contract' call
|
|
3826
3829
|
// Inline function 'community.flock.wirespec.compiler.core.parse.RefinedTypeParser.parseRefinedType.<anonymous>.<anonymous>' call
|
|
3827
|
-
raise.kh(_this__u8e3s4.
|
|
3830
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3828
3831
|
raise.jh(tmp2_also);
|
|
3829
3832
|
}
|
|
3830
3833
|
var res = tmp_0;
|
|
@@ -3860,15 +3863,15 @@
|
|
|
3860
3863
|
// Inline function 'kotlin.run' call
|
|
3861
3864
|
// Inline function 'kotlin.contracts.contract' call
|
|
3862
3865
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
3863
|
-
tmp = "Eating: '" + previousToken.
|
|
3866
|
+
tmp = "Eating: '" + previousToken.pl_1 + "', ";
|
|
3864
3867
|
}
|
|
3865
3868
|
var tmp1_elvis_lhs = tmp;
|
|
3866
3869
|
var prev = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
3867
3870
|
// Inline function 'kotlin.run' call
|
|
3868
3871
|
// Inline function 'kotlin.contracts.contract' call
|
|
3869
3872
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
3870
|
-
var curr = "Current: '" + $this.
|
|
3871
|
-
var tmp2_safe_receiver = $this.
|
|
3873
|
+
var curr = "Current: '" + $this.zl_1.pl_1 + "'";
|
|
3874
|
+
var tmp2_safe_receiver = $this.am_1;
|
|
3872
3875
|
var tmp_0;
|
|
3873
3876
|
if (tmp2_safe_receiver == null) {
|
|
3874
3877
|
tmp_0 = null;
|
|
@@ -3876,11 +3879,11 @@
|
|
|
3876
3879
|
// Inline function 'kotlin.run' call
|
|
3877
3880
|
// Inline function 'kotlin.contracts.contract' call
|
|
3878
3881
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.printTokens.<anonymous>' call
|
|
3879
|
-
tmp_0 = ", Next: '" + tmp2_safe_receiver.
|
|
3882
|
+
tmp_0 = ", Next: '" + tmp2_safe_receiver.pl_1 + "'";
|
|
3880
3883
|
}
|
|
3881
3884
|
var tmp3_elvis_lhs = tmp_0;
|
|
3882
3885
|
var next = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
3883
|
-
$this.
|
|
3886
|
+
$this.xl_1.qh(prev + curr + next);
|
|
3884
3887
|
}
|
|
3885
3888
|
function printTokens$default($this, previousToken, $super) {
|
|
3886
3889
|
previousToken = previousToken === VOID ? null : previousToken;
|
|
@@ -3894,7 +3897,7 @@
|
|
|
3894
3897
|
// Inline function 'kotlin.Companion.success' call
|
|
3895
3898
|
Companion_getInstance();
|
|
3896
3899
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TokenProvider.nextToken.<anonymous>' call
|
|
3897
|
-
var tmp1_success = $this.
|
|
3900
|
+
var tmp1_success = $this.yl_1.e();
|
|
3898
3901
|
tmp = _Result___init__impl__xyqfz8(tmp1_success);
|
|
3899
3902
|
} catch ($p) {
|
|
3900
3903
|
var tmp_0;
|
|
@@ -3919,16 +3922,16 @@
|
|
|
3919
3922
|
return tmp_1;
|
|
3920
3923
|
}
|
|
3921
3924
|
function TokenProvider(logger, tokenIterator) {
|
|
3922
|
-
this.
|
|
3923
|
-
this.
|
|
3924
|
-
this.
|
|
3925
|
-
this.
|
|
3925
|
+
this.xl_1 = logger;
|
|
3926
|
+
this.yl_1 = tokenIterator;
|
|
3927
|
+
this.zl_1 = ensureNotNull(nextToken(this));
|
|
3928
|
+
this.am_1 = nextToken(this);
|
|
3926
3929
|
printTokens$default(this);
|
|
3927
3930
|
}
|
|
3928
3931
|
protoOf(TokenProvider).d = function () {
|
|
3929
|
-
return !(this.
|
|
3932
|
+
return !(this.am_1 == null);
|
|
3930
3933
|
};
|
|
3931
|
-
protoOf(TokenProvider).
|
|
3934
|
+
protoOf(TokenProvider).bm = function () {
|
|
3932
3935
|
// Inline function 'arrow.core.raise.either' call
|
|
3933
3936
|
// Inline function 'arrow.core.raise.fold' call
|
|
3934
3937
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -3938,17 +3941,17 @@
|
|
|
3938
3941
|
var tmp;
|
|
3939
3942
|
try {
|
|
3940
3943
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3941
|
-
var previousToken = this.
|
|
3944
|
+
var previousToken = this.zl_1;
|
|
3942
3945
|
var tmp_0 = this;
|
|
3943
|
-
var tmp0_elvis_lhs = this.
|
|
3946
|
+
var tmp0_elvis_lhs = this.am_1;
|
|
3944
3947
|
var tmp_1;
|
|
3945
3948
|
if (tmp0_elvis_lhs == null) {
|
|
3946
|
-
raise.jh(new NextException(previousToken.
|
|
3949
|
+
raise.jh(new NextException(previousToken.ql_1));
|
|
3947
3950
|
} else {
|
|
3948
3951
|
tmp_1 = tmp0_elvis_lhs;
|
|
3949
3952
|
}
|
|
3950
|
-
tmp_0.
|
|
3951
|
-
this.
|
|
3953
|
+
tmp_0.zl_1 = tmp_1;
|
|
3954
|
+
this.am_1 = nextToken(this);
|
|
3952
3955
|
printTokens(this, previousToken);
|
|
3953
3956
|
var res = Unit_getInstance();
|
|
3954
3957
|
raise.hh();
|
|
@@ -3989,37 +3992,37 @@
|
|
|
3989
3992
|
try {
|
|
3990
3993
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
3991
3994
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>' call
|
|
3992
|
-
raise.kh(_this__u8e3s4.
|
|
3993
|
-
$this.
|
|
3995
|
+
raise.kh(_this__u8e3s4.bm());
|
|
3996
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
3994
3997
|
// Inline function 'kotlin.also' call
|
|
3995
3998
|
var tmp_0;
|
|
3996
|
-
if (_this__u8e3s4.
|
|
3999
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof LeftCurly) {
|
|
3997
4000
|
tmp_0 = new Type_0(typeName, raise.kh(parseTypeShape(_this__u8e3s4, $this)));
|
|
3998
4001
|
} else {
|
|
3999
4002
|
// Inline function 'kotlin.also' call
|
|
4000
4003
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4001
4004
|
Companion_getInstance_3();
|
|
4002
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4005
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
4003
4006
|
var tmp2_also = new WrongTokenException(getKClass(LeftCurly), tmp1_invoke);
|
|
4004
4007
|
// Inline function 'kotlin.contracts.contract' call
|
|
4005
4008
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
4006
|
-
raise.kh(_this__u8e3s4.
|
|
4009
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4007
4010
|
raise.jh(tmp2_also);
|
|
4008
4011
|
}
|
|
4009
4012
|
var tmp3_also = tmp_0;
|
|
4010
4013
|
// Inline function 'kotlin.contracts.contract' call
|
|
4011
4014
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>' call
|
|
4012
|
-
if (_this__u8e3s4.
|
|
4013
|
-
raise.kh(_this__u8e3s4.
|
|
4015
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof RightCurly)
|
|
4016
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4014
4017
|
else {
|
|
4015
4018
|
// Inline function 'kotlin.also' call
|
|
4016
4019
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4017
4020
|
Companion_getInstance_3();
|
|
4018
|
-
var tmp1_invoke_0 = _this__u8e3s4.
|
|
4021
|
+
var tmp1_invoke_0 = _this__u8e3s4.zl_1;
|
|
4019
4022
|
var tmp2_also_0 = new WrongTokenException(getKClass(RightCurly), tmp1_invoke_0);
|
|
4020
4023
|
// Inline function 'kotlin.contracts.contract' call
|
|
4021
4024
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeDefinition.<anonymous>.<anonymous>.<anonymous>' call
|
|
4022
|
-
raise.kh(_this__u8e3s4.
|
|
4025
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4023
4026
|
raise.jh(tmp2_also_0);
|
|
4024
4027
|
}
|
|
4025
4028
|
var res = tmp3_also;
|
|
@@ -4058,30 +4061,30 @@
|
|
|
4058
4061
|
try {
|
|
4059
4062
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4060
4063
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>' call
|
|
4061
|
-
raise.kh(_this__u8e3s4.
|
|
4062
|
-
$this.
|
|
4064
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4065
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
4063
4066
|
// Inline function 'kotlin.let' call
|
|
4064
4067
|
var tmp_0;
|
|
4065
|
-
if (_this__u8e3s4.
|
|
4068
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomValue) {
|
|
4066
4069
|
// Inline function 'kotlin.apply' call
|
|
4067
4070
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4068
4071
|
var tmp0_apply = ArrayList_init_$Create$();
|
|
4069
4072
|
// Inline function 'kotlin.contracts.contract' call
|
|
4070
4073
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
4071
|
-
tmp0_apply.a(raise.kh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
4072
|
-
while (equals(_this__u8e3s4.
|
|
4073
|
-
raise.kh(_this__u8e3s4.
|
|
4074
|
-
if (_this__u8e3s4.
|
|
4075
|
-
tmp0_apply.a(raise.kh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.
|
|
4074
|
+
tmp0_apply.a(raise.kh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.zl_1.pl_1))));
|
|
4075
|
+
while (equals(_this__u8e3s4.zl_1.ol_1, Comma_getInstance())) {
|
|
4076
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4077
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomValue) {
|
|
4078
|
+
tmp0_apply.a(raise.kh(parseField(_this__u8e3s4, $this, new Identifier(_this__u8e3s4.zl_1.pl_1))));
|
|
4076
4079
|
} else {
|
|
4077
4080
|
// Inline function 'kotlin.also' call
|
|
4078
4081
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4079
4082
|
Companion_getInstance_3();
|
|
4080
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4083
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
4081
4084
|
var tmp2_also = new WrongTokenException(getKClass(CustomValue), tmp1_invoke);
|
|
4082
4085
|
// Inline function 'kotlin.contracts.contract' call
|
|
4083
4086
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>.<anonymous>' call
|
|
4084
|
-
raise.kh(_this__u8e3s4.
|
|
4087
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4085
4088
|
raise.jh(tmp2_also);
|
|
4086
4089
|
}
|
|
4087
4090
|
}
|
|
@@ -4090,11 +4093,11 @@
|
|
|
4090
4093
|
// Inline function 'kotlin.also' call
|
|
4091
4094
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4092
4095
|
Companion_getInstance_3();
|
|
4093
|
-
var tmp2_invoke = _this__u8e3s4.
|
|
4096
|
+
var tmp2_invoke = _this__u8e3s4.zl_1;
|
|
4094
4097
|
var tmp3_also = new WrongTokenException(getKClass(CustomValue), tmp2_invoke);
|
|
4095
4098
|
// Inline function 'kotlin.contracts.contract' call
|
|
4096
4099
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseTypeShape.<anonymous>.<anonymous>' call
|
|
4097
|
-
raise.kh(_this__u8e3s4.
|
|
4100
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4098
4101
|
raise.jh(tmp3_also);
|
|
4099
4102
|
}
|
|
4100
4103
|
var tmp4_let = tmp_0;
|
|
@@ -4135,42 +4138,42 @@
|
|
|
4135
4138
|
try {
|
|
4136
4139
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4137
4140
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>' call
|
|
4138
|
-
raise.kh(_this__u8e3s4.
|
|
4139
|
-
$this.
|
|
4140
|
-
if (_this__u8e3s4.
|
|
4141
|
-
raise.kh(_this__u8e3s4.
|
|
4141
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4142
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
4143
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof Colon)
|
|
4144
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4142
4145
|
else {
|
|
4143
4146
|
// Inline function 'kotlin.also' call
|
|
4144
4147
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4145
4148
|
Companion_getInstance_3();
|
|
4146
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4149
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
4147
4150
|
var tmp2_also = new WrongTokenException(getKClass(Colon), tmp1_invoke);
|
|
4148
4151
|
// Inline function 'kotlin.contracts.contract' call
|
|
4149
4152
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
4150
|
-
raise.kh(_this__u8e3s4.
|
|
4153
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4151
4154
|
raise.jh(tmp2_also);
|
|
4152
4155
|
}
|
|
4153
|
-
var type = _this__u8e3s4.
|
|
4156
|
+
var type = _this__u8e3s4.zl_1.ol_1;
|
|
4154
4157
|
var tmp_0;
|
|
4155
4158
|
if (isInterface(type, WirespecType)) {
|
|
4156
|
-
var tmp_1 = raise.kh(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.
|
|
4159
|
+
var tmp_1 = raise.kh(parseFieldValue(_this__u8e3s4, $this, type, _this__u8e3s4.zl_1.pl_1));
|
|
4157
4160
|
// Inline function 'kotlin.also' call
|
|
4158
|
-
var tmp_2 = _this__u8e3s4.
|
|
4161
|
+
var tmp_2 = _this__u8e3s4.zl_1.ol_1;
|
|
4159
4162
|
var tmp3_also = tmp_2 instanceof QuestionMark;
|
|
4160
4163
|
// Inline function 'kotlin.contracts.contract' call
|
|
4161
4164
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
4162
4165
|
if (tmp3_also)
|
|
4163
|
-
raise.kh(_this__u8e3s4.
|
|
4166
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4164
4167
|
tmp_0 = new Field(identifier, tmp_1, tmp3_also);
|
|
4165
4168
|
} else {
|
|
4166
4169
|
// Inline function 'kotlin.also' call
|
|
4167
4170
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4168
4171
|
Companion_getInstance_3();
|
|
4169
|
-
var tmp5_invoke = _this__u8e3s4.
|
|
4172
|
+
var tmp5_invoke = _this__u8e3s4.zl_1;
|
|
4170
4173
|
var tmp6_also = new WrongTokenException(getKClass(CustomType), tmp5_invoke);
|
|
4171
4174
|
// Inline function 'kotlin.contracts.contract' call
|
|
4172
4175
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseField.<anonymous>.<anonymous>' call
|
|
4173
|
-
raise.kh(_this__u8e3s4.
|
|
4176
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4174
4177
|
raise.jh(tmp6_also);
|
|
4175
4178
|
}
|
|
4176
4179
|
var res = tmp_0;
|
|
@@ -4209,15 +4212,15 @@
|
|
|
4209
4212
|
try {
|
|
4210
4213
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4211
4214
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>' call
|
|
4212
|
-
raise.kh(_this__u8e3s4.
|
|
4213
|
-
$this.
|
|
4215
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4216
|
+
$this.dm(_this__u8e3s4.zl_1);
|
|
4214
4217
|
// Inline function 'kotlin.also' call
|
|
4215
|
-
var tmp_0 = _this__u8e3s4.
|
|
4218
|
+
var tmp_0 = _this__u8e3s4.zl_1.ol_1;
|
|
4216
4219
|
var tmp0_also = tmp_0 instanceof Brackets;
|
|
4217
4220
|
// Inline function 'kotlin.contracts.contract' call
|
|
4218
4221
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseFieldValue.<anonymous>.<anonymous>' call
|
|
4219
4222
|
if (tmp0_also)
|
|
4220
|
-
raise.kh(_this__u8e3s4.
|
|
4223
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4221
4224
|
var isIterable = tmp0_also;
|
|
4222
4225
|
var tmp_1;
|
|
4223
4226
|
if (wsType instanceof WsString) {
|
|
@@ -4265,7 +4268,7 @@
|
|
|
4265
4268
|
function TypeParser(logger) {
|
|
4266
4269
|
AbstractParser.call(this, logger);
|
|
4267
4270
|
}
|
|
4268
|
-
protoOf(TypeParser).
|
|
4271
|
+
protoOf(TypeParser).lm = function (_this__u8e3s4) {
|
|
4269
4272
|
// Inline function 'arrow.core.raise.either' call
|
|
4270
4273
|
// Inline function 'arrow.core.raise.fold' call
|
|
4271
4274
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -4276,20 +4279,20 @@
|
|
|
4276
4279
|
try {
|
|
4277
4280
|
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
4278
4281
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>' call
|
|
4279
|
-
raise.kh(_this__u8e3s4.
|
|
4280
|
-
this.
|
|
4282
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4283
|
+
this.dm(_this__u8e3s4.zl_1);
|
|
4281
4284
|
var tmp_0;
|
|
4282
|
-
if (_this__u8e3s4.
|
|
4283
|
-
tmp_0 = raise.kh(parseTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.
|
|
4285
|
+
if (_this__u8e3s4.zl_1.ol_1 instanceof CustomType) {
|
|
4286
|
+
tmp_0 = raise.kh(parseTypeDefinition(_this__u8e3s4, this, _this__u8e3s4.zl_1.pl_1));
|
|
4284
4287
|
} else {
|
|
4285
4288
|
// Inline function 'kotlin.also' call
|
|
4286
4289
|
// Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
|
|
4287
4290
|
Companion_getInstance_3();
|
|
4288
|
-
var tmp1_invoke = _this__u8e3s4.
|
|
4291
|
+
var tmp1_invoke = _this__u8e3s4.zl_1;
|
|
4289
4292
|
var tmp2_also = new WrongTokenException(getKClass(CustomType), tmp1_invoke);
|
|
4290
4293
|
// Inline function 'kotlin.contracts.contract' call
|
|
4291
4294
|
// Inline function 'community.flock.wirespec.compiler.core.parse.TypeParser.parseType.<anonymous>.<anonymous>' call
|
|
4292
|
-
raise.kh(_this__u8e3s4.
|
|
4295
|
+
raise.kh(_this__u8e3s4.bm());
|
|
4293
4296
|
raise.jh(tmp2_also);
|
|
4294
4297
|
}
|
|
4295
4298
|
var res = tmp_0;
|
|
@@ -4642,29 +4645,29 @@
|
|
|
4642
4645
|
}
|
|
4643
4646
|
function Any(isIterable, isMap) {
|
|
4644
4647
|
isMap = isMap === VOID ? false : isMap;
|
|
4645
|
-
this.
|
|
4646
|
-
this.
|
|
4648
|
+
this.mm_1 = isIterable;
|
|
4649
|
+
this.nm_1 = isMap;
|
|
4647
4650
|
}
|
|
4648
4651
|
protoOf(Any).cj = function () {
|
|
4649
|
-
return this.lm_1;
|
|
4650
|
-
};
|
|
4651
|
-
protoOf(Any).yk = function () {
|
|
4652
4652
|
return this.mm_1;
|
|
4653
4653
|
};
|
|
4654
|
-
protoOf(Any).
|
|
4654
|
+
protoOf(Any).zk = function () {
|
|
4655
|
+
return this.nm_1;
|
|
4656
|
+
};
|
|
4657
|
+
protoOf(Any).om = function (isIterable, isMap) {
|
|
4655
4658
|
return new Any(isIterable, isMap);
|
|
4656
4659
|
};
|
|
4657
|
-
protoOf(Any).
|
|
4658
|
-
isIterable = isIterable === VOID ? this.
|
|
4659
|
-
isMap = isMap === VOID ? this.
|
|
4660
|
-
return $super === VOID ? this.
|
|
4660
|
+
protoOf(Any).pm = function (isIterable, isMap, $super) {
|
|
4661
|
+
isIterable = isIterable === VOID ? this.mm_1 : isIterable;
|
|
4662
|
+
isMap = isMap === VOID ? this.nm_1 : isMap;
|
|
4663
|
+
return $super === VOID ? this.om(isIterable, isMap) : $super.om.call(this, isIterable, isMap);
|
|
4661
4664
|
};
|
|
4662
4665
|
protoOf(Any).toString = function () {
|
|
4663
|
-
return 'Any(isIterable=' + this.
|
|
4666
|
+
return 'Any(isIterable=' + this.mm_1 + ', isMap=' + this.nm_1 + ')';
|
|
4664
4667
|
};
|
|
4665
4668
|
protoOf(Any).hashCode = function () {
|
|
4666
|
-
var result = this.
|
|
4667
|
-
result = imul(result, 31) + (this.
|
|
4669
|
+
var result = this.mm_1 | 0;
|
|
4670
|
+
result = imul(result, 31) + (this.nm_1 | 0) | 0;
|
|
4668
4671
|
return result;
|
|
4669
4672
|
};
|
|
4670
4673
|
protoOf(Any).equals = function (other) {
|
|
@@ -4673,10 +4676,10 @@
|
|
|
4673
4676
|
if (!(other instanceof Any))
|
|
4674
4677
|
return false;
|
|
4675
4678
|
var tmp0_other_with_cast = other instanceof Any ? other : THROW_CCE();
|
|
4676
|
-
if (!(this.lm_1 === tmp0_other_with_cast.lm_1))
|
|
4677
|
-
return false;
|
|
4678
4679
|
if (!(this.mm_1 === tmp0_other_with_cast.mm_1))
|
|
4679
4680
|
return false;
|
|
4681
|
+
if (!(this.nm_1 === tmp0_other_with_cast.nm_1))
|
|
4682
|
+
return false;
|
|
4680
4683
|
return true;
|
|
4681
4684
|
};
|
|
4682
4685
|
function Custom(value, isIterable, isMap) {
|
|
@@ -4688,17 +4691,17 @@
|
|
|
4688
4691
|
protoOf(Custom).cj = function () {
|
|
4689
4692
|
return this.uj_1;
|
|
4690
4693
|
};
|
|
4691
|
-
protoOf(Custom).
|
|
4694
|
+
protoOf(Custom).zk = function () {
|
|
4692
4695
|
return this.vj_1;
|
|
4693
4696
|
};
|
|
4694
|
-
protoOf(Custom).
|
|
4697
|
+
protoOf(Custom).qm = function (value, isIterable, isMap) {
|
|
4695
4698
|
return new Custom(value, isIterable, isMap);
|
|
4696
4699
|
};
|
|
4697
|
-
protoOf(Custom).
|
|
4700
|
+
protoOf(Custom).rm = function (value, isIterable, isMap, $super) {
|
|
4698
4701
|
value = value === VOID ? this.tj_1 : value;
|
|
4699
4702
|
isIterable = isIterable === VOID ? this.uj_1 : isIterable;
|
|
4700
4703
|
isMap = isMap === VOID ? this.vj_1 : isMap;
|
|
4701
|
-
return $super === VOID ? this.
|
|
4704
|
+
return $super === VOID ? this.qm(value, isIterable, isMap) : $super.qm.call(this, value, isIterable, isMap);
|
|
4702
4705
|
};
|
|
4703
4706
|
protoOf(Custom).toString = function () {
|
|
4704
4707
|
return 'Custom(value=' + this.tj_1 + ', isIterable=' + this.uj_1 + ', isMap=' + this.vj_1 + ')';
|
|
@@ -4732,17 +4735,17 @@
|
|
|
4732
4735
|
protoOf(Primitive).cj = function () {
|
|
4733
4736
|
return this.rj_1;
|
|
4734
4737
|
};
|
|
4735
|
-
protoOf(Primitive).
|
|
4738
|
+
protoOf(Primitive).zk = function () {
|
|
4736
4739
|
return this.sj_1;
|
|
4737
4740
|
};
|
|
4738
|
-
protoOf(Primitive).
|
|
4741
|
+
protoOf(Primitive).sm = function (type, isIterable, isMap) {
|
|
4739
4742
|
return new Primitive(type, isIterable, isMap);
|
|
4740
4743
|
};
|
|
4741
|
-
protoOf(Primitive).
|
|
4744
|
+
protoOf(Primitive).tm = function (type, isIterable, isMap, $super) {
|
|
4742
4745
|
type = type === VOID ? this.qj_1 : type;
|
|
4743
4746
|
isIterable = isIterable === VOID ? this.rj_1 : isIterable;
|
|
4744
4747
|
isMap = isMap === VOID ? this.sj_1 : isMap;
|
|
4745
|
-
return $super === VOID ? this.
|
|
4748
|
+
return $super === VOID ? this.sm(type, isIterable, isMap) : $super.sm.call(this, type, isIterable, isMap);
|
|
4746
4749
|
};
|
|
4747
4750
|
protoOf(Primitive).toString = function () {
|
|
4748
4751
|
return 'Primitive(type=' + this.qj_1 + ', isIterable=' + this.rj_1 + ', isMap=' + this.sj_1 + ')';
|
|
@@ -4860,15 +4863,15 @@
|
|
|
4860
4863
|
function IdxAndLength(idx, length) {
|
|
4861
4864
|
idx = idx === VOID ? 0 : idx;
|
|
4862
4865
|
length = length === VOID ? 0 : length;
|
|
4863
|
-
this.
|
|
4864
|
-
this.
|
|
4866
|
+
this.um_1 = idx;
|
|
4867
|
+
this.vm_1 = length;
|
|
4865
4868
|
}
|
|
4866
4869
|
protoOf(IdxAndLength).toString = function () {
|
|
4867
|
-
return 'IdxAndLength(idx=' + this.
|
|
4870
|
+
return 'IdxAndLength(idx=' + this.um_1 + ', length=' + this.vm_1 + ')';
|
|
4868
4871
|
};
|
|
4869
4872
|
protoOf(IdxAndLength).hashCode = function () {
|
|
4870
|
-
var result = this.
|
|
4871
|
-
result = imul(result, 31) + this.
|
|
4873
|
+
var result = this.um_1;
|
|
4874
|
+
result = imul(result, 31) + this.vm_1 | 0;
|
|
4872
4875
|
return result;
|
|
4873
4876
|
};
|
|
4874
4877
|
protoOf(IdxAndLength).equals = function (other) {
|
|
@@ -4877,36 +4880,36 @@
|
|
|
4877
4880
|
if (!(other instanceof IdxAndLength))
|
|
4878
4881
|
return false;
|
|
4879
4882
|
var tmp0_other_with_cast = other instanceof IdxAndLength ? other : THROW_CCE();
|
|
4880
|
-
if (!(this.tm_1 === tmp0_other_with_cast.tm_1))
|
|
4881
|
-
return false;
|
|
4882
4883
|
if (!(this.um_1 === tmp0_other_with_cast.um_1))
|
|
4883
4884
|
return false;
|
|
4885
|
+
if (!(this.vm_1 === tmp0_other_with_cast.vm_1))
|
|
4886
|
+
return false;
|
|
4884
4887
|
return true;
|
|
4885
4888
|
};
|
|
4886
4889
|
function Coordinates(line, position, idxAndLength) {
|
|
4887
4890
|
line = line === VOID ? 1 : line;
|
|
4888
4891
|
position = position === VOID ? 1 : position;
|
|
4889
4892
|
idxAndLength = idxAndLength === VOID ? new IdxAndLength() : idxAndLength;
|
|
4890
|
-
this.
|
|
4891
|
-
this.
|
|
4892
|
-
this.
|
|
4893
|
+
this.sl_1 = line;
|
|
4894
|
+
this.tl_1 = position;
|
|
4895
|
+
this.ul_1 = idxAndLength;
|
|
4893
4896
|
}
|
|
4894
|
-
protoOf(Coordinates).
|
|
4897
|
+
protoOf(Coordinates).wm = function (line, position, idxAndLength) {
|
|
4895
4898
|
return new Coordinates(line, position, idxAndLength);
|
|
4896
4899
|
};
|
|
4897
|
-
protoOf(Coordinates).
|
|
4898
|
-
line = line === VOID ? this.
|
|
4899
|
-
position = position === VOID ? this.
|
|
4900
|
-
idxAndLength = idxAndLength === VOID ? this.
|
|
4901
|
-
return $super === VOID ? this.
|
|
4900
|
+
protoOf(Coordinates).xm = function (line, position, idxAndLength, $super) {
|
|
4901
|
+
line = line === VOID ? this.sl_1 : line;
|
|
4902
|
+
position = position === VOID ? this.tl_1 : position;
|
|
4903
|
+
idxAndLength = idxAndLength === VOID ? this.ul_1 : idxAndLength;
|
|
4904
|
+
return $super === VOID ? this.wm(line, position, idxAndLength) : $super.wm.call(this, line, position, idxAndLength);
|
|
4902
4905
|
};
|
|
4903
4906
|
protoOf(Coordinates).toString = function () {
|
|
4904
|
-
return 'Coordinates(line=' + this.
|
|
4907
|
+
return 'Coordinates(line=' + this.sl_1 + ', position=' + this.tl_1 + ', idxAndLength=' + this.ul_1 + ')';
|
|
4905
4908
|
};
|
|
4906
4909
|
protoOf(Coordinates).hashCode = function () {
|
|
4907
|
-
var result = this.
|
|
4908
|
-
result = imul(result, 31) + this.
|
|
4909
|
-
result = imul(result, 31) + this.
|
|
4910
|
+
var result = this.sl_1;
|
|
4911
|
+
result = imul(result, 31) + this.tl_1 | 0;
|
|
4912
|
+
result = imul(result, 31) + this.ul_1.hashCode() | 0;
|
|
4910
4913
|
return result;
|
|
4911
4914
|
};
|
|
4912
4915
|
protoOf(Coordinates).equals = function (other) {
|
|
@@ -4915,35 +4918,35 @@
|
|
|
4915
4918
|
if (!(other instanceof Coordinates))
|
|
4916
4919
|
return false;
|
|
4917
4920
|
var tmp0_other_with_cast = other instanceof Coordinates ? other : THROW_CCE();
|
|
4918
|
-
if (!(this.rl_1 === tmp0_other_with_cast.rl_1))
|
|
4919
|
-
return false;
|
|
4920
4921
|
if (!(this.sl_1 === tmp0_other_with_cast.sl_1))
|
|
4921
4922
|
return false;
|
|
4922
|
-
if (!this.tl_1
|
|
4923
|
+
if (!(this.tl_1 === tmp0_other_with_cast.tl_1))
|
|
4924
|
+
return false;
|
|
4925
|
+
if (!this.ul_1.equals(tmp0_other_with_cast.ul_1))
|
|
4923
4926
|
return false;
|
|
4924
4927
|
return true;
|
|
4925
4928
|
};
|
|
4926
4929
|
function Token(type, value, coordinates) {
|
|
4927
|
-
this.
|
|
4928
|
-
this.
|
|
4929
|
-
this.
|
|
4930
|
+
this.ol_1 = type;
|
|
4931
|
+
this.pl_1 = value;
|
|
4932
|
+
this.ql_1 = coordinates;
|
|
4930
4933
|
}
|
|
4931
|
-
protoOf(Token).
|
|
4934
|
+
protoOf(Token).ym = function (type, value, coordinates) {
|
|
4932
4935
|
return new Token(type, value, coordinates);
|
|
4933
4936
|
};
|
|
4934
|
-
protoOf(Token).
|
|
4935
|
-
type = type === VOID ? this.
|
|
4936
|
-
value = value === VOID ? this.
|
|
4937
|
-
coordinates = coordinates === VOID ? this.
|
|
4938
|
-
return $super === VOID ? this.
|
|
4937
|
+
protoOf(Token).wl = function (type, value, coordinates, $super) {
|
|
4938
|
+
type = type === VOID ? this.ol_1 : type;
|
|
4939
|
+
value = value === VOID ? this.pl_1 : value;
|
|
4940
|
+
coordinates = coordinates === VOID ? this.ql_1 : coordinates;
|
|
4941
|
+
return $super === VOID ? this.ym(type, value, coordinates) : $super.ym.call(this, type, value, coordinates);
|
|
4939
4942
|
};
|
|
4940
4943
|
protoOf(Token).toString = function () {
|
|
4941
|
-
return 'Token(type=' + this.
|
|
4944
|
+
return 'Token(type=' + this.ol_1 + ', value=' + this.pl_1 + ', coordinates=' + this.ql_1 + ')';
|
|
4942
4945
|
};
|
|
4943
4946
|
protoOf(Token).hashCode = function () {
|
|
4944
|
-
var result = hashCode(this.
|
|
4945
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4946
|
-
result = imul(result, 31) + this.
|
|
4947
|
+
var result = hashCode(this.ol_1);
|
|
4948
|
+
result = imul(result, 31) + getStringHashCode(this.pl_1) | 0;
|
|
4949
|
+
result = imul(result, 31) + this.ql_1.hashCode() | 0;
|
|
4947
4950
|
return result;
|
|
4948
4951
|
};
|
|
4949
4952
|
protoOf(Token).equals = function (other) {
|
|
@@ -4952,19 +4955,19 @@
|
|
|
4952
4955
|
if (!(other instanceof Token))
|
|
4953
4956
|
return false;
|
|
4954
4957
|
var tmp0_other_with_cast = other instanceof Token ? other : THROW_CCE();
|
|
4955
|
-
if (!equals(this.
|
|
4958
|
+
if (!equals(this.ol_1, tmp0_other_with_cast.ol_1))
|
|
4956
4959
|
return false;
|
|
4957
|
-
if (!(this.
|
|
4960
|
+
if (!(this.pl_1 === tmp0_other_with_cast.pl_1))
|
|
4958
4961
|
return false;
|
|
4959
|
-
if (!this.
|
|
4962
|
+
if (!this.ql_1.equals(tmp0_other_with_cast.ql_1))
|
|
4960
4963
|
return false;
|
|
4961
4964
|
return true;
|
|
4962
4965
|
};
|
|
4963
4966
|
function plus_1(_this__u8e3s4, length) {
|
|
4964
|
-
return new IdxAndLength(_this__u8e3s4.
|
|
4967
|
+
return new IdxAndLength(_this__u8e3s4.um_1 + length | 0, length);
|
|
4965
4968
|
}
|
|
4966
4969
|
function plus_2(_this__u8e3s4, length) {
|
|
4967
|
-
return _this__u8e3s4.
|
|
4970
|
+
return _this__u8e3s4.xm(VOID, _this__u8e3s4.tl_1 + length | 0, plus_1(_this__u8e3s4.ul_1, length));
|
|
4968
4971
|
}
|
|
4969
4972
|
function tokenize(_this__u8e3s4, source) {
|
|
4970
4973
|
return tokenize_0(_this__u8e3s4, source, nonEmptyListOf(new Token(StartOfProgram_getInstance(), '', new Coordinates()), []));
|
|
@@ -4975,12 +4978,12 @@
|
|
|
4975
4978
|
var incompleteTokens_0 = incompleteTokens;
|
|
4976
4979
|
$l$1: do {
|
|
4977
4980
|
$l$0: do {
|
|
4978
|
-
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).
|
|
4981
|
+
var tmp0_container = extractToken($this, source_0, last(incompleteTokens_0).ql_1);
|
|
4979
4982
|
var token = tmp0_container.j3();
|
|
4980
4983
|
var remaining = tmp0_container.k3();
|
|
4981
4984
|
var tokens = incompleteTokens_0.eh(token);
|
|
4982
4985
|
var tmp;
|
|
4983
|
-
var tmp_0 = token.
|
|
4986
|
+
var tmp_0 = token.ol_1;
|
|
4984
4987
|
if (tmp_0 instanceof EndOfProgram) {
|
|
4985
4988
|
tmp = tokens;
|
|
4986
4989
|
} else {
|
|
@@ -5022,7 +5025,7 @@
|
|
|
5022
5025
|
// Inline function 'kotlin.let' call
|
|
5023
5026
|
// Inline function 'kotlin.contracts.contract' call
|
|
5024
5027
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.extractToken.<anonymous>' call
|
|
5025
|
-
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.
|
|
5028
|
+
tmp = to(tmp0_safe_receiver_0, removePrefix(source, tmp0_safe_receiver_0.pl_1));
|
|
5026
5029
|
}
|
|
5027
5030
|
var tmp1_elvis_lhs = tmp;
|
|
5028
5031
|
return tmp1_elvis_lhs == null ? new Pair(endToken(previousTokenCoordinates), '') : tmp1_elvis_lhs;
|
|
@@ -5041,7 +5044,7 @@
|
|
|
5041
5044
|
function nextCoordinates(_this__u8e3s4, type, value) {
|
|
5042
5045
|
var tmp;
|
|
5043
5046
|
if (type instanceof NewLine) {
|
|
5044
|
-
tmp = new Coordinates(_this__u8e3s4.
|
|
5047
|
+
tmp = new Coordinates(_this__u8e3s4.sl_1 + 1 | 0, VOID, plus_1(_this__u8e3s4.ul_1, value.length));
|
|
5045
5048
|
} else {
|
|
5046
5049
|
tmp = plus_2(_this__u8e3s4, value.length);
|
|
5047
5050
|
}
|
|
@@ -5055,7 +5058,7 @@
|
|
|
5055
5058
|
while (tmp0_iterator.d()) {
|
|
5056
5059
|
var element = tmp0_iterator.e();
|
|
5057
5060
|
// Inline function 'community.flock.wirespec.compiler.core.tokenize.removeWhiteSpace.<anonymous>' call
|
|
5058
|
-
var tmp = element.
|
|
5061
|
+
var tmp = element.ol_1;
|
|
5059
5062
|
if (!isInterface(tmp, WhiteSpace)) {
|
|
5060
5063
|
tmp0_filterNotTo.a(element);
|
|
5061
5064
|
}
|
|
@@ -5788,7 +5791,7 @@
|
|
|
5788
5791
|
}
|
|
5789
5792
|
function EndOfProgram() {
|
|
5790
5793
|
EndOfProgram_instance = this;
|
|
5791
|
-
this.
|
|
5794
|
+
this.zm_1 = 'EOP';
|
|
5792
5795
|
}
|
|
5793
5796
|
protoOf(EndOfProgram).toString = function () {
|
|
5794
5797
|
return 'EndOfProgram';
|
|
@@ -5839,7 +5842,7 @@
|
|
|
5839
5842
|
}
|
|
5840
5843
|
return tmp;
|
|
5841
5844
|
};
|
|
5842
|
-
protoOf(Logger).
|
|
5845
|
+
protoOf(Logger).nl = function (s, block) {
|
|
5843
5846
|
// Inline function 'kotlin.run' call
|
|
5844
5847
|
// Inline function 'kotlin.contracts.contract' call
|
|
5845
5848
|
// Inline function 'community.flock.wirespec.compiler.utils.Logger.log.<anonymous>' call
|
|
@@ -5857,86 +5860,86 @@
|
|
|
5857
5860
|
}
|
|
5858
5861
|
}
|
|
5859
5862
|
//region block: post-declaration
|
|
5860
|
-
protoOf(JavaEmitter).fk =
|
|
5861
|
-
protoOf(JavaEmitter).gk =
|
|
5862
|
-
protoOf(JavaEmitter).hk =
|
|
5863
|
-
protoOf(JavaEmitter).ik =
|
|
5864
|
-
protoOf(JavaEmitter).hi =
|
|
5865
|
-
protoOf(JavaEmitter).kk =
|
|
5866
|
-
protoOf(JavaEmitter).mk =
|
|
5867
|
-
protoOf(JavaEmitter).nk =
|
|
5868
|
-
protoOf(JavaEmitter).pk =
|
|
5869
|
-
protoOf(JavaEmitter).dj =
|
|
5870
|
-
protoOf(KotlinEmitter).fk =
|
|
5871
|
-
protoOf(KotlinEmitter).gk =
|
|
5872
|
-
protoOf(KotlinEmitter).hk =
|
|
5873
|
-
protoOf(KotlinEmitter).ik =
|
|
5874
|
-
protoOf(KotlinEmitter).hi =
|
|
5875
|
-
protoOf(KotlinEmitter).kk =
|
|
5876
|
-
protoOf(KotlinEmitter).mk =
|
|
5877
|
-
protoOf(KotlinEmitter).nk =
|
|
5878
|
-
protoOf(KotlinEmitter).pk =
|
|
5879
|
-
protoOf(KotlinEmitter).dj =
|
|
5880
|
-
protoOf(ScalaEmitter).fk =
|
|
5881
|
-
protoOf(ScalaEmitter).gk =
|
|
5882
|
-
protoOf(ScalaEmitter).hk =
|
|
5883
|
-
protoOf(ScalaEmitter).ik =
|
|
5884
|
-
protoOf(ScalaEmitter).hi =
|
|
5885
|
-
protoOf(ScalaEmitter).kk =
|
|
5886
|
-
protoOf(ScalaEmitter).mk =
|
|
5887
|
-
protoOf(ScalaEmitter).nk =
|
|
5888
|
-
protoOf(ScalaEmitter).pk =
|
|
5889
|
-
protoOf(TypeScriptEmitter).fk =
|
|
5890
|
-
protoOf(TypeScriptEmitter).gk =
|
|
5891
|
-
protoOf(TypeScriptEmitter).hk =
|
|
5892
|
-
protoOf(TypeScriptEmitter).ik =
|
|
5893
|
-
protoOf(TypeScriptEmitter).hi =
|
|
5894
|
-
protoOf(TypeScriptEmitter).kk =
|
|
5895
|
-
protoOf(TypeScriptEmitter).mk =
|
|
5896
|
-
protoOf(TypeScriptEmitter).nk =
|
|
5897
|
-
protoOf(TypeScriptEmitter).pk =
|
|
5898
|
-
protoOf(TypeScriptEmitter).dj =
|
|
5899
|
-
protoOf(WirespecEmitter).fk =
|
|
5900
|
-
protoOf(WirespecEmitter).gk =
|
|
5901
|
-
protoOf(WirespecEmitter).hk =
|
|
5902
|
-
protoOf(WirespecEmitter).ik =
|
|
5903
|
-
protoOf(WirespecEmitter).hi =
|
|
5904
|
-
protoOf(WirespecEmitter).kk =
|
|
5905
|
-
protoOf(WirespecEmitter).mk =
|
|
5906
|
-
protoOf(WirespecEmitter).nk =
|
|
5907
|
-
protoOf(WirespecEmitter).pk =
|
|
5908
|
-
protoOf(WsTypeDef).
|
|
5909
|
-
protoOf(WsEnumTypeDef).
|
|
5910
|
-
protoOf(WsRefinedTypeDef).
|
|
5911
|
-
protoOf(WsEndpointDef).
|
|
5912
|
-
protoOf(WhiteSpaceExceptNewLine).
|
|
5913
|
-
protoOf(NewLine).
|
|
5914
|
-
protoOf(LeftCurly).
|
|
5915
|
-
protoOf(RightCurly).
|
|
5916
|
-
protoOf(Colon).
|
|
5917
|
-
protoOf(Comma).
|
|
5918
|
-
protoOf(QuestionMark).
|
|
5919
|
-
protoOf(Brackets).
|
|
5920
|
-
protoOf(WsString).
|
|
5921
|
-
protoOf(WsInteger).
|
|
5922
|
-
protoOf(WsBoolean).
|
|
5923
|
-
protoOf(Arrow).
|
|
5924
|
-
protoOf(GET).
|
|
5925
|
-
protoOf(POST).
|
|
5926
|
-
protoOf(PUT).
|
|
5927
|
-
protoOf(DELETE).
|
|
5928
|
-
protoOf(OPTIONS).
|
|
5929
|
-
protoOf(HEAD).
|
|
5930
|
-
protoOf(PATCH).
|
|
5931
|
-
protoOf(TRACE).
|
|
5932
|
-
protoOf(CustomRegex).
|
|
5933
|
-
protoOf(StatusCode).
|
|
5934
|
-
protoOf(CustomValue).
|
|
5935
|
-
protoOf(CustomType).
|
|
5936
|
-
protoOf(Path).
|
|
5937
|
-
protoOf(Invalid).
|
|
5938
|
-
protoOf(StartOfProgram).
|
|
5939
|
-
protoOf(EndOfProgram).
|
|
5863
|
+
protoOf(JavaEmitter).fk = withLogging_1;
|
|
5864
|
+
protoOf(JavaEmitter).gk = withLogging_2;
|
|
5865
|
+
protoOf(JavaEmitter).hk = withLogging_3;
|
|
5866
|
+
protoOf(JavaEmitter).ik = withLogging_4;
|
|
5867
|
+
protoOf(JavaEmitter).hi = withLogging_5;
|
|
5868
|
+
protoOf(JavaEmitter).kk = withLogging_6;
|
|
5869
|
+
protoOf(JavaEmitter).mk = withLogging;
|
|
5870
|
+
protoOf(JavaEmitter).nk = withLogging_0;
|
|
5871
|
+
protoOf(JavaEmitter).pk = withLogging_7;
|
|
5872
|
+
protoOf(JavaEmitter).dj = withLogging_8;
|
|
5873
|
+
protoOf(KotlinEmitter).fk = withLogging_1;
|
|
5874
|
+
protoOf(KotlinEmitter).gk = withLogging_2;
|
|
5875
|
+
protoOf(KotlinEmitter).hk = withLogging_3;
|
|
5876
|
+
protoOf(KotlinEmitter).ik = withLogging_4;
|
|
5877
|
+
protoOf(KotlinEmitter).hi = withLogging_5;
|
|
5878
|
+
protoOf(KotlinEmitter).kk = withLogging_6;
|
|
5879
|
+
protoOf(KotlinEmitter).mk = withLogging;
|
|
5880
|
+
protoOf(KotlinEmitter).nk = withLogging_0;
|
|
5881
|
+
protoOf(KotlinEmitter).pk = withLogging_7;
|
|
5882
|
+
protoOf(KotlinEmitter).dj = withLogging_8;
|
|
5883
|
+
protoOf(ScalaEmitter).fk = withLogging_1;
|
|
5884
|
+
protoOf(ScalaEmitter).gk = withLogging_2;
|
|
5885
|
+
protoOf(ScalaEmitter).hk = withLogging_3;
|
|
5886
|
+
protoOf(ScalaEmitter).ik = withLogging_4;
|
|
5887
|
+
protoOf(ScalaEmitter).hi = withLogging_5;
|
|
5888
|
+
protoOf(ScalaEmitter).kk = withLogging_6;
|
|
5889
|
+
protoOf(ScalaEmitter).mk = withLogging;
|
|
5890
|
+
protoOf(ScalaEmitter).nk = withLogging_0;
|
|
5891
|
+
protoOf(ScalaEmitter).pk = withLogging_7;
|
|
5892
|
+
protoOf(TypeScriptEmitter).fk = withLogging_1;
|
|
5893
|
+
protoOf(TypeScriptEmitter).gk = withLogging_2;
|
|
5894
|
+
protoOf(TypeScriptEmitter).hk = withLogging_3;
|
|
5895
|
+
protoOf(TypeScriptEmitter).ik = withLogging_4;
|
|
5896
|
+
protoOf(TypeScriptEmitter).hi = withLogging_5;
|
|
5897
|
+
protoOf(TypeScriptEmitter).kk = withLogging_6;
|
|
5898
|
+
protoOf(TypeScriptEmitter).mk = withLogging;
|
|
5899
|
+
protoOf(TypeScriptEmitter).nk = withLogging_0;
|
|
5900
|
+
protoOf(TypeScriptEmitter).pk = withLogging_7;
|
|
5901
|
+
protoOf(TypeScriptEmitter).dj = withLogging_8;
|
|
5902
|
+
protoOf(WirespecEmitter).fk = withLogging_1;
|
|
5903
|
+
protoOf(WirespecEmitter).gk = withLogging_2;
|
|
5904
|
+
protoOf(WirespecEmitter).hk = withLogging_3;
|
|
5905
|
+
protoOf(WirespecEmitter).ik = withLogging_4;
|
|
5906
|
+
protoOf(WirespecEmitter).hi = withLogging_5;
|
|
5907
|
+
protoOf(WirespecEmitter).kk = withLogging_6;
|
|
5908
|
+
protoOf(WirespecEmitter).mk = withLogging;
|
|
5909
|
+
protoOf(WirespecEmitter).nk = withLogging_0;
|
|
5910
|
+
protoOf(WirespecEmitter).pk = withLogging_7;
|
|
5911
|
+
protoOf(WsTypeDef).rl = name;
|
|
5912
|
+
protoOf(WsEnumTypeDef).rl = name;
|
|
5913
|
+
protoOf(WsRefinedTypeDef).rl = name;
|
|
5914
|
+
protoOf(WsEndpointDef).rl = name;
|
|
5915
|
+
protoOf(WhiteSpaceExceptNewLine).rl = name;
|
|
5916
|
+
protoOf(NewLine).rl = name;
|
|
5917
|
+
protoOf(LeftCurly).rl = name;
|
|
5918
|
+
protoOf(RightCurly).rl = name;
|
|
5919
|
+
protoOf(Colon).rl = name;
|
|
5920
|
+
protoOf(Comma).rl = name;
|
|
5921
|
+
protoOf(QuestionMark).rl = name;
|
|
5922
|
+
protoOf(Brackets).rl = name;
|
|
5923
|
+
protoOf(WsString).rl = name;
|
|
5924
|
+
protoOf(WsInteger).rl = name;
|
|
5925
|
+
protoOf(WsBoolean).rl = name;
|
|
5926
|
+
protoOf(Arrow).rl = name;
|
|
5927
|
+
protoOf(GET).rl = name;
|
|
5928
|
+
protoOf(POST).rl = name;
|
|
5929
|
+
protoOf(PUT).rl = name;
|
|
5930
|
+
protoOf(DELETE).rl = name;
|
|
5931
|
+
protoOf(OPTIONS).rl = name;
|
|
5932
|
+
protoOf(HEAD).rl = name;
|
|
5933
|
+
protoOf(PATCH).rl = name;
|
|
5934
|
+
protoOf(TRACE).rl = name;
|
|
5935
|
+
protoOf(CustomRegex).rl = name;
|
|
5936
|
+
protoOf(StatusCode).rl = name;
|
|
5937
|
+
protoOf(CustomValue).rl = name;
|
|
5938
|
+
protoOf(CustomType).rl = name;
|
|
5939
|
+
protoOf(Path).rl = name;
|
|
5940
|
+
protoOf(Invalid).rl = name;
|
|
5941
|
+
protoOf(StartOfProgram).rl = name;
|
|
5942
|
+
protoOf(EndOfProgram).rl = name;
|
|
5940
5943
|
//endregion
|
|
5941
5944
|
//region block: init
|
|
5942
5945
|
DEFAULT_PACKAGE_NAME = 'community.flock.wirespec.generated';
|