@flock/wirespec 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-atomic.mjs +13 -13
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +166 -167
- package/arrow-arrow-core.mjs.map +1 -1
- package/clikt-clikt-mordant.mjs +88 -88
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1545 -1547
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +463 -463
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1192 -1311
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10323 -10296
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1811 -1815
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +454 -454
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1985 -1993
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1768 -1737
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1357 -1360
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +26678 -4523
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +373 -469
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +322 -377
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +345 -344
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +738 -736
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +357 -357
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +472 -459
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +211 -128
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +403 -336
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +713 -708
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs +267 -0
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1156 -1086
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1720 -1634
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +274 -233
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +153 -128
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/wirespec-src-plugin-npm.d.mts +23 -10
- package/wirespec-src-plugin-npm.mjs +79 -81
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +59 -51
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +0 -18912
- package/wirespec-src-compiler-ir.mjs.map +0 -1
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
4
4
|
split2bvyvnrlcifjv as split,
|
|
5
5
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
6
|
-
ArrayList_init_$Create$
|
|
6
|
+
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
7
7
|
checkIndexOverflow3frtmheghr0th as checkIndexOverflow,
|
|
8
|
-
|
|
8
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
9
9
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
10
|
-
StringBuilder_init_$Create$
|
|
10
|
+
StringBuilder_init_$Create$3ds9zx2kx9u4d as StringBuilder_init_$Create$,
|
|
11
11
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
12
12
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
13
13
|
isLetterOrDigit2kuxd9e198haf as isLetterOrDigit,
|
|
14
|
-
|
|
14
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
15
15
|
firstOrNulltrxqttxfxqju as firstOrNull,
|
|
16
16
|
isDigit3mimrri4wkzop as isDigit,
|
|
17
17
|
Char19o2r8palgjof as Char,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sortedWith2csnbbb21k0lg as sortedWith,
|
|
37
37
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
38
38
|
Collection1k04j3hzsbod0 as Collection,
|
|
39
|
-
ArrayList_init_$Create$
|
|
39
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$_0,
|
|
40
40
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
41
41
|
dropLast1vpiyky649o34 as dropLast,
|
|
42
42
|
drop3na99dw9feawf as drop,
|
|
@@ -45,11 +45,11 @@ import {
|
|
|
45
45
|
mapsbvh18eqox7a as map,
|
|
46
46
|
distinct17vua5ffe1cfv as distinct,
|
|
47
47
|
toListx6x8nvfmvvht as toList,
|
|
48
|
-
LinkedHashSet_init_$Create$
|
|
48
|
+
LinkedHashSet_init_$Create$t7gzf3ihb6pk as LinkedHashSet_init_$Create$,
|
|
49
49
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
50
50
|
plus310ted5e4i90h as plus,
|
|
51
51
|
distinct10qe1scfdvu5k as distinct_0,
|
|
52
|
-
HashSet_init_$Create$
|
|
52
|
+
HashSet_init_$Create$2w31ptb4ree5i as HashSet_init_$Create$,
|
|
53
53
|
toSet2orjxp16sotqu as toSet,
|
|
54
54
|
addAll1k27qatfgp3k5 as addAll,
|
|
55
55
|
firstOrNull1982767dljvdy as firstOrNull_0,
|
|
@@ -59,116 +59,116 @@ import {
|
|
|
59
59
|
removePrefix279df90bhrqqg as removePrefix,
|
|
60
60
|
contains3ue2qo8xhmpf1 as contains,
|
|
61
61
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
62
|
-
LinkedHashMap_init_$Create$
|
|
62
|
+
LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
|
|
63
63
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
64
64
|
import {
|
|
65
|
-
|
|
65
|
+
Companion_instance27ueeez2qu1l as Companion_instance,
|
|
66
66
|
FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
import3bym2b49e642p as import_0,
|
|
68
|
+
PythonGenerator_getInstance2j8ed4fqr8i2a as PythonGenerator_getInstance,
|
|
69
|
+
Name1ijtblv1phm3y as Name,
|
|
70
|
+
transformChildren34heehtlmzzif as transformChildren,
|
|
71
|
+
sanitizeFieldName333wgwu6tt90n as sanitizeFieldName,
|
|
72
|
+
ConstructorStatement1edouznvc71xv as ConstructorStatement,
|
|
73
|
+
SanitizationConfigunh0ok3qg1q3 as SanitizationConfig,
|
|
74
|
+
sortKey2zu9zi2nc4wzk as sortKey,
|
|
75
|
+
RawExpressionfqemfbo6j6cq as RawExpression,
|
|
76
|
+
transformChildren21ucrga4lv4sn as transformChildren_0,
|
|
77
|
+
Companion_instance21vwhhqsaytqt as Companion_instance_0,
|
|
78
|
+
Companion_instance2oq66qbk0c5g8 as Companion_instance_1,
|
|
79
|
+
FileExtension_Python_getInstance39845oqaw9y6 as FileExtension_Python_getInstance,
|
|
80
|
+
convert37y165c07dvpq as convert,
|
|
81
|
+
Companion_getInstance34fvro4h6bumb as Companion_getInstance,
|
|
82
|
+
raw1mm1rmqheq474 as raw,
|
|
83
|
+
File12q75sqvz964e as File,
|
|
84
|
+
emit3e40nagyc4qho as emit,
|
|
70
85
|
Endpoint1jsq06yr3xdhp as Endpoint,
|
|
71
86
|
Model1nx3had6rojzt as Model,
|
|
87
|
+
emit1w04jgbmswnni as emit_0,
|
|
88
|
+
prependImportslco5lco5if44 as prependImports,
|
|
89
|
+
placeInModulei83ksju0tj28 as placeInModule,
|
|
90
|
+
convertToGenerator115obo0n49kco as convertToGenerator,
|
|
72
91
|
Unionccsavx6nrdr2 as Union,
|
|
92
|
+
convertToGenerator1x32vg5qdleq8 as convertToGenerator_0,
|
|
73
93
|
Refined1lkzc0dg6wey7 as Refined,
|
|
94
|
+
convertToGenerator33dm40iimoy3x as convertToGenerator_1,
|
|
74
95
|
Enum3l2iuc342kle6 as Enum,
|
|
96
|
+
convertToGenerator1arvbkvdv4bro as convertToGenerator_2,
|
|
75
97
|
Type12n1gx16iqtcu as Type,
|
|
98
|
+
sanitizeNames1v55mz1p84psg as sanitizeNames,
|
|
99
|
+
collectCustomTypeNames2atsrip288ol4 as collectCustomTypeNames,
|
|
100
|
+
TransformScope3fhztkr2eyk36 as TransformScope,
|
|
101
|
+
Element3p1xrn21d2w4b as Element,
|
|
102
|
+
placeInModulejrzh4j1pcq54 as placeInModule_0,
|
|
76
103
|
importReferencesy4xv7r53sjjs as importReferences,
|
|
104
|
+
get_fields25a89ltbcl7gz as get_fields,
|
|
105
|
+
convertWithValidation24mbxf4x2u6w4 as convertWithValidation,
|
|
106
|
+
injectSelfReceiverToValidate17yidn7t1g367 as injectSelfReceiverToValidate,
|
|
107
|
+
convert1ke01d6gmcvu7 as convert_0,
|
|
108
|
+
sanitizeEnumEntries28cw6g8cmlq5s as sanitizeEnumEntries,
|
|
109
|
+
convert29zpebhuxz599 as convert_1,
|
|
110
|
+
convert39lmqftdnlhsy as convert_2,
|
|
111
|
+
convert333pgxr2q05n as convert_3,
|
|
112
|
+
convert86y6uioox2cl as convert_4,
|
|
113
|
+
convert1o5h4ulxoqycg as convert_5,
|
|
114
|
+
emitEndpointClient2og25opoka4ql as emitEndpointClient,
|
|
77
115
|
plus14o24vdaiongg as plus_1,
|
|
116
|
+
emitClient1ucatfg1ovgb6 as emitClient,
|
|
117
|
+
get_extensions1p1y8uybwv35q as get_extensions,
|
|
118
|
+
emit2s9bv7yrx5jcs as emit_1,
|
|
119
|
+
beforeGenerate2eu511tof5fa4 as beforeGenerate,
|
|
120
|
+
get_supportsDefaults2j8lo8mbv0egf as get_supportsDefaults,
|
|
121
|
+
IrEmitter2jy94gp21kviv as IrEmitter,
|
|
122
|
+
TransformerBuilder26pbjl5nmg6wa as TransformerBuilder,
|
|
123
|
+
transformhd96z3w1u5uc as transform,
|
|
124
|
+
Namespacex2gpe17ntoag as Namespace,
|
|
125
|
+
Uniontffpdks00nyc as Union_0,
|
|
126
|
+
Structakfq94wrq695 as Struct,
|
|
127
|
+
fieldList2mdp34yzu6ln6 as fieldList,
|
|
128
|
+
Dict27tp4weviyg4b as Dict,
|
|
129
|
+
Array2vay9bq78aua1 as Array_0,
|
|
130
|
+
Nullable3he31tqc4yy1q as Nullable,
|
|
131
|
+
Any_instance2d4twy8sq7tlx as Any_instance,
|
|
132
|
+
Custom_init_$Create$kfegfgqdjj1p as Custom_init_$Create$,
|
|
133
|
+
Reflect_instance2hvndzkpwulla as Reflect_instance,
|
|
134
|
+
Field26remk4nlwax4 as Field,
|
|
135
|
+
transformChildren14suh59vxsgt as transformChildren_1,
|
|
136
|
+
Boolean_instance2uah59h3vb1ch as Boolean_instance,
|
|
137
|
+
String_instance2j5u8j0qc6lge as String_instance,
|
|
138
|
+
Function1wme41sk2huri as Function,
|
|
78
139
|
String1czvr8pxnm6on as String_0,
|
|
140
|
+
function3tnfxyozkc8k as function_0,
|
|
141
|
+
VariableReferencesji1q1tq3ygo as VariableReference,
|
|
142
|
+
FieldCall2nusnrnm7uuow as FieldCall,
|
|
143
|
+
convertConstraint1tall9wrxeg5k as convertConstraint,
|
|
144
|
+
Interface2g99rmjjt5ne as Interface,
|
|
145
|
+
Custom1ct1lu66hij6o as Custom,
|
|
146
|
+
Parameter37d5p43ul6u79 as Parameter,
|
|
147
|
+
FunctionCall1a3g4e6bcljl6 as FunctionCall,
|
|
79
148
|
} from './wirespec-src-compiler-core.mjs';
|
|
80
|
-
import {
|
|
81
|
-
import5uhkz67bd8tt as import_0,
|
|
82
|
-
PythonGenerator_getInstancek8q2vsn20wkr as PythonGenerator_getInstance,
|
|
83
|
-
Nameoqr8dt2fim9d as Name,
|
|
84
|
-
transformChildren2mszeagj5nq4c as transformChildren,
|
|
85
|
-
sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
|
|
86
|
-
ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
|
|
87
|
-
SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
|
|
88
|
-
sortKey2uc13shubz5xy as sortKey,
|
|
89
|
-
RawExpression2bo7ldfrptjia as RawExpression,
|
|
90
|
-
transformChildren3n5cjwmxlhwx9 as transformChildren_0,
|
|
91
|
-
convertnty9x0e63d0u as convert,
|
|
92
|
-
Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
|
|
93
|
-
rawttvqxl50flj9 as raw,
|
|
94
|
-
File3dimy4iqmuock as File,
|
|
95
|
-
emit3bzdcd0f6nwtj as emit,
|
|
96
|
-
emitn3eihixilqyh as emit_0,
|
|
97
|
-
prependImports32gcj3yb8voha as prependImports,
|
|
98
|
-
placeInModule10pilwex0h8tn as placeInModule,
|
|
99
|
-
convertToGenerator2wzjrmaavxhph as convertToGenerator,
|
|
100
|
-
convertToGeneratorkggw47cqose7 as convertToGenerator_0,
|
|
101
|
-
convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
|
|
102
|
-
convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
|
|
103
|
-
sanitizeNames2wqmyf8vafp9x as sanitizeNames,
|
|
104
|
-
collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
|
|
105
|
-
TransformScopeyrd3lf4zrk76 as TransformScope,
|
|
106
|
-
Elementitq62jg6fid3 as Element,
|
|
107
|
-
placeInModuleewt2r4ic2m6a as placeInModule_0,
|
|
108
|
-
convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
|
|
109
|
-
injectSelfReceiverToValidate4xgr9r5gl5n3 as injectSelfReceiverToValidate,
|
|
110
|
-
convert11ert2po54h1y as convert_0,
|
|
111
|
-
sanitizeEnumEntries3pphrvzq8r9fn as sanitizeEnumEntries,
|
|
112
|
-
convert37aabdzvtv9vg as convert_1,
|
|
113
|
-
convert17zcptkz4mhr4 as convert_2,
|
|
114
|
-
convert32tuiui3czihh as convert_3,
|
|
115
|
-
convert1cn4bolzoed8c as convert_4,
|
|
116
|
-
convert3ewo9inue7gua as convert_5,
|
|
117
|
-
emitEndpointClient1meajc90wf3el as emitEndpointClient,
|
|
118
|
-
emitClient32kfwzg2hm5vj as emitClient,
|
|
119
|
-
get_extensions31c4or738wbxz as get_extensions,
|
|
120
|
-
emit1oxjujel6f3jb as emit_1,
|
|
121
|
-
beforeGenerate3o8idb3hey1b0 as beforeGenerate,
|
|
122
|
-
IrEmitterh2m93ojzvkep as IrEmitter,
|
|
123
|
-
TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
|
|
124
|
-
transform3eti8i2bqvifx as transform,
|
|
125
|
-
Namespace345pal554qu3j as Namespace,
|
|
126
|
-
Union38f3pecvfcpxh as Union_0,
|
|
127
|
-
Struct39wf79cwtn4ty as Struct,
|
|
128
|
-
fieldList3dg35dj9v5h4v as fieldList,
|
|
129
|
-
Dict22iqrhoo0g8et as Dict,
|
|
130
|
-
Array2goj74t0aak7b as Array_0,
|
|
131
|
-
Nullable3wjn6l6q3h6o as Nullable,
|
|
132
|
-
Any_instance2998xag3cdzh3 as Any_instance,
|
|
133
|
-
Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
|
|
134
|
-
Reflect_instance3i17lxiopj78t as Reflect_instance,
|
|
135
|
-
Field354s1ceh5pvhf as Field,
|
|
136
|
-
transformChildrend9p91tpcqdkx as transformChildren_1,
|
|
137
|
-
Boolean_instance27opaqtiiiysz as Boolean_instance,
|
|
138
|
-
String_instance3uxvo48ki208u as String_instance,
|
|
139
|
-
Function21cuq8qizkin7 as Function,
|
|
140
|
-
function12vu2kapzno4w as function_0,
|
|
141
|
-
VariableReference2vlynnhaw1i64 as VariableReference,
|
|
142
|
-
FieldCall1iz7z2fx2xo4p as FieldCall,
|
|
143
|
-
convertConstraintkgpvomct0x0s as convertConstraint,
|
|
144
|
-
Interface3pn84xq686t2r as Interface,
|
|
145
|
-
Custom2si7lto3wompr as Custom,
|
|
146
|
-
Parameteruqoxd4rzw7ga as Parameter,
|
|
147
|
-
FunctionCall30872kpnbr7op as FunctionCall,
|
|
148
|
-
} from './wirespec-src-compiler-ir.mjs';
|
|
149
149
|
import {
|
|
150
150
|
NonEmptyList3ak25ihy2gcvs as NonEmptyList,
|
|
151
151
|
toNonEmptyListOrNull2ovnnazjb3msz as toNonEmptyListOrNull,
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
NonEmptyList__plus_impl_xqmb9ex47xkkmsdbi as NonEmptyList__plus_impl_xqmb9,
|
|
153
|
+
NonEmptyList__plus_impl_xqmb918nwrkd75m2j6 as NonEmptyList__plus_impl_xqmb9_0,
|
|
154
154
|
} from './arrow-arrow-core.mjs';
|
|
155
155
|
//region block: imports
|
|
156
156
|
//endregion
|
|
157
157
|
//region block: pre-declaration
|
|
158
158
|
initMetadataForCompanion(Companion);
|
|
159
159
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
160
|
-
initMetadataForClass(
|
|
160
|
+
initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, VOID, [IrEmitter]);
|
|
161
161
|
//endregion
|
|
162
162
|
function _get_sanitizationConfig__sns434($this) {
|
|
163
|
-
var tmp0 = $this.
|
|
163
|
+
var tmp0 = $this.t1z_1;
|
|
164
164
|
var tmp = KProperty1;
|
|
165
165
|
// Inline function 'kotlin.getValue' call
|
|
166
|
-
getPropertyCallableRef('sanitizationConfig', 1, tmp,
|
|
166
|
+
getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonEmitter$_get_sanitizationConfig_$ref_crpgpd(), null);
|
|
167
167
|
return tmp0.m1();
|
|
168
168
|
}
|
|
169
|
-
function sanitize($this,
|
|
169
|
+
function sanitize($this, $receiver) {
|
|
170
170
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
171
|
-
var this_0 = split(
|
|
171
|
+
var this_0 = split($receiver.m1(), ['.', ' ']);
|
|
172
172
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
173
173
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
174
174
|
var index = 0;
|
|
@@ -177,8 +177,8 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
177
177
|
var item = _iterator__ex2g4s.v();
|
|
178
178
|
var _unary__edvuaz = index;
|
|
179
179
|
index = _unary__edvuaz + 1 | 0;
|
|
180
|
-
var tmp$ret$
|
|
181
|
-
destination.x(tmp$ret$
|
|
180
|
+
var tmp$ret$2 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.or(item) : item;
|
|
181
|
+
destination.x(tmp$ret$2);
|
|
182
182
|
}
|
|
183
183
|
// Inline function 'kotlin.text.filter' call
|
|
184
184
|
var tmp0 = joinToString(destination, '');
|
|
@@ -215,19 +215,19 @@ function sanitize($this, _this__u8e3s4) {
|
|
|
215
215
|
// Inline function 'kotlin.let' call
|
|
216
216
|
var it_0 = tmp;
|
|
217
217
|
var tmp_2;
|
|
218
|
-
if (
|
|
218
|
+
if ($receiver instanceof FieldIdentifier) {
|
|
219
219
|
tmp_2 = sanitizeKeywords($this, it_0);
|
|
220
220
|
} else {
|
|
221
221
|
tmp_2 = it_0;
|
|
222
222
|
}
|
|
223
223
|
return tmp_2;
|
|
224
224
|
}
|
|
225
|
-
function sanitizeKeywords($this,
|
|
226
|
-
return Companion_getInstance_0().
|
|
225
|
+
function sanitizeKeywords($this, $receiver) {
|
|
226
|
+
return Companion_getInstance_0().y1y().v1($receiver) ? '_' + $receiver : $receiver;
|
|
227
227
|
}
|
|
228
|
-
function sanitizeEnum($this,
|
|
228
|
+
function sanitizeEnum($this, $receiver) {
|
|
229
229
|
// Inline function 'kotlin.let' call
|
|
230
|
-
var it = joinToString(split(
|
|
230
|
+
var it = joinToString(split($receiver, ['-', ', ', '.', ' ', '//']), '_');
|
|
231
231
|
var tmp;
|
|
232
232
|
var tmp0_safe_receiver = firstOrNull(it);
|
|
233
233
|
var tmp_0;
|
|
@@ -249,10 +249,10 @@ function buildImports($this, wirespecPath) {
|
|
|
249
249
|
}
|
|
250
250
|
function Companion() {
|
|
251
251
|
Companion_instance_2 = this;
|
|
252
|
-
this.
|
|
252
|
+
this.v1z_1 = PythonGenerator_getInstance();
|
|
253
253
|
}
|
|
254
|
-
protoOf(Companion).
|
|
255
|
-
return this.
|
|
254
|
+
protoOf(Companion).y1y = function () {
|
|
255
|
+
return this.v1z_1.e1a_1;
|
|
256
256
|
};
|
|
257
257
|
var Companion_instance_2;
|
|
258
258
|
function Companion_getInstance_0() {
|
|
@@ -261,16 +261,16 @@ function Companion_getInstance_0() {
|
|
|
261
261
|
return Companion_instance_2;
|
|
262
262
|
}
|
|
263
263
|
function sam$kotlin_Comparator$0(function_0) {
|
|
264
|
-
this.
|
|
264
|
+
this.w1z_1 = function_0;
|
|
265
265
|
}
|
|
266
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
267
|
-
return this.
|
|
266
|
+
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
267
|
+
return this.w1z_1(a, b);
|
|
268
268
|
};
|
|
269
269
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
270
|
-
return this.
|
|
270
|
+
return this.wd(a, b);
|
|
271
271
|
};
|
|
272
272
|
protoOf(sam$kotlin_Comparator$0).m3 = function () {
|
|
273
|
-
return this.
|
|
273
|
+
return this.w1z_1;
|
|
274
274
|
};
|
|
275
275
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
276
276
|
var tmp;
|
|
@@ -290,26 +290,26 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
|
290
290
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
291
291
|
return hashCode(this.m3());
|
|
292
292
|
};
|
|
293
|
-
function
|
|
293
|
+
function PythonEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
|
|
294
294
|
return '_' + it;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
var sanitized = name.
|
|
296
|
+
function PythonEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
|
|
297
|
+
var sanitized = name.kt_1.b1() > 1 ? name.ot() : name.nt();
|
|
298
298
|
return new Name(listOf_0(sanitized));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return new Name(listOf_0(name.
|
|
300
|
+
function PythonEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
|
|
301
|
+
return new Name(listOf_0(name.ot()));
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function PythonEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
|
|
304
304
|
return it;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function PythonEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
307
307
|
return function (stmt, tr) {
|
|
308
308
|
var tmp;
|
|
309
309
|
if (stmt instanceof ConstructorStatement) {
|
|
310
|
-
var tmp_0 = tr.
|
|
310
|
+
var tmp_0 = tr.c17(stmt.tu_1);
|
|
311
311
|
// Inline function 'kotlin.collections.map' call
|
|
312
|
-
var this_0 = stmt.
|
|
312
|
+
var this_0 = stmt.uu_1;
|
|
313
313
|
// Inline function 'kotlin.collections.mapTo' call
|
|
314
314
|
var destination = ArrayList_init_$Create$(this_0.b1());
|
|
315
315
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -320,7 +320,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
320
320
|
var k = item.l1();
|
|
321
321
|
// Inline function 'kotlin.collections.component2' call
|
|
322
322
|
var v = item.m1();
|
|
323
|
-
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.
|
|
323
|
+
var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.f17(v));
|
|
324
324
|
destination.x(tmp$ret$3);
|
|
325
325
|
}
|
|
326
326
|
tmp = new ConstructorStatement(tmp_0, toMap(destination));
|
|
@@ -330,107 +330,107 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
|
|
|
330
330
|
return tmp;
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function PythonEmitter$sanitizationConfig$delegate$lambda(this$0) {
|
|
334
334
|
return function () {
|
|
335
|
-
var tmp = Companion_getInstance_0().
|
|
336
|
-
var tmp_0 =
|
|
337
|
-
var tmp_1 =
|
|
338
|
-
var tmp_2 =
|
|
339
|
-
var tmp_3 =
|
|
340
|
-
return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3,
|
|
335
|
+
var tmp = Companion_getInstance_0().y1y();
|
|
336
|
+
var tmp_0 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda;
|
|
337
|
+
var tmp_1 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda_0;
|
|
338
|
+
var tmp_2 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda_1;
|
|
339
|
+
var tmp_3 = PythonEmitter$sanitizationConfig$delegate$lambda$lambda_2;
|
|
340
|
+
return new SanitizationConfig(tmp, tmp_0, tmp_1, tmp_2, tmp_3, PythonEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0));
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function PythonEmitter$_get_sanitizationConfig_$ref_crpgpd() {
|
|
344
344
|
return function (p0) {
|
|
345
345
|
return _get_sanitizationConfig__sns434(p0);
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function PythonEmitter$emit$lambda(a, b) {
|
|
349
349
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
350
350
|
var tmp = sortKey(a);
|
|
351
|
-
var tmp$ret$
|
|
352
|
-
return compareValues(tmp, tmp$ret$
|
|
351
|
+
var tmp$ret$2 = sortKey(b);
|
|
352
|
+
return compareValues(tmp, tmp$ret$2);
|
|
353
353
|
}
|
|
354
354
|
function emit$emitInitImport(this$0, def) {
|
|
355
|
-
return import_0('.' + sanitize(this$0, def.
|
|
355
|
+
return import_0('.' + sanitize(this$0, def.tr()), sanitize(this$0, def.tr()));
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function PythonEmitter$emitGenerator$lambda(it) {
|
|
358
358
|
return startsWith(it, 'Wirespec.') || it === 'Wirespec';
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function PythonEmitter$emitGenerator$lambda_0($generatorOwnName) {
|
|
361
361
|
return function (it) {
|
|
362
362
|
return it === $generatorOwnName;
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function PythonEmitter$emitGenerator$lambda_1(it) {
|
|
366
366
|
return substringBefore(it, _Char___init__impl__6a9atx(60));
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function PythonEmitter$emitGenerator$lambda_2($generatorOwnName, $generatorRefs) {
|
|
369
369
|
return function (expr, t) {
|
|
370
370
|
var tmp;
|
|
371
371
|
var tmp_0;
|
|
372
372
|
var tmp_1;
|
|
373
373
|
if (expr instanceof RawExpression) {
|
|
374
|
-
tmp_1 = endsWith(expr.
|
|
374
|
+
tmp_1 = endsWith(expr.yx_1, 'Generator');
|
|
375
375
|
} else {
|
|
376
376
|
tmp_1 = false;
|
|
377
377
|
}
|
|
378
378
|
if (tmp_1) {
|
|
379
|
-
tmp_0 = !(expr.
|
|
379
|
+
tmp_0 = !(expr.yx_1 === $generatorOwnName);
|
|
380
380
|
} else {
|
|
381
381
|
tmp_0 = false;
|
|
382
382
|
}
|
|
383
383
|
if (tmp_0) {
|
|
384
|
-
$generatorRefs.x(expr.
|
|
384
|
+
$generatorRefs.x(expr.yx_1);
|
|
385
385
|
tmp = Unit_instance;
|
|
386
386
|
}
|
|
387
387
|
return transformChildren_0(expr, t);
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function PythonEmitter$emit$lambda_0(this$0) {
|
|
391
391
|
return function (it) {
|
|
392
392
|
return sanitizeKeywords(this$0, sanitizeEnum(this$0, it));
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function PythonEmitter(packageName, emitShared) {
|
|
396
396
|
Companion_getInstance_0();
|
|
397
|
-
packageName = packageName === VOID ? Companion_instance_0.
|
|
398
|
-
emitShared = emitShared === VOID ? Companion_instance_1.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
397
|
+
packageName = packageName === VOID ? Companion_instance_0.qs('community.flock.wirespec.generated') : packageName;
|
|
398
|
+
emitShared = emitShared === VOID ? Companion_instance_1.xp() : emitShared;
|
|
399
|
+
this.p1z_1 = packageName;
|
|
400
|
+
this.q1z_1 = emitShared;
|
|
401
|
+
this.r1z_1 = PythonGenerator_getInstance();
|
|
402
|
+
this.s1z_1 = FileExtension_Python_getInstance();
|
|
403
403
|
var tmp = this;
|
|
404
|
-
tmp.
|
|
405
|
-
this.
|
|
404
|
+
tmp.t1z_1 = lazy(PythonEmitter$sanitizationConfig$delegate$lambda(this));
|
|
405
|
+
this.u1z_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
|
|
406
406
|
}
|
|
407
|
-
protoOf(
|
|
408
|
-
return this.
|
|
407
|
+
protoOf(PythonEmitter).x19 = function () {
|
|
408
|
+
return this.r1z_1;
|
|
409
409
|
};
|
|
410
|
-
protoOf(
|
|
411
|
-
return this.
|
|
410
|
+
protoOf(PythonEmitter).op = function () {
|
|
411
|
+
return this.s1z_1;
|
|
412
412
|
};
|
|
413
|
-
protoOf(
|
|
414
|
-
var source = replaceReflectInNonGenericStructFields(convert(Companion_instance_0.
|
|
413
|
+
protoOf(PythonEmitter).s19 = function () {
|
|
414
|
+
var source = replaceReflectInNonGenericStructFields(convert(Companion_instance_0.qs('shared')));
|
|
415
415
|
var tmp;
|
|
416
|
-
if (this.
|
|
417
|
-
tmp = new File(Companion_getInstance().
|
|
416
|
+
if (this.q1z_1.yp_1) {
|
|
417
|
+
tmp = new File(Companion_getInstance().mt(this.p1z_1.ts() + 'wirespec'), listOf_0(raw(this.u1z_1 + PythonGenerator_getInstance().y19(source))));
|
|
418
418
|
} else {
|
|
419
419
|
tmp = null;
|
|
420
420
|
}
|
|
421
421
|
return tmp;
|
|
422
422
|
};
|
|
423
|
-
protoOf(
|
|
423
|
+
protoOf(PythonEmitter).r19 = function (module_0, logger) {
|
|
424
424
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
425
|
-
var this_0 = new NonEmptyList(module_0.
|
|
425
|
+
var this_0 = new NonEmptyList(module_0.zo_1);
|
|
426
426
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
427
|
-
var tmp =
|
|
428
|
-
var tmp$ret$
|
|
429
|
-
var tmp$ret$
|
|
430
|
-
var tmp_0 = toNonEmptyListOrNull(tmp$ret$
|
|
431
|
-
var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).
|
|
432
|
-
var emitted = emit.call(this, module_0.
|
|
433
|
-
var tmp0 = new NonEmptyList(module_0.
|
|
427
|
+
var tmp = PythonEmitter$emit$lambda;
|
|
428
|
+
var tmp$ret$1 = new sam$kotlin_Comparator$0(tmp);
|
|
429
|
+
var tmp$ret$0 = sortedWith(this_0, tmp$ret$1);
|
|
430
|
+
var tmp_0 = toNonEmptyListOrNull(tmp$ret$0);
|
|
431
|
+
var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).wm_1;
|
|
432
|
+
var emitted = emit.call(this, module_0.lp(VOID, statements), logger);
|
|
433
|
+
var tmp0 = new NonEmptyList(module_0.zo_1);
|
|
434
434
|
var tmp$ret$2;
|
|
435
435
|
$l$block_0: {
|
|
436
436
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -455,7 +455,7 @@ protoOf(PythonIrEmitter).q1w = function (module_0, logger) {
|
|
|
455
455
|
tmp$ret$2 = false;
|
|
456
456
|
}
|
|
457
457
|
var hasEndpoints = tmp$ret$2;
|
|
458
|
-
var tmp_2 = Companion_getInstance().
|
|
458
|
+
var tmp_2 = Companion_getInstance().mt(this.p1z_1.ts() + '__init__');
|
|
459
459
|
// Inline function 'kotlin.collections.buildList' call
|
|
460
460
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
461
461
|
// Inline function 'kotlin.apply' call
|
|
@@ -466,11 +466,11 @@ protoOf(PythonIrEmitter).q1w = function (module_0, logger) {
|
|
|
466
466
|
this_1.x(import_0('.', 'client'));
|
|
467
467
|
}
|
|
468
468
|
this_1.x(import_0('.', 'wirespec'));
|
|
469
|
-
var tmp$ret$
|
|
470
|
-
var init = new File(tmp_2, tmp$ret$
|
|
471
|
-
var tmp_3 = Companion_getInstance().
|
|
469
|
+
var tmp$ret$4 = this_1.p5();
|
|
470
|
+
var init = new File(tmp_2, tmp$ret$4);
|
|
471
|
+
var tmp_3 = Companion_getInstance().mt(this.p1z_1.ts() + 'endpoint/' + '__init__');
|
|
472
472
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
473
|
-
var tmp0_0 = new NonEmptyList(module_0.
|
|
473
|
+
var tmp0_0 = new NonEmptyList(module_0.zo_1);
|
|
474
474
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
475
475
|
var destination = ArrayList_init_$Create$_0();
|
|
476
476
|
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
@@ -486,13 +486,13 @@ protoOf(PythonIrEmitter).q1w = function (module_0, logger) {
|
|
|
486
486
|
var _iterator__ex2g4s_1 = destination.t();
|
|
487
487
|
while (_iterator__ex2g4s_1.u()) {
|
|
488
488
|
var item = _iterator__ex2g4s_1.v();
|
|
489
|
-
var tmp$ret$
|
|
490
|
-
destination_0.x(tmp$ret$
|
|
489
|
+
var tmp$ret$12 = emit$emitInitImport(this, item);
|
|
490
|
+
destination_0.x(tmp$ret$12);
|
|
491
491
|
}
|
|
492
492
|
var initEndpoint = new File(tmp_3, destination_0);
|
|
493
|
-
var tmp_4 = Companion_getInstance().
|
|
493
|
+
var tmp_4 = Companion_getInstance().mt(this.p1z_1.ts() + 'model/' + '__init__');
|
|
494
494
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
495
|
-
var tmp0_1 = new NonEmptyList(module_0.
|
|
495
|
+
var tmp0_1 = new NonEmptyList(module_0.zo_1);
|
|
496
496
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
497
497
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
498
498
|
var _iterator__ex2g4s_2 = tmp0_1.t();
|
|
@@ -508,12 +508,12 @@ protoOf(PythonIrEmitter).q1w = function (module_0, logger) {
|
|
|
508
508
|
var _iterator__ex2g4s_3 = destination_1.t();
|
|
509
509
|
while (_iterator__ex2g4s_3.u()) {
|
|
510
510
|
var item_0 = _iterator__ex2g4s_3.v();
|
|
511
|
-
var tmp$ret$
|
|
512
|
-
destination_2.x(tmp$ret$
|
|
511
|
+
var tmp$ret$17 = emit$emitInitImport(this, item_0);
|
|
512
|
+
destination_2.x(tmp$ret$17);
|
|
513
513
|
}
|
|
514
514
|
var initModel = new File(tmp_4, destination_2);
|
|
515
|
-
var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().
|
|
516
|
-
var tmp0_2 = dropLast(split(this.
|
|
515
|
+
var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().mt(this.p1z_1.ts() + 'client/' + '__init__'), emptyList())) : emptyList();
|
|
516
|
+
var tmp0_2 = dropLast(split(this.p1z_1.rs_1, ['.']), 1);
|
|
517
517
|
var tmp$ret$18;
|
|
518
518
|
$l$block_1: {
|
|
519
519
|
// Inline function 'kotlin.collections.runningFold' call
|
|
@@ -550,17 +550,17 @@ protoOf(PythonIrEmitter).q1w = function (module_0, logger) {
|
|
|
550
550
|
var _iterator__ex2g4s_5 = this_3.t();
|
|
551
551
|
while (_iterator__ex2g4s_5.u()) {
|
|
552
552
|
var item_1 = _iterator__ex2g4s_5.v();
|
|
553
|
-
var tmp$ret$
|
|
554
|
-
destination_3.x(tmp$ret$
|
|
553
|
+
var tmp$ret$25 = new File(Companion_getInstance().mt(item_1 + '/__init__'), emptyList());
|
|
554
|
+
destination_3.x(tmp$ret$25);
|
|
555
555
|
}
|
|
556
556
|
var parentInits = destination_3;
|
|
557
|
-
return this.
|
|
557
|
+
return this.q1z_1.yp_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
|
|
558
558
|
};
|
|
559
|
-
protoOf(
|
|
559
|
+
protoOf(PythonEmitter).sr = function (definition, module_0, logger) {
|
|
560
560
|
var file = emit_0.call(this, definition, module_0, logger);
|
|
561
|
-
return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.
|
|
561
|
+
return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.p1z_1, definition);
|
|
562
562
|
};
|
|
563
|
-
protoOf(
|
|
563
|
+
protoOf(PythonEmitter).a1a = function (definition, module_0) {
|
|
564
564
|
var tmp;
|
|
565
565
|
if (definition instanceof Type) {
|
|
566
566
|
tmp = convertToGenerator_2(definition, module_0);
|
|
@@ -581,17 +581,17 @@ protoOf(PythonIrEmitter).w1w = function (definition, module_0) {
|
|
|
581
581
|
}
|
|
582
582
|
var generatorFile = tmp;
|
|
583
583
|
var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
|
|
584
|
-
var generatorOwnName = definition.
|
|
584
|
+
var generatorOwnName = definition.tr().m1() + 'Generator';
|
|
585
585
|
var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
|
|
586
|
-
var tmp_1 = filterNot(tmp_0,
|
|
587
|
-
var tmp_2 = filterNot(tmp_1,
|
|
588
|
-
var customNames = toList(distinct(map(tmp_2,
|
|
586
|
+
var tmp_1 = filterNot(tmp_0, PythonEmitter$emitGenerator$lambda);
|
|
587
|
+
var tmp_2 = filterNot(tmp_1, PythonEmitter$emitGenerator$lambda_0(generatorOwnName));
|
|
588
|
+
var customNames = toList(distinct(map(tmp_2, PythonEmitter$emitGenerator$lambda_1)));
|
|
589
589
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
590
590
|
var generatorRefs = LinkedHashSet_init_$Create$();
|
|
591
|
-
// Inline function 'community.flock.wirespec.
|
|
591
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
592
592
|
var scope = new TransformScope(sanitized);
|
|
593
|
-
scope.
|
|
594
|
-
var tmp_3 = scope.
|
|
593
|
+
scope.b18(PythonEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
|
|
594
|
+
var tmp_3 = scope.k17_1;
|
|
595
595
|
isInterface(tmp_3, Element) || THROW_CCE();
|
|
596
596
|
// Inline function 'kotlin.collections.filter' call
|
|
597
597
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -610,8 +610,8 @@ protoOf(PythonIrEmitter).w1w = function (definition, module_0) {
|
|
|
610
610
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
611
611
|
while (_iterator__ex2g4s_0.u()) {
|
|
612
612
|
var item = _iterator__ex2g4s_0.v();
|
|
613
|
-
var tmp$ret$
|
|
614
|
-
destination_0.x(tmp$ret$
|
|
613
|
+
var tmp$ret$8 = import_0('.' + item, item);
|
|
614
|
+
destination_0.x(tmp$ret$8);
|
|
615
615
|
}
|
|
616
616
|
var generatorImports = destination_0;
|
|
617
617
|
// Inline function 'kotlin.collections.filterNot' call
|
|
@@ -630,13 +630,13 @@ protoOf(PythonIrEmitter).w1w = function (definition, module_0) {
|
|
|
630
630
|
var _iterator__ex2g4s_2 = destination_1.t();
|
|
631
631
|
while (_iterator__ex2g4s_2.u()) {
|
|
632
632
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
633
|
-
var tmp$ret$
|
|
634
|
-
destination_2.x(tmp$ret$
|
|
633
|
+
var tmp$ret$14 = import_0('..model.' + item_0, item_0);
|
|
634
|
+
destination_2.x(tmp$ret$14);
|
|
635
635
|
}
|
|
636
636
|
var modelImports = destination_2;
|
|
637
|
-
return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.
|
|
637
|
+
return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.p1z_1, 'generator');
|
|
638
638
|
};
|
|
639
|
-
protoOf(
|
|
639
|
+
protoOf(PythonEmitter).ks = function (type, module_0) {
|
|
640
640
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
641
641
|
var this_0 = importReferences(type);
|
|
642
642
|
var set = HashSet_init_$Create$();
|
|
@@ -644,7 +644,7 @@ protoOf(PythonIrEmitter).cs = function (type, module_0) {
|
|
|
644
644
|
var _iterator__ex2g4s = this_0.t();
|
|
645
645
|
while (_iterator__ex2g4s.u()) {
|
|
646
646
|
var e = _iterator__ex2g4s.v();
|
|
647
|
-
var key = e.
|
|
647
|
+
var key = e.h18_1;
|
|
648
648
|
if (set.x(key)) {
|
|
649
649
|
list.x(e);
|
|
650
650
|
}
|
|
@@ -655,19 +655,19 @@ protoOf(PythonIrEmitter).cs = function (type, module_0) {
|
|
|
655
655
|
var _iterator__ex2g4s_0 = list.t();
|
|
656
656
|
while (_iterator__ex2g4s_0.u()) {
|
|
657
657
|
var item = _iterator__ex2g4s_0.v();
|
|
658
|
-
var tmp$ret$
|
|
659
|
-
destination.x(tmp$ret$
|
|
658
|
+
var tmp$ret$4 = import_0('.' + item.h18_1, item.h18_1);
|
|
659
|
+
destination.x(tmp$ret$4);
|
|
660
660
|
}
|
|
661
661
|
var typeImports = destination;
|
|
662
662
|
// Inline function 'kotlin.collections.map' call
|
|
663
|
-
var this_1 = type.
|
|
663
|
+
var this_1 = get_fields(type.dp_1);
|
|
664
664
|
// Inline function 'kotlin.collections.mapTo' call
|
|
665
665
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
666
666
|
var _iterator__ex2g4s_1 = this_1.t();
|
|
667
667
|
while (_iterator__ex2g4s_1.u()) {
|
|
668
668
|
var item_0 = _iterator__ex2g4s_1.v();
|
|
669
|
-
var tmp$ret$
|
|
670
|
-
destination_0.x(tmp$ret$
|
|
669
|
+
var tmp$ret$7 = item_0.gp_1.m1();
|
|
670
|
+
destination_0.x(tmp$ret$7);
|
|
671
671
|
}
|
|
672
672
|
var fieldNames = toSet(destination_0);
|
|
673
673
|
var tmp = sanitizeNames(injectSelfReceiverToValidate(convertWithValidation(type, module_0), fieldNames), _get_sanitizationConfig__sns434(this));
|
|
@@ -679,20 +679,20 @@ protoOf(PythonIrEmitter).cs = function (type, module_0) {
|
|
|
679
679
|
} else {
|
|
680
680
|
tmp_0 = null;
|
|
681
681
|
}
|
|
682
|
-
var tmp$ret$
|
|
683
|
-
return prependImports(tmp, tmp$ret$
|
|
682
|
+
var tmp$ret$8 = tmp_0;
|
|
683
|
+
return prependImports(tmp, tmp$ret$8);
|
|
684
684
|
};
|
|
685
|
-
protoOf(
|
|
685
|
+
protoOf(PythonEmitter).is = function (enum_0, module_0) {
|
|
686
686
|
var tmp = convert_0(enum_0);
|
|
687
|
-
return sanitizeNames(sanitizeEnumEntries(tmp,
|
|
687
|
+
return sanitizeNames(sanitizeEnumEntries(tmp, PythonEmitter$emit$lambda_0(this)), _get_sanitizationConfig__sns434(this));
|
|
688
688
|
};
|
|
689
|
-
protoOf(
|
|
689
|
+
protoOf(PythonEmitter).yr = function (union) {
|
|
690
690
|
return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
|
|
691
691
|
};
|
|
692
|
-
protoOf(
|
|
692
|
+
protoOf(PythonEmitter).ds = function (refined) {
|
|
693
693
|
return sanitizeNames(replaceRefinedFunctions(convert_2(refined), refined), _get_sanitizationConfig__sns434(this));
|
|
694
694
|
};
|
|
695
|
-
protoOf(
|
|
695
|
+
protoOf(PythonEmitter).js = function (endpoint) {
|
|
696
696
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
697
697
|
var this_0 = importReferences(endpoint);
|
|
698
698
|
var set = HashSet_init_$Create$();
|
|
@@ -700,7 +700,7 @@ protoOf(PythonIrEmitter).bs = function (endpoint) {
|
|
|
700
700
|
var _iterator__ex2g4s = this_0.t();
|
|
701
701
|
while (_iterator__ex2g4s.u()) {
|
|
702
702
|
var e = _iterator__ex2g4s.v();
|
|
703
|
-
var key = e.
|
|
703
|
+
var key = e.h18_1;
|
|
704
704
|
if (set.x(key)) {
|
|
705
705
|
list.x(e);
|
|
706
706
|
}
|
|
@@ -711,19 +711,19 @@ protoOf(PythonIrEmitter).bs = function (endpoint) {
|
|
|
711
711
|
var _iterator__ex2g4s_0 = list.t();
|
|
712
712
|
while (_iterator__ex2g4s_0.u()) {
|
|
713
713
|
var item = _iterator__ex2g4s_0.v();
|
|
714
|
-
var tmp$ret$
|
|
715
|
-
destination.x(tmp$ret$
|
|
714
|
+
var tmp$ret$4 = import_0('..model.' + item.h18_1, item.h18_1);
|
|
715
|
+
destination.x(tmp$ret$4);
|
|
716
716
|
}
|
|
717
717
|
var endpointImports = destination;
|
|
718
718
|
// Inline function 'kotlin.let' call
|
|
719
719
|
var it = splitEndpointStructsToModuleLevel(convert_3(endpoint));
|
|
720
|
-
var tmp$ret$
|
|
721
|
-
return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$
|
|
720
|
+
var tmp$ret$5 = it.bv(VOID, plus(endpointImports, it.yu_1));
|
|
721
|
+
return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$5), _get_sanitizationConfig__sns434(this));
|
|
722
722
|
};
|
|
723
|
-
protoOf(
|
|
723
|
+
protoOf(PythonEmitter).xr = function (channel) {
|
|
724
724
|
return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
|
|
725
725
|
};
|
|
726
|
-
protoOf(
|
|
726
|
+
protoOf(PythonEmitter).wr = function (rpc) {
|
|
727
727
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
728
728
|
var this_0 = importReferences(rpc);
|
|
729
729
|
var set = HashSet_init_$Create$();
|
|
@@ -731,7 +731,7 @@ protoOf(PythonIrEmitter).or = function (rpc) {
|
|
|
731
731
|
var _iterator__ex2g4s = this_0.t();
|
|
732
732
|
while (_iterator__ex2g4s.u()) {
|
|
733
733
|
var e = _iterator__ex2g4s.v();
|
|
734
|
-
var key = e.
|
|
734
|
+
var key = e.h18_1;
|
|
735
735
|
if (set.x(key)) {
|
|
736
736
|
list.x(e);
|
|
737
737
|
}
|
|
@@ -742,16 +742,16 @@ protoOf(PythonIrEmitter).or = function (rpc) {
|
|
|
742
742
|
var _iterator__ex2g4s_0 = list.t();
|
|
743
743
|
while (_iterator__ex2g4s_0.u()) {
|
|
744
744
|
var item = _iterator__ex2g4s_0.v();
|
|
745
|
-
var tmp$ret$
|
|
746
|
-
destination.x(tmp$ret$
|
|
745
|
+
var tmp$ret$4 = import_0('..model.' + item.h18_1, item.h18_1);
|
|
746
|
+
destination.x(tmp$ret$4);
|
|
747
747
|
}
|
|
748
748
|
var rpcImports = destination;
|
|
749
749
|
// Inline function 'kotlin.let' call
|
|
750
750
|
var it = convert_5(rpc);
|
|
751
|
-
var tmp$ret$
|
|
752
|
-
return sanitizeNames(tmp$ret$
|
|
751
|
+
var tmp$ret$5 = it.bv(VOID, plus(rpcImports, it.yu_1));
|
|
752
|
+
return sanitizeNames(tmp$ret$5, _get_sanitizationConfig__sns434(this));
|
|
753
753
|
};
|
|
754
|
-
protoOf(
|
|
754
|
+
protoOf(PythonEmitter).z19 = function (endpoint) {
|
|
755
755
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
756
756
|
var this_0 = importReferences(endpoint);
|
|
757
757
|
var set = HashSet_init_$Create$();
|
|
@@ -759,7 +759,7 @@ protoOf(PythonIrEmitter).v1w = function (endpoint) {
|
|
|
759
759
|
var _iterator__ex2g4s = this_0.t();
|
|
760
760
|
while (_iterator__ex2g4s.u()) {
|
|
761
761
|
var e = _iterator__ex2g4s.v();
|
|
762
|
-
var key = e.
|
|
762
|
+
var key = e.h18_1;
|
|
763
763
|
if (set.x(key)) {
|
|
764
764
|
list.x(e);
|
|
765
765
|
}
|
|
@@ -770,17 +770,17 @@ protoOf(PythonIrEmitter).v1w = function (endpoint) {
|
|
|
770
770
|
var _iterator__ex2g4s_0 = list.t();
|
|
771
771
|
while (_iterator__ex2g4s_0.u()) {
|
|
772
772
|
var item = _iterator__ex2g4s_0.v();
|
|
773
|
-
var tmp$ret$
|
|
774
|
-
destination.x(tmp$ret$
|
|
773
|
+
var tmp$ret$4 = import_0('..model.' + item.h18_1, item.h18_1);
|
|
774
|
+
destination.x(tmp$ret$4);
|
|
775
775
|
}
|
|
776
776
|
var modelImports = destination;
|
|
777
|
-
var endpointImport = import_0('..endpoint.' + endpoint.
|
|
778
|
-
var endpointName = endpoint.
|
|
777
|
+
var endpointImport = import_0('..endpoint.' + endpoint.vq_1.m1(), '*');
|
|
778
|
+
var endpointName = endpoint.vq_1.m1();
|
|
779
779
|
var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
|
|
780
|
-
var subPackageName = plus_1(this.
|
|
781
|
-
return new File(Companion_getInstance().
|
|
780
|
+
var subPackageName = plus_1(this.p1z_1, 'client');
|
|
781
|
+
return new File(Companion_getInstance().mt(subPackageName.ts() + file.xu_1.pt()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.yu_1));
|
|
782
782
|
};
|
|
783
|
-
protoOf(
|
|
783
|
+
protoOf(PythonEmitter).t19 = function (endpoints, logger) {
|
|
784
784
|
// Inline function 'kotlin.collections.flatMap' call
|
|
785
785
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
786
786
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -796,7 +796,7 @@ protoOf(PythonIrEmitter).s1w = function (endpoints, logger) {
|
|
|
796
796
|
var _iterator__ex2g4s_0 = destination.t();
|
|
797
797
|
while (_iterator__ex2g4s_0.u()) {
|
|
798
798
|
var e = _iterator__ex2g4s_0.v();
|
|
799
|
-
var key = e.
|
|
799
|
+
var key = e.h18_1;
|
|
800
800
|
if (set.x(key)) {
|
|
801
801
|
list_0.x(e);
|
|
802
802
|
}
|
|
@@ -807,8 +807,8 @@ protoOf(PythonIrEmitter).s1w = function (endpoints, logger) {
|
|
|
807
807
|
var _iterator__ex2g4s_1 = list_0.t();
|
|
808
808
|
while (_iterator__ex2g4s_1.u()) {
|
|
809
809
|
var item = _iterator__ex2g4s_1.v();
|
|
810
|
-
var tmp$ret$
|
|
811
|
-
destination_0.x(tmp$ret$
|
|
810
|
+
var tmp$ret$7 = import_0('.model.' + item.h18_1, item.h18_1);
|
|
811
|
+
destination_0.x(tmp$ret$7);
|
|
812
812
|
}
|
|
813
813
|
var modelImports = destination_0;
|
|
814
814
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -817,8 +817,8 @@ protoOf(PythonIrEmitter).s1w = function (endpoints, logger) {
|
|
|
817
817
|
var _iterator__ex2g4s_2 = endpoints.t();
|
|
818
818
|
while (_iterator__ex2g4s_2.u()) {
|
|
819
819
|
var item_0 = _iterator__ex2g4s_2.v();
|
|
820
|
-
var tmp$ret$
|
|
821
|
-
destination_1.x(tmp$ret$
|
|
820
|
+
var tmp$ret$10 = import_0('.endpoint.' + item_0.vq_1.m1(), '*');
|
|
821
|
+
destination_1.x(tmp$ret$10);
|
|
822
822
|
}
|
|
823
823
|
var endpointImports = destination_1;
|
|
824
824
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -827,8 +827,8 @@ protoOf(PythonIrEmitter).s1w = function (endpoints, logger) {
|
|
|
827
827
|
var _iterator__ex2g4s_3 = endpoints.t();
|
|
828
828
|
while (_iterator__ex2g4s_3.u()) {
|
|
829
829
|
var item_1 = _iterator__ex2g4s_3.v();
|
|
830
|
-
var tmp$ret$
|
|
831
|
-
destination_2.x(tmp$ret$
|
|
830
|
+
var tmp$ret$13 = import_0('.client.' + item_1.vq_1.m1() + 'Client', item_1.vq_1.m1() + 'Client');
|
|
831
|
+
destination_2.x(tmp$ret$13);
|
|
832
832
|
}
|
|
833
833
|
var clientImports = destination_2;
|
|
834
834
|
var allImports = plus(plus(modelImports, endpointImports), clientImports);
|
|
@@ -838,8 +838,8 @@ protoOf(PythonIrEmitter).s1w = function (endpoints, logger) {
|
|
|
838
838
|
var _iterator__ex2g4s_4 = endpoints.t();
|
|
839
839
|
while (_iterator__ex2g4s_4.u()) {
|
|
840
840
|
var item_2 = _iterator__ex2g4s_4.v();
|
|
841
|
-
var tmp$ret$
|
|
842
|
-
destination_3.x(tmp$ret$
|
|
841
|
+
var tmp$ret$16 = item_2.vq_1.m1();
|
|
842
|
+
destination_3.x(tmp$ret$16);
|
|
843
843
|
}
|
|
844
844
|
var endpointNames = destination_3;
|
|
845
845
|
// Inline function 'kotlin.let' call
|
|
@@ -852,60 +852,60 @@ protoOf(PythonIrEmitter).s1w = function (endpoints, logger) {
|
|
|
852
852
|
accumulator = flattenEndpointTypeRefs(acc, element_0);
|
|
853
853
|
}
|
|
854
854
|
var file = accumulator;
|
|
855
|
-
return new File(Companion_getInstance().
|
|
855
|
+
return new File(Companion_getInstance().mt(this.p1z_1.ts() + file.xu_1.pt()), plus(plus(buildImports(this, '.wirespec'), allImports), file.yu_1));
|
|
856
856
|
};
|
|
857
857
|
function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
|
|
858
|
-
// Inline function 'community.flock.wirespec.
|
|
858
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
859
859
|
var scope = new TransformScope(_this__u8e3s4);
|
|
860
|
-
// Inline function 'community.flock.wirespec.
|
|
860
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
861
861
|
var tmp = scope;
|
|
862
|
-
// Inline function 'community.flock.wirespec.
|
|
863
|
-
var this_0 = scope.
|
|
864
|
-
// Inline function 'community.flock.wirespec.
|
|
862
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
863
|
+
var this_0 = scope.k17_1;
|
|
864
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
865
865
|
// Inline function 'kotlin.apply' call
|
|
866
866
|
var this_1 = new TransformerBuilder();
|
|
867
|
-
this_1.
|
|
868
|
-
var tmp$ret$
|
|
869
|
-
tmp.
|
|
870
|
-
var tmp_0 = scope.
|
|
867
|
+
this_1.e18(replaceReflectInNonGenericStructFields$lambda);
|
|
868
|
+
var tmp$ret$4 = this_1.z17();
|
|
869
|
+
tmp.k17_1 = transform(this_0, tmp$ret$4);
|
|
870
|
+
var tmp_0 = scope.k17_1;
|
|
871
871
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
872
872
|
}
|
|
873
873
|
function replaceRefinedFunctions(_this__u8e3s4, refined) {
|
|
874
|
-
// Inline function 'community.flock.wirespec.
|
|
874
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
875
875
|
var scope = new TransformScope(_this__u8e3s4);
|
|
876
|
-
// Inline function 'community.flock.wirespec.
|
|
876
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
877
877
|
var tmp = scope;
|
|
878
|
-
// Inline function 'community.flock.wirespec.
|
|
879
|
-
var this_0 = scope.
|
|
880
|
-
// Inline function 'community.flock.wirespec.
|
|
878
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
879
|
+
var this_0 = scope.k17_1;
|
|
880
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
881
881
|
// Inline function 'kotlin.apply' call
|
|
882
882
|
var this_1 = new TransformerBuilder();
|
|
883
|
-
this_1.
|
|
884
|
-
var tmp$ret$
|
|
885
|
-
tmp.
|
|
886
|
-
var tmp_0 = scope.
|
|
883
|
+
this_1.e18(replaceRefinedFunctions$lambda(refined));
|
|
884
|
+
var tmp$ret$4 = this_1.z17();
|
|
885
|
+
tmp.k17_1 = transform(this_0, tmp$ret$4);
|
|
886
|
+
var tmp_0 = scope.k17_1;
|
|
887
887
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
888
888
|
}
|
|
889
889
|
function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
|
|
890
|
-
// Inline function 'community.flock.wirespec.
|
|
890
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
891
891
|
var scope = new TransformScope(_this__u8e3s4);
|
|
892
|
-
// Inline function 'community.flock.wirespec.
|
|
892
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
893
893
|
var tmp = scope;
|
|
894
|
-
// Inline function 'community.flock.wirespec.
|
|
895
|
-
var this_0 = scope.
|
|
896
|
-
// Inline function 'community.flock.wirespec.
|
|
894
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
895
|
+
var this_0 = scope.k17_1;
|
|
896
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
897
897
|
// Inline function 'kotlin.apply' call
|
|
898
898
|
var this_1 = new TransformerBuilder();
|
|
899
|
-
this_1.
|
|
900
|
-
var tmp$ret$
|
|
901
|
-
tmp.
|
|
902
|
-
var tmp_0 = scope.
|
|
899
|
+
this_1.e18(snakeCaseHandlerAndCallMethods$lambda);
|
|
900
|
+
var tmp$ret$4 = this_1.z17();
|
|
901
|
+
tmp.k17_1 = transform(this_0, tmp$ret$4);
|
|
902
|
+
var tmp_0 = scope.k17_1;
|
|
903
903
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
904
904
|
}
|
|
905
905
|
function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
|
|
906
|
-
// Inline function 'community.flock.wirespec.
|
|
906
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
907
907
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
908
|
-
var tmp0 = _this__u8e3s4.
|
|
908
|
+
var tmp0 = _this__u8e3s4.zu();
|
|
909
909
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
910
910
|
var destination = ArrayList_init_$Create$_0();
|
|
911
911
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -915,10 +915,10 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
|
|
|
915
915
|
destination.x(element);
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
var tmp$ret$
|
|
919
|
-
var namespace = ensureNotNull(tmp$ret$
|
|
918
|
+
var tmp$ret$0 = firstOrNull_0(destination);
|
|
919
|
+
var namespace = ensureNotNull(tmp$ret$0);
|
|
920
920
|
// Inline function 'kotlin.collections.partition' call
|
|
921
|
-
var this_0 = namespace.
|
|
921
|
+
var this_0 = namespace.ev_1;
|
|
922
922
|
var first = ArrayList_init_$Create$_0();
|
|
923
923
|
var second = ArrayList_init_$Create$_0();
|
|
924
924
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
@@ -937,33 +937,33 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
|
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
var _destruct__k2r9zo = new Pair(first, second);
|
|
940
|
-
var moduleElements = _destruct__k2r9zo.
|
|
941
|
-
var classElements = _destruct__k2r9zo.
|
|
942
|
-
var endpointClass = new Namespace(namespace.
|
|
943
|
-
return new File(namespace.
|
|
940
|
+
var moduleElements = _destruct__k2r9zo.ve();
|
|
941
|
+
var classElements = _destruct__k2r9zo.we();
|
|
942
|
+
var endpointClass = new Namespace(namespace.dv_1, classElements, namespace.fv_1);
|
|
943
|
+
return new File(namespace.dv_1, plus_0(moduleElements, endpointClass));
|
|
944
944
|
}
|
|
945
945
|
function flattenEndpointTypeRefs(_this__u8e3s4, endpointName) {
|
|
946
|
-
// Inline function 'community.flock.wirespec.
|
|
946
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
947
947
|
var scope = new TransformScope(_this__u8e3s4);
|
|
948
|
-
scope.
|
|
949
|
-
var tmp = scope.
|
|
948
|
+
scope.q17(flattenEndpointTypeRefs$lambda(endpointName));
|
|
949
|
+
var tmp = scope.k17_1;
|
|
950
950
|
return isInterface(tmp, Element) ? tmp : THROW_CCE();
|
|
951
951
|
}
|
|
952
952
|
function snakeCaseClientFunctions(_this__u8e3s4) {
|
|
953
|
-
// Inline function 'community.flock.wirespec.
|
|
953
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
954
954
|
var scope = new TransformScope(_this__u8e3s4);
|
|
955
|
-
// Inline function 'community.flock.wirespec.
|
|
955
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.TransformScope.matchingElements' call
|
|
956
956
|
var tmp = scope;
|
|
957
|
-
// Inline function 'community.flock.wirespec.
|
|
958
|
-
var this_0 = scope.
|
|
959
|
-
// Inline function 'community.flock.wirespec.
|
|
957
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
|
|
958
|
+
var this_0 = scope.k17_1;
|
|
959
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
|
|
960
960
|
// Inline function 'kotlin.apply' call
|
|
961
961
|
var this_1 = new TransformerBuilder();
|
|
962
|
-
this_1.
|
|
963
|
-
var tmp$ret$
|
|
964
|
-
tmp.
|
|
965
|
-
scope.
|
|
966
|
-
var tmp_0 = scope.
|
|
962
|
+
this_1.e18(snakeCaseClientFunctions$lambda);
|
|
963
|
+
var tmp$ret$4 = this_1.z17();
|
|
964
|
+
tmp.k17_1 = transform(this_0, tmp$ret$4);
|
|
965
|
+
scope.c18(snakeCaseClientFunctions$lambda_0);
|
|
966
|
+
var tmp_0 = scope.k17_1;
|
|
967
967
|
return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
|
|
968
968
|
}
|
|
969
969
|
function addSelfReceiverToClientFields(_this__u8e3s4) {
|
|
@@ -972,9 +972,9 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
|
|
|
972
972
|
if (tmp0_safe_receiver == null) {
|
|
973
973
|
tmp = null;
|
|
974
974
|
} else {
|
|
975
|
-
// Inline function 'community.flock.wirespec.
|
|
975
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.findElement' call
|
|
976
976
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
977
|
-
var tmp0 = tmp0_safe_receiver.
|
|
977
|
+
var tmp0 = tmp0_safe_receiver.zu();
|
|
978
978
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
979
979
|
var destination = ArrayList_init_$Create$_0();
|
|
980
980
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -998,8 +998,8 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
|
|
|
998
998
|
var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
|
|
999
999
|
while (_iterator__ex2g4s_0.u()) {
|
|
1000
1000
|
var item = _iterator__ex2g4s_0.v();
|
|
1001
|
-
var tmp$ret$
|
|
1002
|
-
destination_0.x(tmp$ret$
|
|
1001
|
+
var tmp$ret$5 = item.sv_1.nt();
|
|
1002
|
+
destination_0.x(tmp$ret$5);
|
|
1003
1003
|
}
|
|
1004
1004
|
tmp_0 = destination_0;
|
|
1005
1005
|
}
|
|
@@ -1008,10 +1008,10 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
|
|
|
1008
1008
|
var fieldNames = tmp4_elvis_lhs == null ? emptySet() : tmp4_elvis_lhs;
|
|
1009
1009
|
if (fieldNames.r())
|
|
1010
1010
|
return _this__u8e3s4;
|
|
1011
|
-
// Inline function 'community.flock.wirespec.
|
|
1011
|
+
// Inline function 'community.flock.wirespec.compiler.core.ir.transform' call
|
|
1012
1012
|
var scope = new TransformScope(_this__u8e3s4);
|
|
1013
|
-
scope.
|
|
1014
|
-
var tmp_1 = scope.
|
|
1013
|
+
scope.c18(addSelfReceiverToClientFields$lambda(fieldNames));
|
|
1014
|
+
var tmp_1 = scope.k17_1;
|
|
1015
1015
|
return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
|
|
1016
1016
|
}
|
|
1017
1017
|
function replaceReflectAsTypeAny(_this__u8e3s4) {
|
|
@@ -1020,13 +1020,13 @@ function replaceReflectAsTypeAny(_this__u8e3s4) {
|
|
|
1020
1020
|
tmp = Custom_init_$Create$('type', listOf_0(Any_instance));
|
|
1021
1021
|
} else {
|
|
1022
1022
|
if (_this__u8e3s4 instanceof Nullable) {
|
|
1023
|
-
tmp = _this__u8e3s4.
|
|
1023
|
+
tmp = _this__u8e3s4.cu(replaceReflectAsTypeAny(_this__u8e3s4.ku_1));
|
|
1024
1024
|
} else {
|
|
1025
1025
|
if (_this__u8e3s4 instanceof Array_0) {
|
|
1026
|
-
tmp = _this__u8e3s4.
|
|
1026
|
+
tmp = _this__u8e3s4.cu(replaceReflectAsTypeAny(_this__u8e3s4.bu_1));
|
|
1027
1027
|
} else {
|
|
1028
1028
|
if (_this__u8e3s4 instanceof Dict) {
|
|
1029
|
-
tmp = _this__u8e3s4.
|
|
1029
|
+
tmp = _this__u8e3s4.fu(replaceReflectAsTypeAny(_this__u8e3s4.du_1), replaceReflectAsTypeAny(_this__u8e3s4.eu_1));
|
|
1030
1030
|
} else {
|
|
1031
1031
|
tmp = _this__u8e3s4;
|
|
1032
1032
|
}
|
|
@@ -1038,15 +1038,15 @@ function replaceReflectAsTypeAny(_this__u8e3s4) {
|
|
|
1038
1038
|
function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
|
|
1039
1039
|
var tmp;
|
|
1040
1040
|
if (element instanceof Struct) {
|
|
1041
|
-
var tmp$ret$
|
|
1041
|
+
var tmp$ret$0;
|
|
1042
1042
|
$l$block: {
|
|
1043
1043
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1044
|
-
if (!element.
|
|
1045
|
-
tmp$ret$
|
|
1044
|
+
if (!element.cx_1.r()) {
|
|
1045
|
+
tmp$ret$0 = element;
|
|
1046
1046
|
break $l$block;
|
|
1047
1047
|
}
|
|
1048
1048
|
// Inline function 'kotlin.collections.map' call
|
|
1049
|
-
var this_0 = element.
|
|
1049
|
+
var this_0 = element.yw_1;
|
|
1050
1050
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1051
1051
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1052
1052
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1054,16 +1054,16 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
|
|
|
1054
1054
|
var item = _iterator__ex2g4s.v();
|
|
1055
1055
|
var tmp_0;
|
|
1056
1056
|
if (item instanceof Field) {
|
|
1057
|
-
tmp_0 = item.
|
|
1057
|
+
tmp_0 = item.cw(VOID, replaceReflectAsTypeAny(item.tv_1));
|
|
1058
1058
|
} else {
|
|
1059
1059
|
tmp_0 = item;
|
|
1060
1060
|
}
|
|
1061
|
-
var tmp$ret$
|
|
1062
|
-
destination.x(tmp$ret$
|
|
1061
|
+
var tmp$ret$4 = tmp_0;
|
|
1062
|
+
destination.x(tmp$ret$4);
|
|
1063
1063
|
}
|
|
1064
|
-
tmp$ret$
|
|
1064
|
+
tmp$ret$0 = element.ix(VOID, destination);
|
|
1065
1065
|
}
|
|
1066
|
-
tmp = tmp$ret$
|
|
1066
|
+
tmp = tmp$ret$0;
|
|
1067
1067
|
} else {
|
|
1068
1068
|
tmp = element;
|
|
1069
1069
|
}
|
|
@@ -1072,17 +1072,17 @@ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
function replaceRefinedFunctions$lambda$lambda($constraintExpr) {
|
|
1074
1074
|
return function ($this$function) {
|
|
1075
|
-
$this$function.
|
|
1076
|
-
$this$function.
|
|
1077
|
-
$this$function.
|
|
1075
|
+
$this$function.a13('self', Custom_init_$Create$(''));
|
|
1076
|
+
$this$function.z12(Boolean_instance);
|
|
1077
|
+
$this$function.c13($constraintExpr);
|
|
1078
1078
|
return Unit_instance;
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
1081
|
function replaceRefinedFunctions$lambda$lambda_0($toStringExpr) {
|
|
1082
1082
|
return function ($this$function) {
|
|
1083
|
-
$this$function.
|
|
1084
|
-
$this$function.
|
|
1085
|
-
$this$function.
|
|
1083
|
+
$this$function.a13('self', Custom_init_$Create$(''));
|
|
1084
|
+
$this$function.z12(String_instance);
|
|
1085
|
+
$this$function.c13(new RawExpression($toStringExpr));
|
|
1086
1086
|
return Unit_instance;
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
@@ -1091,7 +1091,7 @@ function replaceRefinedFunctions$lambda($refined) {
|
|
|
1091
1091
|
var tmp;
|
|
1092
1092
|
if (element instanceof Struct) {
|
|
1093
1093
|
// Inline function 'kotlin.collections.map' call
|
|
1094
|
-
var this_0 = element.
|
|
1094
|
+
var this_0 = element.bx_1;
|
|
1095
1095
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1096
1096
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1097
1097
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1100,23 +1100,23 @@ function replaceRefinedFunctions$lambda($refined) {
|
|
|
1100
1100
|
var tmp_0;
|
|
1101
1101
|
var tmp_1;
|
|
1102
1102
|
if (item instanceof Function) {
|
|
1103
|
-
tmp_1 = item.
|
|
1103
|
+
tmp_1 = item.jx_1.equals(Companion_getInstance().mt('validate'));
|
|
1104
1104
|
} else {
|
|
1105
1105
|
tmp_1 = false;
|
|
1106
1106
|
}
|
|
1107
1107
|
if (tmp_1) {
|
|
1108
|
-
var constraintExpr = convertConstraint($refined.
|
|
1108
|
+
var constraintExpr = convertConstraint($refined.cs_1, new FieldCall(new VariableReference(Companion_getInstance().mt('self')), Companion_getInstance().mt('value')));
|
|
1109
1109
|
tmp_0 = function_0('validate', VOID, VOID, replaceRefinedFunctions$lambda$lambda(constraintExpr));
|
|
1110
1110
|
} else {
|
|
1111
1111
|
var tmp_2;
|
|
1112
1112
|
if (item instanceof Function) {
|
|
1113
|
-
tmp_2 = item.
|
|
1113
|
+
tmp_2 = item.jx_1.equals(Companion_getInstance().mt('toString'));
|
|
1114
1114
|
} else {
|
|
1115
1115
|
tmp_2 = false;
|
|
1116
1116
|
}
|
|
1117
1117
|
if (tmp_2) {
|
|
1118
1118
|
var tmp_3;
|
|
1119
|
-
if ($refined.
|
|
1119
|
+
if ($refined.cs_1.j18_1 instanceof String_0) {
|
|
1120
1120
|
tmp_3 = 'self.value';
|
|
1121
1121
|
} else {
|
|
1122
1122
|
tmp_3 = 'str(self.value)';
|
|
@@ -1127,10 +1127,10 @@ function replaceRefinedFunctions$lambda($refined) {
|
|
|
1127
1127
|
tmp_0 = item;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
|
-
var tmp$ret$
|
|
1131
|
-
destination.x(tmp$ret$
|
|
1130
|
+
var tmp$ret$3 = tmp_0;
|
|
1131
|
+
destination.x(tmp$ret$3);
|
|
1132
1132
|
}
|
|
1133
|
-
tmp = element.
|
|
1133
|
+
tmp = element.ix(VOID, VOID, VOID, VOID, destination);
|
|
1134
1134
|
} else {
|
|
1135
1135
|
tmp = element;
|
|
1136
1136
|
}
|
|
@@ -1143,23 +1143,23 @@ function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
|
|
|
1143
1143
|
if (element instanceof Interface) {
|
|
1144
1144
|
var tmp$ret$0;
|
|
1145
1145
|
$l$block: {
|
|
1146
|
-
if (!element.
|
|
1146
|
+
if (!element.jv_1.equals(Companion_getInstance().mt('Handler')) && !element.jv_1.equals(Companion_getInstance().mt('Call'))) {
|
|
1147
1147
|
tmp$ret$0 = element;
|
|
1148
1148
|
break $l$block;
|
|
1149
1149
|
}
|
|
1150
1150
|
// Inline function 'kotlin.collections.map' call
|
|
1151
|
-
var this_0 = element.
|
|
1151
|
+
var this_0 = element.kv_1;
|
|
1152
1152
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1153
1153
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1154
1154
|
var _iterator__ex2g4s = this_0.t();
|
|
1155
1155
|
while (_iterator__ex2g4s.u()) {
|
|
1156
1156
|
var item = _iterator__ex2g4s.v();
|
|
1157
1157
|
var tmp0_safe_receiver = item instanceof Function ? item : null;
|
|
1158
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1159
|
-
var tmp$ret$
|
|
1160
|
-
destination.x(tmp$ret$
|
|
1158
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vx(Companion_getInstance().mt(item.jx_1.qt()));
|
|
1159
|
+
var tmp$ret$3 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
|
|
1160
|
+
destination.x(tmp$ret$3);
|
|
1161
1161
|
}
|
|
1162
|
-
tmp$ret$0 = element.
|
|
1162
|
+
tmp$ret$0 = element.rv(VOID, destination);
|
|
1163
1163
|
}
|
|
1164
1164
|
tmp = tmp$ret$0;
|
|
1165
1165
|
} else {
|
|
@@ -1174,17 +1174,17 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
|
|
|
1174
1174
|
if (!(type instanceof Custom)) {
|
|
1175
1175
|
tmp = type;
|
|
1176
1176
|
} else {
|
|
1177
|
-
if (!startsWith(type.
|
|
1177
|
+
if (!startsWith(type.gu_1.pt(), $endpointName + '.')) {
|
|
1178
1178
|
tmp = type;
|
|
1179
1179
|
} else {
|
|
1180
|
-
var suffix = removePrefix(type.
|
|
1180
|
+
var suffix = removePrefix(type.gu_1.pt(), $endpointName + '.');
|
|
1181
1181
|
switch (suffix) {
|
|
1182
1182
|
case 'Call':
|
|
1183
1183
|
case 'Handler':
|
|
1184
1184
|
tmp = type;
|
|
1185
1185
|
break;
|
|
1186
1186
|
default:
|
|
1187
|
-
tmp = type.
|
|
1187
|
+
tmp = type.ju(Companion_getInstance().mt(suffix));
|
|
1188
1188
|
break;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
@@ -1195,7 +1195,7 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
|
|
|
1195
1195
|
function snakeCaseClientFunctions$lambda(element, transformer) {
|
|
1196
1196
|
var tmp;
|
|
1197
1197
|
if (element instanceof Function) {
|
|
1198
|
-
tmp = element.
|
|
1198
|
+
tmp = element.vx(Companion_getInstance().mt(element.jx_1.qt()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().mt('self'), Custom_init_$Create$(''))), element.lx_1));
|
|
1199
1199
|
} else {
|
|
1200
1200
|
tmp = element;
|
|
1201
1201
|
}
|
|
@@ -1205,19 +1205,19 @@ function snakeCaseClientFunctions$lambda(element, transformer) {
|
|
|
1205
1205
|
function snakeCaseClientFunctions$lambda_0(stmt, tr) {
|
|
1206
1206
|
var tmp;
|
|
1207
1207
|
if (stmt instanceof FunctionCall) {
|
|
1208
|
-
var nameStr = stmt.
|
|
1209
|
-
var newName = contains(nameStr, '.') ? stmt.
|
|
1210
|
-
var tmp1_safe_receiver = stmt.
|
|
1208
|
+
var nameStr = stmt.ut_1.nt();
|
|
1209
|
+
var newName = contains(nameStr, '.') ? stmt.ut_1 : Companion_getInstance().mt(Companion_getInstance().mt(nameStr).qt());
|
|
1210
|
+
var tmp1_safe_receiver = stmt.st_1;
|
|
1211
1211
|
var tmp_0;
|
|
1212
1212
|
if (tmp1_safe_receiver == null) {
|
|
1213
1213
|
tmp_0 = null;
|
|
1214
1214
|
} else {
|
|
1215
1215
|
// Inline function 'kotlin.let' call
|
|
1216
|
-
tmp_0 = tr.
|
|
1216
|
+
tmp_0 = tr.f17(tmp1_safe_receiver);
|
|
1217
1217
|
}
|
|
1218
1218
|
var tmp2_receiver = tmp_0;
|
|
1219
1219
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1220
|
-
var this_0 = stmt.
|
|
1220
|
+
var this_0 = stmt.vt_1;
|
|
1221
1221
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1222
1222
|
var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.b1()));
|
|
1223
1223
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -1227,10 +1227,10 @@ function snakeCaseClientFunctions$lambda_0(stmt, tr) {
|
|
|
1227
1227
|
var tmp_1 = element.l1();
|
|
1228
1228
|
// Inline function 'kotlin.collections.component2' call
|
|
1229
1229
|
var v = element.m1();
|
|
1230
|
-
var tmp$ret$
|
|
1231
|
-
destination.t2(tmp_1, tmp$ret$
|
|
1230
|
+
var tmp$ret$6 = tr.f17(v);
|
|
1231
|
+
destination.t2(tmp_1, tmp$ret$6);
|
|
1232
1232
|
}
|
|
1233
|
-
var tmp4_isAwait = !(stmt.
|
|
1233
|
+
var tmp4_isAwait = !(stmt.st_1 == null);
|
|
1234
1234
|
tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
|
|
1235
1235
|
} else {
|
|
1236
1236
|
tmp = transformChildren(stmt, tr);
|
|
@@ -1242,23 +1242,23 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
|
|
|
1242
1242
|
var tmp;
|
|
1243
1243
|
var tmp_0;
|
|
1244
1244
|
if (stmt instanceof FieldCall) {
|
|
1245
|
-
tmp_0 = (stmt.
|
|
1245
|
+
tmp_0 = (stmt.vy_1 == null && $fieldNames.v1(stmt.wy_1.nt()));
|
|
1246
1246
|
} else {
|
|
1247
1247
|
tmp_0 = false;
|
|
1248
1248
|
}
|
|
1249
1249
|
if (tmp_0) {
|
|
1250
|
-
tmp = new FieldCall(new VariableReference(Companion_getInstance().
|
|
1250
|
+
tmp = new FieldCall(new VariableReference(Companion_getInstance().mt('self')), stmt.wy_1);
|
|
1251
1251
|
} else {
|
|
1252
1252
|
if (stmt instanceof FieldCall) {
|
|
1253
|
-
var tmp1_safe_receiver = stmt.
|
|
1253
|
+
var tmp1_safe_receiver = stmt.vy_1;
|
|
1254
1254
|
var tmp_1;
|
|
1255
1255
|
if (tmp1_safe_receiver == null) {
|
|
1256
1256
|
tmp_1 = null;
|
|
1257
1257
|
} else {
|
|
1258
1258
|
// Inline function 'kotlin.let' call
|
|
1259
|
-
tmp_1 = tr.
|
|
1259
|
+
tmp_1 = tr.f17(tmp1_safe_receiver);
|
|
1260
1260
|
}
|
|
1261
|
-
tmp = new FieldCall(tmp_1, stmt.
|
|
1261
|
+
tmp = new FieldCall(tmp_1, stmt.wy_1);
|
|
1262
1262
|
} else {
|
|
1263
1263
|
tmp = transformChildren(stmt, tr);
|
|
1264
1264
|
}
|
|
@@ -1267,13 +1267,14 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
|
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
1269
|
//region block: post-declaration
|
|
1270
|
-
protoOf(
|
|
1271
|
-
protoOf(
|
|
1272
|
-
protoOf(
|
|
1270
|
+
protoOf(PythonEmitter).u19 = get_extensions;
|
|
1271
|
+
protoOf(PythonEmitter).mo = emit_1;
|
|
1272
|
+
protoOf(PythonEmitter).w19 = beforeGenerate;
|
|
1273
|
+
protoOf(PythonEmitter).np = get_supportsDefaults;
|
|
1273
1274
|
//endregion
|
|
1274
1275
|
//region block: exports
|
|
1275
1276
|
export {
|
|
1276
|
-
|
|
1277
|
+
PythonEmitter as PythonEmitter2pjclp0u1gkmn,
|
|
1277
1278
|
};
|
|
1278
1279
|
//endregion
|
|
1279
1280
|
|