@flock/wirespec 0.18.12 → 0.18.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.mjs +14 -14
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +47 -12
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +93 -58
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +36 -38
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +11 -13
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +15 -17
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +4 -4
- package/wirespec-src-compiler-emitters-wirespec.mjs +12 -12
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +143 -244
- package/wirespec-src-compiler-ir.mjs.map +1 -1
|
@@ -161,8 +161,8 @@ initMetadataForClass(File, 'File', VOID, VOID, [Element, HasElements]);
|
|
|
161
161
|
initMetadataForClass(Package, 'Package', VOID, VOID, [Element]);
|
|
162
162
|
initMetadataForClass(Namespace, 'Namespace', VOID, VOID, [Element, HasElements]);
|
|
163
163
|
initMetadataForClass(Struct, 'Struct', VOID, VOID, [Element, HasElements]);
|
|
164
|
-
initMetadataForClass(Interface, 'Interface', VOID, VOID, [Element, HasElements]);
|
|
165
164
|
initMetadataForClass(RawElement, 'RawElement', VOID, VOID, [Element]);
|
|
165
|
+
initMetadataForClass(Interface, 'Interface', VOID, VOID, [Element, HasElements]);
|
|
166
166
|
initMetadataForClass(Entry, 'Entry');
|
|
167
167
|
initMetadataForClass(Enum_1, 'Enum', VOID, VOID, [Element, HasElements]);
|
|
168
168
|
initMetadataForClass(Function, 'Function', VOID, VOID, [Element]);
|
|
@@ -192,8 +192,8 @@ initMetadataForClass(LiteralMap, 'LiteralMap', VOID, VOID, [Statement, Expressio
|
|
|
192
192
|
initMetadataForClass(NullableOf, 'NullableOf', VOID, VOID, [Statement, Expression]);
|
|
193
193
|
initMetadataForObject(NullableEmpty, 'NullableEmpty', VOID, VOID, [Statement, Expression]);
|
|
194
194
|
initMetadataForClass(NullableMap, 'NullableMap', VOID, VOID, [Statement, Expression]);
|
|
195
|
-
initMetadataForClass(RegexMatch, 'RegexMatch', VOID, VOID, [
|
|
196
|
-
initMetadataForClass(BoundCheck, 'BoundCheck', VOID, VOID, [
|
|
195
|
+
initMetadataForClass(RegexMatch, 'RegexMatch', VOID, VOID, [Statement, Expression]);
|
|
196
|
+
initMetadataForClass(BoundCheck, 'BoundCheck', VOID, VOID, [Statement, Expression]);
|
|
197
197
|
initMetadataForClass(ListConcat, 'ListConcat', VOID, VOID, [Statement, Expression]);
|
|
198
198
|
initMetadataForClass(NullCheck, 'NullCheck', VOID, VOID, [Statement, Expression]);
|
|
199
199
|
initMetadataForClass(Text, 'Text');
|
|
@@ -1883,7 +1883,7 @@ function convert$lambda$lambda$lambda_28($responses) {
|
|
|
1883
1883
|
return Unit_instance;
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
|
-
function convert$lambda$lambda$
|
|
1886
|
+
function convert$lambda$lambda$lambda_29($response) {
|
|
1887
1887
|
return function ($this$struct) {
|
|
1888
1888
|
$this$struct.p1k($this$struct.y1h('Wirespec.Response.Headers', []));
|
|
1889
1889
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -1906,7 +1906,7 @@ function convert$lambda$lambda$lambda$lambda$lambda_2($response) {
|
|
|
1906
1906
|
return Unit_instance;
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
|
-
function convert$lambda$lambda$lambda$
|
|
1909
|
+
function convert$lambda$lambda$lambda$lambda_9($response, $statusCode, $headersName) {
|
|
1910
1910
|
return function ($this$constructo) {
|
|
1911
1911
|
// Inline function 'kotlin.collections.forEach' call
|
|
1912
1912
|
var _iterator__ex2g4s = responseParameters($response).t();
|
|
@@ -1917,25 +1917,24 @@ function convert$lambda$lambda$lambda$lambda_10($response, $statusCode) {
|
|
|
1917
1917
|
$this$constructo.w1k(name, type);
|
|
1918
1918
|
}
|
|
1919
1919
|
$this$constructo.y1k('status', new Literal_0($statusCode, new Integer_0(Precision_P32_getInstance())));
|
|
1920
|
-
var tmp = $this$constructo.y1h(
|
|
1920
|
+
var tmp = $this$constructo.y1h($headersName, []);
|
|
1921
1921
|
$this$constructo.y1k('headers', $this$constructo.x1k(tmp, convert$lambda$lambda$lambda$lambda$lambda_2($response)));
|
|
1922
1922
|
$this$constructo.y1k('body', !($response.wp_1 == null) ? new VariableReference(Companion_getInstance().k1h('body')) : $this$constructo.z1k(Unit_instance_0));
|
|
1923
1923
|
return Unit_instance;
|
|
1924
1924
|
};
|
|
1925
1925
|
}
|
|
1926
|
-
function convert$lambda$lambda$
|
|
1926
|
+
function convert$lambda$lambda$lambda_30($statusPrefix, $bodyType, $contentTypeName, $statusCode, $headersName, $response) {
|
|
1927
1927
|
return function ($this$struct) {
|
|
1928
1928
|
$this$struct.p1k($this$struct.y1h('Response' + toString($statusPrefix) + 'XX', [$bodyType]));
|
|
1929
1929
|
$this$struct.p1k($this$struct.y1h('Response' + $contentTypeName, []));
|
|
1930
1930
|
$this$struct.a1l('status', new IntegerLiteral($statusCode), true);
|
|
1931
|
-
$this$struct.a1l('headers', $this$struct.y1h(
|
|
1931
|
+
$this$struct.a1l('headers', $this$struct.y1h($headersName, []), true);
|
|
1932
1932
|
$this$struct.a1l('body', $bodyType, true);
|
|
1933
|
-
$this$struct.
|
|
1934
|
-
$this$struct.b1l(convert$lambda$lambda$lambda$lambda_10($response, $statusCode));
|
|
1933
|
+
$this$struct.b1l(convert$lambda$lambda$lambda$lambda_9($response, $statusCode, $headersName));
|
|
1935
1934
|
return Unit_instance;
|
|
1936
1935
|
};
|
|
1937
1936
|
}
|
|
1938
|
-
function convert$lambda$lambda$lambda$
|
|
1937
|
+
function convert$lambda$lambda$lambda$lambda_10($endpoint) {
|
|
1939
1938
|
return function ($this$construct) {
|
|
1940
1939
|
$this$construct.d1l('method', new EnumValueCall(new FieldCall(new VariableReference(Companion_getInstance().k1h('request')), Companion_getInstance().k1h('method'))));
|
|
1941
1940
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2006,17 +2005,17 @@ function convert$lambda$lambda$lambda$lambda_11($endpoint) {
|
|
|
2006
2005
|
return Unit_instance;
|
|
2007
2006
|
};
|
|
2008
2007
|
}
|
|
2009
|
-
function convert$lambda$lambda$
|
|
2008
|
+
function convert$lambda$lambda$lambda_31($endpoint) {
|
|
2010
2009
|
return function ($this$function) {
|
|
2011
2010
|
$this$function.p1i($this$function.y1h('Wirespec.RawRequest', []));
|
|
2012
2011
|
$this$function.q1i('serialization', $this$function.y1h('Wirespec.Serializer', []));
|
|
2013
2012
|
$this$function.q1i('request', $this$function.y1h('Request', []));
|
|
2014
2013
|
var tmp = $this$function.y1h('Wirespec.RawRequest', []);
|
|
2015
|
-
$this$function.o1k($this$function.x1k(tmp, convert$lambda$lambda$lambda$
|
|
2014
|
+
$this$function.o1k($this$function.x1k(tmp, convert$lambda$lambda$lambda$lambda_10($endpoint)));
|
|
2016
2015
|
return Unit_instance;
|
|
2017
2016
|
};
|
|
2018
2017
|
}
|
|
2019
|
-
function convert$lambda$lambda$lambda$
|
|
2018
|
+
function convert$lambda$lambda$lambda$lambda_11($endpoint) {
|
|
2020
2019
|
return function ($this$construct) {
|
|
2021
2020
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
2022
2021
|
var index = 0;
|
|
@@ -2062,13 +2061,13 @@ function convert$lambda$lambda$lambda$lambda_12($endpoint) {
|
|
|
2062
2061
|
return Unit_instance;
|
|
2063
2062
|
};
|
|
2064
2063
|
}
|
|
2065
|
-
function convert$lambda$lambda$
|
|
2064
|
+
function convert$lambda$lambda$lambda_32($endpoint) {
|
|
2066
2065
|
return function ($this$function) {
|
|
2067
2066
|
$this$function.p1i($this$function.y1h('Request', []));
|
|
2068
2067
|
$this$function.q1i('serialization', $this$function.y1h('Wirespec.Deserializer', []));
|
|
2069
2068
|
$this$function.q1i('request', $this$function.y1h('Wirespec.RawRequest', []));
|
|
2070
2069
|
var tmp = $this$function.y1h('Request', []);
|
|
2071
|
-
$this$function.o1k($this$function.x1k(tmp, convert$lambda$lambda$lambda$
|
|
2070
|
+
$this$function.o1k($this$function.x1k(tmp, convert$lambda$lambda$lambda$lambda_11($endpoint)));
|
|
2072
2071
|
return Unit_instance;
|
|
2073
2072
|
};
|
|
2074
2073
|
}
|
|
@@ -2112,7 +2111,7 @@ function convert$lambda$lambda$lambda$lambda$lambda_4($this$default) {
|
|
|
2112
2111
|
$this$default.g1l(new BinaryOp(new Literal_0('Cannot match response with status: ', String_instance), Operator_PLUS_getInstance(), new FieldCall(new VariableReference(Companion_getInstance().k1h('response')), Companion_getInstance().k1h('status'))));
|
|
2113
2112
|
return Unit_instance;
|
|
2114
2113
|
}
|
|
2115
|
-
function convert$lambda$lambda$lambda$
|
|
2114
|
+
function convert$lambda$lambda$lambda$lambda_12($endpoint) {
|
|
2116
2115
|
return function ($this$switch) {
|
|
2117
2116
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2118
2117
|
var this_0 = $endpoint.op_1;
|
|
@@ -2151,13 +2150,13 @@ function convert$lambda$lambda$lambda$lambda_13($endpoint) {
|
|
|
2151
2150
|
return Unit_instance;
|
|
2152
2151
|
};
|
|
2153
2152
|
}
|
|
2154
|
-
function convert$lambda$lambda$
|
|
2153
|
+
function convert$lambda$lambda$lambda_33($endpoint) {
|
|
2155
2154
|
return function ($this$function) {
|
|
2156
2155
|
$this$function.p1i($this$function.y1h('Wirespec.RawResponse', []));
|
|
2157
2156
|
$this$function.q1i('serialization', $this$function.y1h('Wirespec.Serializer', []));
|
|
2158
2157
|
$this$function.q1i('response', $this$function.y1h('Response', [$this$function.n1l()]));
|
|
2159
2158
|
var tmp = new VariableReference(Companion_getInstance().k1h('response'));
|
|
2160
|
-
$this$function.o1l(tmp, 'r', convert$lambda$lambda$lambda$
|
|
2159
|
+
$this$function.o1l(tmp, 'r', convert$lambda$lambda$lambda$lambda_12($endpoint));
|
|
2161
2160
|
return Unit_instance;
|
|
2162
2161
|
};
|
|
2163
2162
|
}
|
|
@@ -2195,7 +2194,7 @@ function convert$lambda$lambda$lambda$lambda$lambda_6($this$default) {
|
|
|
2195
2194
|
$this$default.g1l(new BinaryOp(new Literal_0('Cannot match response with status: ', String_instance), Operator_PLUS_getInstance(), new FieldCall(new VariableReference(Companion_getInstance().k1h('response')), Name_init_$Create$(['status', 'Code']))));
|
|
2196
2195
|
return Unit_instance;
|
|
2197
2196
|
}
|
|
2198
|
-
function convert$lambda$lambda$lambda$
|
|
2197
|
+
function convert$lambda$lambda$lambda$lambda_13($endpoint) {
|
|
2199
2198
|
return function ($this$switch) {
|
|
2200
2199
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
2201
2200
|
var this_0 = $endpoint.op_1;
|
|
@@ -2244,30 +2243,30 @@ function convert$lambda$lambda$lambda$lambda_14($endpoint) {
|
|
|
2244
2243
|
return Unit_instance;
|
|
2245
2244
|
};
|
|
2246
2245
|
}
|
|
2247
|
-
function convert$lambda$lambda$
|
|
2246
|
+
function convert$lambda$lambda$lambda_34($endpoint) {
|
|
2248
2247
|
return function ($this$function) {
|
|
2249
2248
|
$this$function.p1i($this$function.y1h('Response', [$this$function.n1l()]));
|
|
2250
2249
|
$this$function.q1i('serialization', $this$function.y1h('Wirespec.Deserializer', []));
|
|
2251
2250
|
$this$function.q1i('response', $this$function.y1h('Wirespec.RawResponse', []));
|
|
2252
2251
|
var tmp = new FieldCall(new VariableReference(Companion_getInstance().k1h('response')), Name_init_$Create$(['status', 'Code']));
|
|
2253
|
-
$this$function.r1l(tmp, VOID, convert$lambda$lambda$lambda$
|
|
2252
|
+
$this$function.r1l(tmp, VOID, convert$lambda$lambda$lambda$lambda_13($endpoint));
|
|
2254
2253
|
return Unit_instance;
|
|
2255
2254
|
};
|
|
2256
2255
|
}
|
|
2257
|
-
function convert$lambda$lambda$lambda$
|
|
2256
|
+
function convert$lambda$lambda$lambda$lambda_14($this$asyncFunction) {
|
|
2258
2257
|
$this$asyncFunction.q1i('request', $this$asyncFunction.y1h('Request', []));
|
|
2259
2258
|
$this$asyncFunction.p1i($this$asyncFunction.y1h('Response', [$this$asyncFunction.n1l()]));
|
|
2260
2259
|
return Unit_instance;
|
|
2261
2260
|
}
|
|
2262
|
-
function convert$lambda$lambda$
|
|
2261
|
+
function convert$lambda$lambda$lambda_35($endpoint) {
|
|
2263
2262
|
return function ($this$interface) {
|
|
2264
2263
|
$this$interface.j1j($this$interface.y1h('Wirespec.Handler', []));
|
|
2265
2264
|
var tmp = toName($endpoint.ip_1);
|
|
2266
|
-
$this$interface.s1l(tmp, VOID, VOID, convert$lambda$lambda$lambda$
|
|
2265
|
+
$this$interface.s1l(tmp, VOID, VOID, convert$lambda$lambda$lambda$lambda_14);
|
|
2267
2266
|
return Unit_instance;
|
|
2268
2267
|
};
|
|
2269
2268
|
}
|
|
2270
|
-
function convert$lambda$lambda$lambda$
|
|
2269
|
+
function convert$lambda$lambda$lambda$lambda_15($endpoint) {
|
|
2271
2270
|
return function ($this$asyncFunction) {
|
|
2272
2271
|
// Inline function 'kotlin.collections.forEach' call
|
|
2273
2272
|
var _iterator__ex2g4s = requestParameters($endpoint).t();
|
|
@@ -2281,11 +2280,11 @@ function convert$lambda$lambda$lambda$lambda_16($endpoint) {
|
|
|
2281
2280
|
return Unit_instance;
|
|
2282
2281
|
};
|
|
2283
2282
|
}
|
|
2284
|
-
function convert$lambda$lambda$
|
|
2283
|
+
function convert$lambda$lambda$lambda_36($endpoint) {
|
|
2285
2284
|
return function ($this$interface) {
|
|
2286
2285
|
$this$interface.j1j($this$interface.y1h('Wirespec.Call', []));
|
|
2287
2286
|
var tmp = toName($endpoint.ip_1);
|
|
2288
|
-
$this$interface.s1l(tmp, VOID, VOID, convert$lambda$lambda$lambda$
|
|
2287
|
+
$this$interface.s1l(tmp, VOID, VOID, convert$lambda$lambda$lambda$lambda_15($endpoint));
|
|
2289
2288
|
return Unit_instance;
|
|
2290
2289
|
};
|
|
2291
2290
|
}
|
|
@@ -2447,19 +2446,21 @@ function convert$lambda$lambda_3($endpoint, $pathParams, $requestBodyType, $requ
|
|
|
2447
2446
|
var statusClassName = tmp_6;
|
|
2448
2447
|
var statusPrefix = first_0(element_3.up_1);
|
|
2449
2448
|
var contentTypeName = toTypeName(bodyType);
|
|
2449
|
+
var headersName = 'Response' + statusClassName + 'Headers';
|
|
2450
|
+
$this$namespace.u1i(headersName, convert$lambda$lambda$lambda_29(element_3));
|
|
2450
2451
|
var tmp_7 = 'Response' + statusClassName;
|
|
2451
|
-
$this$namespace.u1i(tmp_7, convert$lambda$lambda$
|
|
2452
|
+
$this$namespace.u1i(tmp_7, convert$lambda$lambda$lambda_30(statusPrefix, bodyType, contentTypeName, statusCode, headersName, element_3));
|
|
2452
2453
|
}
|
|
2453
2454
|
var tmp_8 = Name_init_$Create$(['to', 'Raw', 'Request']);
|
|
2454
|
-
$this$namespace.g1j(tmp_8, true, VOID, convert$lambda$lambda$
|
|
2455
|
+
$this$namespace.g1j(tmp_8, true, VOID, convert$lambda$lambda$lambda_31($endpoint));
|
|
2455
2456
|
var tmp_9 = Name_init_$Create$(['from', 'Raw', 'Request']);
|
|
2456
|
-
$this$namespace.g1j(tmp_9, true, VOID, convert$lambda$lambda$
|
|
2457
|
+
$this$namespace.g1j(tmp_9, true, VOID, convert$lambda$lambda$lambda_32($endpoint));
|
|
2457
2458
|
var tmp_10 = Name_init_$Create$(['to', 'Raw', 'Response']);
|
|
2458
|
-
$this$namespace.g1j(tmp_10, true, VOID, convert$lambda$lambda$
|
|
2459
|
+
$this$namespace.g1j(tmp_10, true, VOID, convert$lambda$lambda$lambda_33($endpoint));
|
|
2459
2460
|
var tmp_11 = Name_init_$Create$(['from', 'Raw', 'Response']);
|
|
2460
|
-
$this$namespace.g1j(tmp_11, true, VOID, convert$lambda$lambda$
|
|
2461
|
-
$this$namespace.s1i('Handler', VOID, convert$lambda$lambda$
|
|
2462
|
-
$this$namespace.s1i('Call', VOID, convert$lambda$lambda$
|
|
2461
|
+
$this$namespace.g1j(tmp_11, true, VOID, convert$lambda$lambda$lambda_34($endpoint));
|
|
2462
|
+
$this$namespace.s1i('Handler', VOID, convert$lambda$lambda$lambda_35($endpoint));
|
|
2463
|
+
$this$namespace.s1i('Call', VOID, convert$lambda$lambda$lambda_36($endpoint));
|
|
2463
2464
|
return Unit_instance;
|
|
2464
2465
|
};
|
|
2465
2466
|
}
|
|
@@ -2471,7 +2472,7 @@ function convert$lambda_3($this_convert, $endpoint, $pathParams, $requestBodyTyp
|
|
|
2471
2472
|
return Unit_instance;
|
|
2472
2473
|
};
|
|
2473
2474
|
}
|
|
2474
|
-
function convert$lambda$lambda$
|
|
2475
|
+
function convert$lambda$lambda$lambda_37($this_convert) {
|
|
2475
2476
|
return function ($this$function) {
|
|
2476
2477
|
$this$function.q1i('message', convert_5($this_convert.ro_1));
|
|
2477
2478
|
$this$function.p1i($this$function.v1l());
|
|
@@ -2481,7 +2482,7 @@ function convert$lambda$lambda$lambda_36($this_convert) {
|
|
|
2481
2482
|
function convert$lambda$lambda_4($this_convert) {
|
|
2482
2483
|
return function ($this$interface) {
|
|
2483
2484
|
$this$interface.j1j($this$interface.y1h('Wirespec.Channel', []));
|
|
2484
|
-
$this$interface.g1i('invoke', VOID, VOID, convert$lambda$lambda$
|
|
2485
|
+
$this$interface.g1i('invoke', VOID, VOID, convert$lambda$lambda$lambda_37($this_convert));
|
|
2485
2486
|
return Unit_instance;
|
|
2486
2487
|
};
|
|
2487
2488
|
}
|
|
@@ -2492,7 +2493,7 @@ function convert$lambda_4($this_convert) {
|
|
|
2492
2493
|
return Unit_instance;
|
|
2493
2494
|
};
|
|
2494
2495
|
}
|
|
2495
|
-
function convert$lambda$lambda$
|
|
2496
|
+
function convert$lambda$lambda$lambda_38($this$function) {
|
|
2496
2497
|
$this$function.p1i(new Array_0(String_instance));
|
|
2497
2498
|
$this$function.o1k(new LiteralList(emptyList(), String_instance));
|
|
2498
2499
|
return Unit_instance;
|
|
@@ -2532,7 +2533,7 @@ function convert$lambda$lambda_5($this_convert) {
|
|
|
2532
2533
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
2533
2534
|
$this$struct.s1j(toName(element_1.ep_1), convert_5(element_1.fp_1));
|
|
2534
2535
|
}
|
|
2535
|
-
$this$struct.g1i('validate', VOID, true, convert$lambda$lambda$
|
|
2536
|
+
$this$struct.g1i('validate', VOID, true, convert$lambda$lambda$lambda_38);
|
|
2536
2537
|
return Unit_instance;
|
|
2537
2538
|
};
|
|
2538
2539
|
}
|
|
@@ -3405,43 +3406,61 @@ protoOf(Struct).equals = function (other) {
|
|
|
3405
3406
|
return false;
|
|
3406
3407
|
return true;
|
|
3407
3408
|
};
|
|
3409
|
+
function RawElement(code) {
|
|
3410
|
+
this.p1n_1 = code;
|
|
3411
|
+
}
|
|
3412
|
+
protoOf(RawElement).toString = function () {
|
|
3413
|
+
return 'RawElement(code=' + this.p1n_1 + ')';
|
|
3414
|
+
};
|
|
3415
|
+
protoOf(RawElement).hashCode = function () {
|
|
3416
|
+
return getStringHashCode(this.p1n_1);
|
|
3417
|
+
};
|
|
3418
|
+
protoOf(RawElement).equals = function (other) {
|
|
3419
|
+
if (this === other)
|
|
3420
|
+
return true;
|
|
3421
|
+
if (!(other instanceof RawElement))
|
|
3422
|
+
return false;
|
|
3423
|
+
if (!(this.p1n_1 === other.p1n_1))
|
|
3424
|
+
return false;
|
|
3425
|
+
return true;
|
|
3426
|
+
};
|
|
3408
3427
|
function Interface(name, elements, extends_0, isSealed, typeParameters, fields) {
|
|
3409
3428
|
extends_0 = extends_0 === VOID ? emptyList() : extends_0;
|
|
3410
3429
|
isSealed = isSealed === VOID ? false : isSealed;
|
|
3411
3430
|
typeParameters = typeParameters === VOID ? emptyList() : typeParameters;
|
|
3412
3431
|
fields = fields === VOID ? emptyList() : fields;
|
|
3413
|
-
this.
|
|
3414
|
-
this.
|
|
3415
|
-
this.
|
|
3416
|
-
this.
|
|
3417
|
-
this.
|
|
3418
|
-
this.
|
|
3432
|
+
this.q1n_1 = name;
|
|
3433
|
+
this.r1n_1 = elements;
|
|
3434
|
+
this.s1n_1 = extends_0;
|
|
3435
|
+
this.t1n_1 = isSealed;
|
|
3436
|
+
this.u1n_1 = typeParameters;
|
|
3437
|
+
this.v1n_1 = fields;
|
|
3419
3438
|
}
|
|
3420
3439
|
protoOf(Interface).z1m = function () {
|
|
3421
|
-
return this.
|
|
3440
|
+
return this.r1n_1;
|
|
3422
3441
|
};
|
|
3423
|
-
protoOf(Interface).
|
|
3442
|
+
protoOf(Interface).w1n = function (name, elements, extends_0, isSealed, typeParameters, fields) {
|
|
3424
3443
|
return new Interface(name, elements, extends_0, isSealed, typeParameters, fields);
|
|
3425
3444
|
};
|
|
3426
|
-
protoOf(Interface).
|
|
3427
|
-
name = name === VOID ? this.
|
|
3428
|
-
elements = elements === VOID ? this.
|
|
3429
|
-
extends_0 = extends_0 === VOID ? this.
|
|
3430
|
-
isSealed = isSealed === VOID ? this.
|
|
3431
|
-
typeParameters = typeParameters === VOID ? this.
|
|
3432
|
-
fields = fields === VOID ? this.
|
|
3433
|
-
return $super === VOID ? this.
|
|
3445
|
+
protoOf(Interface).x1n = function (name, elements, extends_0, isSealed, typeParameters, fields, $super) {
|
|
3446
|
+
name = name === VOID ? this.q1n_1 : name;
|
|
3447
|
+
elements = elements === VOID ? this.r1n_1 : elements;
|
|
3448
|
+
extends_0 = extends_0 === VOID ? this.s1n_1 : extends_0;
|
|
3449
|
+
isSealed = isSealed === VOID ? this.t1n_1 : isSealed;
|
|
3450
|
+
typeParameters = typeParameters === VOID ? this.u1n_1 : typeParameters;
|
|
3451
|
+
fields = fields === VOID ? this.v1n_1 : fields;
|
|
3452
|
+
return $super === VOID ? this.w1n(name, elements, extends_0, isSealed, typeParameters, fields) : $super.w1n.call(this, name, elements, extends_0, isSealed, typeParameters, fields);
|
|
3434
3453
|
};
|
|
3435
3454
|
protoOf(Interface).toString = function () {
|
|
3436
|
-
return 'Interface(name=' + this.
|
|
3455
|
+
return 'Interface(name=' + this.q1n_1.toString() + ', elements=' + toString_0(this.r1n_1) + ', extends=' + toString_0(this.s1n_1) + ', isSealed=' + this.t1n_1 + ', typeParameters=' + toString_0(this.u1n_1) + ', fields=' + toString_0(this.v1n_1) + ')';
|
|
3437
3456
|
};
|
|
3438
3457
|
protoOf(Interface).hashCode = function () {
|
|
3439
|
-
var result = this.
|
|
3440
|
-
result = imul(result, 31) + hashCode(this.q1n_1) | 0;
|
|
3458
|
+
var result = this.q1n_1.hashCode();
|
|
3441
3459
|
result = imul(result, 31) + hashCode(this.r1n_1) | 0;
|
|
3442
|
-
result = imul(result, 31) +
|
|
3443
|
-
result = imul(result, 31) +
|
|
3460
|
+
result = imul(result, 31) + hashCode(this.s1n_1) | 0;
|
|
3461
|
+
result = imul(result, 31) + getBooleanHashCode(this.t1n_1) | 0;
|
|
3444
3462
|
result = imul(result, 31) + hashCode(this.u1n_1) | 0;
|
|
3463
|
+
result = imul(result, 31) + hashCode(this.v1n_1) | 0;
|
|
3445
3464
|
return result;
|
|
3446
3465
|
};
|
|
3447
3466
|
protoOf(Interface).equals = function (other) {
|
|
@@ -3449,35 +3468,17 @@ protoOf(Interface).equals = function (other) {
|
|
|
3449
3468
|
return true;
|
|
3450
3469
|
if (!(other instanceof Interface))
|
|
3451
3470
|
return false;
|
|
3452
|
-
if (!this.
|
|
3453
|
-
return false;
|
|
3454
|
-
if (!equals(this.q1n_1, other.q1n_1))
|
|
3471
|
+
if (!this.q1n_1.equals(other.q1n_1))
|
|
3455
3472
|
return false;
|
|
3456
3473
|
if (!equals(this.r1n_1, other.r1n_1))
|
|
3457
3474
|
return false;
|
|
3458
|
-
if (!(this.s1n_1
|
|
3475
|
+
if (!equals(this.s1n_1, other.s1n_1))
|
|
3459
3476
|
return false;
|
|
3460
|
-
if (!
|
|
3477
|
+
if (!(this.t1n_1 === other.t1n_1))
|
|
3461
3478
|
return false;
|
|
3462
3479
|
if (!equals(this.u1n_1, other.u1n_1))
|
|
3463
3480
|
return false;
|
|
3464
|
-
|
|
3465
|
-
};
|
|
3466
|
-
function RawElement(code) {
|
|
3467
|
-
this.x1n_1 = code;
|
|
3468
|
-
}
|
|
3469
|
-
protoOf(RawElement).toString = function () {
|
|
3470
|
-
return 'RawElement(code=' + this.x1n_1 + ')';
|
|
3471
|
-
};
|
|
3472
|
-
protoOf(RawElement).hashCode = function () {
|
|
3473
|
-
return getStringHashCode(this.x1n_1);
|
|
3474
|
-
};
|
|
3475
|
-
protoOf(RawElement).equals = function (other) {
|
|
3476
|
-
if (this === other)
|
|
3477
|
-
return true;
|
|
3478
|
-
if (!(other instanceof RawElement))
|
|
3479
|
-
return false;
|
|
3480
|
-
if (!(this.x1n_1 === other.x1n_1))
|
|
3481
|
+
if (!equals(this.v1n_1, other.v1n_1))
|
|
3481
3482
|
return false;
|
|
3482
3483
|
return true;
|
|
3483
3484
|
};
|
|
@@ -5376,7 +5377,7 @@ function plus_2(_this__u8e3s4, element) {
|
|
|
5376
5377
|
tmp = isInterface(tmp_2, HasElements) ? tmp_2 : THROW_CCE();
|
|
5377
5378
|
} else {
|
|
5378
5379
|
if (_this__u8e3s4 instanceof Interface) {
|
|
5379
|
-
var tmp_3 = _this__u8e3s4.
|
|
5380
|
+
var tmp_3 = _this__u8e3s4.x1n(VOID, plus_0(_this__u8e3s4.r1n_1, element));
|
|
5380
5381
|
tmp = isInterface(tmp_3, HasElements) ? tmp_3 : THROW_CCE();
|
|
5381
5382
|
} else {
|
|
5382
5383
|
if (_this__u8e3s4 instanceof Enum_1) {
|
|
@@ -6028,7 +6029,7 @@ function transformChildren_1(_this__u8e3s4, transformer) {
|
|
|
6028
6029
|
} else {
|
|
6029
6030
|
if (_this__u8e3s4 instanceof Interface) {
|
|
6030
6031
|
// Inline function 'kotlin.collections.map' call
|
|
6031
|
-
var this_8 = _this__u8e3s4.
|
|
6032
|
+
var this_8 = _this__u8e3s4.r1n_1;
|
|
6032
6033
|
// Inline function 'kotlin.collections.mapTo' call
|
|
6033
6034
|
var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_8, 10));
|
|
6034
6035
|
var _iterator__ex2g4s_7 = this_8.t();
|
|
@@ -6039,7 +6040,7 @@ function transformChildren_1(_this__u8e3s4, transformer) {
|
|
|
6039
6040
|
}
|
|
6040
6041
|
var tmp_11 = destination_7;
|
|
6041
6042
|
// Inline function 'kotlin.collections.map' call
|
|
6042
|
-
var this_9 = _this__u8e3s4.
|
|
6043
|
+
var this_9 = _this__u8e3s4.s1n_1;
|
|
6043
6044
|
// Inline function 'kotlin.collections.mapTo' call
|
|
6044
6045
|
var destination_8 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_9, 10));
|
|
6045
6046
|
var _iterator__ex2g4s_8 = this_9.t();
|
|
@@ -6051,7 +6052,7 @@ function transformChildren_1(_this__u8e3s4, transformer) {
|
|
|
6051
6052
|
}
|
|
6052
6053
|
var tmp_13 = destination_8;
|
|
6053
6054
|
// Inline function 'kotlin.collections.map' call
|
|
6054
|
-
var this_10 = _this__u8e3s4.
|
|
6055
|
+
var this_10 = _this__u8e3s4.v1n_1;
|
|
6055
6056
|
// Inline function 'kotlin.collections.mapTo' call
|
|
6056
6057
|
var destination_9 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_10, 10));
|
|
6057
6058
|
var _iterator__ex2g4s_9 = this_10.t();
|
|
@@ -6060,7 +6061,7 @@ function transformChildren_1(_this__u8e3s4, transformer) {
|
|
|
6060
6061
|
var tmp$ret$34 = transformer.y1t(item_9);
|
|
6061
6062
|
destination_9.x(tmp$ret$34);
|
|
6062
6063
|
}
|
|
6063
|
-
tmp = _this__u8e3s4.
|
|
6064
|
+
tmp = _this__u8e3s4.x1n(VOID, tmp_11, tmp_13, VOID, VOID, destination_9);
|
|
6064
6065
|
} else {
|
|
6065
6066
|
if (_this__u8e3s4 instanceof Union_0) {
|
|
6066
6067
|
var tmp3_safe_receiver = _this__u8e3s4.z1p_1;
|
|
@@ -6293,7 +6294,7 @@ function withElements(_this__u8e3s4, elements) {
|
|
|
6293
6294
|
tmp = _this__u8e3s4.h1n(VOID, elements);
|
|
6294
6295
|
} else {
|
|
6295
6296
|
if (_this__u8e3s4 instanceof Interface) {
|
|
6296
|
-
tmp = _this__u8e3s4.
|
|
6297
|
+
tmp = _this__u8e3s4.x1n(VOID, elements);
|
|
6297
6298
|
} else {
|
|
6298
6299
|
if (_this__u8e3s4 instanceof Enum_1) {
|
|
6299
6300
|
tmp = _this__u8e3s4.j1o(VOID, VOID, VOID, VOID, VOID, elements);
|
|
@@ -6530,7 +6531,7 @@ function emit_2($this, _this__u8e3s4, indent, isStatic, parents) {
|
|
|
6530
6531
|
tmp = joinToString(_this__u8e3s4.y1m_1, '', VOID, VOID, VOID, VOID, JavaGenerator$emit$lambda_1(indent, isStatic, parents));
|
|
6531
6532
|
} else {
|
|
6532
6533
|
if (_this__u8e3s4 instanceof RawElement) {
|
|
6533
|
-
tmp = indentCode($this, _this__u8e3s4.
|
|
6534
|
+
tmp = indentCode($this, _this__u8e3s4.p1n_1, indent);
|
|
6534
6535
|
} else {
|
|
6535
6536
|
noWhenBranchMatchedException();
|
|
6536
6537
|
}
|
|
@@ -6678,7 +6679,7 @@ function emit_6($this, _this__u8e3s4, indent, parents) {
|
|
|
6678
6679
|
var publicStr = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
6679
6680
|
// Inline function 'kotlin.takeIf' call
|
|
6680
6681
|
var tmp_2;
|
|
6681
|
-
if (_this__u8e3s4.
|
|
6682
|
+
if (_this__u8e3s4.t1n_1) {
|
|
6682
6683
|
tmp_2 = 'sealed ';
|
|
6683
6684
|
} else {
|
|
6684
6685
|
tmp_2 = null;
|
|
@@ -6686,17 +6687,17 @@ function emit_6($this, _this__u8e3s4, indent, parents) {
|
|
|
6686
6687
|
// Inline function 'kotlin.text.orEmpty' call
|
|
6687
6688
|
var tmp0_elvis_lhs_0 = tmp_2;
|
|
6688
6689
|
var sealedStr = tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0;
|
|
6689
|
-
var tmp0 = _this__u8e3s4.
|
|
6690
|
+
var tmp0 = _this__u8e3s4.u1n_1;
|
|
6690
6691
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
6691
6692
|
var transform = JavaGenerator$emit$lambda_3;
|
|
6692
6693
|
var typeParamsStr = none(tmp0) ? '' : joinToString(tmp0, ', ', '<', '>', VOID, VOID, transform);
|
|
6693
|
-
var tmp0_0 = _this__u8e3s4.
|
|
6694
|
+
var tmp0_0 = _this__u8e3s4.s1n_1;
|
|
6694
6695
|
var tmp4 = ' extends ';
|
|
6695
6696
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
6696
6697
|
var transform_0 = JavaGenerator$emit$lambda_4;
|
|
6697
6698
|
var extStr = none(tmp0_0) ? '' : joinToString(tmp0_0, ', ', tmp4, '', VOID, VOID, transform_0);
|
|
6698
|
-
var fieldsContent = joinToString(_this__u8e3s4.
|
|
6699
|
-
var elementsContent = joinToString(_this__u8e3s4.
|
|
6699
|
+
var fieldsContent = joinToString(_this__u8e3s4.v1n_1, '', VOID, VOID, VOID, VOID, JavaGenerator$emit$lambda_5);
|
|
6700
|
+
var elementsContent = joinToString(_this__u8e3s4.r1n_1, '', VOID, VOID, VOID, VOID, JavaGenerator$emit$lambda_6(parents, _this__u8e3s4));
|
|
6700
6701
|
var content = fieldsContent + elementsContent;
|
|
6701
6702
|
var tmp_3;
|
|
6702
6703
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -6706,7 +6707,7 @@ function emit_6($this, _this__u8e3s4, indent, parents) {
|
|
|
6706
6707
|
tmp_3 = '{\n' + content + indentCode($this, '}', 0);
|
|
6707
6708
|
}
|
|
6708
6709
|
var body = tmp_3;
|
|
6709
|
-
return indentCode($this, publicStr + sealedStr + 'interface ' + _this__u8e3s4.
|
|
6710
|
+
return indentCode($this, publicStr + sealedStr + 'interface ' + _this__u8e3s4.q1n_1.m1h() + typeParamsStr + extStr + ' ' + body + '\n\n', indent);
|
|
6710
6711
|
}
|
|
6711
6712
|
function emit_7($this, _this__u8e3s4, indent, parents) {
|
|
6712
6713
|
var tmp0 = _this__u8e3s4.b1q_1;
|
|
@@ -8286,7 +8287,7 @@ function emit_20($this, _this__u8e3s4, indent, isStatic, parents) {
|
|
|
8286
8287
|
tmp = joinToString(_this__u8e3s4.y1m_1, '', VOID, VOID, VOID, VOID, KotlinGenerator$emit$lambda_1(indent, isStatic, parents));
|
|
8287
8288
|
} else {
|
|
8288
8289
|
if (_this__u8e3s4 instanceof RawElement) {
|
|
8289
|
-
tmp = indentCode_0($this, _this__u8e3s4.
|
|
8290
|
+
tmp = indentCode_0($this, _this__u8e3s4.p1n_1 + '\n', indent);
|
|
8290
8291
|
} else {
|
|
8291
8292
|
noWhenBranchMatchedException();
|
|
8292
8293
|
}
|
|
@@ -8324,7 +8325,7 @@ function emit_23($this, _this__u8e3s4, indent, parents) {
|
|
|
8324
8325
|
function emit_24($this, _this__u8e3s4, indent, parents) {
|
|
8325
8326
|
// Inline function 'kotlin.takeIf' call
|
|
8326
8327
|
var tmp;
|
|
8327
|
-
if (_this__u8e3s4.
|
|
8328
|
+
if (_this__u8e3s4.t1n_1) {
|
|
8328
8329
|
tmp = 'sealed ';
|
|
8329
8330
|
} else {
|
|
8330
8331
|
tmp = null;
|
|
@@ -8332,23 +8333,23 @@ function emit_24($this, _this__u8e3s4, indent, parents) {
|
|
|
8332
8333
|
// Inline function 'kotlin.text.orEmpty' call
|
|
8333
8334
|
var tmp0_elvis_lhs = tmp;
|
|
8334
8335
|
var sealedStr = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
8335
|
-
var tmp0 = _this__u8e3s4.
|
|
8336
|
+
var tmp0 = _this__u8e3s4.u1n_1;
|
|
8336
8337
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
8337
8338
|
var transform = KotlinGenerator$emit$lambda_3;
|
|
8338
8339
|
var typeParamsStr = none(tmp0) ? '' : joinToString(tmp0, ', ', '<', '>', VOID, VOID, transform);
|
|
8339
|
-
var tmp0_0 = _this__u8e3s4.
|
|
8340
|
+
var tmp0_0 = _this__u8e3s4.s1n_1;
|
|
8340
8341
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
8341
8342
|
var transform_0 = KotlinGenerator$emit$lambda_4;
|
|
8342
8343
|
var extStr = none(tmp0_0) ? '' : joinToString(tmp0_0, ', ', ' : ', '', VOID, VOID, transform_0);
|
|
8343
|
-
var fieldsContent = joinToString(_this__u8e3s4.
|
|
8344
|
-
var elementsContent = joinToString(_this__u8e3s4.
|
|
8344
|
+
var fieldsContent = joinToString(_this__u8e3s4.v1n_1, '', VOID, VOID, VOID, VOID, KotlinGenerator$emit$lambda_5(indent));
|
|
8345
|
+
var elementsContent = joinToString(_this__u8e3s4.r1n_1, '', VOID, VOID, VOID, VOID, KotlinGenerator$emit$lambda_6(indent, parents, _this__u8e3s4));
|
|
8345
8346
|
var content = fieldsContent + elementsContent;
|
|
8346
8347
|
var tmp_0;
|
|
8347
8348
|
// Inline function 'kotlin.text.isEmpty' call
|
|
8348
8349
|
if (charSequenceLength(content) === 0) {
|
|
8349
|
-
tmp_0 = indentCode_0($this, sealedStr + 'interface ' + _this__u8e3s4.
|
|
8350
|
+
tmp_0 = indentCode_0($this, sealedStr + 'interface ' + _this__u8e3s4.q1n_1.m1h() + typeParamsStr + extStr + '\n\n', indent);
|
|
8350
8351
|
} else {
|
|
8351
|
-
tmp_0 = indentCode_0($this, sealedStr + 'interface ' + _this__u8e3s4.
|
|
8352
|
+
tmp_0 = indentCode_0($this, sealedStr + 'interface ' + _this__u8e3s4.q1n_1.m1h() + typeParamsStr + extStr + ' {\n' + content + indentCode_0($this, '}', 0) + '\n\n', indent);
|
|
8352
8353
|
}
|
|
8353
8354
|
return tmp_0;
|
|
8354
8355
|
}
|
|
@@ -9820,7 +9821,7 @@ function emit_38($this, _this__u8e3s4, indent, parents, isStaticScope, qualifier
|
|
|
9820
9821
|
tmp = joinToString(_this__u8e3s4.y1m_1, '', VOID, VOID, VOID, VOID, PythonGenerator$emit$lambda_2(indent, parents, isStaticScope, qualifier));
|
|
9821
9822
|
} else {
|
|
9822
9823
|
if (_this__u8e3s4 instanceof RawElement) {
|
|
9823
|
-
tmp = indentCode_1($this, _this__u8e3s4.
|
|
9824
|
+
tmp = indentCode_1($this, _this__u8e3s4.p1n_1 + '\n', indent);
|
|
9824
9825
|
} else {
|
|
9825
9826
|
noWhenBranchMatchedException();
|
|
9826
9827
|
}
|
|
@@ -9907,7 +9908,7 @@ function emit_41($this, _this__u8e3s4, indent, parents) {
|
|
|
9907
9908
|
}
|
|
9908
9909
|
function emit_42($this, _this__u8e3s4, indent, parents, qualifier) {
|
|
9909
9910
|
// Inline function 'kotlin.collections.map' call
|
|
9910
|
-
var this_0 = _this__u8e3s4.
|
|
9911
|
+
var this_0 = _this__u8e3s4.s1n_1;
|
|
9911
9912
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9912
9913
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
9913
9914
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -9919,12 +9920,12 @@ function emit_42($this, _this__u8e3s4, indent, parents, qualifier) {
|
|
|
9919
9920
|
var p = toMutableList(destination);
|
|
9920
9921
|
p.x('ABC');
|
|
9921
9922
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
9922
|
-
if (!_this__u8e3s4.
|
|
9923
|
-
p.x('Generic[' + joinToString(_this__u8e3s4.
|
|
9923
|
+
if (!_this__u8e3s4.u1n_1.r()) {
|
|
9924
|
+
p.x('Generic[' + joinToString(_this__u8e3s4.u1n_1, ', ', VOID, VOID, VOID, VOID, PythonGenerator$emit$lambda_5) + ']');
|
|
9924
9925
|
}
|
|
9925
9926
|
var ext = p.r() ? '' : '(' + joinToString(p, ', ') + ')';
|
|
9926
9927
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
9927
|
-
var tmp0 = _this__u8e3s4.
|
|
9928
|
+
var tmp0 = _this__u8e3s4.r1n_1;
|
|
9928
9929
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
9929
9930
|
var destination_0 = ArrayList_init_$Create$();
|
|
9930
9931
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -9954,8 +9955,8 @@ function emit_42($this, _this__u8e3s4, indent, parents, qualifier) {
|
|
|
9954
9955
|
tmp = qualifier;
|
|
9955
9956
|
}
|
|
9956
9957
|
var adjustedQualifier = tmp;
|
|
9957
|
-
var fieldsContent = joinToString(_this__u8e3s4.
|
|
9958
|
-
var elementsContent = joinToString(_this__u8e3s4.
|
|
9958
|
+
var fieldsContent = joinToString(_this__u8e3s4.v1n_1, '', VOID, VOID, VOID, VOID, PythonGenerator$emit$lambda_7(adjustedQualifier, indent));
|
|
9959
|
+
var elementsContent = joinToString(_this__u8e3s4.r1n_1, '', VOID, VOID, VOID, VOID, PythonGenerator$emit$lambda_8(indent, parents, _this__u8e3s4, adjustedQualifier));
|
|
9959
9960
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
9960
9961
|
var this_1 = fieldsContent + elementsContent;
|
|
9961
9962
|
var tmp_1;
|
|
@@ -9966,7 +9967,7 @@ function emit_42($this, _this__u8e3s4, indent, parents, qualifier) {
|
|
|
9966
9967
|
tmp_1 = this_1;
|
|
9967
9968
|
}
|
|
9968
9969
|
var content = tmp_1;
|
|
9969
|
-
return indentCode_1($this, 'class ' + _this__u8e3s4.
|
|
9970
|
+
return indentCode_1($this, 'class ' + _this__u8e3s4.q1n_1.m1h() + ext + ':\n' + content + '\n', indent);
|
|
9970
9971
|
}
|
|
9971
9972
|
function emit_43($this, _this__u8e3s4, indent, parents) {
|
|
9972
9973
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -10971,7 +10972,7 @@ function emit_54($this, _this__u8e3s4) {
|
|
|
10971
10972
|
function elementName($this, element) {
|
|
10972
10973
|
var tmp;
|
|
10973
10974
|
if (element instanceof Interface) {
|
|
10974
|
-
tmp = element.
|
|
10975
|
+
tmp = element.q1n_1.m1h();
|
|
10975
10976
|
} else {
|
|
10976
10977
|
if (element instanceof Struct) {
|
|
10977
10978
|
tmp = element.i1n_1.m1h();
|
|
@@ -11319,7 +11320,7 @@ function emit_56($this, _this__u8e3s4, indent, parents, isStaticScope) {
|
|
|
11319
11320
|
tmp = joinToString(_this__u8e3s4.y1m_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_2(indent, parents, isStaticScope));
|
|
11320
11321
|
} else {
|
|
11321
11322
|
if (_this__u8e3s4 instanceof RawElement) {
|
|
11322
|
-
tmp = indentCode_2($this, _this__u8e3s4.
|
|
11323
|
+
tmp = indentCode_2($this, _this__u8e3s4.p1n_1 + '\n', indent);
|
|
11323
11324
|
} else {
|
|
11324
11325
|
noWhenBranchMatchedException();
|
|
11325
11326
|
}
|
|
@@ -11412,17 +11413,17 @@ function emit_59($this, _this__u8e3s4, indent, parents) {
|
|
|
11412
11413
|
return tmp_3;
|
|
11413
11414
|
}
|
|
11414
11415
|
function emit_60($this, _this__u8e3s4, indent, parents) {
|
|
11415
|
-
var rustName = _this__u8e3s4.
|
|
11416
|
-
var tmp0 = _this__u8e3s4.
|
|
11416
|
+
var rustName = _this__u8e3s4.q1n_1.m1h();
|
|
11417
|
+
var tmp0 = _this__u8e3s4.u1n_1;
|
|
11417
11418
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
11418
11419
|
var transform = RustGenerator$emit$lambda_4;
|
|
11419
11420
|
var typeParamsStr = none(tmp0) ? '' : joinToString(tmp0, ', ', '<', '>', VOID, VOID, transform);
|
|
11420
|
-
var tmp0_0 = _this__u8e3s4.
|
|
11421
|
+
var tmp0_0 = _this__u8e3s4.s1n_1;
|
|
11421
11422
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
11422
11423
|
var transform_0 = RustGenerator$emit$lambda_5;
|
|
11423
11424
|
var extStr = none(tmp0_0) ? '' : joinToString(tmp0_0, ' + ', ': ', '', VOID, VOID, transform_0);
|
|
11424
|
-
var fieldsContent = joinToString(_this__u8e3s4.
|
|
11425
|
-
var elementsContent = joinToString(_this__u8e3s4.
|
|
11425
|
+
var fieldsContent = joinToString(_this__u8e3s4.v1n_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_6);
|
|
11426
|
+
var elementsContent = joinToString(_this__u8e3s4.r1n_1, '', VOID, VOID, VOID, VOID, RustGenerator$emit$lambda_7(parents, _this__u8e3s4));
|
|
11426
11427
|
var content = fieldsContent + elementsContent;
|
|
11427
11428
|
var signature = 'pub trait ' + rustName + typeParamsStr + extStr;
|
|
11428
11429
|
var tmp;
|
|
@@ -12648,7 +12649,7 @@ function collectObjectNames($this, elements) {
|
|
|
12648
12649
|
names.f1(collectObjectNames($this, element.e1n_1));
|
|
12649
12650
|
else {
|
|
12650
12651
|
if (element instanceof Interface)
|
|
12651
|
-
names.f1(collectObjectNames($this, element.
|
|
12652
|
+
names.f1(collectObjectNames($this, element.r1n_1));
|
|
12652
12653
|
}
|
|
12653
12654
|
}
|
|
12654
12655
|
}
|
|
@@ -12708,7 +12709,7 @@ function collectPrimaryFieldNames($this, elements) {
|
|
|
12708
12709
|
result.u2(collectPrimaryFieldNames($this, element.e1n_1));
|
|
12709
12710
|
} else {
|
|
12710
12711
|
if (element instanceof Interface) {
|
|
12711
|
-
result.u2(collectPrimaryFieldNames($this, element.
|
|
12712
|
+
result.u2(collectPrimaryFieldNames($this, element.r1n_1));
|
|
12712
12713
|
}
|
|
12713
12714
|
}
|
|
12714
12715
|
}
|
|
@@ -12863,7 +12864,7 @@ function emit_73($this, _this__u8e3s4, indent, isStatic, parents) {
|
|
|
12863
12864
|
tmp = joinToString(_this__u8e3s4.y1m_1, '', VOID, VOID, VOID, VOID, ScalaGenerator$emit$lambda_1(indent, isStatic, parents));
|
|
12864
12865
|
} else {
|
|
12865
12866
|
if (_this__u8e3s4 instanceof RawElement) {
|
|
12866
|
-
tmp = indentCode_3($this, _this__u8e3s4.
|
|
12867
|
+
tmp = indentCode_3($this, _this__u8e3s4.p1n_1 + '\n', indent);
|
|
12867
12868
|
} else {
|
|
12868
12869
|
noWhenBranchMatchedException();
|
|
12869
12870
|
}
|
|
@@ -12908,7 +12909,7 @@ function emit_76($this, _this__u8e3s4, indent, parents) {
|
|
|
12908
12909
|
function emit_77($this, _this__u8e3s4, indent, parents) {
|
|
12909
12910
|
// Inline function 'kotlin.takeIf' call
|
|
12910
12911
|
var tmp;
|
|
12911
|
-
if (_this__u8e3s4.
|
|
12912
|
+
if (_this__u8e3s4.t1n_1) {
|
|
12912
12913
|
tmp = 'sealed ';
|
|
12913
12914
|
} else {
|
|
12914
12915
|
tmp = null;
|
|
@@ -12916,19 +12917,19 @@ function emit_77($this, _this__u8e3s4, indent, parents) {
|
|
|
12916
12917
|
// Inline function 'kotlin.text.orEmpty' call
|
|
12917
12918
|
var tmp0_elvis_lhs = tmp;
|
|
12918
12919
|
var sealedStr = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
12919
|
-
var tmp0 = _this__u8e3s4.
|
|
12920
|
+
var tmp0 = _this__u8e3s4.u1n_1;
|
|
12920
12921
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
12921
12922
|
var transform = ScalaGenerator$emit$lambda_3;
|
|
12922
12923
|
var typeParamsStr = none(tmp0) ? '' : joinToString(tmp0, ', ', '[', ']', VOID, VOID, transform);
|
|
12923
|
-
var tmp0_0 = _this__u8e3s4.
|
|
12924
|
+
var tmp0_0 = _this__u8e3s4.s1n_1;
|
|
12924
12925
|
var tmp4 = ' extends ';
|
|
12925
12926
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
12926
12927
|
var transform_0 = ScalaGenerator$emit$lambda_4;
|
|
12927
12928
|
var extStr = none(tmp0_0) ? '' : joinToString(tmp0_0, ' with ', tmp4, '', VOID, VOID, transform_0);
|
|
12928
|
-
var fieldsContent = joinToString(_this__u8e3s4.
|
|
12929
|
-
var elementsContent = joinToString(_this__u8e3s4.
|
|
12929
|
+
var fieldsContent = joinToString(_this__u8e3s4.v1n_1, '', VOID, VOID, VOID, VOID, ScalaGenerator$emit$lambda_5(indent));
|
|
12930
|
+
var elementsContent = joinToString(_this__u8e3s4.r1n_1, '', VOID, VOID, VOID, VOID, ScalaGenerator$emit$lambda_6(indent, parents, _this__u8e3s4));
|
|
12930
12931
|
var content = fieldsContent + elementsContent;
|
|
12931
|
-
var signature = sealedStr + 'trait ' + _this__u8e3s4.
|
|
12932
|
+
var signature = sealedStr + 'trait ' + _this__u8e3s4.q1n_1.m1h() + typeParamsStr + extStr;
|
|
12932
12933
|
var tmp_0;
|
|
12933
12934
|
// Inline function 'kotlin.text.isEmpty' call
|
|
12934
12935
|
if (charSequenceLength(content) === 0) {
|
|
@@ -14280,7 +14281,7 @@ function emit_90($this, _this__u8e3s4, indent) {
|
|
|
14280
14281
|
tmp = joinToString(_this__u8e3s4.y1m_1, '', VOID, VOID, VOID, VOID, TypeScriptGenerator$emit$lambda_1(indent));
|
|
14281
14282
|
} else {
|
|
14282
14283
|
if (_this__u8e3s4 instanceof RawElement) {
|
|
14283
|
-
var tmp_0 = lines(_this__u8e3s4.
|
|
14284
|
+
var tmp_0 = lines(_this__u8e3s4.p1n_1);
|
|
14284
14285
|
tmp = joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptGenerator$emit$lambda_2(indent)) + '\n';
|
|
14285
14286
|
} else {
|
|
14286
14287
|
noWhenBranchMatchedException();
|
|
@@ -14319,12 +14320,12 @@ function emit_93($this, _this__u8e3s4, indent) {
|
|
|
14319
14320
|
return indentCode_4($this, 'export namespace ' + _this__u8e3s4.d1n_1.m1h() + ' {\n' + content + closingBrace, indent);
|
|
14320
14321
|
}
|
|
14321
14322
|
function emit_94($this, _this__u8e3s4, indent) {
|
|
14322
|
-
var tmp0 = _this__u8e3s4.
|
|
14323
|
+
var tmp0 = _this__u8e3s4.u1n_1;
|
|
14323
14324
|
// Inline function 'community.flock.wirespec.ir.generator.joinNonEmpty' call
|
|
14324
14325
|
var transform = TypeScriptGenerator$emit$lambda_4;
|
|
14325
14326
|
var typeParamsStr = none(tmp0) ? '' : joinToString(tmp0, ', ', '<', '>', VOID, VOID, transform);
|
|
14326
14327
|
// Inline function 'kotlin.collections.map' call
|
|
14327
|
-
var this_0 = _this__u8e3s4.
|
|
14328
|
+
var this_0 = _this__u8e3s4.s1n_1;
|
|
14328
14329
|
// Inline function 'kotlin.collections.mapTo' call
|
|
14329
14330
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
14330
14331
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -14337,7 +14338,7 @@ function emit_94($this, _this__u8e3s4, indent) {
|
|
|
14337
14338
|
var prefix = ' extends ';
|
|
14338
14339
|
var extStr = none(destination) ? '' : joinToString(destination, ', ', prefix, '', VOID, VOID, null);
|
|
14339
14340
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
14340
|
-
var tmp0_0 = _this__u8e3s4.
|
|
14341
|
+
var tmp0_0 = _this__u8e3s4.r1n_1;
|
|
14341
14342
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
14342
14343
|
var destination_0 = ArrayList_init_$Create$();
|
|
14343
14344
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -14354,12 +14355,12 @@ function emit_94($this, _this__u8e3s4, indent) {
|
|
|
14354
14355
|
var _iterator__ex2g4s_1 = destination_0.t();
|
|
14355
14356
|
while (_iterator__ex2g4s_1.u()) {
|
|
14356
14357
|
var element_0 = _iterator__ex2g4s_1.v();
|
|
14357
|
-
var tmp$ret$7 = element_0.
|
|
14358
|
+
var tmp$ret$7 = element_0.q1n_1.m1h();
|
|
14358
14359
|
destination_1.s2(tmp$ret$7, element_0);
|
|
14359
14360
|
}
|
|
14360
14361
|
var nestedInterfaces = destination_1;
|
|
14361
14362
|
// Inline function 'kotlin.collections.filter' call
|
|
14362
|
-
var tmp0_1 = _this__u8e3s4.
|
|
14363
|
+
var tmp0_1 = _this__u8e3s4.r1n_1;
|
|
14363
14364
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14364
14365
|
var destination_2 = ArrayList_init_$Create$();
|
|
14365
14366
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -14370,10 +14371,10 @@ function emit_94($this, _this__u8e3s4, indent) {
|
|
|
14370
14371
|
}
|
|
14371
14372
|
}
|
|
14372
14373
|
var nonInterfaceElements = destination_2;
|
|
14373
|
-
var fieldsContent = joinToString(_this__u8e3s4.
|
|
14374
|
+
var fieldsContent = joinToString(_this__u8e3s4.v1n_1, '', VOID, VOID, VOID, VOID, TypeScriptGenerator$emit$lambda_5(nestedInterfaces, indent));
|
|
14374
14375
|
var elementsContent = joinToString(nonInterfaceElements, '', VOID, VOID, VOID, VOID, TypeScriptGenerator$emit$lambda_6(indent, nestedInterfaces));
|
|
14375
14376
|
var content = fieldsContent + elementsContent;
|
|
14376
|
-
var signature = 'export interface ' + _this__u8e3s4.
|
|
14377
|
+
var signature = 'export interface ' + _this__u8e3s4.q1n_1.m1h() + typeParamsStr + extStr;
|
|
14377
14378
|
var tmp;
|
|
14378
14379
|
// Inline function 'kotlin.text.isEmpty' call
|
|
14379
14380
|
if (charSequenceLength(content) === 0) {
|
|
@@ -14997,16 +14998,16 @@ function emitWithInlineInterfaces_0($this, _this__u8e3s4, inlineInterfaces) {
|
|
|
14997
14998
|
var nested = ensureNotNull(inlineInterfaces.p2(_this__u8e3s4.v1h_1.m1h()));
|
|
14998
14999
|
var tmp_1;
|
|
14999
15000
|
var tmp_2;
|
|
15000
|
-
if (nested.
|
|
15001
|
+
if (nested.r1n_1.r()) {
|
|
15001
15002
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
15002
|
-
tmp_2 = !nested.
|
|
15003
|
+
tmp_2 = !nested.s1n_1.r();
|
|
15003
15004
|
} else {
|
|
15004
15005
|
tmp_2 = false;
|
|
15005
15006
|
}
|
|
15006
15007
|
if (tmp_2) {
|
|
15007
|
-
tmp_1 = joinToString(nested.
|
|
15008
|
+
tmp_1 = joinToString(nested.s1n_1, ' & ', VOID, VOID, VOID, VOID, TypeScriptGenerator$emitWithInlineInterfaces$lambda);
|
|
15008
15009
|
} else {
|
|
15009
|
-
if (nested.
|
|
15010
|
+
if (nested.r1n_1.r()) {
|
|
15010
15011
|
tmp_1 = '{}';
|
|
15011
15012
|
} else {
|
|
15012
15013
|
tmp_1 = emit_100($this, _this__u8e3s4);
|
|
@@ -16058,7 +16059,7 @@ function toGetterAccessors$lambda_0($renameFunction) {
|
|
|
16058
16059
|
var tmp;
|
|
16059
16060
|
if (element instanceof Interface) {
|
|
16060
16061
|
// Inline function 'kotlin.collections.map' call
|
|
16061
|
-
var this_0 = element.
|
|
16062
|
+
var this_0 = element.v1n_1;
|
|
16062
16063
|
// Inline function 'kotlin.collections.mapTo' call
|
|
16063
16064
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
16064
16065
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -16069,7 +16070,7 @@ function toGetterAccessors$lambda_0($renameFunction) {
|
|
|
16069
16070
|
}
|
|
16070
16071
|
var fieldGetters = destination;
|
|
16071
16072
|
// Inline function 'kotlin.collections.map' call
|
|
16072
|
-
var this_1 = element.
|
|
16073
|
+
var this_1 = element.r1n_1;
|
|
16073
16074
|
// Inline function 'kotlin.collections.mapTo' call
|
|
16074
16075
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
16075
16076
|
var _iterator__ex2g4s_0 = this_1.t();
|
|
@@ -16094,7 +16095,7 @@ function toGetterAccessors$lambda_0($renameFunction) {
|
|
|
16094
16095
|
destination_0.x(tmp$ret$5);
|
|
16095
16096
|
}
|
|
16096
16097
|
var renamedElements = destination_0;
|
|
16097
|
-
tmp = element.
|
|
16098
|
+
tmp = element.x1n(VOID, plus(fieldGetters, renamedElements), VOID, VOID, VOID, emptyList());
|
|
16098
16099
|
} else {
|
|
16099
16100
|
tmp = element;
|
|
16100
16101
|
}
|
|
@@ -16102,106 +16103,6 @@ function toGetterAccessors$lambda_0($renameFunction) {
|
|
|
16102
16103
|
return transformChildren_1(transformed, transformer);
|
|
16103
16104
|
};
|
|
16104
16105
|
}
|
|
16105
|
-
function flattenNestedStructs(_this__u8e3s4) {
|
|
16106
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
16107
|
-
var tmp0 = _this__u8e3s4.e1n_1;
|
|
16108
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
16109
|
-
var destination = ArrayList_init_$Create$();
|
|
16110
|
-
var _iterator__ex2g4s = tmp0.t();
|
|
16111
|
-
while (_iterator__ex2g4s.u()) {
|
|
16112
|
-
var element = _iterator__ex2g4s.v();
|
|
16113
|
-
var tmp$ret$0;
|
|
16114
|
-
$l$block_0: {
|
|
16115
|
-
if (!(element instanceof Struct)) {
|
|
16116
|
-
tmp$ret$0 = listOf_0(element);
|
|
16117
|
-
break $l$block_0;
|
|
16118
|
-
}
|
|
16119
|
-
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
16120
|
-
var tmp0_0 = element.m1n_1;
|
|
16121
|
-
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
16122
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
16123
|
-
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
16124
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
16125
|
-
var element_0 = _iterator__ex2g4s_0.v();
|
|
16126
|
-
if (element_0 instanceof Struct) {
|
|
16127
|
-
destination_0.x(element_0);
|
|
16128
|
-
}
|
|
16129
|
-
}
|
|
16130
|
-
var nested = destination_0;
|
|
16131
|
-
if (nested.r()) {
|
|
16132
|
-
tmp$ret$0 = listOf_0(element);
|
|
16133
|
-
break $l$block_0;
|
|
16134
|
-
}
|
|
16135
|
-
var parentPrefix = element.i1n_1.m1h();
|
|
16136
|
-
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
16137
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
16138
|
-
var destination_1 = LinkedHashSet_init_$Create$();
|
|
16139
|
-
var _iterator__ex2g4s_1 = nested.t();
|
|
16140
|
-
while (_iterator__ex2g4s_1.u()) {
|
|
16141
|
-
var item = _iterator__ex2g4s_1.v();
|
|
16142
|
-
var tmp$ret$4 = item.i1n_1.m1h();
|
|
16143
|
-
destination_1.x(tmp$ret$4);
|
|
16144
|
-
}
|
|
16145
|
-
var nestedNames = destination_1;
|
|
16146
|
-
// Inline function 'kotlin.collections.map' call
|
|
16147
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
16148
|
-
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(nested, 10));
|
|
16149
|
-
var _iterator__ex2g4s_2 = nested.t();
|
|
16150
|
-
while (_iterator__ex2g4s_2.u()) {
|
|
16151
|
-
var item_0 = _iterator__ex2g4s_2.v();
|
|
16152
|
-
var tmp$ret$6 = item_0.o1n(Companion_getInstance().k1h(parentPrefix + item_0.i1n_1.m1h()));
|
|
16153
|
-
destination_2.x(tmp$ret$6);
|
|
16154
|
-
}
|
|
16155
|
-
var flattened = destination_2;
|
|
16156
|
-
tmp$ret$0 = plus_0(flattened, qualifyNestedRefs(element, nestedNames));
|
|
16157
|
-
}
|
|
16158
|
-
var list = tmp$ret$0;
|
|
16159
|
-
addAll(destination, list);
|
|
16160
|
-
}
|
|
16161
|
-
return _this__u8e3s4.h1n(VOID, destination);
|
|
16162
|
-
}
|
|
16163
|
-
function qualifyNestedRefs(_this__u8e3s4, nestedNames) {
|
|
16164
|
-
var prefix = _this__u8e3s4.i1n_1.m1h();
|
|
16165
|
-
// Inline function 'community.flock.wirespec.ir.core.transform' call
|
|
16166
|
-
var scope = new TransformScope(_this__u8e3s4);
|
|
16167
|
-
// Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
|
|
16168
|
-
var tmp = scope;
|
|
16169
|
-
// Inline function 'community.flock.wirespec.ir.core.transformMatching' call
|
|
16170
|
-
var this_0 = scope.c1u_1;
|
|
16171
|
-
// Inline function 'community.flock.wirespec.ir.core.transformer' call
|
|
16172
|
-
// Inline function 'kotlin.apply' call
|
|
16173
|
-
var this_1 = new TransformerBuilder();
|
|
16174
|
-
this_1.i1u(qualifyNestedRefs$lambda(nestedNames, prefix));
|
|
16175
|
-
var tmp$ret$2 = this_1.i1h();
|
|
16176
|
-
tmp.c1u_1 = transform(this_0, tmp$ret$2);
|
|
16177
|
-
var tmp_0 = scope.c1u_1;
|
|
16178
|
-
var tmp_1 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
16179
|
-
// Inline function 'kotlin.collections.filterNot' call
|
|
16180
|
-
var tmp0 = _this__u8e3s4.m1n_1;
|
|
16181
|
-
// Inline function 'kotlin.collections.filterNotTo' call
|
|
16182
|
-
var destination = ArrayList_init_$Create$();
|
|
16183
|
-
var _iterator__ex2g4s = tmp0.t();
|
|
16184
|
-
while (_iterator__ex2g4s.u()) {
|
|
16185
|
-
var element = _iterator__ex2g4s.v();
|
|
16186
|
-
if (!(element instanceof Struct)) {
|
|
16187
|
-
destination.x(element);
|
|
16188
|
-
}
|
|
16189
|
-
}
|
|
16190
|
-
return tmp_1.o1n(VOID, VOID, VOID, VOID, destination);
|
|
16191
|
-
}
|
|
16192
|
-
function qualifyNestedRefs$lambda($nestedNames, $prefix) {
|
|
16193
|
-
return function (type, transformer) {
|
|
16194
|
-
var tmp;
|
|
16195
|
-
if (type instanceof Custom_0) {
|
|
16196
|
-
var typeName = type.v1h_1.m1h();
|
|
16197
|
-
tmp = $nestedNames.u1(typeName) ? type.s1m(Companion_getInstance().k1h($prefix + typeName)) : type;
|
|
16198
|
-
} else {
|
|
16199
|
-
tmp = type;
|
|
16200
|
-
}
|
|
16201
|
-
var transformed = tmp;
|
|
16202
|
-
return transformChildren_0(transformed, transformer);
|
|
16203
|
-
};
|
|
16204
|
-
}
|
|
16205
16106
|
function SanitizationConfig(reservedKeywords, escapeKeyword, fieldNameCase, parameterNameCase, sanitizeSymbol, extraStatementTransforms, escapeFieldKeywords) {
|
|
16206
16107
|
extraStatementTransforms = extraStatementTransforms === VOID ? null : extraStatementTransforms;
|
|
16207
16108
|
escapeFieldKeywords = escapeFieldKeywords === VOID ? true : escapeFieldKeywords;
|
|
@@ -16547,7 +16448,6 @@ protoOf(FunctionBuilder).i1j = get_reflect;
|
|
|
16547
16448
|
protoOf(FunctionBuilder).w1i = list;
|
|
16548
16449
|
protoOf(FunctionBuilder).y1h = type;
|
|
16549
16450
|
protoOf(FunctionBuilder).f1t = literal;
|
|
16550
|
-
protoOf(StructBuilder).u1i = struct;
|
|
16551
16451
|
protoOf(StructBuilder).h1t = function_0;
|
|
16552
16452
|
protoOf(StructBuilder).g1i = function$default;
|
|
16553
16453
|
protoOf(StructBuilder).i1t = function_1;
|
|
@@ -16750,7 +16650,6 @@ export {
|
|
|
16750
16650
|
prependImports as prependImports32gcj3yb8voha,
|
|
16751
16651
|
SanitizationConfig as SanitizationConfig11mmn3p2c03c1,
|
|
16752
16652
|
ensureEmptyStructHasConstructor as ensureEmptyStructHasConstructorfl467argh9dd,
|
|
16753
|
-
flattenNestedStructs as flattenNestedStructs2956rxx8q2zxl,
|
|
16754
16653
|
injectEnumLabelField as injectEnumLabelFieldyfohidz6c88i,
|
|
16755
16654
|
injectSelfReceiverToValidate as injectSelfReceiverToValidate4xgr9r5gl5n3,
|
|
16756
16655
|
markMembersAsOverride as markMembersAsOverride3r1zpft8nbmxg,
|