@tuprolog/arg2p 0.16.3 → 0.16.5
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/2p-core.js +3067 -3017
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +455 -455
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +248 -248
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +160 -160
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +6 -6
- package/2p-dsl-unify.js.map +1 -1
- package/2p-io-lib.js +881 -877
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +140 -140
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1875 -1873
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +96 -96
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +985 -985
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +4497 -4317
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1715 -1715
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +372 -372
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +457 -457
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +263 -263
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +1907 -1907
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +112 -112
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3327 -3076
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kt-math.js +1616 -1610
- package/kt-math.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +52 -52
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +695 -695
- package/okio-parent-okio.js.map +1 -1
- package/package.json +2 -2
package/2p-io-lib.js
CHANGED
|
@@ -38,148 +38,149 @@
|
|
|
38
38
|
//region block: imports
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.b;
|
|
40
40
|
var buildParserFor = kotlin_it_unibo_tuprolog_parser_impl.$_$.v;
|
|
41
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
42
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
43
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
44
|
-
var equals = kotlin_kotlin.$_$.
|
|
45
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
46
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
41
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.n;
|
|
42
|
+
var Unit_instance = kotlin_kotlin.$_$.q;
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.r7;
|
|
44
|
+
var equals = kotlin_kotlin.$_$.x6;
|
|
45
|
+
var FunctionAdapter = kotlin_kotlin.$_$.m6;
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.l7;
|
|
47
47
|
var TextChunkSource = kotlin_it_unibo_tuprolog_parser_impl.$_$.t;
|
|
48
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
50
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
51
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
52
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
53
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
48
|
+
var hashCode = kotlin_kotlin.$_$.d7;
|
|
49
|
+
var initMetadataForClass = kotlin_kotlin.$_$.e7;
|
|
50
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s5;
|
|
51
|
+
var THROW_CCE = kotlin_kotlin.$_$.ec;
|
|
52
|
+
var SequenceScope = kotlin_kotlin.$_$.n8;
|
|
53
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r5;
|
|
54
54
|
var toParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.j;
|
|
55
55
|
var PrologSyntaxException = kotlin_it_unibo_tuprolog_parser_impl.$_$.j;
|
|
56
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
57
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
56
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.h7;
|
|
57
|
+
var constructCallableReference = kotlin_kotlin.$_$.v6;
|
|
58
58
|
var toOperatorTable = kotlin_it_unibo_tuprolog_parser_core.$_$.i;
|
|
59
|
-
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
59
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
60
60
|
var PrologTermParserVisitor = kotlin_it_unibo_tuprolog_parser_core.$_$.b;
|
|
61
|
-
var sequence = kotlin_kotlin.$_$.
|
|
62
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
61
|
+
var sequence = kotlin_kotlin.$_$.t9;
|
|
62
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
63
63
|
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
64
|
-
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
65
|
-
var listOf = kotlin_kotlin.$_$.
|
|
66
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
67
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
68
|
-
var to = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
64
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.x3;
|
|
66
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.q2;
|
|
67
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
68
|
+
var to = kotlin_kotlin.$_$.rc;
|
|
69
|
+
var initMetadataForObject = kotlin_kotlin.$_$.i7;
|
|
70
|
+
var Companion_instance_1 = kotlin_kotlin.$_$.o;
|
|
71
|
+
var asSequence = kotlin_kotlin.$_$.n2;
|
|
72
|
+
var map = kotlin_kotlin.$_$.l9;
|
|
73
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.k;
|
|
74
|
+
var toSet = kotlin_kotlin.$_$.ca;
|
|
75
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.f7;
|
|
76
|
+
var THROW_IAE = kotlin_kotlin.$_$.fc;
|
|
77
|
+
var enumEntries = kotlin_kotlin.$_$.t5;
|
|
78
|
+
var Enum = kotlin_kotlin.$_$.ub;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.u7;
|
|
80
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
81
|
+
var startsWith = kotlin_kotlin.$_$.cb;
|
|
82
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.g7;
|
|
82
83
|
var AbstractOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.d2;
|
|
83
84
|
var AbstractInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
84
|
-
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.
|
|
85
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
85
86
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.c;
|
|
86
87
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.g;
|
|
87
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
88
|
-
var Char = kotlin_kotlin.$_$.
|
|
88
|
+
var numberToChar = kotlin_kotlin.$_$.o7;
|
|
89
|
+
var Char = kotlin_kotlin.$_$.rb;
|
|
89
90
|
var toString_0 = kotlin_kotlin.$_$.h;
|
|
90
91
|
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.h1;
|
|
91
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
92
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
92
|
+
var objectCreate = kotlin_kotlin.$_$.q7;
|
|
93
|
+
var captureStack = kotlin_kotlin.$_$.o6;
|
|
93
94
|
var TuPrologException_init_$Init$_0 = kotlin_it_unibo_tuprolog_core.$_$.i1;
|
|
94
95
|
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.l1;
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
96
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
97
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
98
|
+
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
98
99
|
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.p2;
|
|
99
100
|
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.v2;
|
|
100
101
|
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.m2;
|
|
101
|
-
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
102
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
102
103
|
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
103
104
|
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
104
105
|
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.u2;
|
|
105
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
106
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
106
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
107
|
+
var IllegalStateException = kotlin_kotlin.$_$.xb;
|
|
107
108
|
var Atom = kotlin_it_unibo_tuprolog_core.$_$.o1;
|
|
108
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
109
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
110
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
111
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
112
|
-
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
113
|
-
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
114
|
-
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
115
|
-
var
|
|
116
|
-
var filter = kotlin_kotlin.$_$.
|
|
117
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
118
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
119
|
-
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
120
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
121
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
122
|
-
var addAll = kotlin_kotlin.$_$.
|
|
123
|
-
var toList = kotlin_kotlin.$_$.
|
|
109
|
+
var KProperty1 = kotlin_kotlin.$_$.m8;
|
|
110
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.b7;
|
|
111
|
+
var sequenceOf = kotlin_kotlin.$_$.r9;
|
|
112
|
+
var flatMap = kotlin_kotlin.$_$.c9;
|
|
113
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
114
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
115
|
+
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
116
|
+
var Companion_instance_4 = kotlin_it_unibo_tuprolog_core.$_$.p;
|
|
117
|
+
var filter = kotlin_kotlin.$_$.z8;
|
|
118
|
+
var Sequence = kotlin_kotlin.$_$.o8;
|
|
119
|
+
var firstOrNull = kotlin_kotlin.$_$.a9;
|
|
120
|
+
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
121
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.t;
|
|
122
|
+
var asSequence_0 = kotlin_kotlin.$_$.m2;
|
|
123
|
+
var addAll = kotlin_kotlin.$_$.f2;
|
|
124
|
+
var toList = kotlin_kotlin.$_$.d5;
|
|
124
125
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
125
|
-
var
|
|
126
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
126
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.p;
|
|
127
|
+
var filterNot = kotlin_kotlin.$_$.y8;
|
|
127
128
|
var Truth = kotlin_it_unibo_tuprolog_core.$_$.b3;
|
|
128
|
-
var lazy = kotlin_kotlin.$_$.
|
|
129
|
-
var
|
|
130
|
-
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
131
|
-
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
132
|
-
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
129
|
+
var lazy = kotlin_kotlin.$_$.mc;
|
|
130
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
131
|
+
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
132
|
+
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g;
|
|
133
|
+
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b;
|
|
133
134
|
var List = kotlin_it_unibo_tuprolog_core.$_$.w1;
|
|
134
135
|
var Var = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
135
|
-
var FuncFormat_LITERAL_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
136
|
-
var FuncFormat_QUOTED_IF_NECESSARY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
137
|
-
var OpFormat_EXPRESSIONS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
138
|
-
var OpFormat_IGNORE_OPERATORS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
139
|
-
var
|
|
140
|
-
var VarFormat_UNDERSCORE_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
141
|
-
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
142
|
-
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
143
|
-
var
|
|
144
|
-
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
145
|
-
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
146
|
-
var
|
|
147
|
-
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
148
|
-
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
136
|
+
var FuncFormat_LITERAL_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b;
|
|
137
|
+
var FuncFormat_QUOTED_IF_NECESSARY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.c;
|
|
138
|
+
var OpFormat_EXPRESSIONS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.d;
|
|
139
|
+
var OpFormat_IGNORE_OPERATORS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.e;
|
|
140
|
+
var Companion_instance_7 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
141
|
+
var VarFormat_UNDERSCORE_getInstance = kotlin_it_unibo_tuprolog_core.$_$.f;
|
|
142
|
+
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c;
|
|
143
|
+
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a;
|
|
144
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
145
|
+
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
146
|
+
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
147
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
148
|
+
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
149
|
+
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.o;
|
|
149
150
|
var Integer = kotlin_it_unibo_tuprolog_core.$_$.v1;
|
|
150
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
151
|
-
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
151
|
+
var KtMap = kotlin_kotlin.$_$.c2;
|
|
152
|
+
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
152
153
|
var format = kotlin_it_unibo_tuprolog_core.$_$.e3;
|
|
153
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
154
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
155
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
156
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
157
|
-
var last = kotlin_kotlin.$_$.
|
|
158
|
-
var
|
|
154
|
+
var charCodeAt = kotlin_kotlin.$_$.r6;
|
|
155
|
+
var emptyList = kotlin_kotlin.$_$.e3;
|
|
156
|
+
var get_lastIndex = kotlin_kotlin.$_$.r3;
|
|
157
|
+
var toList_0 = kotlin_kotlin.$_$.aa;
|
|
158
|
+
var last = kotlin_kotlin.$_$.t3;
|
|
159
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
159
160
|
var ParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.a;
|
|
160
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
161
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
161
|
+
var emptySet = kotlin_kotlin.$_$.g3;
|
|
162
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.nc;
|
|
162
163
|
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
163
164
|
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.r2;
|
|
164
|
-
var
|
|
165
|
-
var
|
|
166
|
-
var
|
|
167
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
168
|
-
var titlecase = kotlin_kotlin.$_$.
|
|
169
|
-
var isLowerCase = kotlin_kotlin.$_$.
|
|
170
|
-
var substring = kotlin_kotlin.$_$.
|
|
165
|
+
var Companion_instance_11 = kotlin_it_unibo_tuprolog_parser_theory.$_$.a;
|
|
166
|
+
var Companion_instance_12 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
167
|
+
var Companion_instance_13 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
168
|
+
var charSequenceLength = kotlin_kotlin.$_$.t6;
|
|
169
|
+
var titlecase = kotlin_kotlin.$_$.hb;
|
|
170
|
+
var isLowerCase = kotlin_kotlin.$_$.pa;
|
|
171
|
+
var substring = kotlin_kotlin.$_$.fb;
|
|
171
172
|
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
172
|
-
var distinct = kotlin_kotlin.$_$.
|
|
173
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
174
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
175
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
173
|
+
var distinct = kotlin_kotlin.$_$.u8;
|
|
174
|
+
var removeSuffix = kotlin_kotlin.$_$.va;
|
|
175
|
+
var toIntOrNull = kotlin_kotlin.$_$.kb;
|
|
176
|
+
var removePrefix = kotlin_kotlin.$_$.ta;
|
|
176
177
|
var buffer = kotlin_com_squareup_okio_okio.$_$.g;
|
|
177
|
-
var addSuppressed = kotlin_kotlin.$_$.
|
|
178
|
+
var addSuppressed = kotlin_kotlin.$_$.ic;
|
|
178
179
|
var IOException = kotlin_com_squareup_okio_okio.$_$.f;
|
|
179
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
180
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
181
|
-
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
182
|
-
var Platform_BROWSER_getInstance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
180
|
+
var getStringHashCode = kotlin_kotlin.$_$.c7;
|
|
181
|
+
var KProperty0 = kotlin_kotlin.$_$.l8;
|
|
182
|
+
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
183
|
+
var Platform_BROWSER_getInstance = kotlin_it_unibo_tuprolog_core.$_$.g;
|
|
183
184
|
var Companion_getInstance_7 = kotlin_com_squareup_okio_okio.$_$.a;
|
|
184
185
|
var buffer_0 = kotlin_com_squareup_okio_okio.$_$.h;
|
|
185
186
|
var NodeJsFileSystem_getInstance = kotlin_com_squareup_okio_okio_nodefilesystem.$_$.a;
|
|
@@ -193,16 +194,16 @@
|
|
|
193
194
|
initMetadataForObject(LocalFileSystem, 'LocalFileSystem');
|
|
194
195
|
initMetadataForCompanion(Companion_0);
|
|
195
196
|
function resolve(child) {
|
|
196
|
-
return
|
|
197
|
+
return Companion_instance_15.remote_trw82g_k$(this.get_protocol_mv93kx_k$(), this.get_host_wonf8x_k$(), this.get_port_wosj4a_k$(), this.get_path_wos8ry_k$() + '/' + child, this.get_query_ixn1y7_k$());
|
|
197
198
|
}
|
|
198
199
|
function div(child) {
|
|
199
200
|
return this.resolve(child);
|
|
200
201
|
}
|
|
201
202
|
function get_isFile() {
|
|
202
|
-
return this.
|
|
203
|
+
return this.get_protocol_mv93kx_k$() === 'file';
|
|
203
204
|
}
|
|
204
205
|
function get_isHttp() {
|
|
205
|
-
return startsWith(this.
|
|
206
|
+
return startsWith(this.get_protocol_mv93kx_k$(), 'http');
|
|
206
207
|
}
|
|
207
208
|
initMetadataForInterface(Url, 'Url');
|
|
208
209
|
initMetadataForClass(SinkOutputChannel, 'SinkOutputChannel', VOID, AbstractOutputChannel);
|
|
@@ -268,16 +269,16 @@
|
|
|
268
269
|
_init_properties_ChannelUtils_kt__fqios2();
|
|
269
270
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
270
271
|
var this_0 = get_cache();
|
|
271
|
-
var value = this_0.
|
|
272
|
+
var value = this_0.get_wei43m_k$(_this__u8e3s4);
|
|
272
273
|
var tmp;
|
|
273
274
|
if (value == null) {
|
|
274
275
|
var tmp_0 = asTermChannel$lambda(_this__u8e3s4);
|
|
275
276
|
var tmp_1 = new sam$it_unibo_tuprolog_parser_TextChunkSource$0(tmp_0);
|
|
276
|
-
var termIterator = buildParserFor(tmp_1, VOID, VOID, asTermChannel$lambda_0(operators)).
|
|
277
|
+
var termIterator = buildParserFor(tmp_1, VOID, VOID, asTermChannel$lambda_0(operators)).iterator_jk1svi_k$();
|
|
277
278
|
var tmp_2 = Companion_instance;
|
|
278
279
|
var tmp_3 = asTermChannel$lambda_1(termIterator);
|
|
279
280
|
var answer = tmp_2.ofWithAvailabilityChecker(tmp_3, Iterator$hasNext$ref(termIterator));
|
|
280
|
-
this_0.
|
|
281
|
+
this_0.put_4fpzoq_k$(_this__u8e3s4, answer);
|
|
281
282
|
tmp = answer;
|
|
282
283
|
} else {
|
|
283
284
|
tmp = value;
|
|
@@ -285,20 +286,20 @@
|
|
|
285
286
|
return tmp;
|
|
286
287
|
}
|
|
287
288
|
function sam$it_unibo_tuprolog_parser_TextChunkSource$0(function_0) {
|
|
288
|
-
this.
|
|
289
|
+
this.function_1 = function_0;
|
|
289
290
|
}
|
|
290
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
291
|
-
return this.
|
|
291
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).readChunk_iuijk9_k$ = function () {
|
|
292
|
+
return this.function_1();
|
|
292
293
|
};
|
|
293
|
-
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).
|
|
294
|
-
return this.
|
|
294
|
+
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).getFunctionDelegate_jtodtf_k$ = function () {
|
|
295
|
+
return this.function_1;
|
|
295
296
|
};
|
|
296
297
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).equals = function (other) {
|
|
297
298
|
var tmp;
|
|
298
299
|
if (!(other == null) ? isInterface(other, TextChunkSource) : false) {
|
|
299
300
|
var tmp_0;
|
|
300
301
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
301
|
-
tmp_0 = equals(this.
|
|
302
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
302
303
|
} else {
|
|
303
304
|
tmp_0 = false;
|
|
304
305
|
}
|
|
@@ -309,7 +310,7 @@
|
|
|
309
310
|
return tmp;
|
|
310
311
|
};
|
|
311
312
|
protoOf(sam$it_unibo_tuprolog_parser_TextChunkSource$0).hashCode = function () {
|
|
312
|
-
return hashCode(this.
|
|
313
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
313
314
|
};
|
|
314
315
|
function asTermChannel$lambda($this_asTermChannel) {
|
|
315
316
|
return function () {
|
|
@@ -317,110 +318,110 @@
|
|
|
317
318
|
};
|
|
318
319
|
}
|
|
319
320
|
function asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation) {
|
|
320
|
-
this
|
|
321
|
-
this
|
|
322
|
-
this
|
|
321
|
+
this.$session_1 = $session;
|
|
322
|
+
this.$visitor_1 = $visitor;
|
|
323
|
+
this.$lexedSource_1 = $lexedSource;
|
|
323
324
|
CoroutineImpl.call(this, resultContinuation);
|
|
324
325
|
}
|
|
325
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
326
|
-
var tmp = this.
|
|
327
|
-
tmp.
|
|
328
|
-
tmp.
|
|
329
|
-
return tmp.
|
|
326
|
+
protoOf(asTermChannel$lambda$slambda).invoke_bdtqt8_k$ = function ($this$sequence, $completion) {
|
|
327
|
+
var tmp = this.create_scrz7k_k$($this$sequence, $completion);
|
|
328
|
+
tmp.result_1 = Unit_instance;
|
|
329
|
+
tmp.exception_1 = null;
|
|
330
|
+
return tmp.doResume_5yljmg_k$();
|
|
330
331
|
};
|
|
331
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
332
|
-
return this.
|
|
332
|
+
protoOf(asTermChannel$lambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
333
|
+
return this.invoke_bdtqt8_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
333
334
|
};
|
|
334
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
335
|
-
var suspendResult = this.
|
|
335
|
+
protoOf(asTermChannel$lambda$slambda).doResume_5yljmg_k$ = function () {
|
|
336
|
+
var suspendResult = this.result_1;
|
|
336
337
|
$sm: do
|
|
337
338
|
try {
|
|
338
|
-
var tmp = this.
|
|
339
|
+
var tmp = this.state_1;
|
|
339
340
|
switch (tmp) {
|
|
340
341
|
case 0:
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
342
|
+
this.exceptionState_1 = 6;
|
|
343
|
+
this.exceptionState_1 = 5;
|
|
344
|
+
this.term0__1 = this.$session_1.parseNextTerm_als6oi_k$();
|
|
345
|
+
this.state_1 = 1;
|
|
345
346
|
continue $sm;
|
|
346
347
|
case 1:
|
|
347
|
-
if (!!(this.
|
|
348
|
-
this.
|
|
348
|
+
if (!!(this.term0__1 == null)) {
|
|
349
|
+
this.state_1 = 3;
|
|
349
350
|
continue $sm;
|
|
350
351
|
}
|
|
351
352
|
|
|
352
|
-
this.
|
|
353
|
-
suspendResult = this.
|
|
353
|
+
this.state_1 = 2;
|
|
354
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.term0__1.root_1.accept_crnher_k$(this.$visitor_1), this);
|
|
354
355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
355
356
|
return suspendResult;
|
|
356
357
|
}
|
|
357
358
|
|
|
358
359
|
continue $sm;
|
|
359
360
|
case 2:
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
361
|
+
this.term0__1 = this.$session_1.parseNextTerm_als6oi_k$();
|
|
362
|
+
this.state_1 = 1;
|
|
362
363
|
continue $sm;
|
|
363
364
|
case 3:
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
365
|
+
this.exceptionState_1 = 6;
|
|
366
|
+
this.state_1 = 4;
|
|
366
367
|
continue $sm;
|
|
367
368
|
case 4:
|
|
368
|
-
this.
|
|
369
|
+
this.exceptionState_1 = 6;
|
|
369
370
|
return Unit_instance;
|
|
370
371
|
case 5:
|
|
371
|
-
this.
|
|
372
|
-
var tmp_0 = this.
|
|
372
|
+
this.exceptionState_1 = 6;
|
|
373
|
+
var tmp_0 = this.exception_1;
|
|
373
374
|
if (tmp_0 instanceof PrologSyntaxException) {
|
|
374
|
-
var e = this.
|
|
375
|
-
var it = this.
|
|
376
|
-
var tmp0_elvis_lhs = it.
|
|
377
|
-
var input = tmp0_elvis_lhs == null ? it.
|
|
375
|
+
var e = this.exception_1;
|
|
376
|
+
var it = this.$lexedSource_1.get_source_jl0x7o_k$();
|
|
377
|
+
var tmp0_elvis_lhs = it.get_id_kntnx8_k$();
|
|
378
|
+
var input = tmp0_elvis_lhs == null ? it.text$default_f8ergi_k$() : tmp0_elvis_lhs;
|
|
378
379
|
throw toParseException(e, input);
|
|
379
380
|
} else {
|
|
380
|
-
throw this.
|
|
381
|
+
throw this.exception_1;
|
|
381
382
|
}
|
|
382
383
|
|
|
383
384
|
case 6:
|
|
384
|
-
throw this.
|
|
385
|
+
throw this.exception_1;
|
|
385
386
|
}
|
|
386
387
|
} catch ($p) {
|
|
387
388
|
var e_0 = $p;
|
|
388
|
-
if (this.
|
|
389
|
+
if (this.exceptionState_1 === 6) {
|
|
389
390
|
throw e_0;
|
|
390
391
|
} else {
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
392
|
+
this.state_1 = this.exceptionState_1;
|
|
393
|
+
this.exception_1 = e_0;
|
|
393
394
|
}
|
|
394
395
|
}
|
|
395
396
|
while (true);
|
|
396
397
|
};
|
|
397
|
-
protoOf(asTermChannel$lambda$slambda).
|
|
398
|
-
var i = new asTermChannel$lambda$slambda(this
|
|
399
|
-
i
|
|
398
|
+
protoOf(asTermChannel$lambda$slambda).create_scrz7k_k$ = function ($this$sequence, completion) {
|
|
399
|
+
var i = new asTermChannel$lambda$slambda(this.$session_1, this.$visitor_1, this.$lexedSource_1, completion);
|
|
400
|
+
i.$this$sequence_1 = $this$sequence;
|
|
400
401
|
return i;
|
|
401
402
|
};
|
|
402
403
|
function asTermChannel$lambda$slambda_0($session, $visitor, $lexedSource, resultContinuation) {
|
|
403
404
|
var i = new asTermChannel$lambda$slambda($session, $visitor, $lexedSource, resultContinuation);
|
|
404
405
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
405
|
-
return i.
|
|
406
|
+
return i.invoke_bdtqt8_k$($this$sequence, $completion);
|
|
406
407
|
}, 1);
|
|
407
408
|
}
|
|
408
409
|
function asTermChannel$lambda_0($operators) {
|
|
409
410
|
return function (parser, lexedSource) {
|
|
410
|
-
var session = parser.
|
|
411
|
+
var session = parser.openSession_4uoqee_k$(lexedSource, toOperatorTable($operators));
|
|
411
412
|
var visitor = new PrologTermParserVisitor(Companion_instance_0.empty());
|
|
412
413
|
return sequence(asTermChannel$lambda$slambda_0(session, visitor, lexedSource, null));
|
|
413
414
|
};
|
|
414
415
|
}
|
|
415
416
|
function asTermChannel$lambda_1($termIterator) {
|
|
416
417
|
return function () {
|
|
417
|
-
return $termIterator.
|
|
418
|
+
return $termIterator.hasNext_bitz1p_k$() ? $termIterator.next_20eer_k$() : null;
|
|
418
419
|
};
|
|
419
420
|
}
|
|
420
421
|
function Iterator$hasNext$ref(p0) {
|
|
421
422
|
return constructCallableReference(function () {
|
|
422
|
-
return p0.
|
|
423
|
-
}, 0, 0,
|
|
423
|
+
return p0.hasNext_bitz1p_k$();
|
|
424
|
+
}, 0, 0, 119, 'hasNext', [p0]);
|
|
424
425
|
}
|
|
425
426
|
var properties_initialized_ChannelUtils_kt_an3chc;
|
|
426
427
|
function _init_properties_ChannelUtils_kt__fqios2() {
|
|
@@ -434,21 +435,21 @@
|
|
|
434
435
|
IOLib_instance = this;
|
|
435
436
|
AbstractLibrary.call(this);
|
|
436
437
|
}
|
|
437
|
-
protoOf(IOLib).
|
|
438
|
+
protoOf(IOLib).get_alias_iooo4n_k$ = function () {
|
|
438
439
|
return 'prolog.io';
|
|
439
440
|
};
|
|
440
|
-
protoOf(IOLib).
|
|
441
|
+
protoOf(IOLib).get_primitives_xl08ol_k$ = function () {
|
|
441
442
|
var tmp = Companion_getInstance();
|
|
442
443
|
// Inline function 'kotlin.collections.map' call
|
|
443
444
|
var this_0 = listOf([AtEndOfStream0_getInstance(), AtEndOfStream1_getInstance(), CharConversion_getInstance(), Close1_getInstance(), Close2_getInstance(), Consult_getInstance(), CurrentCharConversion_getInstance(), CurrentInput_getInstance(), CurrentOutput_getInstance(), FlushOutput_getInstance(), GetByte1_getInstance(), GetByte2_getInstance(), GetChar1_getInstance(), GetChar2_getInstance(), GetCode1_getInstance(), GetCode2_getInstance(), Nl1_getInstance(), Open3_getInstance(), Open4_getInstance(), PeekByte1_getInstance(), PeekByte2_getInstance(), PeekChar1_getInstance(), PeekChar2_getInstance(), PeekCode1_getInstance(), PeekCode2_getInstance(), PutByte1_getInstance(), PutByte2_getInstance(), PutChar1_getInstance(), PutChar2_getInstance(), PutCode1_getInstance(), PutCode2_getInstance(), Read1_getInstance(), Read2_getInstance(), ReadTerm2_getInstance(), ReadTerm3_getInstance(), SetInput_getInstance(), SetOutput_getInstance(), SetTheory_getInstance(), StreamProperty_getInstance(), Write2_getInstance(), WriteCanonical1_getInstance(), WriteCanonical2_getInstance(), WriteEq1_getInstance(), WriteEq2_getInstance(), WriteTerm2_getInstance(), WriteTerm3_getInstance()]);
|
|
444
445
|
// Inline function 'kotlin.collections.mapTo' call
|
|
445
446
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
446
|
-
var _iterator__ex2g4s = this_0.
|
|
447
|
-
while (_iterator__ex2g4s.
|
|
448
|
-
var item = _iterator__ex2g4s.
|
|
447
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
448
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
449
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
449
450
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
450
|
-
var tmp$ret$2 = to(item.signature, item.
|
|
451
|
-
destination.
|
|
451
|
+
var tmp$ret$2 = to(item.signature, item.get_wrappedImplementation_qo1fgy_k$());
|
|
452
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
452
453
|
}
|
|
453
454
|
return tmp.iterableToMapEnsuringNoDuplicates(destination);
|
|
454
455
|
};
|
|
@@ -461,34 +462,47 @@
|
|
|
461
462
|
function IOMode$Companion$atomValues$lambda(it) {
|
|
462
463
|
// Inline function 'kotlin.text.lowercase' call
|
|
463
464
|
// Inline function 'kotlin.js.asDynamic' call
|
|
464
|
-
return it.
|
|
465
|
+
return it.name_1.toLowerCase();
|
|
465
466
|
}
|
|
466
467
|
function Atom$Companion$of$ref(p0) {
|
|
467
468
|
return constructCallableReference(function (p0_0) {
|
|
468
469
|
return p0.of(p0_0);
|
|
469
|
-
}, 1, 0,
|
|
470
|
+
}, 1, 0, 120, 'of', [p0]);
|
|
471
|
+
}
|
|
472
|
+
var static_init_called;
|
|
473
|
+
function static_init() {
|
|
474
|
+
if (static_init_called)
|
|
475
|
+
return Unit_instance;
|
|
476
|
+
static_init_called = true;
|
|
477
|
+
IOMode_READ_instance = new IOMode('READ', 0);
|
|
478
|
+
IOMode_WRITE_instance = new IOMode('WRITE', 1);
|
|
479
|
+
IOMode_APPEND_instance = new IOMode('APPEND', 2);
|
|
480
|
+
if (Companion_instance_14 == null) {
|
|
481
|
+
Companion_instance_1;
|
|
482
|
+
new Companion();
|
|
483
|
+
}
|
|
470
484
|
}
|
|
471
485
|
var IOMode_READ_instance;
|
|
472
486
|
var IOMode_WRITE_instance;
|
|
473
487
|
var IOMode_APPEND_instance;
|
|
474
488
|
function Companion() {
|
|
475
|
-
|
|
489
|
+
Companion_instance_14 = this;
|
|
476
490
|
var tmp = this;
|
|
477
491
|
var tmp_0 = asSequence(get_entries());
|
|
478
492
|
var tmp_1 = map(tmp_0, IOMode$Companion$atomValues$lambda);
|
|
479
|
-
tmp.
|
|
493
|
+
tmp.atomValues_1 = toSet(map(tmp_1, Atom$Companion$of$ref(Companion_getInstance_0())));
|
|
480
494
|
}
|
|
481
|
-
var
|
|
495
|
+
var Companion_instance_14;
|
|
482
496
|
function Companion_getInstance_8() {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
new Companion();
|
|
486
|
-
return Companion_instance_13;
|
|
497
|
+
static_init();
|
|
498
|
+
return Companion_instance_14;
|
|
487
499
|
}
|
|
488
500
|
function values() {
|
|
501
|
+
static_init();
|
|
489
502
|
return [IOMode_READ_getInstance(), IOMode_WRITE_getInstance(), IOMode_APPEND_getInstance()];
|
|
490
503
|
}
|
|
491
504
|
function valueOf(value) {
|
|
505
|
+
static_init();
|
|
492
506
|
switch (value) {
|
|
493
507
|
case 'READ':
|
|
494
508
|
return IOMode_READ_getInstance();
|
|
@@ -497,62 +511,52 @@
|
|
|
497
511
|
case 'APPEND':
|
|
498
512
|
return IOMode_APPEND_getInstance();
|
|
499
513
|
default:
|
|
500
|
-
IOMode_initEntries();
|
|
501
514
|
THROW_IAE('No enum constant it.unibo.tuprolog.solve.libs.io.IOMode.' + value);
|
|
502
515
|
break;
|
|
503
516
|
}
|
|
504
517
|
}
|
|
505
518
|
function get_entries() {
|
|
519
|
+
static_init();
|
|
506
520
|
if ($ENTRIES == null)
|
|
507
521
|
$ENTRIES = enumEntries(values());
|
|
508
522
|
return $ENTRIES;
|
|
509
523
|
}
|
|
510
|
-
var IOMode_entriesInitialized;
|
|
511
|
-
function IOMode_initEntries() {
|
|
512
|
-
if (IOMode_entriesInitialized)
|
|
513
|
-
return Unit_instance;
|
|
514
|
-
IOMode_entriesInitialized = true;
|
|
515
|
-
IOMode_READ_instance = new IOMode('READ', 0);
|
|
516
|
-
IOMode_WRITE_instance = new IOMode('WRITE', 1);
|
|
517
|
-
IOMode_APPEND_instance = new IOMode('APPEND', 2);
|
|
518
|
-
Companion_getInstance_8();
|
|
519
|
-
}
|
|
520
524
|
var $ENTRIES;
|
|
521
525
|
function IOMode(name, ordinal) {
|
|
522
526
|
Enum.call(this, name, ordinal);
|
|
523
527
|
}
|
|
524
528
|
function IOMode_READ_getInstance() {
|
|
525
|
-
|
|
529
|
+
static_init();
|
|
526
530
|
return IOMode_READ_instance;
|
|
527
531
|
}
|
|
528
532
|
function IOMode_WRITE_getInstance() {
|
|
529
|
-
|
|
533
|
+
static_init();
|
|
530
534
|
return IOMode_WRITE_instance;
|
|
531
535
|
}
|
|
532
536
|
function IOMode_APPEND_getInstance() {
|
|
533
|
-
|
|
537
|
+
static_init();
|
|
534
538
|
return IOMode_APPEND_instance;
|
|
535
539
|
}
|
|
536
540
|
function LocalFileSystem() {
|
|
537
541
|
LocalFileSystem_instance = this;
|
|
538
|
-
this.
|
|
542
|
+
this.fileSystem_1 = get_platformFileSystem();
|
|
539
543
|
}
|
|
540
|
-
protoOf(LocalFileSystem).
|
|
541
|
-
return this.
|
|
544
|
+
protoOf(LocalFileSystem).source_an8jm4_k$ = function (path) {
|
|
545
|
+
return this.fileSystem_1.source_an8jm4_k$(path);
|
|
542
546
|
};
|
|
543
|
-
protoOf(LocalFileSystem).
|
|
544
|
-
return this.
|
|
547
|
+
protoOf(LocalFileSystem).sink_eq8qvr_k$ = function (path, mustCreate) {
|
|
548
|
+
return this.fileSystem_1.sink_eq8qvr_k$(path, mustCreate);
|
|
545
549
|
};
|
|
546
|
-
protoOf(LocalFileSystem).
|
|
550
|
+
protoOf(LocalFileSystem).sink$default_9jt55n_k$ = function (path, mustCreate, $super) {
|
|
547
551
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
548
|
-
return $super === VOID ? this.
|
|
552
|
+
return $super === VOID ? this.sink_eq8qvr_k$(path, mustCreate) : $super.sink_eq8qvr_k$.call(this, path, mustCreate);
|
|
549
553
|
};
|
|
550
|
-
protoOf(LocalFileSystem).
|
|
551
|
-
return this.
|
|
554
|
+
protoOf(LocalFileSystem).appendingSink_15lg9d_k$ = function (path, mustExist) {
|
|
555
|
+
return this.fileSystem_1.appendingSink_15lg9d_k$(path, mustExist);
|
|
552
556
|
};
|
|
553
|
-
protoOf(LocalFileSystem).
|
|
557
|
+
protoOf(LocalFileSystem).appendingSink$default_r7oz7x_k$ = function (path, mustExist, $super) {
|
|
554
558
|
mustExist = mustExist === VOID ? false : mustExist;
|
|
555
|
-
return $super === VOID ? this.
|
|
559
|
+
return $super === VOID ? this.appendingSink_15lg9d_k$(path, mustExist) : $super.appendingSink_15lg9d_k$.call(this, path, mustExist);
|
|
556
560
|
};
|
|
557
561
|
var LocalFileSystem_instance;
|
|
558
562
|
function LocalFileSystem_getInstance() {
|
|
@@ -581,7 +585,7 @@
|
|
|
581
585
|
}
|
|
582
586
|
function Companion_0() {
|
|
583
587
|
}
|
|
584
|
-
protoOf(Companion_0).
|
|
588
|
+
protoOf(Companion_0).ensureValidPort_jpr8aq_k$ = function (_this__u8e3s4) {
|
|
585
589
|
var tmp;
|
|
586
590
|
if (_this__u8e3s4 < 0) {
|
|
587
591
|
throw IllegalArgumentException_init_$Create$('Invalid port: ' + _this__u8e3s4);
|
|
@@ -593,7 +597,7 @@
|
|
|
593
597
|
protoOf(Companion_0).file = function (path) {
|
|
594
598
|
return fileUrl(path);
|
|
595
599
|
};
|
|
596
|
-
protoOf(Companion_0).
|
|
600
|
+
protoOf(Companion_0).remote_trw82g_k$ = function (protocol, host, port, path, query) {
|
|
597
601
|
return remoteUrl(protocol, host, port, path, query);
|
|
598
602
|
};
|
|
599
603
|
protoOf(Companion_0).remote = function (protocol, host, port, path, query, $super) {
|
|
@@ -601,27 +605,27 @@
|
|
|
601
605
|
port = port === VOID ? null : port;
|
|
602
606
|
path = path === VOID ? '' : path;
|
|
603
607
|
query = query === VOID ? null : query;
|
|
604
|
-
return $super === VOID ? this.
|
|
608
|
+
return $super === VOID ? this.remote_trw82g_k$(protocol, host, port, path, query) : $super.remote_trw82g_k$.call(this, protocol, host, port, path, query);
|
|
605
609
|
};
|
|
606
|
-
protoOf(Companion_0).
|
|
607
|
-
return this.
|
|
610
|
+
protoOf(Companion_0).http_jibilo_k$ = function (host, port, path, query) {
|
|
611
|
+
return this.remote_trw82g_k$('http', host, port, path, query);
|
|
608
612
|
};
|
|
609
613
|
protoOf(Companion_0).http = function (host, port, path, query, $super) {
|
|
610
614
|
host = host === VOID ? '' : host;
|
|
611
615
|
port = port === VOID ? null : port;
|
|
612
616
|
path = path === VOID ? '' : path;
|
|
613
617
|
query = query === VOID ? null : query;
|
|
614
|
-
return $super === VOID ? this.
|
|
618
|
+
return $super === VOID ? this.http_jibilo_k$(host, port, path, query) : $super.http_jibilo_k$.call(this, host, port, path, query);
|
|
615
619
|
};
|
|
616
|
-
protoOf(Companion_0).
|
|
617
|
-
return this.
|
|
620
|
+
protoOf(Companion_0).https_tzmq33_k$ = function (host, port, path, query) {
|
|
621
|
+
return this.remote_trw82g_k$('https', host, port, path, query);
|
|
618
622
|
};
|
|
619
623
|
protoOf(Companion_0).https = function (host, port, path, query, $super) {
|
|
620
624
|
host = host === VOID ? '' : host;
|
|
621
625
|
port = port === VOID ? null : port;
|
|
622
626
|
path = path === VOID ? '' : path;
|
|
623
627
|
query = query === VOID ? null : query;
|
|
624
|
-
return $super === VOID ? this.
|
|
628
|
+
return $super === VOID ? this.https_tzmq33_k$(host, port, path, query) : $super.https_tzmq33_k$.call(this, host, port, path, query);
|
|
625
629
|
};
|
|
626
630
|
protoOf(Companion_0).of = function (string) {
|
|
627
631
|
var tmp;
|
|
@@ -651,65 +655,65 @@
|
|
|
651
655
|
}
|
|
652
656
|
return tmp;
|
|
653
657
|
};
|
|
654
|
-
protoOf(Companion_0).
|
|
655
|
-
var tmp = port == null ? null : this.
|
|
658
|
+
protoOf(Companion_0).toString_t652pn_k$ = function (protocol, host, port, path, query) {
|
|
659
|
+
var tmp = port == null ? null : this.ensureValidPort_jpr8aq_k$(port);
|
|
656
660
|
var tmp_0 = str(this, tmp, Url$Companion$toString$lambda);
|
|
657
661
|
return protocol + '://' + host + tmp_0 + path + str(this, query, Url$Companion$toString$lambda_0);
|
|
658
662
|
};
|
|
659
|
-
var
|
|
663
|
+
var Companion_instance_15;
|
|
660
664
|
function Companion_getInstance_9() {
|
|
661
|
-
return
|
|
665
|
+
return Companion_instance_15;
|
|
662
666
|
}
|
|
663
667
|
function Url() {
|
|
664
668
|
}
|
|
665
669
|
function SinkOutputChannel(sink) {
|
|
666
670
|
AbstractOutputChannel.call(this);
|
|
667
|
-
this.
|
|
671
|
+
this.sink_1 = sink;
|
|
668
672
|
}
|
|
669
|
-
protoOf(SinkOutputChannel).
|
|
670
|
-
this.
|
|
673
|
+
protoOf(SinkOutputChannel).writeActually_mdrlf4_k$ = function (value) {
|
|
674
|
+
this.sink_1.writeUtf8_9rv3au_k$(value);
|
|
671
675
|
};
|
|
672
|
-
protoOf(SinkOutputChannel).
|
|
673
|
-
return this.
|
|
676
|
+
protoOf(SinkOutputChannel).writeActually_q9kb6k_k$ = function (value) {
|
|
677
|
+
return this.writeActually_mdrlf4_k$(typeof value === 'string' ? value : THROW_CCE());
|
|
674
678
|
};
|
|
675
|
-
protoOf(SinkOutputChannel).
|
|
676
|
-
this.
|
|
679
|
+
protoOf(SinkOutputChannel).flushActually_p3e2un_k$ = function () {
|
|
680
|
+
this.sink_1.flush_shahbo_k$();
|
|
677
681
|
};
|
|
678
|
-
protoOf(SinkOutputChannel).
|
|
679
|
-
this.
|
|
680
|
-
protoOf(AbstractOutputChannel).
|
|
682
|
+
protoOf(SinkOutputChannel).close_yn9xrc_k$ = function () {
|
|
683
|
+
this.sink_1.close_yn9xrc_k$();
|
|
684
|
+
protoOf(AbstractOutputChannel).close_yn9xrc_k$.call(this);
|
|
681
685
|
};
|
|
682
686
|
protoOf(SinkOutputChannel).close = function () {
|
|
683
|
-
return this.
|
|
687
|
+
return this.close_yn9xrc_k$();
|
|
684
688
|
};
|
|
685
689
|
function SourceInputChannel(source) {
|
|
686
690
|
AbstractInputChannel.call(this);
|
|
687
|
-
this.
|
|
688
|
-
this.
|
|
691
|
+
this.source_1 = source;
|
|
692
|
+
this.pendingChars_1 = ArrayDeque_init_$Create$();
|
|
689
693
|
}
|
|
690
|
-
protoOf(SourceInputChannel).
|
|
691
|
-
if (this.
|
|
692
|
-
if (this.
|
|
694
|
+
protoOf(SourceInputChannel).readActually_jvvtqp_k$ = function () {
|
|
695
|
+
if (this.pendingChars_1.isEmpty_y1axqb_k$()) {
|
|
696
|
+
if (this.source_1.exhausted_p1jt55_k$())
|
|
693
697
|
return null;
|
|
694
|
-
var codePoint = this.
|
|
698
|
+
var codePoint = this.source_1.readUtf8CodePoint_brmg90_k$();
|
|
695
699
|
// Inline function 'kotlin.code' call
|
|
696
700
|
var this_0 = _Char___init__impl__6a9atx(65535);
|
|
697
701
|
if (codePoint > Char__toInt_impl_vasixd(this_0)) {
|
|
698
702
|
var offset = codePoint - 65536 | 0;
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
703
|
+
this.pendingChars_1.addLast_gaaijb_k$(new Char(numberToChar((offset >> 10) + 55296 | 0)));
|
|
704
|
+
this.pendingChars_1.addLast_gaaijb_k$(new Char(numberToChar((offset & 1023) + 56320 | 0)));
|
|
701
705
|
} else {
|
|
702
|
-
this.
|
|
706
|
+
this.pendingChars_1.addLast_gaaijb_k$(new Char(numberToChar(codePoint)));
|
|
703
707
|
}
|
|
704
708
|
}
|
|
705
|
-
return toString_0(this.
|
|
709
|
+
return toString_0(this.pendingChars_1.removeFirst_58pi0k_k$().value_1);
|
|
706
710
|
};
|
|
707
|
-
protoOf(SourceInputChannel).
|
|
708
|
-
this.
|
|
709
|
-
protoOf(AbstractInputChannel).
|
|
711
|
+
protoOf(SourceInputChannel).close_yn9xrc_k$ = function () {
|
|
712
|
+
this.source_1.close_yn9xrc_k$();
|
|
713
|
+
protoOf(AbstractInputChannel).close_yn9xrc_k$.call(this);
|
|
710
714
|
};
|
|
711
715
|
protoOf(SourceInputChannel).close = function () {
|
|
712
|
-
return this.
|
|
716
|
+
return this.close_yn9xrc_k$();
|
|
713
717
|
};
|
|
714
718
|
function IOException_init_$Init$(message, $this) {
|
|
715
719
|
TuPrologException_init_$Init$(message, $this);
|
|
@@ -731,8 +735,8 @@
|
|
|
731
735
|
captureStack(tmp, IOException_init_$Create$_0);
|
|
732
736
|
return tmp;
|
|
733
737
|
}
|
|
734
|
-
protoOf(IOException_0).
|
|
735
|
-
return
|
|
738
|
+
protoOf(IOException_0).toLogicError_33irru_k$ = function (context) {
|
|
739
|
+
return Companion_instance_2.forUncaughtKtException(context, this);
|
|
736
740
|
};
|
|
737
741
|
function IOException_0() {
|
|
738
742
|
captureStack(this, IOException_0);
|
|
@@ -757,8 +761,8 @@
|
|
|
757
761
|
captureStack(tmp, InvalidUrlException_init_$Create$_0);
|
|
758
762
|
return tmp;
|
|
759
763
|
}
|
|
760
|
-
protoOf(InvalidUrlException).
|
|
761
|
-
return
|
|
764
|
+
protoOf(InvalidUrlException).toLogicError_aje4nb_k$ = function (context, signature, culprit, index) {
|
|
765
|
+
return Companion_instance_3.forArgument_yebqg_k$(context, signature, Expected_URL_getInstance(), culprit, index);
|
|
762
766
|
};
|
|
763
767
|
function InvalidUrlException() {
|
|
764
768
|
captureStack(this, InvalidUrlException);
|
|
@@ -767,13 +771,13 @@
|
|
|
767
771
|
AtEndOfStream0_instance = this;
|
|
768
772
|
Predicative.call(this, 'at_end_of_stream');
|
|
769
773
|
}
|
|
770
|
-
protoOf(AtEndOfStream0).
|
|
774
|
+
protoOf(AtEndOfStream0).compute_yf4j3j_k$ = function (_this__u8e3s4) {
|
|
771
775
|
// Inline function 'kotlin.let' call
|
|
772
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
773
|
-
return it.
|
|
776
|
+
var it = IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4);
|
|
777
|
+
return it.get_isClosed_rx8ttr_k$() || it.get_isOver_ew3p5z_k$();
|
|
774
778
|
};
|
|
775
|
-
protoOf(AtEndOfStream0).
|
|
776
|
-
return this.
|
|
779
|
+
protoOf(AtEndOfStream0).compute_5y3u8_k$ = function (_this__u8e3s4) {
|
|
780
|
+
return this.compute_yf4j3j_k$(_this__u8e3s4);
|
|
777
781
|
};
|
|
778
782
|
var AtEndOfStream0_instance;
|
|
779
783
|
function AtEndOfStream0_getInstance() {
|
|
@@ -785,13 +789,13 @@
|
|
|
785
789
|
AtEndOfStream1_instance = this;
|
|
786
790
|
Predicative_0.call(this, 'at_end_of_stream');
|
|
787
791
|
}
|
|
788
|
-
protoOf(AtEndOfStream1).
|
|
792
|
+
protoOf(AtEndOfStream1).compute_2uabro_k$ = function (_this__u8e3s4, first) {
|
|
789
793
|
// Inline function 'kotlin.let' call
|
|
790
|
-
var it = IOPrimitiveUtils_getInstance().
|
|
791
|
-
return it.
|
|
794
|
+
var it = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
795
|
+
return it.get_isClosed_rx8ttr_k$() || it.get_isOver_ew3p5z_k$();
|
|
792
796
|
};
|
|
793
|
-
protoOf(AtEndOfStream1).
|
|
794
|
-
return this.
|
|
797
|
+
protoOf(AtEndOfStream1).compute_gi1set_k$ = function (_this__u8e3s4, first) {
|
|
798
|
+
return this.compute_2uabro_k$(_this__u8e3s4, first);
|
|
795
799
|
};
|
|
796
800
|
var AtEndOfStream1_instance;
|
|
797
801
|
function AtEndOfStream1_getInstance() {
|
|
@@ -803,11 +807,11 @@
|
|
|
803
807
|
CharConversion_instance = this;
|
|
804
808
|
NonBacktrackable.call(this, 'char_conversion');
|
|
805
809
|
}
|
|
806
|
-
protoOf(CharConversion).
|
|
807
|
-
return Companion_getInstance_1().
|
|
810
|
+
protoOf(CharConversion).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
811
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
808
812
|
};
|
|
809
|
-
protoOf(CharConversion).
|
|
810
|
-
return this.
|
|
813
|
+
protoOf(CharConversion).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
814
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
811
815
|
};
|
|
812
816
|
var CharConversion_instance;
|
|
813
817
|
function CharConversion_getInstance() {
|
|
@@ -817,15 +821,15 @@
|
|
|
817
821
|
}
|
|
818
822
|
function Close1$computeOne$lambda($this_computeOne, $channel) {
|
|
819
823
|
return function ($this$replySuccess) {
|
|
820
|
-
var tmp = $this_computeOne.context.
|
|
821
|
-
$this$replySuccess.
|
|
824
|
+
var tmp = $this_computeOne.context.get_inputChannels_uyf05t_k$();
|
|
825
|
+
$this$replySuccess.closeInputChannels_jg17ii_k$(tmp.aliasesOf(isInterface($channel, InputChannel) ? $channel : THROW_CCE()));
|
|
822
826
|
return Unit_instance;
|
|
823
827
|
};
|
|
824
828
|
}
|
|
825
829
|
function Close1$computeOne$lambda_0($this_computeOne, $channel) {
|
|
826
830
|
return function ($this$replySuccess) {
|
|
827
|
-
var tmp = $this_computeOne.context.
|
|
828
|
-
$this$replySuccess.
|
|
831
|
+
var tmp = $this_computeOne.context.get_outputChannels_ffvoca_k$();
|
|
832
|
+
$this$replySuccess.closeOutputChannels_26vixp_k$(tmp.aliasesOf(isInterface($channel, OutputChannel) ? $channel : THROW_CCE()));
|
|
829
833
|
return Unit_instance;
|
|
830
834
|
};
|
|
831
835
|
}
|
|
@@ -833,8 +837,8 @@
|
|
|
833
837
|
Close1_instance = this;
|
|
834
838
|
NonBacktrackable_0.call(this, 'close');
|
|
835
839
|
}
|
|
836
|
-
protoOf(Close1).
|
|
837
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
840
|
+
protoOf(Close1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
841
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsChannel_ed79nb_k$(_this__u8e3s4, 0);
|
|
838
842
|
try {
|
|
839
843
|
channel.close();
|
|
840
844
|
var tmp;
|
|
@@ -857,8 +861,8 @@
|
|
|
857
861
|
}
|
|
858
862
|
}
|
|
859
863
|
};
|
|
860
|
-
protoOf(Close1).
|
|
861
|
-
return this.
|
|
864
|
+
protoOf(Close1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
865
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
862
866
|
};
|
|
863
867
|
var Close1_instance;
|
|
864
868
|
function Close1_getInstance() {
|
|
@@ -870,11 +874,11 @@
|
|
|
870
874
|
Close2_instance = this;
|
|
871
875
|
NonBacktrackable.call(this, 'close');
|
|
872
876
|
}
|
|
873
|
-
protoOf(Close2).
|
|
874
|
-
return Companion_getInstance_1().
|
|
877
|
+
protoOf(Close2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
878
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
875
879
|
};
|
|
876
|
-
protoOf(Close2).
|
|
877
|
-
return this.
|
|
880
|
+
protoOf(Close2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
881
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
878
882
|
};
|
|
879
883
|
var Close2_instance;
|
|
880
884
|
function Close2_getInstance() {
|
|
@@ -886,30 +890,30 @@
|
|
|
886
890
|
Consult_instance = this;
|
|
887
891
|
NonBacktrackable_0.call(this, 'consult');
|
|
888
892
|
}
|
|
889
|
-
protoOf(Consult).
|
|
890
|
-
Companion_getInstance_1().
|
|
891
|
-
Companion_getInstance_1().
|
|
892
|
-
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).
|
|
893
|
+
protoOf(Consult).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
894
|
+
Companion_getInstance_1().ensuringArgumentIsInstantiated_dpjvac_k$(_this__u8e3s4, 0);
|
|
895
|
+
Companion_getInstance_1().ensuringArgumentIsAtom_5kuj97_k$(_this__u8e3s4, 0);
|
|
896
|
+
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).get_value_j01efc_k$();
|
|
893
897
|
try {
|
|
894
|
-
var url =
|
|
898
|
+
var url = Companion_instance_15.of(urlString);
|
|
895
899
|
var text = url.readAsText();
|
|
896
|
-
return SetTheory_getInstance().
|
|
900
|
+
return SetTheory_getInstance().setTheory$default_wxmulc_k$(_this__u8e3s4, text);
|
|
897
901
|
} catch ($p) {
|
|
898
902
|
if ($p instanceof InvalidUrlException) {
|
|
899
903
|
var e = $p;
|
|
900
|
-
throw e.
|
|
904
|
+
throw e.toLogicError_aje4nb_k$(_this__u8e3s4.context, _this__u8e3s4.signature, first, 0);
|
|
901
905
|
} else {
|
|
902
906
|
if ($p instanceof IOException_0) {
|
|
903
907
|
var e_0 = $p;
|
|
904
|
-
throw e_0.
|
|
908
|
+
throw e_0.toLogicError_33irru_k$(_this__u8e3s4.context);
|
|
905
909
|
} else {
|
|
906
910
|
throw $p;
|
|
907
911
|
}
|
|
908
912
|
}
|
|
909
913
|
}
|
|
910
914
|
};
|
|
911
|
-
protoOf(Consult).
|
|
912
|
-
return this.
|
|
915
|
+
protoOf(Consult).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
916
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
913
917
|
};
|
|
914
918
|
var Consult_instance;
|
|
915
919
|
function Consult_getInstance() {
|
|
@@ -921,11 +925,11 @@
|
|
|
921
925
|
CurrentCharConversion_instance = this;
|
|
922
926
|
NonBacktrackable.call(this, 'current_char_conversion');
|
|
923
927
|
}
|
|
924
|
-
protoOf(CurrentCharConversion).
|
|
925
|
-
return Companion_getInstance_1().
|
|
928
|
+
protoOf(CurrentCharConversion).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
929
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
926
930
|
};
|
|
927
|
-
protoOf(CurrentCharConversion).
|
|
928
|
-
return this.
|
|
931
|
+
protoOf(CurrentCharConversion).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
932
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
929
933
|
};
|
|
930
934
|
var CurrentCharConversion_instance;
|
|
931
935
|
function CurrentCharConversion_getInstance() {
|
|
@@ -937,16 +941,16 @@
|
|
|
937
941
|
CurrentInput_instance = this;
|
|
938
942
|
NonBacktrackable_0.call(this, 'current_input');
|
|
939
943
|
}
|
|
940
|
-
protoOf(CurrentInput).
|
|
941
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
944
|
+
protoOf(CurrentInput).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
945
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrStream_l86imo_k$(_this__u8e3s4, 0);
|
|
942
946
|
// Inline function 'kotlin.let' call
|
|
943
|
-
var it = _this__u8e3s4.context.
|
|
944
|
-
var tmp0_elvis_lhs = it.
|
|
945
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
946
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
947
|
+
var it = _this__u8e3s4.context.get_inputChannels_uyf05t_k$();
|
|
948
|
+
var tmp0_elvis_lhs = it.get_current_jwi6j4_k$();
|
|
949
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.get_stdIn_iypyf3_k$() : tmp0_elvis_lhs;
|
|
950
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, first, currentChannel.get_streamTerm_v3iy6t_k$()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
947
951
|
};
|
|
948
|
-
protoOf(CurrentInput).
|
|
949
|
-
return this.
|
|
952
|
+
protoOf(CurrentInput).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
953
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
950
954
|
};
|
|
951
955
|
var CurrentInput_instance;
|
|
952
956
|
function CurrentInput_getInstance() {
|
|
@@ -958,16 +962,16 @@
|
|
|
958
962
|
CurrentOutput_instance = this;
|
|
959
963
|
NonBacktrackable_0.call(this, 'current_output');
|
|
960
964
|
}
|
|
961
|
-
protoOf(CurrentOutput).
|
|
962
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
965
|
+
protoOf(CurrentOutput).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
966
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrStream_l86imo_k$(_this__u8e3s4, 0);
|
|
963
967
|
// Inline function 'kotlin.let' call
|
|
964
|
-
var it = _this__u8e3s4.context.
|
|
965
|
-
var tmp0_elvis_lhs = it.
|
|
966
|
-
var currentChannel = tmp0_elvis_lhs == null ? it.
|
|
967
|
-
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
968
|
+
var it = _this__u8e3s4.context.get_outputChannels_ffvoca_k$();
|
|
969
|
+
var tmp0_elvis_lhs = it.get_current_jwi6j4_k$();
|
|
970
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.get_stdOut_jngbw4_k$() : tmp0_elvis_lhs;
|
|
971
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, first, currentChannel.get_streamTerm_v3iy6t_k$()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
968
972
|
};
|
|
969
|
-
protoOf(CurrentOutput).
|
|
970
|
-
return this.
|
|
973
|
+
protoOf(CurrentOutput).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
974
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
971
975
|
};
|
|
972
976
|
var CurrentOutput_instance;
|
|
973
977
|
function CurrentOutput_getInstance() {
|
|
@@ -979,8 +983,8 @@
|
|
|
979
983
|
FlushOutput_instance = this;
|
|
980
984
|
NonBacktrackable_0.call(this, 'flush_output');
|
|
981
985
|
}
|
|
982
|
-
protoOf(FlushOutput).
|
|
983
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
986
|
+
protoOf(FlushOutput).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
987
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
984
988
|
var tmp;
|
|
985
989
|
try {
|
|
986
990
|
channel.flush();
|
|
@@ -997,8 +1001,8 @@
|
|
|
997
1001
|
}
|
|
998
1002
|
return tmp;
|
|
999
1003
|
};
|
|
1000
|
-
protoOf(FlushOutput).
|
|
1001
|
-
return this.
|
|
1004
|
+
protoOf(FlushOutput).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
1005
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
1002
1006
|
};
|
|
1003
1007
|
var FlushOutput_instance;
|
|
1004
1008
|
function FlushOutput_getInstance() {
|
|
@@ -1010,11 +1014,11 @@
|
|
|
1010
1014
|
GetByte1_instance = this;
|
|
1011
1015
|
NonBacktrackable_0.call(this, 'get_byte');
|
|
1012
1016
|
}
|
|
1013
|
-
protoOf(GetByte1).
|
|
1014
|
-
return Companion_getInstance_1().
|
|
1017
|
+
protoOf(GetByte1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
1018
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
1015
1019
|
};
|
|
1016
|
-
protoOf(GetByte1).
|
|
1017
|
-
return this.
|
|
1020
|
+
protoOf(GetByte1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
1021
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
1018
1022
|
};
|
|
1019
1023
|
var GetByte1_instance;
|
|
1020
1024
|
function GetByte1_getInstance() {
|
|
@@ -1026,11 +1030,11 @@
|
|
|
1026
1030
|
GetByte2_instance = this;
|
|
1027
1031
|
NonBacktrackable.call(this, 'get_byte');
|
|
1028
1032
|
}
|
|
1029
|
-
protoOf(GetByte2).
|
|
1030
|
-
return Companion_getInstance_1().
|
|
1033
|
+
protoOf(GetByte2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
1034
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
1031
1035
|
};
|
|
1032
|
-
protoOf(GetByte2).
|
|
1033
|
-
return this.
|
|
1036
|
+
protoOf(GetByte2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
1037
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
1034
1038
|
};
|
|
1035
1039
|
var GetByte2_instance;
|
|
1036
1040
|
function GetByte2_getInstance() {
|
|
@@ -1042,12 +1046,12 @@
|
|
|
1042
1046
|
GetChar1_instance = this;
|
|
1043
1047
|
NonBacktrackable_0.call(this, 'get_char');
|
|
1044
1048
|
}
|
|
1045
|
-
protoOf(GetChar1).
|
|
1046
|
-
IOPrimitiveUtils_getInstance().
|
|
1047
|
-
return IOPrimitiveUtils_getInstance().
|
|
1049
|
+
protoOf(GetChar1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
1050
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrChar_zdzofu_k$(_this__u8e3s4, 0);
|
|
1051
|
+
return IOPrimitiveUtils_getInstance().readCharAndReply_szx3md_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first);
|
|
1048
1052
|
};
|
|
1049
|
-
protoOf(GetChar1).
|
|
1050
|
-
return this.
|
|
1053
|
+
protoOf(GetChar1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
1054
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
1051
1055
|
};
|
|
1052
1056
|
var GetChar1_instance;
|
|
1053
1057
|
function GetChar1_getInstance() {
|
|
@@ -1059,13 +1063,13 @@
|
|
|
1059
1063
|
GetChar2_instance = this;
|
|
1060
1064
|
NonBacktrackable.call(this, 'get_char');
|
|
1061
1065
|
}
|
|
1062
|
-
protoOf(GetChar2).
|
|
1063
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1064
|
-
IOPrimitiveUtils_getInstance().
|
|
1065
|
-
return IOPrimitiveUtils_getInstance().
|
|
1066
|
+
protoOf(GetChar2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
1067
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
1068
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrChar_zdzofu_k$(_this__u8e3s4, 1);
|
|
1069
|
+
return IOPrimitiveUtils_getInstance().readCharAndReply_szx3md_k$(_this__u8e3s4, channel, second);
|
|
1066
1070
|
};
|
|
1067
|
-
protoOf(GetChar2).
|
|
1068
|
-
return this.
|
|
1071
|
+
protoOf(GetChar2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
1072
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
1069
1073
|
};
|
|
1070
1074
|
var GetChar2_instance;
|
|
1071
1075
|
function GetChar2_getInstance() {
|
|
@@ -1077,12 +1081,12 @@
|
|
|
1077
1081
|
GetCode1_instance = this;
|
|
1078
1082
|
NonBacktrackable_0.call(this, 'get_code');
|
|
1079
1083
|
}
|
|
1080
|
-
protoOf(GetCode1).
|
|
1081
|
-
IOPrimitiveUtils_getInstance().
|
|
1082
|
-
return IOPrimitiveUtils_getInstance().
|
|
1084
|
+
protoOf(GetCode1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
1085
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrCharCode_tmh0sz_k$(_this__u8e3s4, 0);
|
|
1086
|
+
return IOPrimitiveUtils_getInstance().readCodeAndReply_m7r1zg_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first);
|
|
1083
1087
|
};
|
|
1084
|
-
protoOf(GetCode1).
|
|
1085
|
-
return this.
|
|
1088
|
+
protoOf(GetCode1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
1089
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
1086
1090
|
};
|
|
1087
1091
|
var GetCode1_instance;
|
|
1088
1092
|
function GetCode1_getInstance() {
|
|
@@ -1094,13 +1098,13 @@
|
|
|
1094
1098
|
GetCode2_instance = this;
|
|
1095
1099
|
NonBacktrackable.call(this, 'get_code');
|
|
1096
1100
|
}
|
|
1097
|
-
protoOf(GetCode2).
|
|
1098
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
1099
|
-
IOPrimitiveUtils_getInstance().
|
|
1100
|
-
return IOPrimitiveUtils_getInstance().
|
|
1101
|
+
protoOf(GetCode2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
1102
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
1103
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrCharCode_tmh0sz_k$(_this__u8e3s4, 1);
|
|
1104
|
+
return IOPrimitiveUtils_getInstance().readCodeAndReply_m7r1zg_k$(_this__u8e3s4, channel, second);
|
|
1101
1105
|
};
|
|
1102
|
-
protoOf(GetCode2).
|
|
1103
|
-
return this.
|
|
1106
|
+
protoOf(GetCode2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
1107
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
1104
1108
|
};
|
|
1105
1109
|
var GetCode2_instance;
|
|
1106
1110
|
function GetCode2_getInstance() {
|
|
@@ -1115,129 +1119,129 @@
|
|
|
1115
1119
|
return constructCallableReference(function (p0_0) {
|
|
1116
1120
|
var tmp0 = p0;
|
|
1117
1121
|
return alias(tmp0, p0_0);
|
|
1118
|
-
}, 1, 0,
|
|
1122
|
+
}, 1, 0, 121, 'alias', [p0]);
|
|
1119
1123
|
}
|
|
1120
1124
|
function IOPrimitiveUtils$propertiesOf$slambda$lambda_0(it) {
|
|
1121
1125
|
return it === '$current';
|
|
1122
1126
|
}
|
|
1123
1127
|
function _get_INPUT_STREAM_TERM_PATTERN__5fd8p6($this) {
|
|
1124
|
-
var tmp0 = $this.
|
|
1128
|
+
var tmp0 = $this.INPUT_STREAM_TERM_PATTERN$delegate_1;
|
|
1125
1129
|
var tmp = KProperty1;
|
|
1126
1130
|
// Inline function 'kotlin.getValue' call
|
|
1127
1131
|
/* dead property reference removed */
|
|
1128
|
-
return tmp0.
|
|
1132
|
+
return tmp0.get_value_j01efc_k$();
|
|
1129
1133
|
}
|
|
1130
1134
|
function _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf($this) {
|
|
1131
|
-
var tmp0 = $this.
|
|
1135
|
+
var tmp0 = $this.OUTPUT_STREAM_TERM_PATTERN$delegate_1;
|
|
1132
1136
|
var tmp = KProperty1;
|
|
1133
1137
|
// Inline function 'kotlin.getValue' call
|
|
1134
1138
|
/* dead property reference removed */
|
|
1135
|
-
return tmp0.
|
|
1139
|
+
return tmp0.get_value_j01efc_k$();
|
|
1136
1140
|
}
|
|
1137
1141
|
function _get_PROPERTY_TYPE_PATTERN__5nq864($this) {
|
|
1138
|
-
var tmp0 = $this.
|
|
1142
|
+
var tmp0 = $this.PROPERTY_TYPE_PATTERN$delegate_1;
|
|
1139
1143
|
var tmp = KProperty1;
|
|
1140
1144
|
// Inline function 'kotlin.getValue' call
|
|
1141
1145
|
/* dead property reference removed */
|
|
1142
|
-
return tmp0.
|
|
1146
|
+
return tmp0.get_value_j01efc_k$();
|
|
1143
1147
|
}
|
|
1144
1148
|
function _get_PROPERTY_REPOSITION_PATTERN__lznuii($this) {
|
|
1145
|
-
var tmp0 = $this.
|
|
1149
|
+
var tmp0 = $this.PROPERTY_REPOSITION_PATTERN$delegate_1;
|
|
1146
1150
|
var tmp = KProperty1;
|
|
1147
1151
|
// Inline function 'kotlin.getValue' call
|
|
1148
1152
|
/* dead property reference removed */
|
|
1149
|
-
return tmp0.
|
|
1153
|
+
return tmp0.get_value_j01efc_k$();
|
|
1150
1154
|
}
|
|
1151
1155
|
function _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this) {
|
|
1152
|
-
var tmp0 = $this.
|
|
1156
|
+
var tmp0 = $this.PROPERTY_EOF_ACTION_PATTERN$delegate_1;
|
|
1153
1157
|
var tmp = KProperty1;
|
|
1154
1158
|
// Inline function 'kotlin.getValue' call
|
|
1155
1159
|
/* dead property reference removed */
|
|
1156
|
-
return tmp0.
|
|
1160
|
+
return tmp0.get_value_j01efc_k$();
|
|
1157
1161
|
}
|
|
1158
1162
|
function _get_PROPERTY_ALIAS_PATTERN__wipd2s($this) {
|
|
1159
|
-
var tmp0 = $this.
|
|
1163
|
+
var tmp0 = $this.PROPERTY_ALIAS_PATTERN$delegate_1;
|
|
1160
1164
|
var tmp = KProperty1;
|
|
1161
1165
|
// Inline function 'kotlin.getValue' call
|
|
1162
1166
|
/* dead property reference removed */
|
|
1163
|
-
return tmp0.
|
|
1167
|
+
return tmp0.get_value_j01efc_k$();
|
|
1164
1168
|
}
|
|
1165
1169
|
function _get_PROPERTY_INPUT__z2zr91($this) {
|
|
1166
|
-
var tmp0 = $this.
|
|
1170
|
+
var tmp0 = $this.PROPERTY_INPUT$delegate_1;
|
|
1167
1171
|
var tmp = KProperty1;
|
|
1168
1172
|
// Inline function 'kotlin.getValue' call
|
|
1169
1173
|
/* dead property reference removed */
|
|
1170
|
-
return tmp0.
|
|
1174
|
+
return tmp0.get_value_j01efc_k$();
|
|
1171
1175
|
}
|
|
1172
1176
|
function _get_PROPERTY_OUTPUT__1pem9m($this) {
|
|
1173
|
-
var tmp0 = $this.
|
|
1177
|
+
var tmp0 = $this.PROPERTY_OUTPUT$delegate_1;
|
|
1174
1178
|
var tmp = KProperty1;
|
|
1175
1179
|
// Inline function 'kotlin.getValue' call
|
|
1176
1180
|
/* dead property reference removed */
|
|
1177
|
-
return tmp0.
|
|
1181
|
+
return tmp0.get_value_j01efc_k$();
|
|
1178
1182
|
}
|
|
1179
1183
|
function _get_PROPERTY_TYPE_TEXT__9rpcwt($this) {
|
|
1180
|
-
var tmp0 = $this.
|
|
1184
|
+
var tmp0 = $this.PROPERTY_TYPE_TEXT$delegate_1;
|
|
1181
1185
|
var tmp = KProperty1;
|
|
1182
1186
|
// Inline function 'kotlin.getValue' call
|
|
1183
1187
|
/* dead property reference removed */
|
|
1184
|
-
return tmp0.
|
|
1188
|
+
return tmp0.get_value_j01efc_k$();
|
|
1185
1189
|
}
|
|
1186
1190
|
function _get_PROPERTY_REPOSITION_FALSE__i73t3b($this) {
|
|
1187
|
-
var tmp0 = $this.
|
|
1191
|
+
var tmp0 = $this.PROPERTY_REPOSITION_FALSE$delegate_1;
|
|
1188
1192
|
var tmp = KProperty1;
|
|
1189
1193
|
// Inline function 'kotlin.getValue' call
|
|
1190
1194
|
/* dead property reference removed */
|
|
1191
|
-
return tmp0.
|
|
1195
|
+
return tmp0.get_value_j01efc_k$();
|
|
1192
1196
|
}
|
|
1193
1197
|
function _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl($this) {
|
|
1194
|
-
var tmp0 = $this.
|
|
1198
|
+
var tmp0 = $this.PROPERTY_EOF_ACTION_EOF_CODE$delegate_1;
|
|
1195
1199
|
var tmp = KProperty1;
|
|
1196
1200
|
// Inline function 'kotlin.getValue' call
|
|
1197
1201
|
/* dead property reference removed */
|
|
1198
|
-
return tmp0.
|
|
1202
|
+
return tmp0.get_value_j01efc_k$();
|
|
1199
1203
|
}
|
|
1200
1204
|
function _get_OPTION_QUOTED_PATTERN__n2ri42($this) {
|
|
1201
|
-
var tmp0 = $this.
|
|
1205
|
+
var tmp0 = $this.OPTION_QUOTED_PATTERN$delegate_1;
|
|
1202
1206
|
var tmp = KProperty1;
|
|
1203
1207
|
// Inline function 'kotlin.getValue' call
|
|
1204
1208
|
/* dead property reference removed */
|
|
1205
|
-
return tmp0.
|
|
1209
|
+
return tmp0.get_value_j01efc_k$();
|
|
1206
1210
|
}
|
|
1207
1211
|
function _get_OPTION_NUMBER_VARS_PATTERN__p98ste($this) {
|
|
1208
|
-
var tmp0 = $this.
|
|
1212
|
+
var tmp0 = $this.OPTION_NUMBER_VARS_PATTERN$delegate_1;
|
|
1209
1213
|
var tmp = KProperty1;
|
|
1210
1214
|
// Inline function 'kotlin.getValue' call
|
|
1211
1215
|
/* dead property reference removed */
|
|
1212
|
-
return tmp0.
|
|
1216
|
+
return tmp0.get_value_j01efc_k$();
|
|
1213
1217
|
}
|
|
1214
1218
|
function _get_OPTION_IGNORE_OPS_PATTERN__cpse4v($this) {
|
|
1215
|
-
var tmp0 = $this.
|
|
1219
|
+
var tmp0 = $this.OPTION_IGNORE_OPS_PATTERN$delegate_1;
|
|
1216
1220
|
var tmp = KProperty1;
|
|
1217
1221
|
// Inline function 'kotlin.getValue' call
|
|
1218
1222
|
/* dead property reference removed */
|
|
1219
|
-
return tmp0.
|
|
1223
|
+
return tmp0.get_value_j01efc_k$();
|
|
1220
1224
|
}
|
|
1221
1225
|
function _get_INFO_VARIABLES_PATTERN__bhp1h0($this) {
|
|
1222
|
-
var tmp0 = $this.
|
|
1226
|
+
var tmp0 = $this.INFO_VARIABLES_PATTERN$delegate_1;
|
|
1223
1227
|
var tmp = KProperty1;
|
|
1224
1228
|
// Inline function 'kotlin.getValue' call
|
|
1225
1229
|
/* dead property reference removed */
|
|
1226
|
-
return tmp0.
|
|
1230
|
+
return tmp0.get_value_j01efc_k$();
|
|
1227
1231
|
}
|
|
1228
1232
|
function _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom($this) {
|
|
1229
|
-
var tmp0 = $this.
|
|
1233
|
+
var tmp0 = $this.INFO_VARIABLE_NAMES_PATTERN$delegate_1;
|
|
1230
1234
|
var tmp = KProperty1;
|
|
1231
1235
|
// Inline function 'kotlin.getValue' call
|
|
1232
1236
|
/* dead property reference removed */
|
|
1233
|
-
return tmp0.
|
|
1237
|
+
return tmp0.get_value_j01efc_k$();
|
|
1234
1238
|
}
|
|
1235
1239
|
function _get_INFO_SINGLETONS_PATTERN__y21s87($this) {
|
|
1236
|
-
var tmp0 = $this.
|
|
1240
|
+
var tmp0 = $this.INFO_SINGLETONS_PATTERN$delegate_1;
|
|
1237
1241
|
var tmp = KProperty1;
|
|
1238
1242
|
// Inline function 'kotlin.getValue' call
|
|
1239
1243
|
/* dead property reference removed */
|
|
1240
|
-
return tmp0.
|
|
1244
|
+
return tmp0.get_value_j01efc_k$();
|
|
1241
1245
|
}
|
|
1242
1246
|
function _get_validPropertiesPattern__7s1t06($this) {
|
|
1243
1247
|
return sequenceOf([_get_PROPERTY_INPUT__z2zr91($this), _get_PROPERTY_OUTPUT__1pem9m($this), _get_PROPERTY_ALIAS_PATTERN__wipd2s($this), _get_PROPERTY_TYPE_PATTERN__5nq864($this), _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this), _get_PROPERTY_REPOSITION_PATTERN__lznuii($this)]);
|
|
@@ -1314,7 +1318,7 @@
|
|
|
1314
1318
|
tmp_0 = null;
|
|
1315
1319
|
} else {
|
|
1316
1320
|
// Inline function 'kotlin.let' call
|
|
1317
|
-
tmp_0 =
|
|
1321
|
+
tmp_0 = Companion_instance_4.ofList(variables);
|
|
1318
1322
|
}
|
|
1319
1323
|
var tmp1_elvis_lhs = tmp_0;
|
|
1320
1324
|
return tmp.of('variables', [tmp1_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp1_elvis_lhs]);
|
|
@@ -1329,13 +1333,13 @@
|
|
|
1329
1333
|
// Inline function 'kotlin.collections.map' call
|
|
1330
1334
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1331
1335
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(vNames, 10));
|
|
1332
|
-
var _iterator__ex2g4s = vNames.
|
|
1333
|
-
while (_iterator__ex2g4s.
|
|
1334
|
-
var item = _iterator__ex2g4s.
|
|
1335
|
-
var a = item.
|
|
1336
|
-
var v = item.
|
|
1336
|
+
var _iterator__ex2g4s = vNames.iterator_jk1svi_k$();
|
|
1337
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1338
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
1339
|
+
var a = item.component1_7eebsc_k$();
|
|
1340
|
+
var v = item.component2_7eebsb_k$();
|
|
1337
1341
|
var tmp$ret$2 = Companion_getInstance_2().of('=', [a, v]);
|
|
1338
|
-
destination.
|
|
1342
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
1339
1343
|
}
|
|
1340
1344
|
tmp_0 = destination;
|
|
1341
1345
|
}
|
|
@@ -1345,7 +1349,7 @@
|
|
|
1345
1349
|
tmp_1 = null;
|
|
1346
1350
|
} else {
|
|
1347
1351
|
// Inline function 'kotlin.let' call
|
|
1348
|
-
tmp_1 =
|
|
1352
|
+
tmp_1 = Companion_instance_4.ofList(tmp1_safe_receiver);
|
|
1349
1353
|
}
|
|
1350
1354
|
var tmp2_elvis_lhs = tmp_1;
|
|
1351
1355
|
return tmp.of(functor, [tmp2_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp2_elvis_lhs]);
|
|
@@ -1379,9 +1383,9 @@
|
|
|
1379
1383
|
var tmp$ret$1;
|
|
1380
1384
|
$l$block: {
|
|
1381
1385
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
1382
|
-
var _iterator__ex2g4s = tmp0.
|
|
1383
|
-
while (_iterator__ex2g4s.
|
|
1384
|
-
var element = _iterator__ex2g4s.
|
|
1386
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1387
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1388
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1385
1389
|
if (unificator.match(pattern, element)) {
|
|
1386
1390
|
tmp$ret$1 = element;
|
|
1387
1391
|
break $l$block;
|
|
@@ -1402,25 +1406,25 @@
|
|
|
1402
1406
|
}
|
|
1403
1407
|
function _get_singletons__bihqrn($this, $receiver) {
|
|
1404
1408
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1405
|
-
var tmp0 = $receiver.
|
|
1409
|
+
var tmp0 = $receiver.get_variables_75f0zy_k$();
|
|
1406
1410
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1407
1411
|
var destination = LinkedHashMap_init_$Create$();
|
|
1408
|
-
var _iterator__ex2g4s = tmp0.
|
|
1409
|
-
while (_iterator__ex2g4s.
|
|
1410
|
-
var element = _iterator__ex2g4s.
|
|
1412
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1413
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1414
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1411
1415
|
var key = element;
|
|
1412
1416
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1413
|
-
var value = destination.
|
|
1417
|
+
var value = destination.get_wei43m_k$(key);
|
|
1414
1418
|
var tmp;
|
|
1415
1419
|
if (value == null) {
|
|
1416
1420
|
var answer = ArrayList_init_$Create$_0();
|
|
1417
|
-
destination.
|
|
1421
|
+
destination.put_4fpzoq_k$(key, answer);
|
|
1418
1422
|
tmp = answer;
|
|
1419
1423
|
} else {
|
|
1420
1424
|
tmp = value;
|
|
1421
1425
|
}
|
|
1422
1426
|
var list = tmp;
|
|
1423
|
-
list.
|
|
1427
|
+
list.add_utx5q5_k$(element);
|
|
1424
1428
|
}
|
|
1425
1429
|
var tmp_0 = asSequence_0(destination);
|
|
1426
1430
|
var tmp_1 = filter(tmp_0, IOPrimitiveUtils$_get_singletons_$lambda_kke618);
|
|
@@ -1433,34 +1437,34 @@
|
|
|
1433
1437
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1434
1438
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1435
1439
|
var destination = LinkedHashMap_init_$Create$();
|
|
1436
|
-
var _iterator__ex2g4s = $receiver.
|
|
1437
|
-
while (_iterator__ex2g4s.
|
|
1438
|
-
var element = _iterator__ex2g4s.
|
|
1439
|
-
var key = Companion_getInstance_0().of(element.
|
|
1440
|
+
var _iterator__ex2g4s = $receiver.iterator_jk1svi_k$();
|
|
1441
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1442
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1443
|
+
var key = Companion_getInstance_0().of(element.get_name_woqyms_k$());
|
|
1440
1444
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1441
|
-
var value = destination.
|
|
1445
|
+
var value = destination.get_wei43m_k$(key);
|
|
1442
1446
|
var tmp;
|
|
1443
1447
|
if (value == null) {
|
|
1444
1448
|
var answer = ArrayList_init_$Create$_0();
|
|
1445
|
-
destination.
|
|
1449
|
+
destination.put_4fpzoq_k$(key, answer);
|
|
1446
1450
|
tmp = answer;
|
|
1447
1451
|
} else {
|
|
1448
1452
|
tmp = value;
|
|
1449
1453
|
}
|
|
1450
1454
|
var list = tmp;
|
|
1451
|
-
list.
|
|
1455
|
+
list.add_utx5q5_k$(element);
|
|
1452
1456
|
}
|
|
1453
1457
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1454
1458
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1455
1459
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
1456
1460
|
// Inline function 'kotlin.collections.iterator' call
|
|
1457
|
-
var _iterator__ex2g4s_0 = destination.
|
|
1458
|
-
while (_iterator__ex2g4s_0.
|
|
1459
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1461
|
+
var _iterator__ex2g4s_0 = destination.get_entries_p20ztl_k$().iterator_jk1svi_k$();
|
|
1462
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
1463
|
+
var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
|
|
1460
1464
|
// Inline function 'kotlin.collections.component1' call
|
|
1461
|
-
var n = element_0.
|
|
1465
|
+
var n = element_0.get_key_18j28a_k$();
|
|
1462
1466
|
// Inline function 'kotlin.collections.component2' call
|
|
1463
|
-
var vs = element_0.
|
|
1467
|
+
var vs = element_0.get_value_j01efc_k$();
|
|
1464
1468
|
var tmp_0 = asSequence(vs);
|
|
1465
1469
|
var list_0 = map(tmp_0, IOPrimitiveUtils$toAssignments$lambda(n));
|
|
1466
1470
|
addAll(destination_0, list_0);
|
|
@@ -1471,18 +1475,18 @@
|
|
|
1471
1475
|
var tmp0_safe_receiver = (!($receiver == null) ? isInterface($receiver, Struct) : false) ? $receiver : null;
|
|
1472
1476
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.getArgAt(0);
|
|
1473
1477
|
var tmp1_safe_receiver = (!(tmp == null) ? isInterface(tmp, Atom) : false) ? tmp : null;
|
|
1474
|
-
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1478
|
+
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get_value_j01efc_k$();
|
|
1475
1479
|
}
|
|
1476
1480
|
function replyOpeningStream($this, $receiver, channel, third, alias) {
|
|
1477
1481
|
alias = alias === VOID ? null : alias;
|
|
1478
|
-
var streamTerm = channel.
|
|
1479
|
-
var tmp = Companion_getInstance_1().
|
|
1482
|
+
var streamTerm = channel.get_streamTerm_v3iy6t_k$();
|
|
1483
|
+
var tmp = Companion_getInstance_1().mgu_jyyt35_k$($receiver, third, streamTerm);
|
|
1480
1484
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda(alias, channel));
|
|
1481
1485
|
}
|
|
1482
1486
|
function replyOpeningStream_0($this, $receiver, channel, third, alias) {
|
|
1483
1487
|
alias = alias === VOID ? null : alias;
|
|
1484
|
-
var streamTerm = channel.
|
|
1485
|
-
var tmp = Companion_getInstance_1().
|
|
1488
|
+
var streamTerm = channel.get_streamTerm_v3iy6t_k$();
|
|
1489
|
+
var tmp = Companion_getInstance_1().mgu_jyyt35_k$($receiver, third, streamTerm);
|
|
1486
1490
|
return $receiver.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda_0(alias, channel));
|
|
1487
1491
|
}
|
|
1488
1492
|
function IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
@@ -1491,15 +1495,15 @@
|
|
|
1491
1495
|
function IOPrimitiveUtils$_get_INPUT_STREAM_TERM_PATTERN_$ref_59oxnp() {
|
|
1492
1496
|
return constructCallableReference(function (p0) {
|
|
1493
1497
|
return _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(p0);
|
|
1494
|
-
}, 1, 0,
|
|
1498
|
+
}, 1, 0, 122);
|
|
1495
1499
|
}
|
|
1496
1500
|
function IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
1497
|
-
return
|
|
1501
|
+
return Companion_instance_5.streamTerm();
|
|
1498
1502
|
}
|
|
1499
1503
|
function IOPrimitiveUtils$_get_OUTPUT_STREAM_TERM_PATTERN_$ref_kcdkmo() {
|
|
1500
1504
|
return constructCallableReference(function (p0) {
|
|
1501
1505
|
return _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(p0);
|
|
1502
|
-
}, 1, 0,
|
|
1506
|
+
}, 1, 0, 123);
|
|
1503
1507
|
}
|
|
1504
1508
|
function IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda() {
|
|
1505
1509
|
return Companion_getInstance_2().of('type', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1507,7 +1511,7 @@
|
|
|
1507
1511
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_PATTERN_$ref_qcyh3d() {
|
|
1508
1512
|
return constructCallableReference(function (p0) {
|
|
1509
1513
|
return _get_PROPERTY_TYPE_PATTERN__5nq864(p0);
|
|
1510
|
-
}, 1, 0,
|
|
1514
|
+
}, 1, 0, 124);
|
|
1511
1515
|
}
|
|
1512
1516
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda() {
|
|
1513
1517
|
return Companion_getInstance_2().of('reposition', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1515,7 +1519,7 @@
|
|
|
1515
1519
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_PATTERN_$ref_uil93p() {
|
|
1516
1520
|
return constructCallableReference(function (p0) {
|
|
1517
1521
|
return _get_PROPERTY_REPOSITION_PATTERN__lznuii(p0);
|
|
1518
|
-
}, 1, 0,
|
|
1522
|
+
}, 1, 0, 125);
|
|
1519
1523
|
}
|
|
1520
1524
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda() {
|
|
1521
1525
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_3().anonymous()]);
|
|
@@ -1523,7 +1527,7 @@
|
|
|
1523
1527
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_PATTERN_$ref_bt8ai0() {
|
|
1524
1528
|
return constructCallableReference(function (p0) {
|
|
1525
1529
|
return _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv(p0);
|
|
1526
|
-
}, 1, 0,
|
|
1530
|
+
}, 1, 0, 126);
|
|
1527
1531
|
}
|
|
1528
1532
|
function IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda() {
|
|
1529
1533
|
return alias(IOPrimitiveUtils_getInstance());
|
|
@@ -1531,7 +1535,7 @@
|
|
|
1531
1535
|
function IOPrimitiveUtils$_get_PROPERTY_ALIAS_PATTERN_$ref_qs5lfb() {
|
|
1532
1536
|
return constructCallableReference(function (p0) {
|
|
1533
1537
|
return _get_PROPERTY_ALIAS_PATTERN__wipd2s(p0);
|
|
1534
|
-
}, 1, 0,
|
|
1538
|
+
}, 1, 0, 127);
|
|
1535
1539
|
}
|
|
1536
1540
|
function IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda() {
|
|
1537
1541
|
return Companion_getInstance_0().of('input');
|
|
@@ -1539,7 +1543,7 @@
|
|
|
1539
1543
|
function IOPrimitiveUtils$_get_PROPERTY_INPUT_$ref_hltzoy() {
|
|
1540
1544
|
return constructCallableReference(function (p0) {
|
|
1541
1545
|
return _get_PROPERTY_INPUT__z2zr91(p0);
|
|
1542
|
-
}, 1, 0,
|
|
1546
|
+
}, 1, 0, 128);
|
|
1543
1547
|
}
|
|
1544
1548
|
function IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda() {
|
|
1545
1549
|
return Companion_getInstance_0().of('output');
|
|
@@ -1547,7 +1551,7 @@
|
|
|
1547
1551
|
function IOPrimitiveUtils$_get_PROPERTY_OUTPUT_$ref_9ccgyp() {
|
|
1548
1552
|
return constructCallableReference(function (p0) {
|
|
1549
1553
|
return _get_PROPERTY_OUTPUT__1pem9m(p0);
|
|
1550
|
-
}, 1, 0,
|
|
1554
|
+
}, 1, 0, 129);
|
|
1551
1555
|
}
|
|
1552
1556
|
function IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda() {
|
|
1553
1557
|
return Companion_getInstance_2().of('type', [Companion_getInstance_0().of('text')]);
|
|
@@ -1555,15 +1559,15 @@
|
|
|
1555
1559
|
function IOPrimitiveUtils$_get_PROPERTY_TYPE_TEXT_$ref_47hbty() {
|
|
1556
1560
|
return constructCallableReference(function (p0) {
|
|
1557
1561
|
return _get_PROPERTY_TYPE_TEXT__9rpcwt(p0);
|
|
1558
|
-
}, 1, 0,
|
|
1562
|
+
}, 1, 0, 130);
|
|
1559
1563
|
}
|
|
1560
1564
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda() {
|
|
1561
|
-
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().
|
|
1565
|
+
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().FALSE_1]);
|
|
1562
1566
|
}
|
|
1563
1567
|
function IOPrimitiveUtils$_get_PROPERTY_REPOSITION_FALSE_$ref_jx0m6() {
|
|
1564
1568
|
return constructCallableReference(function (p0) {
|
|
1565
1569
|
return _get_PROPERTY_REPOSITION_FALSE__i73t3b(p0);
|
|
1566
|
-
}, 1, 0,
|
|
1570
|
+
}, 1, 0, 131);
|
|
1567
1571
|
}
|
|
1568
1572
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda() {
|
|
1569
1573
|
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_0().of('eof_code')]);
|
|
@@ -1571,7 +1575,7 @@
|
|
|
1571
1575
|
function IOPrimitiveUtils$_get_PROPERTY_EOF_ACTION_EOF_CODE_$ref_1cwy66() {
|
|
1572
1576
|
return constructCallableReference(function (p0) {
|
|
1573
1577
|
return _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl(p0);
|
|
1574
|
-
}, 1, 0,
|
|
1578
|
+
}, 1, 0, 132);
|
|
1575
1579
|
}
|
|
1576
1580
|
function IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda() {
|
|
1577
1581
|
return quoted(IOPrimitiveUtils_getInstance());
|
|
@@ -1579,7 +1583,7 @@
|
|
|
1579
1583
|
function IOPrimitiveUtils$_get_OPTION_QUOTED_PATTERN_$ref_nxjfbr() {
|
|
1580
1584
|
return constructCallableReference(function (p0) {
|
|
1581
1585
|
return _get_OPTION_QUOTED_PATTERN__n2ri42(p0);
|
|
1582
|
-
}, 1, 0,
|
|
1586
|
+
}, 1, 0, 133);
|
|
1583
1587
|
}
|
|
1584
1588
|
function IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda() {
|
|
1585
1589
|
return numberVars(IOPrimitiveUtils_getInstance());
|
|
@@ -1587,7 +1591,7 @@
|
|
|
1587
1591
|
function IOPrimitiveUtils$_get_OPTION_NUMBER_VARS_PATTERN_$ref_pdk9ph() {
|
|
1588
1592
|
return constructCallableReference(function (p0) {
|
|
1589
1593
|
return _get_OPTION_NUMBER_VARS_PATTERN__p98ste(p0);
|
|
1590
|
-
}, 1, 0,
|
|
1594
|
+
}, 1, 0, 134);
|
|
1591
1595
|
}
|
|
1592
1596
|
function IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda() {
|
|
1593
1597
|
return ignoreOps(IOPrimitiveUtils_getInstance());
|
|
@@ -1595,7 +1599,7 @@
|
|
|
1595
1599
|
function IOPrimitiveUtils$_get_OPTION_IGNORE_OPS_PATTERN_$ref_vvsa9g() {
|
|
1596
1600
|
return constructCallableReference(function (p0) {
|
|
1597
1601
|
return _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(p0);
|
|
1598
|
-
}, 1, 0,
|
|
1602
|
+
}, 1, 0, 135);
|
|
1599
1603
|
}
|
|
1600
1604
|
function IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda() {
|
|
1601
1605
|
return variables(IOPrimitiveUtils_getInstance());
|
|
@@ -1603,7 +1607,7 @@
|
|
|
1603
1607
|
function IOPrimitiveUtils$_get_INFO_VARIABLES_PATTERN_$ref_ih2rd5() {
|
|
1604
1608
|
return constructCallableReference(function (p0) {
|
|
1605
1609
|
return _get_INFO_VARIABLES_PATTERN__bhp1h0(p0);
|
|
1606
|
-
}, 1, 0,
|
|
1610
|
+
}, 1, 0, 136);
|
|
1607
1611
|
}
|
|
1608
1612
|
function IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda() {
|
|
1609
1613
|
return variableNames(IOPrimitiveUtils_getInstance());
|
|
@@ -1611,7 +1615,7 @@
|
|
|
1611
1615
|
function IOPrimitiveUtils$_get_INFO_VARIABLE_NAMES_PATTERN_$ref_lzmk91() {
|
|
1612
1616
|
return constructCallableReference(function (p0) {
|
|
1613
1617
|
return _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(p0);
|
|
1614
|
-
}, 1, 0,
|
|
1618
|
+
}, 1, 0, 137);
|
|
1615
1619
|
}
|
|
1616
1620
|
function IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda() {
|
|
1617
1621
|
return singletons(IOPrimitiveUtils_getInstance());
|
|
@@ -1619,106 +1623,106 @@
|
|
|
1619
1623
|
function IOPrimitiveUtils$_get_INFO_SINGLETONS_PATTERN_$ref_8msi4i() {
|
|
1620
1624
|
return constructCallableReference(function (p0) {
|
|
1621
1625
|
return _get_INFO_SINGLETONS_PATTERN__y21s87(p0);
|
|
1622
|
-
}, 1, 0,
|
|
1626
|
+
}, 1, 0, 138);
|
|
1623
1627
|
}
|
|
1624
1628
|
function IOPrimitiveUtils$quoted$ref(p0) {
|
|
1625
1629
|
return constructCallableReference(function (p0_0) {
|
|
1626
1630
|
var tmp0 = p0;
|
|
1627
1631
|
return quoted(tmp0, p0_0);
|
|
1628
|
-
}, 1, 0,
|
|
1632
|
+
}, 1, 0, 139, 'quoted', [p0]);
|
|
1629
1633
|
}
|
|
1630
1634
|
function IOPrimitiveUtils$ignoreOps$ref(p0) {
|
|
1631
1635
|
return constructCallableReference(function (p0_0) {
|
|
1632
1636
|
var tmp0 = p0;
|
|
1633
1637
|
return ignoreOps(tmp0, p0_0);
|
|
1634
|
-
}, 1, 0,
|
|
1638
|
+
}, 1, 0, 140, 'ignoreOps', [p0]);
|
|
1635
1639
|
}
|
|
1636
1640
|
function IOPrimitiveUtils$numberVars$ref(p0) {
|
|
1637
1641
|
return constructCallableReference(function (p0_0) {
|
|
1638
1642
|
var tmp0 = p0;
|
|
1639
1643
|
return numberVars(tmp0, p0_0);
|
|
1640
|
-
}, 1, 0,
|
|
1644
|
+
}, 1, 0, 141, 'numberVars', [p0]);
|
|
1641
1645
|
}
|
|
1642
1646
|
function IOPrimitiveUtils$_get_validOptionsPattern_$lambda_r088xw(it) {
|
|
1643
1647
|
return map(sequenceOf([true, false]), it);
|
|
1644
1648
|
}
|
|
1645
1649
|
function IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation) {
|
|
1646
|
-
this
|
|
1647
|
-
this
|
|
1650
|
+
this.$channel_1 = $channel;
|
|
1651
|
+
this.$this_propertiesOf_1 = $this_propertiesOf;
|
|
1648
1652
|
CoroutineImpl.call(this, resultContinuation);
|
|
1649
1653
|
}
|
|
1650
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1651
|
-
var tmp = this.
|
|
1652
|
-
tmp.
|
|
1653
|
-
tmp.
|
|
1654
|
-
return tmp.
|
|
1654
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).invoke_cg3yit_k$ = function ($this$sequence, $completion) {
|
|
1655
|
+
var tmp = this.create_5hkj7b_k$($this$sequence, $completion);
|
|
1656
|
+
tmp.result_1 = Unit_instance;
|
|
1657
|
+
tmp.exception_1 = null;
|
|
1658
|
+
return tmp.doResume_5yljmg_k$();
|
|
1655
1659
|
};
|
|
1656
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1657
|
-
return this.
|
|
1660
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
1661
|
+
return this.invoke_cg3yit_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1658
1662
|
};
|
|
1659
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1660
|
-
var suspendResult = this.
|
|
1663
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).doResume_5yljmg_k$ = function () {
|
|
1664
|
+
var suspendResult = this.result_1;
|
|
1661
1665
|
$sm: do
|
|
1662
1666
|
try {
|
|
1663
|
-
var tmp = this.
|
|
1667
|
+
var tmp = this.state_1;
|
|
1664
1668
|
switch (tmp) {
|
|
1665
1669
|
case 0:
|
|
1666
|
-
this.
|
|
1667
|
-
var tmp0_subject = this
|
|
1670
|
+
this.exceptionState_1 = 7;
|
|
1671
|
+
var tmp0_subject = this.$channel_1;
|
|
1668
1672
|
if (isInterface(tmp0_subject, InputChannel)) {
|
|
1669
|
-
this.
|
|
1670
|
-
suspendResult = this.
|
|
1673
|
+
this.state_1 = 3;
|
|
1674
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(_get_PROPERTY_INPUT__z2zr91(IOPrimitiveUtils_getInstance()), this);
|
|
1671
1675
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1672
1676
|
return suspendResult;
|
|
1673
1677
|
}
|
|
1674
1678
|
continue $sm;
|
|
1675
1679
|
} else {
|
|
1676
1680
|
if (isInterface(tmp0_subject, OutputChannel)) {
|
|
1677
|
-
this.
|
|
1678
|
-
suspendResult = this.
|
|
1681
|
+
this.state_1 = 1;
|
|
1682
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(_get_PROPERTY_OUTPUT__1pem9m(IOPrimitiveUtils_getInstance()), this);
|
|
1679
1683
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1680
1684
|
return suspendResult;
|
|
1681
1685
|
}
|
|
1682
1686
|
continue $sm;
|
|
1683
1687
|
} else {
|
|
1684
|
-
this.
|
|
1688
|
+
this.state_1 = 5;
|
|
1685
1689
|
continue $sm;
|
|
1686
1690
|
}
|
|
1687
1691
|
}
|
|
1688
1692
|
|
|
1689
1693
|
case 1:
|
|
1690
|
-
this.
|
|
1691
|
-
var tmp_0 = this.
|
|
1692
|
-
var tmp_1 = this
|
|
1694
|
+
this.state_1 = 2;
|
|
1695
|
+
var tmp_0 = this.$this_propertiesOf_1.context.get_outputChannels_ffvoca_k$();
|
|
1696
|
+
var tmp_1 = this.$channel_1;
|
|
1693
1697
|
var tmp_2 = tmp_0.aliasesOf(isInterface(tmp_1, OutputChannel) ? tmp_1 : THROW_CCE());
|
|
1694
1698
|
var tmp_3 = filterNot(tmp_2, IOPrimitiveUtils$propertiesOf$slambda$lambda_0);
|
|
1695
|
-
suspendResult = this.
|
|
1699
|
+
suspendResult = this.$this$sequence_1.yieldAll_h63j2x_k$(map(tmp_3, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1696
1700
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1697
1701
|
return suspendResult;
|
|
1698
1702
|
}
|
|
1699
1703
|
|
|
1700
1704
|
continue $sm;
|
|
1701
1705
|
case 2:
|
|
1702
|
-
this.
|
|
1706
|
+
this.state_1 = 5;
|
|
1703
1707
|
continue $sm;
|
|
1704
1708
|
case 3:
|
|
1705
|
-
this.
|
|
1706
|
-
var tmp_4 = this.
|
|
1707
|
-
var tmp_5 = this
|
|
1709
|
+
this.state_1 = 4;
|
|
1710
|
+
var tmp_4 = this.$this_propertiesOf_1.context.get_inputChannels_uyf05t_k$();
|
|
1711
|
+
var tmp_5 = this.$channel_1;
|
|
1708
1712
|
var tmp_6 = tmp_4.aliasesOf(isInterface(tmp_5, InputChannel) ? tmp_5 : THROW_CCE());
|
|
1709
1713
|
var tmp_7 = filterNot(tmp_6, IOPrimitiveUtils$propertiesOf$slambda$lambda);
|
|
1710
|
-
suspendResult = this.
|
|
1714
|
+
suspendResult = this.$this$sequence_1.yieldAll_h63j2x_k$(map(tmp_7, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1711
1715
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1712
1716
|
return suspendResult;
|
|
1713
1717
|
}
|
|
1714
1718
|
|
|
1715
1719
|
continue $sm;
|
|
1716
1720
|
case 4:
|
|
1717
|
-
this.
|
|
1721
|
+
this.state_1 = 5;
|
|
1718
1722
|
continue $sm;
|
|
1719
1723
|
case 5:
|
|
1720
|
-
this.
|
|
1721
|
-
suspendResult = this.
|
|
1724
|
+
this.state_1 = 6;
|
|
1725
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(_get_PROPERTY_TYPE_TEXT__9rpcwt(IOPrimitiveUtils_getInstance()), this);
|
|
1722
1726
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1723
1727
|
return suspendResult;
|
|
1724
1728
|
}
|
|
@@ -1727,28 +1731,28 @@
|
|
|
1727
1731
|
case 6:
|
|
1728
1732
|
return Unit_instance;
|
|
1729
1733
|
case 7:
|
|
1730
|
-
throw this.
|
|
1734
|
+
throw this.exception_1;
|
|
1731
1735
|
}
|
|
1732
1736
|
} catch ($p) {
|
|
1733
1737
|
var e = $p;
|
|
1734
|
-
if (this.
|
|
1738
|
+
if (this.exceptionState_1 === 7) {
|
|
1735
1739
|
throw e;
|
|
1736
1740
|
} else {
|
|
1737
|
-
this.
|
|
1738
|
-
this.
|
|
1741
|
+
this.state_1 = this.exceptionState_1;
|
|
1742
|
+
this.exception_1 = e;
|
|
1739
1743
|
}
|
|
1740
1744
|
}
|
|
1741
1745
|
while (true);
|
|
1742
1746
|
};
|
|
1743
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1744
|
-
var i = new IOPrimitiveUtils$propertiesOf$slambda(this
|
|
1745
|
-
i
|
|
1747
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).create_5hkj7b_k$ = function ($this$sequence, completion) {
|
|
1748
|
+
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.$channel_1, this.$this_propertiesOf_1, completion);
|
|
1749
|
+
i.$this$sequence_1 = $this$sequence;
|
|
1746
1750
|
return i;
|
|
1747
1751
|
};
|
|
1748
1752
|
function IOPrimitiveUtils$propertiesOf$slambda_0($channel, $this_propertiesOf, resultContinuation) {
|
|
1749
1753
|
var i = new IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation);
|
|
1750
1754
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
1751
|
-
return i.
|
|
1755
|
+
return i.invoke_cg3yit_k$($this$sequence, $completion);
|
|
1752
1756
|
}, 1);
|
|
1753
1757
|
}
|
|
1754
1758
|
function IOPrimitiveUtils$getOption$lambda(it) {
|
|
@@ -1766,16 +1770,16 @@
|
|
|
1766
1770
|
return !(it == null) ? isInterface(it, Truth) : false;
|
|
1767
1771
|
}
|
|
1768
1772
|
function IOPrimitiveUtils$getOption$lambda_3(it) {
|
|
1769
|
-
return it.
|
|
1773
|
+
return it.get_isTrue_ew6ti9_k$();
|
|
1770
1774
|
}
|
|
1771
1775
|
function IOPrimitiveUtils$getInfo$lambda(it) {
|
|
1772
1776
|
return !(it == null) ? isInterface(it, Struct) : false;
|
|
1773
1777
|
}
|
|
1774
1778
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618(it) {
|
|
1775
|
-
return it.
|
|
1779
|
+
return it.get_value_j01efc_k$().get_size_woubt6_k$() === 1;
|
|
1776
1780
|
}
|
|
1777
1781
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618_0(it) {
|
|
1778
|
-
return it.
|
|
1782
|
+
return it.get_key_18j28a_k$();
|
|
1779
1783
|
}
|
|
1780
1784
|
function IOPrimitiveUtils$toAssignments$lambda($n) {
|
|
1781
1785
|
return function (it) {
|
|
@@ -1784,90 +1788,90 @@
|
|
|
1784
1788
|
}
|
|
1785
1789
|
function IOPrimitiveUtils$open$lambda($this_open) {
|
|
1786
1790
|
return function (it) {
|
|
1787
|
-
return IOPrimitiveUtils_getInstance().
|
|
1791
|
+
return IOPrimitiveUtils_getInstance().ensureTermIsValidProperty_oi9oag_k$($this_open, it);
|
|
1788
1792
|
};
|
|
1789
1793
|
}
|
|
1790
1794
|
function IOPrimitiveUtils$open$lambda_0($this_open) {
|
|
1791
1795
|
return function (it) {
|
|
1792
|
-
return IOPrimitiveUtils_getInstance().
|
|
1796
|
+
return IOPrimitiveUtils_getInstance().ensureTermIsSupportedProperty_mx21q2_k$($this_open, it);
|
|
1793
1797
|
};
|
|
1794
1798
|
}
|
|
1795
1799
|
function IOPrimitiveUtils$replyOpeningStream$lambda($alias, $channel) {
|
|
1796
1800
|
return function ($this$replyWith) {
|
|
1797
1801
|
var tmp0_elvis_lhs = $alias;
|
|
1798
|
-
$this$replyWith.
|
|
1802
|
+
$this$replyWith.openOutputChannel_sa5jps_k$(tmp0_elvis_lhs == null ? 'output_channel' + $channel.get_streamTerm_v3iy6t_k$().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1799
1803
|
return Unit_instance;
|
|
1800
1804
|
};
|
|
1801
1805
|
}
|
|
1802
1806
|
function IOPrimitiveUtils$replyOpeningStream$lambda_0($alias, $channel) {
|
|
1803
1807
|
return function ($this$replyWith) {
|
|
1804
1808
|
var tmp0_elvis_lhs = $alias;
|
|
1805
|
-
$this$replyWith.
|
|
1809
|
+
$this$replyWith.openInputChannel_g5b2w6_k$(tmp0_elvis_lhs == null ? 'input_channel' + $channel.get_streamTerm_v3iy6t_k$().get(1).toString() : tmp0_elvis_lhs, $channel);
|
|
1806
1810
|
return Unit_instance;
|
|
1807
1811
|
};
|
|
1808
1812
|
}
|
|
1809
1813
|
function IOPrimitiveUtils() {
|
|
1810
1814
|
IOPrimitiveUtils_instance = this;
|
|
1811
1815
|
var tmp = this;
|
|
1812
|
-
tmp.
|
|
1816
|
+
tmp.INPUT_STREAM_TERM_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1813
1817
|
var tmp_0 = this;
|
|
1814
|
-
tmp_0.
|
|
1818
|
+
tmp_0.OUTPUT_STREAM_TERM_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1815
1819
|
var tmp_1 = this;
|
|
1816
|
-
tmp_1.
|
|
1820
|
+
tmp_1.PROPERTY_TYPE_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda);
|
|
1817
1821
|
var tmp_2 = this;
|
|
1818
|
-
tmp_2.
|
|
1822
|
+
tmp_2.PROPERTY_REPOSITION_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda);
|
|
1819
1823
|
var tmp_3 = this;
|
|
1820
|
-
tmp_3.
|
|
1824
|
+
tmp_3.PROPERTY_EOF_ACTION_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda);
|
|
1821
1825
|
var tmp_4 = this;
|
|
1822
|
-
tmp_4.
|
|
1826
|
+
tmp_4.PROPERTY_ALIAS_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda);
|
|
1823
1827
|
var tmp_5 = this;
|
|
1824
|
-
tmp_5.
|
|
1828
|
+
tmp_5.PROPERTY_INPUT$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda);
|
|
1825
1829
|
var tmp_6 = this;
|
|
1826
|
-
tmp_6.
|
|
1830
|
+
tmp_6.PROPERTY_OUTPUT$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda);
|
|
1827
1831
|
var tmp_7 = this;
|
|
1828
|
-
tmp_7.
|
|
1832
|
+
tmp_7.PROPERTY_TYPE_TEXT$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda);
|
|
1829
1833
|
var tmp_8 = this;
|
|
1830
|
-
tmp_8.
|
|
1834
|
+
tmp_8.PROPERTY_REPOSITION_FALSE$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda);
|
|
1831
1835
|
var tmp_9 = this;
|
|
1832
|
-
tmp_9.
|
|
1836
|
+
tmp_9.PROPERTY_EOF_ACTION_EOF_CODE$delegate_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda);
|
|
1833
1837
|
var tmp_10 = this;
|
|
1834
|
-
tmp_10.
|
|
1838
|
+
tmp_10.OPTION_QUOTED_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda);
|
|
1835
1839
|
var tmp_11 = this;
|
|
1836
|
-
tmp_11.
|
|
1840
|
+
tmp_11.OPTION_NUMBER_VARS_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda);
|
|
1837
1841
|
var tmp_12 = this;
|
|
1838
|
-
tmp_12.
|
|
1842
|
+
tmp_12.OPTION_IGNORE_OPS_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda);
|
|
1839
1843
|
var tmp_13 = this;
|
|
1840
|
-
tmp_13.
|
|
1844
|
+
tmp_13.INFO_VARIABLES_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda);
|
|
1841
1845
|
var tmp_14 = this;
|
|
1842
|
-
tmp_14.
|
|
1846
|
+
tmp_14.INFO_VARIABLE_NAMES_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda);
|
|
1843
1847
|
var tmp_15 = this;
|
|
1844
|
-
tmp_15.
|
|
1848
|
+
tmp_15.INFO_SINGLETONS_PATTERN$delegate_1 = lazy(IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda);
|
|
1845
1849
|
}
|
|
1846
|
-
protoOf(IOPrimitiveUtils).
|
|
1850
|
+
protoOf(IOPrimitiveUtils).propertiesOf_hpcm76_k$ = function (_this__u8e3s4, channel) {
|
|
1847
1851
|
return sequence(IOPrimitiveUtils$propertiesOf$slambda_0(channel, _this__u8e3s4, null));
|
|
1848
1852
|
};
|
|
1849
|
-
protoOf(IOPrimitiveUtils).
|
|
1853
|
+
protoOf(IOPrimitiveUtils).get_currentInputChannel_31908p_k$ = function (_this__u8e3s4) {
|
|
1850
1854
|
// Inline function 'kotlin.let' call
|
|
1851
|
-
var it = _this__u8e3s4.context.
|
|
1852
|
-
var tmp0_elvis_lhs = it.
|
|
1853
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1855
|
+
var it = _this__u8e3s4.context.get_inputChannels_uyf05t_k$();
|
|
1856
|
+
var tmp0_elvis_lhs = it.get_current_jwi6j4_k$();
|
|
1857
|
+
return tmp0_elvis_lhs == null ? it.get_stdIn_iypyf3_k$() : tmp0_elvis_lhs;
|
|
1854
1858
|
};
|
|
1855
|
-
protoOf(IOPrimitiveUtils).
|
|
1859
|
+
protoOf(IOPrimitiveUtils).get_currentOutputChannel_jl8tcy_k$ = function (_this__u8e3s4) {
|
|
1856
1860
|
// Inline function 'kotlin.let' call
|
|
1857
|
-
var it = _this__u8e3s4.context.
|
|
1858
|
-
var tmp0_elvis_lhs = it.
|
|
1859
|
-
return tmp0_elvis_lhs == null ? it.
|
|
1861
|
+
var it = _this__u8e3s4.context.get_outputChannels_ffvoca_k$();
|
|
1862
|
+
var tmp0_elvis_lhs = it.get_current_jwi6j4_k$();
|
|
1863
|
+
return tmp0_elvis_lhs == null ? it.get_stdOut_jngbw4_k$() : tmp0_elvis_lhs;
|
|
1860
1864
|
};
|
|
1861
|
-
protoOf(IOPrimitiveUtils).
|
|
1865
|
+
protoOf(IOPrimitiveUtils).ensureTermIsValidProperty_oi9oag_k$ = function (_this__u8e3s4, term) {
|
|
1862
1866
|
var tmp;
|
|
1863
1867
|
var tmp0 = _get_validPropertiesPattern__7s1t06(this);
|
|
1864
1868
|
var tmp$ret$0;
|
|
1865
1869
|
$l$block: {
|
|
1866
1870
|
// Inline function 'kotlin.sequences.any' call
|
|
1867
|
-
var _iterator__ex2g4s = tmp0.
|
|
1868
|
-
while (_iterator__ex2g4s.
|
|
1869
|
-
var element = _iterator__ex2g4s.
|
|
1870
|
-
if (Companion_getInstance_1().
|
|
1871
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1872
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1873
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1874
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, element)) {
|
|
1871
1875
|
tmp$ret$0 = true;
|
|
1872
1876
|
break $l$block;
|
|
1873
1877
|
}
|
|
@@ -1877,20 +1881,20 @@
|
|
|
1877
1881
|
if (tmp$ret$0) {
|
|
1878
1882
|
tmp = term;
|
|
1879
1883
|
} else {
|
|
1880
|
-
throw
|
|
1884
|
+
throw Companion_instance_6.forTerm(_this__u8e3s4.context, Expected_STREAM_PROPERTY_getInstance(), term);
|
|
1881
1885
|
}
|
|
1882
1886
|
return tmp;
|
|
1883
1887
|
};
|
|
1884
|
-
protoOf(IOPrimitiveUtils).
|
|
1888
|
+
protoOf(IOPrimitiveUtils).ensureTermIsSupportedProperty_mx21q2_k$ = function (_this__u8e3s4, term) {
|
|
1885
1889
|
var tmp;
|
|
1886
1890
|
var tmp0 = _get_supportedPropertiesPattern__x8u7bw(this);
|
|
1887
1891
|
var tmp$ret$0;
|
|
1888
1892
|
$l$block: {
|
|
1889
1893
|
// Inline function 'kotlin.sequences.any' call
|
|
1890
|
-
var _iterator__ex2g4s = tmp0.
|
|
1891
|
-
while (_iterator__ex2g4s.
|
|
1892
|
-
var element = _iterator__ex2g4s.
|
|
1893
|
-
if (Companion_getInstance_1().
|
|
1894
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1895
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1896
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1897
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, element)) {
|
|
1894
1898
|
tmp$ret$0 = true;
|
|
1895
1899
|
break $l$block;
|
|
1896
1900
|
}
|
|
@@ -1900,20 +1904,20 @@
|
|
|
1900
1904
|
if (tmp$ret$0) {
|
|
1901
1905
|
tmp = term;
|
|
1902
1906
|
} else {
|
|
1903
|
-
throw
|
|
1907
|
+
throw Companion_instance_2.forUncaughtKtException(_this__u8e3s4.context, IllegalStateException_init_$Create$('unsupported option ' + term.toString()));
|
|
1904
1908
|
}
|
|
1905
1909
|
return tmp;
|
|
1906
1910
|
};
|
|
1907
|
-
protoOf(IOPrimitiveUtils).
|
|
1911
|
+
protoOf(IOPrimitiveUtils).ensureTermIsValidOption_h5jq8o_k$ = function (_this__u8e3s4, term) {
|
|
1908
1912
|
var tmp;
|
|
1909
1913
|
var tmp0 = _get_validOptionsPattern__akhsd9(this);
|
|
1910
1914
|
var tmp$ret$0;
|
|
1911
1915
|
$l$block: {
|
|
1912
1916
|
// Inline function 'kotlin.sequences.any' call
|
|
1913
|
-
var _iterator__ex2g4s = tmp0.
|
|
1914
|
-
while (_iterator__ex2g4s.
|
|
1915
|
-
var element = _iterator__ex2g4s.
|
|
1916
|
-
if (Companion_getInstance_1().
|
|
1917
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1918
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1919
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1920
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, element)) {
|
|
1917
1921
|
tmp$ret$0 = true;
|
|
1918
1922
|
break $l$block;
|
|
1919
1923
|
}
|
|
@@ -1923,20 +1927,20 @@
|
|
|
1923
1927
|
if (tmp$ret$0) {
|
|
1924
1928
|
tmp = term;
|
|
1925
1929
|
} else {
|
|
1926
|
-
throw
|
|
1930
|
+
throw Companion_instance_6.forTerm(_this__u8e3s4.context, Expected_WRITE_OPTION_getInstance(), term);
|
|
1927
1931
|
}
|
|
1928
1932
|
return tmp;
|
|
1929
1933
|
};
|
|
1930
|
-
protoOf(IOPrimitiveUtils).
|
|
1934
|
+
protoOf(IOPrimitiveUtils).ensureTermIsValidInfo_3ox2in_k$ = function (_this__u8e3s4, term) {
|
|
1931
1935
|
var tmp;
|
|
1932
1936
|
var tmp0 = _get_validInfoPattern__dtwgth(this);
|
|
1933
1937
|
var tmp$ret$0;
|
|
1934
1938
|
$l$block: {
|
|
1935
1939
|
// Inline function 'kotlin.sequences.any' call
|
|
1936
|
-
var _iterator__ex2g4s = tmp0.
|
|
1937
|
-
while (_iterator__ex2g4s.
|
|
1938
|
-
var element = _iterator__ex2g4s.
|
|
1939
|
-
if (Companion_getInstance_1().
|
|
1940
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1941
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1942
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1943
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, element)) {
|
|
1940
1944
|
tmp$ret$0 = true;
|
|
1941
1945
|
break $l$block;
|
|
1942
1946
|
}
|
|
@@ -1946,61 +1950,61 @@
|
|
|
1946
1950
|
if (tmp$ret$0) {
|
|
1947
1951
|
tmp = term;
|
|
1948
1952
|
} else {
|
|
1949
|
-
throw
|
|
1953
|
+
throw Companion_instance_6.forTerm(_this__u8e3s4.context, Expected_READ_OPTION_getInstance(), term);
|
|
1950
1954
|
}
|
|
1951
1955
|
return tmp;
|
|
1952
1956
|
};
|
|
1953
|
-
protoOf(IOPrimitiveUtils).
|
|
1954
|
-
Companion_getInstance_1().
|
|
1955
|
-
var tmp = _this__u8e3s4.arguments.
|
|
1957
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsValidOptionList_bsr8l1_k$ = function (_this__u8e3s4, index) {
|
|
1958
|
+
Companion_getInstance_1().ensuringArgumentIsList_n20mbc_k$(_this__u8e3s4, index);
|
|
1959
|
+
var tmp = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
1956
1960
|
var list = isInterface(tmp, List) ? tmp : THROW_CCE();
|
|
1957
|
-
var _iterator__ex2g4s = list.
|
|
1958
|
-
while (_iterator__ex2g4s.
|
|
1959
|
-
var term = _iterator__ex2g4s.
|
|
1960
|
-
this.
|
|
1961
|
+
var _iterator__ex2g4s = list.toSequence_lzjcyk_k$().iterator_jk1svi_k$();
|
|
1962
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1963
|
+
var term = _iterator__ex2g4s.next_20eer_k$();
|
|
1964
|
+
this.ensureTermIsValidOption_h5jq8o_k$(_this__u8e3s4, term);
|
|
1961
1965
|
}
|
|
1962
1966
|
return _this__u8e3s4;
|
|
1963
1967
|
};
|
|
1964
|
-
protoOf(IOPrimitiveUtils).
|
|
1965
|
-
var list = _this__u8e3s4.arguments.
|
|
1968
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsValidInfoList_2j0pim_k$ = function (_this__u8e3s4, index) {
|
|
1969
|
+
var list = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
1966
1970
|
var tmp;
|
|
1967
1971
|
if (isInterface(list, Var)) {
|
|
1968
1972
|
tmp = null;
|
|
1969
1973
|
} else {
|
|
1970
|
-
Companion_getInstance_1().
|
|
1974
|
+
Companion_getInstance_1().ensuringArgumentIsList_n20mbc_k$(_this__u8e3s4, index);
|
|
1971
1975
|
var listOfInfo = (isInterface(list, List) ? list : THROW_CCE()).toList();
|
|
1972
|
-
var _iterator__ex2g4s = listOfInfo.
|
|
1973
|
-
while (_iterator__ex2g4s.
|
|
1974
|
-
var term = _iterator__ex2g4s.
|
|
1975
|
-
this.
|
|
1976
|
+
var _iterator__ex2g4s = listOfInfo.iterator_jk1svi_k$();
|
|
1977
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1978
|
+
var term = _iterator__ex2g4s.next_20eer_k$();
|
|
1979
|
+
this.ensureTermIsValidInfo_3ox2in_k$(_this__u8e3s4, term);
|
|
1976
1980
|
}
|
|
1977
1981
|
tmp = listOfInfo;
|
|
1978
1982
|
}
|
|
1979
1983
|
return tmp;
|
|
1980
1984
|
};
|
|
1981
|
-
protoOf(IOPrimitiveUtils).
|
|
1982
|
-
this.
|
|
1983
|
-
var tmp = _this__u8e3s4.arguments.
|
|
1985
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsFormatter_5l8dg0_k$ = function (_this__u8e3s4, index) {
|
|
1986
|
+
this.ensuringArgumentIsValidOptionList_bsr8l1_k$(_this__u8e3s4, index);
|
|
1987
|
+
var tmp = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
1984
1988
|
var optionList = (isInterface(tmp, List) ? tmp : THROW_CCE()).toList();
|
|
1985
1989
|
var tmp_0;
|
|
1986
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
1990
|
+
if (getOption(this, optionList, _this__u8e3s4.context.get_unificator_xw6v3j_k$(), _get_OPTION_QUOTED_PATTERN__n2ri42(this))) {
|
|
1987
1991
|
tmp_0 = FuncFormat_QUOTED_IF_NECESSARY_getInstance();
|
|
1988
1992
|
} else {
|
|
1989
1993
|
tmp_0 = FuncFormat_LITERAL_getInstance();
|
|
1990
1994
|
}
|
|
1991
1995
|
var funcFormat = tmp_0;
|
|
1992
1996
|
var tmp_1;
|
|
1993
|
-
if (getOption(this, optionList, _this__u8e3s4.context.
|
|
1997
|
+
if (getOption(this, optionList, _this__u8e3s4.context.get_unificator_xw6v3j_k$(), _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(this))) {
|
|
1994
1998
|
tmp_1 = OpFormat_IGNORE_OPERATORS_getInstance();
|
|
1995
1999
|
} else {
|
|
1996
2000
|
tmp_1 = OpFormat_EXPRESSIONS_getInstance();
|
|
1997
2001
|
}
|
|
1998
2002
|
var opFormat = tmp_1;
|
|
1999
|
-
var numberVars = getOption(this, optionList, _this__u8e3s4.context.
|
|
2000
|
-
return
|
|
2003
|
+
var numberVars = getOption(this, optionList, _this__u8e3s4.context.get_unificator_xw6v3j_k$(), _get_OPTION_NUMBER_VARS_PATTERN__p98ste(this));
|
|
2004
|
+
return Companion_instance_7.of(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.get_operators_z0nmfu_k$());
|
|
2001
2005
|
};
|
|
2002
|
-
protoOf(IOPrimitiveUtils).
|
|
2003
|
-
var term = _this__u8e3s4.arguments.
|
|
2006
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsStreamProperty_6yg2an_k$ = function (_this__u8e3s4, index) {
|
|
2007
|
+
var term = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2004
2008
|
if (isInterface(term, Var))
|
|
2005
2009
|
return _this__u8e3s4;
|
|
2006
2010
|
else {
|
|
@@ -2009,10 +2013,10 @@
|
|
|
2009
2013
|
var tmp$ret$0;
|
|
2010
2014
|
$l$block: {
|
|
2011
2015
|
// Inline function 'kotlin.sequences.any' call
|
|
2012
|
-
var _iterator__ex2g4s = tmp0.
|
|
2013
|
-
while (_iterator__ex2g4s.
|
|
2014
|
-
var element = _iterator__ex2g4s.
|
|
2015
|
-
if (Companion_getInstance_1().
|
|
2016
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
2017
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2018
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2019
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, element)) {
|
|
2016
2020
|
tmp$ret$0 = true;
|
|
2017
2021
|
break $l$block;
|
|
2018
2022
|
}
|
|
@@ -2024,17 +2028,17 @@
|
|
|
2024
2028
|
}
|
|
2025
2029
|
}
|
|
2026
2030
|
}
|
|
2027
|
-
throw
|
|
2031
|
+
throw Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_PROPERTY_getInstance(), term, index);
|
|
2028
2032
|
};
|
|
2029
|
-
protoOf(IOPrimitiveUtils).
|
|
2030
|
-
Companion_getInstance_1().
|
|
2031
|
-
var term = _this__u8e3s4.arguments.
|
|
2032
|
-
var error =
|
|
2033
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsUrl_7mlsff_k$ = function (_this__u8e3s4, index) {
|
|
2034
|
+
Companion_getInstance_1().ensuringArgumentIsInstantiated_dpjvac_k$(_this__u8e3s4, index);
|
|
2035
|
+
var term = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2036
|
+
var error = Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_SOURCE_SINK_getInstance(), term, index);
|
|
2033
2037
|
if (!isInterface(term, Atom)) {
|
|
2034
2038
|
throw error;
|
|
2035
2039
|
}
|
|
2036
2040
|
try {
|
|
2037
|
-
return
|
|
2041
|
+
return Companion_instance_15.of(term.get_value_j01efc_k$());
|
|
2038
2042
|
} catch ($p) {
|
|
2039
2043
|
if ($p instanceof InvalidUrlException) {
|
|
2040
2044
|
var _unused_var__etf5q3 = $p;
|
|
@@ -2044,83 +2048,83 @@
|
|
|
2044
2048
|
}
|
|
2045
2049
|
}
|
|
2046
2050
|
};
|
|
2047
|
-
protoOf(IOPrimitiveUtils).
|
|
2048
|
-
Companion_getInstance_1().
|
|
2049
|
-
Companion_getInstance_1().
|
|
2050
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2051
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsIOMode_v61n1v_k$ = function (_this__u8e3s4, index) {
|
|
2052
|
+
Companion_getInstance_1().ensuringArgumentIsInstantiated_dpjvac_k$(_this__u8e3s4, index);
|
|
2053
|
+
Companion_getInstance_1().ensuringArgumentIsAtom_5kuj97_k$(_this__u8e3s4, index);
|
|
2054
|
+
var tmp = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2051
2055
|
var term = isInterface(tmp, Atom) ? tmp : THROW_CCE();
|
|
2052
|
-
if (!Companion_getInstance_8().
|
|
2053
|
-
throw
|
|
2056
|
+
if (!Companion_getInstance_8().atomValues_1.contains_aljjnj_k$(term)) {
|
|
2057
|
+
throw Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IO_MODE_getInstance(), term, index);
|
|
2054
2058
|
}
|
|
2055
2059
|
// Inline function 'kotlin.text.uppercase' call
|
|
2056
2060
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2057
|
-
var tmp$ret$0 = term.
|
|
2061
|
+
var tmp$ret$0 = term.get_value_j01efc_k$().toUpperCase();
|
|
2058
2062
|
return valueOf(tmp$ret$0);
|
|
2059
2063
|
};
|
|
2060
|
-
protoOf(IOPrimitiveUtils).
|
|
2061
|
-
var term = _this__u8e3s4.arguments.
|
|
2064
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsVarOrStream_l86imo_k$ = function (_this__u8e3s4, index) {
|
|
2065
|
+
var term = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2062
2066
|
if (isInterface(term, Var))
|
|
2063
2067
|
return null;
|
|
2064
2068
|
else {
|
|
2065
2069
|
if (isInterface(term, Struct))
|
|
2066
|
-
if (Companion_getInstance_1().
|
|
2067
|
-
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2070
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2071
|
+
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.get_outputChannels_ffvoca_k$().findByTerm(term));
|
|
2068
2072
|
var tmp;
|
|
2069
2073
|
if (tmp1_elvis_lhs == null) {
|
|
2070
|
-
throw
|
|
2074
|
+
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
2071
2075
|
} else {
|
|
2072
2076
|
tmp = tmp1_elvis_lhs;
|
|
2073
2077
|
}
|
|
2074
2078
|
return tmp;
|
|
2075
|
-
} else if (Companion_getInstance_1().
|
|
2076
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2079
|
+
} else if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2080
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.get_inputChannels_uyf05t_k$().findByTerm(term));
|
|
2077
2081
|
var tmp_0;
|
|
2078
2082
|
if (tmp2_elvis_lhs == null) {
|
|
2079
|
-
throw
|
|
2083
|
+
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
2080
2084
|
} else {
|
|
2081
2085
|
tmp_0 = tmp2_elvis_lhs;
|
|
2082
2086
|
}
|
|
2083
2087
|
return tmp_0;
|
|
2084
2088
|
}
|
|
2085
2089
|
}
|
|
2086
|
-
throw
|
|
2090
|
+
throw Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2087
2091
|
};
|
|
2088
|
-
protoOf(IOPrimitiveUtils).
|
|
2089
|
-
var arg = _this__u8e3s4.arguments.
|
|
2092
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsVarOrChar_zdzofu_k$ = function (_this__u8e3s4, index) {
|
|
2093
|
+
var arg = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2090
2094
|
var tmp;
|
|
2091
2095
|
if (isInterface(arg, Var)) {
|
|
2092
2096
|
tmp = _this__u8e3s4;
|
|
2093
2097
|
} else {
|
|
2094
2098
|
if (isInterface(arg, Atom)) {
|
|
2095
2099
|
var tmp_0;
|
|
2096
|
-
if (arg.
|
|
2100
|
+
if (arg.get_value_j01efc_k$() === 'end_of_file') {
|
|
2097
2101
|
tmp_0 = _this__u8e3s4;
|
|
2098
|
-
} else if (arg.
|
|
2102
|
+
} else if (arg.get_value_j01efc_k$().length === 1) {
|
|
2099
2103
|
tmp_0 = _this__u8e3s4;
|
|
2100
2104
|
} else {
|
|
2101
|
-
throw
|
|
2105
|
+
throw Companion_instance_3.forArgument_yebqg_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2102
2106
|
}
|
|
2103
2107
|
tmp = tmp_0;
|
|
2104
2108
|
} else {
|
|
2105
|
-
throw
|
|
2109
|
+
throw Companion_instance_3.forArgument_yebqg_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2106
2110
|
}
|
|
2107
2111
|
}
|
|
2108
2112
|
return tmp;
|
|
2109
2113
|
};
|
|
2110
|
-
protoOf(IOPrimitiveUtils).
|
|
2111
|
-
var term = _this__u8e3s4.arguments.
|
|
2114
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsVarOrCharCode_tmh0sz_k$ = function (_this__u8e3s4, index) {
|
|
2115
|
+
var term = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2112
2116
|
var tmp;
|
|
2113
2117
|
if (isInterface(term, Var)) {
|
|
2114
2118
|
tmp = _this__u8e3s4;
|
|
2115
2119
|
} else {
|
|
2116
2120
|
if (!isInterface(term, Integer)) {
|
|
2117
|
-
tmp = Companion_getInstance_1().
|
|
2121
|
+
tmp = Companion_getInstance_1().ensuringArgumentIsInteger_boj9pg_k$(_this__u8e3s4, index);
|
|
2118
2122
|
} else {
|
|
2119
|
-
if (term.equals(Companion_getInstance_6().
|
|
2123
|
+
if (term.equals(Companion_getInstance_6().MINUS_ONE_1)) {
|
|
2120
2124
|
tmp = _this__u8e3s4;
|
|
2121
2125
|
} else {
|
|
2122
|
-
if (Companion_getInstance_1().
|
|
2123
|
-
throw
|
|
2126
|
+
if (Companion_getInstance_1().isCharacterCode_a1ooqa_k$(term)) {
|
|
2127
|
+
throw Companion_instance_9.of(_this__u8e3s4.context, _this__u8e3s4.signature, Limit_CHARACTER_CODE_getInstance());
|
|
2124
2128
|
} else {
|
|
2125
2129
|
tmp = _this__u8e3s4;
|
|
2126
2130
|
}
|
|
@@ -2129,24 +2133,24 @@
|
|
|
2129
2133
|
}
|
|
2130
2134
|
return tmp;
|
|
2131
2135
|
};
|
|
2132
|
-
protoOf(IOPrimitiveUtils).
|
|
2133
|
-
Companion_getInstance_1().
|
|
2134
|
-
Companion_getInstance_1().
|
|
2135
|
-
var tmp = _this__u8e3s4.arguments.
|
|
2136
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsChannel_ed79nb_k$ = function (_this__u8e3s4, index) {
|
|
2137
|
+
Companion_getInstance_1().ensuringArgumentIsInstantiated_dpjvac_k$(_this__u8e3s4, index);
|
|
2138
|
+
Companion_getInstance_1().ensuringArgumentIsStruct_lk4yyp_k$(_this__u8e3s4, index);
|
|
2139
|
+
var tmp = _this__u8e3s4.arguments.get_c1px32_k$(index);
|
|
2136
2140
|
var term = isInterface(tmp, Struct) ? tmp : THROW_CCE();
|
|
2137
2141
|
var tmp_0;
|
|
2138
2142
|
if (isInterface(term, Atom)) {
|
|
2139
|
-
var tmp0 = sequenceOf([_this__u8e3s4.context.
|
|
2143
|
+
var tmp0 = sequenceOf([_this__u8e3s4.context.get_inputChannels_uyf05t_k$(), _this__u8e3s4.context.get_outputChannels_ffvoca_k$()]);
|
|
2140
2144
|
var tmp$ret$0;
|
|
2141
2145
|
$l$block: {
|
|
2142
2146
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2143
|
-
var _iterator__ex2g4s = tmp0.
|
|
2144
|
-
while (_iterator__ex2g4s.
|
|
2145
|
-
var element = _iterator__ex2g4s.
|
|
2147
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
2148
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2149
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2146
2150
|
// Inline function 'kotlin.collections.contains' call
|
|
2147
2151
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2148
|
-
var key = term.
|
|
2149
|
-
if ((isInterface(element, KtMap) ? element : THROW_CCE()).
|
|
2152
|
+
var key = term.get_value_j01efc_k$();
|
|
2153
|
+
if ((isInterface(element, KtMap) ? element : THROW_CCE()).containsKey_aw81wo_k$(key)) {
|
|
2150
2154
|
tmp$ret$0 = element;
|
|
2151
2155
|
break $l$block;
|
|
2152
2156
|
}
|
|
@@ -2154,62 +2158,62 @@
|
|
|
2154
2158
|
tmp$ret$0 = null;
|
|
2155
2159
|
}
|
|
2156
2160
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2157
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2161
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_wei43m_k$(term.get_value_j01efc_k$());
|
|
2158
2162
|
var tmp_1;
|
|
2159
2163
|
if (tmp1_elvis_lhs == null) {
|
|
2160
|
-
throw
|
|
2164
|
+
throw Companion_instance_8.forSourceSink(_this__u8e3s4.context, term);
|
|
2161
2165
|
} else {
|
|
2162
2166
|
tmp_1 = tmp1_elvis_lhs;
|
|
2163
2167
|
}
|
|
2164
2168
|
tmp_0 = tmp_1;
|
|
2165
2169
|
} else {
|
|
2166
|
-
if (Companion_getInstance_1().
|
|
2167
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2170
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
2171
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.get_outputChannels_ffvoca_k$().findByTerm(term));
|
|
2168
2172
|
var tmp_2;
|
|
2169
2173
|
if (tmp2_elvis_lhs == null) {
|
|
2170
|
-
throw
|
|
2174
|
+
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
2171
2175
|
} else {
|
|
2172
2176
|
tmp_2 = tmp2_elvis_lhs;
|
|
2173
2177
|
}
|
|
2174
2178
|
tmp_0 = tmp_2;
|
|
2175
2179
|
} else {
|
|
2176
|
-
if (Companion_getInstance_1().
|
|
2177
|
-
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
2180
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
2181
|
+
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.get_inputChannels_uyf05t_k$().findByTerm(term));
|
|
2178
2182
|
var tmp_3;
|
|
2179
2183
|
if (tmp3_elvis_lhs == null) {
|
|
2180
|
-
throw
|
|
2184
|
+
throw Companion_instance_8.forStream(_this__u8e3s4.context, term);
|
|
2181
2185
|
} else {
|
|
2182
2186
|
tmp_3 = tmp3_elvis_lhs;
|
|
2183
2187
|
}
|
|
2184
2188
|
tmp_0 = tmp_3;
|
|
2185
2189
|
} else {
|
|
2186
|
-
throw
|
|
2190
|
+
throw Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2187
2191
|
}
|
|
2188
2192
|
}
|
|
2189
2193
|
}
|
|
2190
2194
|
return tmp_0;
|
|
2191
2195
|
};
|
|
2192
|
-
protoOf(IOPrimitiveUtils).
|
|
2193
|
-
var channel = this.
|
|
2196
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsInputChannel_w9cvb1_k$ = function (_this__u8e3s4, index) {
|
|
2197
|
+
var channel = this.ensuringArgumentIsChannel_ed79nb_k$(_this__u8e3s4, index);
|
|
2194
2198
|
var tmp;
|
|
2195
2199
|
if (isInterface(channel, InputChannel)) {
|
|
2196
2200
|
tmp = channel;
|
|
2197
2201
|
} else {
|
|
2198
|
-
throw
|
|
2202
|
+
throw Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.get_c1px32_k$(index), index);
|
|
2199
2203
|
}
|
|
2200
2204
|
return tmp;
|
|
2201
2205
|
};
|
|
2202
|
-
protoOf(IOPrimitiveUtils).
|
|
2203
|
-
var channel = this.
|
|
2206
|
+
protoOf(IOPrimitiveUtils).ensuringArgumentIsOutputChannel_kmdrtk_k$ = function (_this__u8e3s4, index) {
|
|
2207
|
+
var channel = this.ensuringArgumentIsChannel_ed79nb_k$(_this__u8e3s4, index);
|
|
2204
2208
|
var tmp;
|
|
2205
2209
|
if (isInterface(channel, OutputChannel)) {
|
|
2206
2210
|
tmp = channel;
|
|
2207
2211
|
} else {
|
|
2208
|
-
throw
|
|
2212
|
+
throw Companion_instance_6.forArgument_dk3wrm_k$(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.get_c1px32_k$(index), index);
|
|
2209
2213
|
}
|
|
2210
2214
|
return tmp;
|
|
2211
2215
|
};
|
|
2212
|
-
protoOf(IOPrimitiveUtils).
|
|
2216
|
+
protoOf(IOPrimitiveUtils).writeTermAndReply_wyva0k_k$ = function (_this__u8e3s4, channel, term, formatter) {
|
|
2213
2217
|
var tmp;
|
|
2214
2218
|
try {
|
|
2215
2219
|
channel.write(format(term, formatter));
|
|
@@ -2226,10 +2230,10 @@
|
|
|
2226
2230
|
}
|
|
2227
2231
|
return tmp;
|
|
2228
2232
|
};
|
|
2229
|
-
protoOf(IOPrimitiveUtils).
|
|
2233
|
+
protoOf(IOPrimitiveUtils).writeCodeAndReply_pk9m0p_k$ = function (_this__u8e3s4, channel, arg) {
|
|
2230
2234
|
var tmp;
|
|
2231
2235
|
try {
|
|
2232
|
-
channel.write(toString_0(arg.
|
|
2236
|
+
channel.write(toString_0(arg.get_intValue_mlvnn9_k$().toChar()));
|
|
2233
2237
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2234
2238
|
} catch ($p) {
|
|
2235
2239
|
var tmp_0;
|
|
@@ -2243,10 +2247,10 @@
|
|
|
2243
2247
|
}
|
|
2244
2248
|
return tmp;
|
|
2245
2249
|
};
|
|
2246
|
-
protoOf(IOPrimitiveUtils).
|
|
2250
|
+
protoOf(IOPrimitiveUtils).writeCharAndReply_7fanoe_k$ = function (_this__u8e3s4, channel, arg) {
|
|
2247
2251
|
var tmp;
|
|
2248
2252
|
try {
|
|
2249
|
-
channel.write(arg.
|
|
2253
|
+
channel.write(arg.get_value_j01efc_k$());
|
|
2250
2254
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2251
2255
|
} catch ($p) {
|
|
2252
2256
|
var tmp_0;
|
|
@@ -2260,7 +2264,7 @@
|
|
|
2260
2264
|
}
|
|
2261
2265
|
return tmp;
|
|
2262
2266
|
};
|
|
2263
|
-
protoOf(IOPrimitiveUtils).
|
|
2267
|
+
protoOf(IOPrimitiveUtils).peekCodeAndReply_y06qz3_k$ = function (_this__u8e3s4, channel, arg) {
|
|
2264
2268
|
var tmp;
|
|
2265
2269
|
try {
|
|
2266
2270
|
var tmp0_safe_receiver = channel.peek();
|
|
@@ -2275,7 +2279,7 @@
|
|
|
2275
2279
|
}
|
|
2276
2280
|
var tmp2_elvis_lhs = tmp_0;
|
|
2277
2281
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2278
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2282
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2279
2283
|
} catch ($p) {
|
|
2280
2284
|
var tmp_2;
|
|
2281
2285
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2288,12 +2292,12 @@
|
|
|
2288
2292
|
}
|
|
2289
2293
|
return tmp;
|
|
2290
2294
|
};
|
|
2291
|
-
protoOf(IOPrimitiveUtils).
|
|
2295
|
+
protoOf(IOPrimitiveUtils).peekCharAndReply_r80pc6_k$ = function (_this__u8e3s4, channel, arg) {
|
|
2292
2296
|
var tmp;
|
|
2293
2297
|
try {
|
|
2294
2298
|
var tmp0_elvis_lhs = channel.peek();
|
|
2295
2299
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2296
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2300
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2297
2301
|
} catch ($p) {
|
|
2298
2302
|
var tmp_0;
|
|
2299
2303
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2306,7 +2310,7 @@
|
|
|
2306
2310
|
}
|
|
2307
2311
|
return tmp;
|
|
2308
2312
|
};
|
|
2309
|
-
protoOf(IOPrimitiveUtils).
|
|
2313
|
+
protoOf(IOPrimitiveUtils).readCodeAndReply_m7r1zg_k$ = function (_this__u8e3s4, channel, arg) {
|
|
2310
2314
|
var tmp;
|
|
2311
2315
|
try {
|
|
2312
2316
|
var tmp0_safe_receiver = channel.read();
|
|
@@ -2321,7 +2325,7 @@
|
|
|
2321
2325
|
}
|
|
2322
2326
|
var tmp2_elvis_lhs = tmp_0;
|
|
2323
2327
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2324
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2328
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2325
2329
|
} catch ($p) {
|
|
2326
2330
|
var tmp_2;
|
|
2327
2331
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2334,12 +2338,12 @@
|
|
|
2334
2338
|
}
|
|
2335
2339
|
return tmp;
|
|
2336
2340
|
};
|
|
2337
|
-
protoOf(IOPrimitiveUtils).
|
|
2341
|
+
protoOf(IOPrimitiveUtils).readCharAndReply_szx3md_k$ = function (_this__u8e3s4, channel, arg) {
|
|
2338
2342
|
var tmp;
|
|
2339
2343
|
try {
|
|
2340
2344
|
var tmp0_elvis_lhs = channel.read();
|
|
2341
2345
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2342
|
-
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2346
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2343
2347
|
} catch ($p) {
|
|
2344
2348
|
var tmp_0;
|
|
2345
2349
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2352,48 +2356,48 @@
|
|
|
2352
2356
|
}
|
|
2353
2357
|
return tmp;
|
|
2354
2358
|
};
|
|
2355
|
-
protoOf(IOPrimitiveUtils).
|
|
2359
|
+
protoOf(IOPrimitiveUtils).readTermAndReply_11biz4_k$ = function (_this__u8e3s4, channel, arg, lastIsInfoList) {
|
|
2356
2360
|
try {
|
|
2357
|
-
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.
|
|
2361
|
+
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.get_operators_z0nmfu_k$());
|
|
2358
2362
|
var tmp;
|
|
2359
2363
|
if (lastIsInfoList) {
|
|
2360
|
-
tmp = this.
|
|
2364
|
+
tmp = this.ensuringArgumentIsValidInfoList_2j0pim_k$(_this__u8e3s4, get_lastIndex(_this__u8e3s4.arguments));
|
|
2361
2365
|
} else {
|
|
2362
2366
|
tmp = emptyList();
|
|
2363
2367
|
}
|
|
2364
2368
|
var infoList = tmp;
|
|
2365
|
-
if (!termsChannel.
|
|
2369
|
+
if (!termsChannel.get_available_3mf9b4_k$())
|
|
2366
2370
|
return _this__u8e3s4.replyFail(VOID, []);
|
|
2367
2371
|
var read = termsChannel.read();
|
|
2368
2372
|
var tmp_0;
|
|
2369
2373
|
if (read == null) {
|
|
2370
2374
|
tmp_0 = _this__u8e3s4.replyFail(VOID, []);
|
|
2371
2375
|
} else {
|
|
2372
|
-
var variables_0 = variables(this, toList_0(read.
|
|
2373
|
-
var variableNames_0 = variableNames(this, toAssignments_0(this, read.
|
|
2376
|
+
var variables_0 = variables(this, toList_0(read.get_variables_75f0zy_k$()));
|
|
2377
|
+
var variableNames_0 = variableNames(this, toAssignments_0(this, read.get_variables_75f0zy_k$()));
|
|
2374
2378
|
var singletons_0 = singletons(this, toAssignments(this, _get_singletons__bihqrn(this, read)));
|
|
2375
2379
|
var tmp_1;
|
|
2376
2380
|
if (infoList == null) {
|
|
2377
2381
|
tmp_1 = null;
|
|
2378
2382
|
} else {
|
|
2379
2383
|
// Inline function 'kotlin.let' call
|
|
2380
|
-
var u = _this__u8e3s4.context.
|
|
2384
|
+
var u = _this__u8e3s4.context.get_unificator_xw6v3j_k$();
|
|
2381
2385
|
tmp_1 = getInfo(IOPrimitiveUtils_getInstance(), infoList, u, _get_INFO_SINGLETONS_PATTERN__y21s87(IOPrimitiveUtils_getInstance()), singletons_0).plus(getInfo(IOPrimitiveUtils_getInstance(), infoList, u, _get_INFO_VARIABLES_PATTERN__bhp1h0(IOPrimitiveUtils_getInstance()), variables_0)).plus(getInfo(IOPrimitiveUtils_getInstance(), infoList, u, _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(IOPrimitiveUtils_getInstance()), variableNames_0));
|
|
2382
2386
|
}
|
|
2383
2387
|
var tmp1_elvis_lhs = tmp_1;
|
|
2384
|
-
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().
|
|
2385
|
-
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().
|
|
2388
|
+
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, last(_this__u8e3s4.arguments), Companion_instance_4.of([variables_0, variableNames_0, singletons_0])) : tmp1_elvis_lhs;
|
|
2389
|
+
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().mgu_jyyt35_k$(_this__u8e3s4, arg, read).plus(info), VOID, []);
|
|
2386
2390
|
}
|
|
2387
2391
|
return tmp_0;
|
|
2388
2392
|
} catch ($p) {
|
|
2389
2393
|
if ($p instanceof IllegalStateException) {
|
|
2390
2394
|
var e = $p;
|
|
2391
|
-
throw
|
|
2395
|
+
throw Companion_instance_2.forUncaughtKtException(_this__u8e3s4.context, e);
|
|
2392
2396
|
} else {
|
|
2393
2397
|
if ($p instanceof ParseException) {
|
|
2394
2398
|
var e_0 = $p;
|
|
2395
|
-
var tmp_2 =
|
|
2396
|
-
var tmp_3 = channel.
|
|
2399
|
+
var tmp_2 = Companion_instance_10;
|
|
2400
|
+
var tmp_3 = channel.get_streamTerm_v3iy6t_k$().toString();
|
|
2397
2401
|
var tmp_4 = e_0.line;
|
|
2398
2402
|
var tmp_5 = e_0.column;
|
|
2399
2403
|
var tmp2_elvis_lhs = e_0.message;
|
|
@@ -2404,19 +2408,19 @@
|
|
|
2404
2408
|
}
|
|
2405
2409
|
}
|
|
2406
2410
|
};
|
|
2407
|
-
protoOf(IOPrimitiveUtils).
|
|
2411
|
+
protoOf(IOPrimitiveUtils).readTermAndReply$default_yi3mi7_k$ = function (_this__u8e3s4, channel, arg, lastIsInfoList, $super) {
|
|
2408
2412
|
lastIsInfoList = lastIsInfoList === VOID ? false : lastIsInfoList;
|
|
2409
|
-
return $super === VOID ? this.
|
|
2413
|
+
return $super === VOID ? this.readTermAndReply_11biz4_k$(_this__u8e3s4, channel, arg, lastIsInfoList) : $super.readTermAndReply_11biz4_k$.call(this, _this__u8e3s4, channel, arg, lastIsInfoList);
|
|
2410
2414
|
};
|
|
2411
|
-
protoOf(IOPrimitiveUtils).
|
|
2412
|
-
var url = this.
|
|
2413
|
-
var mode = this.
|
|
2414
|
-
Companion_getInstance_1().
|
|
2415
|
+
protoOf(IOPrimitiveUtils).open_28mql5_k$ = function (_this__u8e3s4, third) {
|
|
2416
|
+
var url = this.ensuringArgumentIsUrl_7mlsff_k$(_this__u8e3s4, 0);
|
|
2417
|
+
var mode = this.ensuringArgumentIsIOMode_v61n1v_k$(_this__u8e3s4, 1);
|
|
2418
|
+
Companion_getInstance_1().ensuringArgumentIsVariable_9sv3x6_k$(_this__u8e3s4, 2);
|
|
2415
2419
|
var tmp;
|
|
2416
|
-
if (_this__u8e3s4.arguments.
|
|
2417
|
-
Companion_getInstance_1().
|
|
2418
|
-
var tmp_0 = _this__u8e3s4.arguments.
|
|
2419
|
-
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).
|
|
2420
|
+
if (_this__u8e3s4.arguments.get_size_woubt6_k$() >= 4) {
|
|
2421
|
+
Companion_getInstance_1().ensuringArgumentIsList_n20mbc_k$(_this__u8e3s4, 3);
|
|
2422
|
+
var tmp_0 = _this__u8e3s4.arguments.get_c1px32_k$(3);
|
|
2423
|
+
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).toSequence_lzjcyk_k$();
|
|
2420
2424
|
var tmp_2 = map(tmp_1, IOPrimitiveUtils$open$lambda(_this__u8e3s4));
|
|
2421
2425
|
tmp = toSet(map(tmp_2, IOPrimitiveUtils$open$lambda_0(_this__u8e3s4)));
|
|
2422
2426
|
} else {
|
|
@@ -2426,10 +2430,10 @@
|
|
|
2426
2430
|
var tmp$ret$0;
|
|
2427
2431
|
$l$block: {
|
|
2428
2432
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2429
|
-
var _iterator__ex2g4s = options.
|
|
2430
|
-
while (_iterator__ex2g4s.
|
|
2431
|
-
var element = _iterator__ex2g4s.
|
|
2432
|
-
if (Companion_getInstance_1().
|
|
2433
|
+
var _iterator__ex2g4s = options.iterator_jk1svi_k$();
|
|
2434
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2435
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2436
|
+
if (Companion_getInstance_1().match_tf8j11_k$(_this__u8e3s4, _get_PROPERTY_ALIAS_PATTERN__wipd2s(IOPrimitiveUtils_getInstance()), element)) {
|
|
2433
2437
|
tmp$ret$0 = element;
|
|
2434
2438
|
break $l$block;
|
|
2435
2439
|
}
|
|
@@ -2439,7 +2443,7 @@
|
|
|
2439
2443
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2440
2444
|
var alias = tmp0_safe_receiver == null ? null : _get_alias__jw26bj(this, tmp0_safe_receiver);
|
|
2441
2445
|
var tmp_3;
|
|
2442
|
-
switch (mode.
|
|
2446
|
+
switch (mode.ordinal_1) {
|
|
2443
2447
|
case 0:
|
|
2444
2448
|
tmp_3 = replyOpeningStream_0(this, _this__u8e3s4, openInputChannel(url), third, alias);
|
|
2445
2449
|
break;
|
|
@@ -2465,8 +2469,8 @@
|
|
|
2465
2469
|
Nl1_instance = this;
|
|
2466
2470
|
NonBacktrackable_0.call(this, 'nl');
|
|
2467
2471
|
}
|
|
2468
|
-
protoOf(Nl1).
|
|
2469
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2472
|
+
protoOf(Nl1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2473
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
2470
2474
|
var tmp;
|
|
2471
2475
|
try {
|
|
2472
2476
|
channel.write('\n');
|
|
@@ -2483,8 +2487,8 @@
|
|
|
2483
2487
|
}
|
|
2484
2488
|
return tmp;
|
|
2485
2489
|
};
|
|
2486
|
-
protoOf(Nl1).
|
|
2487
|
-
return this.
|
|
2490
|
+
protoOf(Nl1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2491
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2488
2492
|
};
|
|
2489
2493
|
var Nl1_instance;
|
|
2490
2494
|
function Nl1_getInstance() {
|
|
@@ -2496,11 +2500,11 @@
|
|
|
2496
2500
|
Open3_instance = this;
|
|
2497
2501
|
NonBacktrackable_1.call(this, 'open');
|
|
2498
2502
|
}
|
|
2499
|
-
protoOf(Open3).
|
|
2500
|
-
return IOPrimitiveUtils_getInstance().
|
|
2503
|
+
protoOf(Open3).computeOne_oq9h0q_k$ = function (_this__u8e3s4, first, second, third) {
|
|
2504
|
+
return IOPrimitiveUtils_getInstance().open_28mql5_k$(_this__u8e3s4, third);
|
|
2501
2505
|
};
|
|
2502
|
-
protoOf(Open3).
|
|
2503
|
-
return this.
|
|
2506
|
+
protoOf(Open3).computeOne_bappeh_k$ = function (_this__u8e3s4, first, second, third) {
|
|
2507
|
+
return this.computeOne_oq9h0q_k$(_this__u8e3s4, first, second, third);
|
|
2504
2508
|
};
|
|
2505
2509
|
var Open3_instance;
|
|
2506
2510
|
function Open3_getInstance() {
|
|
@@ -2512,11 +2516,11 @@
|
|
|
2512
2516
|
Open4_instance = this;
|
|
2513
2517
|
NonBacktrackable_2.call(this, 'open');
|
|
2514
2518
|
}
|
|
2515
|
-
protoOf(Open4).
|
|
2516
|
-
return IOPrimitiveUtils_getInstance().
|
|
2519
|
+
protoOf(Open4).computeOne_q4u7r9_k$ = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2520
|
+
return IOPrimitiveUtils_getInstance().open_28mql5_k$(_this__u8e3s4, third);
|
|
2517
2521
|
};
|
|
2518
|
-
protoOf(Open4).
|
|
2519
|
-
return this.
|
|
2522
|
+
protoOf(Open4).computeOne_iyz53g_k$ = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2523
|
+
return this.computeOne_q4u7r9_k$(_this__u8e3s4, first, second, third, fourth);
|
|
2520
2524
|
};
|
|
2521
2525
|
var Open4_instance;
|
|
2522
2526
|
function Open4_getInstance() {
|
|
@@ -2528,11 +2532,11 @@
|
|
|
2528
2532
|
PeekByte1_instance = this;
|
|
2529
2533
|
NonBacktrackable_0.call(this, 'peek_byte');
|
|
2530
2534
|
}
|
|
2531
|
-
protoOf(PeekByte1).
|
|
2532
|
-
return Companion_getInstance_1().
|
|
2535
|
+
protoOf(PeekByte1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2536
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
2533
2537
|
};
|
|
2534
|
-
protoOf(PeekByte1).
|
|
2535
|
-
return this.
|
|
2538
|
+
protoOf(PeekByte1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2539
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2536
2540
|
};
|
|
2537
2541
|
var PeekByte1_instance;
|
|
2538
2542
|
function PeekByte1_getInstance() {
|
|
@@ -2544,11 +2548,11 @@
|
|
|
2544
2548
|
PeekByte2_instance = this;
|
|
2545
2549
|
NonBacktrackable.call(this, 'peek_byte');
|
|
2546
2550
|
}
|
|
2547
|
-
protoOf(PeekByte2).
|
|
2548
|
-
return Companion_getInstance_1().
|
|
2551
|
+
protoOf(PeekByte2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2552
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
2549
2553
|
};
|
|
2550
|
-
protoOf(PeekByte2).
|
|
2551
|
-
return this.
|
|
2554
|
+
protoOf(PeekByte2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2555
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2552
2556
|
};
|
|
2553
2557
|
var PeekByte2_instance;
|
|
2554
2558
|
function PeekByte2_getInstance() {
|
|
@@ -2560,12 +2564,12 @@
|
|
|
2560
2564
|
PeekChar1_instance = this;
|
|
2561
2565
|
NonBacktrackable_0.call(this, 'peek_char');
|
|
2562
2566
|
}
|
|
2563
|
-
protoOf(PeekChar1).
|
|
2564
|
-
IOPrimitiveUtils_getInstance().
|
|
2565
|
-
return IOPrimitiveUtils_getInstance().
|
|
2567
|
+
protoOf(PeekChar1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2568
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrChar_zdzofu_k$(_this__u8e3s4, 0);
|
|
2569
|
+
return IOPrimitiveUtils_getInstance().peekCharAndReply_r80pc6_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first);
|
|
2566
2570
|
};
|
|
2567
|
-
protoOf(PeekChar1).
|
|
2568
|
-
return this.
|
|
2571
|
+
protoOf(PeekChar1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2572
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2569
2573
|
};
|
|
2570
2574
|
var PeekChar1_instance;
|
|
2571
2575
|
function PeekChar1_getInstance() {
|
|
@@ -2577,13 +2581,13 @@
|
|
|
2577
2581
|
PeekChar2_instance = this;
|
|
2578
2582
|
NonBacktrackable.call(this, 'peek_char');
|
|
2579
2583
|
}
|
|
2580
|
-
protoOf(PeekChar2).
|
|
2581
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2582
|
-
IOPrimitiveUtils_getInstance().
|
|
2583
|
-
return IOPrimitiveUtils_getInstance().
|
|
2584
|
+
protoOf(PeekChar2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2585
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
2586
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrChar_zdzofu_k$(_this__u8e3s4, 1);
|
|
2587
|
+
return IOPrimitiveUtils_getInstance().peekCharAndReply_r80pc6_k$(_this__u8e3s4, channel, second);
|
|
2584
2588
|
};
|
|
2585
|
-
protoOf(PeekChar2).
|
|
2586
|
-
return this.
|
|
2589
|
+
protoOf(PeekChar2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2590
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2587
2591
|
};
|
|
2588
2592
|
var PeekChar2_instance;
|
|
2589
2593
|
function PeekChar2_getInstance() {
|
|
@@ -2595,12 +2599,12 @@
|
|
|
2595
2599
|
PeekCode1_instance = this;
|
|
2596
2600
|
NonBacktrackable_0.call(this, 'peek_code');
|
|
2597
2601
|
}
|
|
2598
|
-
protoOf(PeekCode1).
|
|
2599
|
-
IOPrimitiveUtils_getInstance().
|
|
2600
|
-
return IOPrimitiveUtils_getInstance().
|
|
2602
|
+
protoOf(PeekCode1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2603
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrCharCode_tmh0sz_k$(_this__u8e3s4, 0);
|
|
2604
|
+
return IOPrimitiveUtils_getInstance().peekCodeAndReply_y06qz3_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first);
|
|
2601
2605
|
};
|
|
2602
|
-
protoOf(PeekCode1).
|
|
2603
|
-
return this.
|
|
2606
|
+
protoOf(PeekCode1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2607
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2604
2608
|
};
|
|
2605
2609
|
var PeekCode1_instance;
|
|
2606
2610
|
function PeekCode1_getInstance() {
|
|
@@ -2612,13 +2616,13 @@
|
|
|
2612
2616
|
PeekCode2_instance = this;
|
|
2613
2617
|
NonBacktrackable.call(this, 'peek_code');
|
|
2614
2618
|
}
|
|
2615
|
-
protoOf(PeekCode2).
|
|
2616
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2617
|
-
IOPrimitiveUtils_getInstance().
|
|
2618
|
-
return IOPrimitiveUtils_getInstance().
|
|
2619
|
+
protoOf(PeekCode2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2620
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
2621
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrCharCode_tmh0sz_k$(_this__u8e3s4, 1);
|
|
2622
|
+
return IOPrimitiveUtils_getInstance().peekCodeAndReply_y06qz3_k$(_this__u8e3s4, channel, second);
|
|
2619
2623
|
};
|
|
2620
|
-
protoOf(PeekCode2).
|
|
2621
|
-
return this.
|
|
2624
|
+
protoOf(PeekCode2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2625
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2622
2626
|
};
|
|
2623
2627
|
var PeekCode2_instance;
|
|
2624
2628
|
function PeekCode2_getInstance() {
|
|
@@ -2630,11 +2634,11 @@
|
|
|
2630
2634
|
PutByte1_instance = this;
|
|
2631
2635
|
NonBacktrackable_0.call(this, 'put_byte');
|
|
2632
2636
|
}
|
|
2633
|
-
protoOf(PutByte1).
|
|
2634
|
-
return Companion_getInstance_1().
|
|
2637
|
+
protoOf(PutByte1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2638
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
2635
2639
|
};
|
|
2636
|
-
protoOf(PutByte1).
|
|
2637
|
-
return this.
|
|
2640
|
+
protoOf(PutByte1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2641
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2638
2642
|
};
|
|
2639
2643
|
var PutByte1_instance;
|
|
2640
2644
|
function PutByte1_getInstance() {
|
|
@@ -2646,11 +2650,11 @@
|
|
|
2646
2650
|
PutByte2_instance = this;
|
|
2647
2651
|
NonBacktrackable.call(this, 'put_byte');
|
|
2648
2652
|
}
|
|
2649
|
-
protoOf(PutByte2).
|
|
2650
|
-
return Companion_getInstance_1().
|
|
2653
|
+
protoOf(PutByte2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2654
|
+
return Companion_getInstance_1().notSupported$default_bmg7vb_k$(_this__u8e3s4);
|
|
2651
2655
|
};
|
|
2652
|
-
protoOf(PutByte2).
|
|
2653
|
-
return this.
|
|
2656
|
+
protoOf(PutByte2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2657
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2654
2658
|
};
|
|
2655
2659
|
var PutByte2_instance;
|
|
2656
2660
|
function PutByte2_getInstance() {
|
|
@@ -2662,14 +2666,14 @@
|
|
|
2662
2666
|
PutChar1_instance = this;
|
|
2663
2667
|
NonBacktrackable_0.call(this, 'put_char');
|
|
2664
2668
|
}
|
|
2665
|
-
protoOf(PutChar1).
|
|
2666
|
-
Companion_getInstance_1().
|
|
2669
|
+
protoOf(PutChar1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2670
|
+
Companion_getInstance_1().ensuringArgumentIsChar_t2ym2o_k$(_this__u8e3s4, 0);
|
|
2667
2671
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2668
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2669
|
-
return tmp.
|
|
2672
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().get_currentOutputChannel_jl8tcy_k$(_this__u8e3s4);
|
|
2673
|
+
return tmp.writeCharAndReply_7fanoe_k$(_this__u8e3s4, tmp_0, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2670
2674
|
};
|
|
2671
|
-
protoOf(PutChar1).
|
|
2672
|
-
return this.
|
|
2675
|
+
protoOf(PutChar1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2676
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2673
2677
|
};
|
|
2674
2678
|
var PutChar1_instance;
|
|
2675
2679
|
function PutChar1_getInstance() {
|
|
@@ -2681,14 +2685,14 @@
|
|
|
2681
2685
|
PutChar2_instance = this;
|
|
2682
2686
|
NonBacktrackable.call(this, 'put_char');
|
|
2683
2687
|
}
|
|
2684
|
-
protoOf(PutChar2).
|
|
2685
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2686
|
-
Companion_getInstance_1().
|
|
2688
|
+
protoOf(PutChar2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2689
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
2690
|
+
Companion_getInstance_1().ensuringArgumentIsChar_t2ym2o_k$(_this__u8e3s4, 1);
|
|
2687
2691
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2688
|
-
return tmp.
|
|
2692
|
+
return tmp.writeCharAndReply_7fanoe_k$(_this__u8e3s4, channel, isInterface(second, Atom) ? second : THROW_CCE());
|
|
2689
2693
|
};
|
|
2690
|
-
protoOf(PutChar2).
|
|
2691
|
-
return this.
|
|
2694
|
+
protoOf(PutChar2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2695
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2692
2696
|
};
|
|
2693
2697
|
var PutChar2_instance;
|
|
2694
2698
|
function PutChar2_getInstance() {
|
|
@@ -2700,14 +2704,14 @@
|
|
|
2700
2704
|
PutCode1_instance = this;
|
|
2701
2705
|
NonBacktrackable_0.call(this, 'put_code');
|
|
2702
2706
|
}
|
|
2703
|
-
protoOf(PutCode1).
|
|
2704
|
-
Companion_getInstance_1().
|
|
2707
|
+
protoOf(PutCode1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2708
|
+
Companion_getInstance_1().ensuringArgumentIsCharCode_64rreb_k$(_this__u8e3s4, 0);
|
|
2705
2709
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2706
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2707
|
-
return tmp.
|
|
2710
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().get_currentOutputChannel_jl8tcy_k$(_this__u8e3s4);
|
|
2711
|
+
return tmp.writeCodeAndReply_pk9m0p_k$(_this__u8e3s4, tmp_0, isInterface(first, Integer) ? first : THROW_CCE());
|
|
2708
2712
|
};
|
|
2709
|
-
protoOf(PutCode1).
|
|
2710
|
-
return this.
|
|
2713
|
+
protoOf(PutCode1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2714
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2711
2715
|
};
|
|
2712
2716
|
var PutCode1_instance;
|
|
2713
2717
|
function PutCode1_getInstance() {
|
|
@@ -2719,14 +2723,14 @@
|
|
|
2719
2723
|
PutCode2_instance = this;
|
|
2720
2724
|
NonBacktrackable.call(this, 'put_code');
|
|
2721
2725
|
}
|
|
2722
|
-
protoOf(PutCode2).
|
|
2723
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2724
|
-
Companion_getInstance_1().
|
|
2726
|
+
protoOf(PutCode2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2727
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
2728
|
+
Companion_getInstance_1().ensuringArgumentIsCharCode_64rreb_k$(_this__u8e3s4, 1);
|
|
2725
2729
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2726
|
-
return tmp.
|
|
2730
|
+
return tmp.writeCodeAndReply_pk9m0p_k$(_this__u8e3s4, channel, isInterface(second, Integer) ? second : THROW_CCE());
|
|
2727
2731
|
};
|
|
2728
|
-
protoOf(PutCode2).
|
|
2729
|
-
return this.
|
|
2732
|
+
protoOf(PutCode2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2733
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2730
2734
|
};
|
|
2731
2735
|
var PutCode2_instance;
|
|
2732
2736
|
function PutCode2_getInstance() {
|
|
@@ -2738,11 +2742,11 @@
|
|
|
2738
2742
|
Read1_instance = this;
|
|
2739
2743
|
NonBacktrackable_0.call(this, 'read');
|
|
2740
2744
|
}
|
|
2741
|
-
protoOf(Read1).
|
|
2742
|
-
return IOPrimitiveUtils_getInstance().
|
|
2745
|
+
protoOf(Read1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2746
|
+
return IOPrimitiveUtils_getInstance().readTermAndReply$default_yi3mi7_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first);
|
|
2743
2747
|
};
|
|
2744
|
-
protoOf(Read1).
|
|
2745
|
-
return this.
|
|
2748
|
+
protoOf(Read1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2749
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2746
2750
|
};
|
|
2747
2751
|
var Read1_instance;
|
|
2748
2752
|
function Read1_getInstance() {
|
|
@@ -2754,12 +2758,12 @@
|
|
|
2754
2758
|
Read2_instance = this;
|
|
2755
2759
|
NonBacktrackable.call(this, 'read');
|
|
2756
2760
|
}
|
|
2757
|
-
protoOf(Read2).
|
|
2758
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2759
|
-
return IOPrimitiveUtils_getInstance().
|
|
2761
|
+
protoOf(Read2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2762
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
2763
|
+
return IOPrimitiveUtils_getInstance().readTermAndReply$default_yi3mi7_k$(_this__u8e3s4, channel, second);
|
|
2760
2764
|
};
|
|
2761
|
-
protoOf(Read2).
|
|
2762
|
-
return this.
|
|
2765
|
+
protoOf(Read2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2766
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2763
2767
|
};
|
|
2764
2768
|
var Read2_instance;
|
|
2765
2769
|
function Read2_getInstance() {
|
|
@@ -2771,11 +2775,11 @@
|
|
|
2771
2775
|
ReadTerm2_instance = this;
|
|
2772
2776
|
NonBacktrackable.call(this, 'read_term');
|
|
2773
2777
|
}
|
|
2774
|
-
protoOf(ReadTerm2).
|
|
2775
|
-
return IOPrimitiveUtils_getInstance().
|
|
2778
|
+
protoOf(ReadTerm2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2779
|
+
return IOPrimitiveUtils_getInstance().readTermAndReply_11biz4_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentInputChannel_31908p_k$(_this__u8e3s4), first, true);
|
|
2776
2780
|
};
|
|
2777
|
-
protoOf(ReadTerm2).
|
|
2778
|
-
return this.
|
|
2781
|
+
protoOf(ReadTerm2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2782
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2779
2783
|
};
|
|
2780
2784
|
var ReadTerm2_instance;
|
|
2781
2785
|
function ReadTerm2_getInstance() {
|
|
@@ -2787,12 +2791,12 @@
|
|
|
2787
2791
|
ReadTerm3_instance = this;
|
|
2788
2792
|
NonBacktrackable_1.call(this, 'read_term');
|
|
2789
2793
|
}
|
|
2790
|
-
protoOf(ReadTerm3).
|
|
2791
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2792
|
-
return IOPrimitiveUtils_getInstance().
|
|
2794
|
+
protoOf(ReadTerm3).computeOne_oq9h0q_k$ = function (_this__u8e3s4, first, second, third) {
|
|
2795
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
2796
|
+
return IOPrimitiveUtils_getInstance().readTermAndReply_11biz4_k$(_this__u8e3s4, channel, second, true);
|
|
2793
2797
|
};
|
|
2794
|
-
protoOf(ReadTerm3).
|
|
2795
|
-
return this.
|
|
2798
|
+
protoOf(ReadTerm3).computeOne_bappeh_k$ = function (_this__u8e3s4, first, second, third) {
|
|
2799
|
+
return this.computeOne_oq9h0q_k$(_this__u8e3s4, first, second, third);
|
|
2796
2800
|
};
|
|
2797
2801
|
var ReadTerm3_instance;
|
|
2798
2802
|
function ReadTerm3_getInstance() {
|
|
@@ -2802,7 +2806,7 @@
|
|
|
2802
2806
|
}
|
|
2803
2807
|
function SetInput$computeOne$lambda($this_computeOne, $channel) {
|
|
2804
2808
|
return function ($this$replySuccess) {
|
|
2805
|
-
$this$replySuccess.
|
|
2809
|
+
$this$replySuccess.resetInputChannels_dps5fb_k$($this_computeOne.context.get_inputChannels_uyf05t_k$().setCurrentChannel($channel));
|
|
2806
2810
|
return Unit_instance;
|
|
2807
2811
|
};
|
|
2808
2812
|
}
|
|
@@ -2810,12 +2814,12 @@
|
|
|
2810
2814
|
SetInput_instance = this;
|
|
2811
2815
|
NonBacktrackable_0.call(this, 'set_input');
|
|
2812
2816
|
}
|
|
2813
|
-
protoOf(SetInput).
|
|
2814
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2817
|
+
protoOf(SetInput).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2818
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsInputChannel_w9cvb1_k$(_this__u8e3s4, 0);
|
|
2815
2819
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetInput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2816
2820
|
};
|
|
2817
|
-
protoOf(SetInput).
|
|
2818
|
-
return this.
|
|
2821
|
+
protoOf(SetInput).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2822
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2819
2823
|
};
|
|
2820
2824
|
var SetInput_instance;
|
|
2821
2825
|
function SetInput_getInstance() {
|
|
@@ -2825,7 +2829,7 @@
|
|
|
2825
2829
|
}
|
|
2826
2830
|
function SetOutput$computeOne$lambda($this_computeOne, $channel) {
|
|
2827
2831
|
return function ($this$replySuccess) {
|
|
2828
|
-
$this$replySuccess.
|
|
2832
|
+
$this$replySuccess.resetOutputChannels_rs5zo3_k$($this_computeOne.context.get_outputChannels_ffvoca_k$().setCurrentChannel($channel));
|
|
2829
2833
|
return Unit_instance;
|
|
2830
2834
|
};
|
|
2831
2835
|
}
|
|
@@ -2833,12 +2837,12 @@
|
|
|
2833
2837
|
SetOutput_instance = this;
|
|
2834
2838
|
NonBacktrackable_0.call(this, 'set_output');
|
|
2835
2839
|
}
|
|
2836
|
-
protoOf(SetOutput).
|
|
2837
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2840
|
+
protoOf(SetOutput).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2841
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
2838
2842
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetOutput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2839
2843
|
};
|
|
2840
|
-
protoOf(SetOutput).
|
|
2841
|
-
return this.
|
|
2844
|
+
protoOf(SetOutput).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2845
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2842
2846
|
};
|
|
2843
2847
|
var SetOutput_instance;
|
|
2844
2848
|
function SetOutput_getInstance() {
|
|
@@ -2849,14 +2853,14 @@
|
|
|
2849
2853
|
function SetTheory$setTheory$lambda($append, $solver) {
|
|
2850
2854
|
return function ($this$replySuccess) {
|
|
2851
2855
|
if ($append) {
|
|
2852
|
-
$this$replySuccess.
|
|
2853
|
-
$this$replySuccess.
|
|
2856
|
+
$this$replySuccess.addStaticClauses$default_ip7ihf_k$($solver.get_staticKb_a01l1u_k$());
|
|
2857
|
+
$this$replySuccess.addDynamicClauses$default_sr6lwk_k$($solver.get_dynamicKb_wvqg8j_k$());
|
|
2854
2858
|
} else {
|
|
2855
|
-
$this$replySuccess.
|
|
2856
|
-
$this$replySuccess.
|
|
2859
|
+
$this$replySuccess.resetStaticKb_cogn56_k$($solver.get_staticKb_a01l1u_k$());
|
|
2860
|
+
$this$replySuccess.resetDynamicKb_skyfvb_k$($solver.get_dynamicKb_wvqg8j_k$());
|
|
2857
2861
|
}
|
|
2858
|
-
$this$replySuccess.
|
|
2859
|
-
$this$replySuccess.
|
|
2862
|
+
$this$replySuccess.setOperators_3gc6gs_k$($solver.get_operators_z0nmfu_k$());
|
|
2863
|
+
$this$replySuccess.setFlags_k0bh7g_k$($solver.get_flags_irfhb2_k$());
|
|
2860
2864
|
return Unit_instance;
|
|
2861
2865
|
};
|
|
2862
2866
|
}
|
|
@@ -2864,23 +2868,23 @@
|
|
|
2864
2868
|
SetTheory_instance = this;
|
|
2865
2869
|
NonBacktrackable_0.call(this, 'set_theory');
|
|
2866
2870
|
}
|
|
2867
|
-
protoOf(SetTheory).
|
|
2868
|
-
Companion_getInstance_1().
|
|
2869
|
-
return this.
|
|
2871
|
+
protoOf(SetTheory).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
2872
|
+
Companion_getInstance_1().ensuringArgumentIsAtom_5kuj97_k$(_this__u8e3s4, 0);
|
|
2873
|
+
return this.setTheory_ratc22_k$(_this__u8e3s4, first.castTo_8vzplt_k$().get_value_j01efc_k$(), false);
|
|
2870
2874
|
};
|
|
2871
|
-
protoOf(SetTheory).
|
|
2872
|
-
return this.
|
|
2875
|
+
protoOf(SetTheory).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
2876
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
2873
2877
|
};
|
|
2874
|
-
protoOf(SetTheory).
|
|
2878
|
+
protoOf(SetTheory).setTheory_ratc22_k$ = function (_this__u8e3s4, text, append) {
|
|
2875
2879
|
try {
|
|
2876
|
-
var theory =
|
|
2877
|
-
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID,
|
|
2880
|
+
var theory = Companion_instance_11.withOperatorSet(_this__u8e3s4.context.get_operators_z0nmfu_k$()).parseTheoryWithDefaultUnificator(text);
|
|
2881
|
+
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_12.empty(_this__u8e3s4.context.get_unificator_xw6v3j_k$()), Companion_instance_13.empty(_this__u8e3s4.context.get_unificator_xw6v3j_k$()));
|
|
2878
2882
|
solver.loadStaticKb(theory);
|
|
2879
2883
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetTheory$setTheory$lambda(append, solver));
|
|
2880
2884
|
} catch ($p) {
|
|
2881
2885
|
if ($p instanceof ParseException) {
|
|
2882
2886
|
var e = $p;
|
|
2883
|
-
var tmp =
|
|
2887
|
+
var tmp = Companion_instance_10;
|
|
2884
2888
|
var tmp_0 = e.clauseIndex;
|
|
2885
2889
|
var tmp_1 = e.line;
|
|
2886
2890
|
var tmp_2 = e.column;
|
|
@@ -2908,9 +2912,9 @@
|
|
|
2908
2912
|
}
|
|
2909
2913
|
}
|
|
2910
2914
|
};
|
|
2911
|
-
protoOf(SetTheory).
|
|
2915
|
+
protoOf(SetTheory).setTheory$default_wxmulc_k$ = function (_this__u8e3s4, text, append, $super) {
|
|
2912
2916
|
append = append === VOID ? true : append;
|
|
2913
|
-
return $super === VOID ? this.
|
|
2917
|
+
return $super === VOID ? this.setTheory_ratc22_k$(_this__u8e3s4, text, append) : $super.setTheory_ratc22_k$.call(this, _this__u8e3s4, text, append);
|
|
2914
2918
|
};
|
|
2915
2919
|
var SetTheory_instance;
|
|
2916
2920
|
function SetTheory_getInstance() {
|
|
@@ -2919,16 +2923,16 @@
|
|
|
2919
2923
|
return SetTheory_instance;
|
|
2920
2924
|
}
|
|
2921
2925
|
function StreamProperty$computeAll$lambda(it) {
|
|
2922
|
-
return asSequence(it.
|
|
2926
|
+
return asSequence(it.get_values_ksazhn_k$());
|
|
2923
2927
|
}
|
|
2924
2928
|
function StreamProperty$computeAll$lambda_0($this_computeAll) {
|
|
2925
2929
|
return function (it) {
|
|
2926
|
-
return to(it.
|
|
2930
|
+
return to(it.get_streamTerm_v3iy6t_k$(), IOPrimitiveUtils_getInstance().propertiesOf_hpcm76_k$($this_computeAll, it));
|
|
2927
2931
|
};
|
|
2928
2932
|
}
|
|
2929
2933
|
function StreamProperty$computeAll$lambda_1(_destruct__k2r9zo) {
|
|
2930
|
-
var streamTerm = _destruct__k2r9zo.
|
|
2931
|
-
var properties = _destruct__k2r9zo.
|
|
2934
|
+
var streamTerm = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
2935
|
+
var properties = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
2932
2936
|
return map(properties, StreamProperty$computeAll$lambda$lambda(streamTerm));
|
|
2933
2937
|
}
|
|
2934
2938
|
function StreamProperty$computeAll$lambda$lambda($streamTerm) {
|
|
@@ -2938,13 +2942,13 @@
|
|
|
2938
2942
|
}
|
|
2939
2943
|
function StreamProperty$computeAll$lambda_2($this_computeAll, $first, $second) {
|
|
2940
2944
|
return function (_destruct__k2r9zo) {
|
|
2941
|
-
var streamTerm = _destruct__k2r9zo.
|
|
2942
|
-
var property = _destruct__k2r9zo.
|
|
2943
|
-
return Companion_getInstance_1().
|
|
2945
|
+
var streamTerm = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
2946
|
+
var property = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
2947
|
+
return Companion_getInstance_1().mgu_jyyt35_k$($this_computeAll, $first, streamTerm).plus(Companion_getInstance_1().mgu_jyyt35_k$($this_computeAll, $second, property));
|
|
2944
2948
|
};
|
|
2945
2949
|
}
|
|
2946
2950
|
function StreamProperty$computeAll$lambda_3(it) {
|
|
2947
|
-
return it.
|
|
2951
|
+
return it.get_isSuccess_vybsc0_k$();
|
|
2948
2952
|
}
|
|
2949
2953
|
function StreamProperty$computeAll$lambda_4($this_computeAll) {
|
|
2950
2954
|
return function (it) {
|
|
@@ -2955,10 +2959,10 @@
|
|
|
2955
2959
|
StreamProperty_instance = this;
|
|
2956
2960
|
BinaryRelation.call(this, 'stream_property');
|
|
2957
2961
|
}
|
|
2958
|
-
protoOf(StreamProperty).
|
|
2959
|
-
IOPrimitiveUtils_getInstance().
|
|
2960
|
-
IOPrimitiveUtils_getInstance().
|
|
2961
|
-
var tmp = sequenceOf([_this__u8e3s4.context.
|
|
2962
|
+
protoOf(StreamProperty).computeAll_3ok8b8_k$ = function (_this__u8e3s4, first, second) {
|
|
2963
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsVarOrStream_l86imo_k$(_this__u8e3s4, 0);
|
|
2964
|
+
IOPrimitiveUtils_getInstance().ensuringArgumentIsStreamProperty_6yg2an_k$(_this__u8e3s4, 1);
|
|
2965
|
+
var tmp = sequenceOf([_this__u8e3s4.context.get_inputChannels_uyf05t_k$(), _this__u8e3s4.context.get_outputChannels_ffvoca_k$()]);
|
|
2962
2966
|
var tmp_0 = distinct(flatMap(tmp, StreamProperty$computeAll$lambda));
|
|
2963
2967
|
var tmp_1 = map(tmp_0, StreamProperty$computeAll$lambda_0(_this__u8e3s4));
|
|
2964
2968
|
var tmp_2 = flatMap(tmp_1, StreamProperty$computeAll$lambda_1);
|
|
@@ -2966,8 +2970,8 @@
|
|
|
2966
2970
|
var tmp_4 = filter(tmp_3, StreamProperty$computeAll$lambda_3);
|
|
2967
2971
|
return map(tmp_4, StreamProperty$computeAll$lambda_4(_this__u8e3s4));
|
|
2968
2972
|
};
|
|
2969
|
-
protoOf(StreamProperty).
|
|
2970
|
-
return this.
|
|
2973
|
+
protoOf(StreamProperty).computeAll_i7sbzb_k$ = function (_this__u8e3s4, first, second) {
|
|
2974
|
+
return this.computeAll_3ok8b8_k$(_this__u8e3s4, first, second);
|
|
2971
2975
|
};
|
|
2972
2976
|
var StreamProperty_instance;
|
|
2973
2977
|
function StreamProperty_getInstance() {
|
|
@@ -2979,12 +2983,12 @@
|
|
|
2979
2983
|
Write2_instance = this;
|
|
2980
2984
|
NonBacktrackable.call(this, 'write');
|
|
2981
2985
|
}
|
|
2982
|
-
protoOf(Write2).
|
|
2983
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2984
|
-
return IOPrimitiveUtils_getInstance().
|
|
2986
|
+
protoOf(Write2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
2987
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
2988
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, channel, second, Companion_instance_7.default(_this__u8e3s4.context.get_operators_z0nmfu_k$()));
|
|
2985
2989
|
};
|
|
2986
|
-
protoOf(Write2).
|
|
2987
|
-
return this.
|
|
2990
|
+
protoOf(Write2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
2991
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
2988
2992
|
};
|
|
2989
2993
|
var Write2_instance;
|
|
2990
2994
|
function Write2_getInstance() {
|
|
@@ -2996,11 +3000,11 @@
|
|
|
2996
3000
|
WriteCanonical1_instance = this;
|
|
2997
3001
|
NonBacktrackable_0.call(this, 'write_canonical');
|
|
2998
3002
|
}
|
|
2999
|
-
protoOf(WriteCanonical1).
|
|
3000
|
-
return IOPrimitiveUtils_getInstance().
|
|
3003
|
+
protoOf(WriteCanonical1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
3004
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentOutputChannel_jl8tcy_k$(_this__u8e3s4), first, Companion_instance_7.canonical());
|
|
3001
3005
|
};
|
|
3002
|
-
protoOf(WriteCanonical1).
|
|
3003
|
-
return this.
|
|
3006
|
+
protoOf(WriteCanonical1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
3007
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
3004
3008
|
};
|
|
3005
3009
|
var WriteCanonical1_instance;
|
|
3006
3010
|
function WriteCanonical1_getInstance() {
|
|
@@ -3012,12 +3016,12 @@
|
|
|
3012
3016
|
WriteCanonical2_instance = this;
|
|
3013
3017
|
NonBacktrackable.call(this, 'write_canonical');
|
|
3014
3018
|
}
|
|
3015
|
-
protoOf(WriteCanonical2).
|
|
3016
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3017
|
-
return IOPrimitiveUtils_getInstance().
|
|
3019
|
+
protoOf(WriteCanonical2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
3020
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
3021
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, channel, second, Companion_instance_7.canonical());
|
|
3018
3022
|
};
|
|
3019
|
-
protoOf(WriteCanonical2).
|
|
3020
|
-
return this.
|
|
3023
|
+
protoOf(WriteCanonical2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
3024
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
3021
3025
|
};
|
|
3022
3026
|
var WriteCanonical2_instance;
|
|
3023
3027
|
function WriteCanonical2_getInstance() {
|
|
@@ -3029,11 +3033,11 @@
|
|
|
3029
3033
|
WriteEq1_instance = this;
|
|
3030
3034
|
NonBacktrackable_0.call(this, 'writeq');
|
|
3031
3035
|
}
|
|
3032
|
-
protoOf(WriteEq1).
|
|
3033
|
-
return IOPrimitiveUtils_getInstance().
|
|
3036
|
+
protoOf(WriteEq1).computeOne_6dkmes_k$ = function (_this__u8e3s4, first) {
|
|
3037
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentOutputChannel_jl8tcy_k$(_this__u8e3s4), first, Companion_instance_7.readable());
|
|
3034
3038
|
};
|
|
3035
|
-
protoOf(WriteEq1).
|
|
3036
|
-
return this.
|
|
3039
|
+
protoOf(WriteEq1).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
|
|
3040
|
+
return this.computeOne_6dkmes_k$(_this__u8e3s4, first);
|
|
3037
3041
|
};
|
|
3038
3042
|
var WriteEq1_instance;
|
|
3039
3043
|
function WriteEq1_getInstance() {
|
|
@@ -3045,12 +3049,12 @@
|
|
|
3045
3049
|
WriteEq2_instance = this;
|
|
3046
3050
|
NonBacktrackable.call(this, 'writeq');
|
|
3047
3051
|
}
|
|
3048
|
-
protoOf(WriteEq2).
|
|
3049
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3050
|
-
return IOPrimitiveUtils_getInstance().
|
|
3052
|
+
protoOf(WriteEq2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
3053
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
3054
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, channel, second, Companion_instance_7.readable());
|
|
3051
3055
|
};
|
|
3052
|
-
protoOf(WriteEq2).
|
|
3053
|
-
return this.
|
|
3056
|
+
protoOf(WriteEq2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
3057
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
3054
3058
|
};
|
|
3055
3059
|
var WriteEq2_instance;
|
|
3056
3060
|
function WriteEq2_getInstance() {
|
|
@@ -3062,12 +3066,12 @@
|
|
|
3062
3066
|
WriteTerm2_instance = this;
|
|
3063
3067
|
NonBacktrackable.call(this, 'write_term');
|
|
3064
3068
|
}
|
|
3065
|
-
protoOf(WriteTerm2).
|
|
3066
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3067
|
-
return IOPrimitiveUtils_getInstance().
|
|
3069
|
+
protoOf(WriteTerm2).computeOne_sdv9lb_k$ = function (_this__u8e3s4, first, second) {
|
|
3070
|
+
var formatter = IOPrimitiveUtils_getInstance().ensuringArgumentIsFormatter_5l8dg0_k$(_this__u8e3s4, 1);
|
|
3071
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, IOPrimitiveUtils_getInstance().get_currentOutputChannel_jl8tcy_k$(_this__u8e3s4), first, formatter);
|
|
3068
3072
|
};
|
|
3069
|
-
protoOf(WriteTerm2).
|
|
3070
|
-
return this.
|
|
3073
|
+
protoOf(WriteTerm2).computeOne_d8jipq_k$ = function (_this__u8e3s4, first, second) {
|
|
3074
|
+
return this.computeOne_sdv9lb_k$(_this__u8e3s4, first, second);
|
|
3071
3075
|
};
|
|
3072
3076
|
var WriteTerm2_instance;
|
|
3073
3077
|
function WriteTerm2_getInstance() {
|
|
@@ -3079,13 +3083,13 @@
|
|
|
3079
3083
|
WriteTerm3_instance = this;
|
|
3080
3084
|
NonBacktrackable_1.call(this, 'write_term');
|
|
3081
3085
|
}
|
|
3082
|
-
protoOf(WriteTerm3).
|
|
3083
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3084
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3085
|
-
return IOPrimitiveUtils_getInstance().
|
|
3086
|
+
protoOf(WriteTerm3).computeOne_oq9h0q_k$ = function (_this__u8e3s4, first, second, third) {
|
|
3087
|
+
var channel = IOPrimitiveUtils_getInstance().ensuringArgumentIsOutputChannel_kmdrtk_k$(_this__u8e3s4, 0);
|
|
3088
|
+
var formatter = IOPrimitiveUtils_getInstance().ensuringArgumentIsFormatter_5l8dg0_k$(_this__u8e3s4, 2);
|
|
3089
|
+
return IOPrimitiveUtils_getInstance().writeTermAndReply_wyva0k_k$(_this__u8e3s4, channel, second, formatter);
|
|
3086
3090
|
};
|
|
3087
|
-
protoOf(WriteTerm3).
|
|
3088
|
-
return this.
|
|
3091
|
+
protoOf(WriteTerm3).computeOne_bappeh_k$ = function (_this__u8e3s4, first, second, third) {
|
|
3092
|
+
return this.computeOne_oq9h0q_k$(_this__u8e3s4, first, second, third);
|
|
3089
3093
|
};
|
|
3090
3094
|
var WriteTerm3_instance;
|
|
3091
3095
|
function WriteTerm3_getInstance() {
|
|
@@ -3111,10 +3115,10 @@
|
|
|
3111
3115
|
if (removeSuffix(parsed.protocol, ':').length === 1) {
|
|
3112
3116
|
throw InvalidUrlException_init_$Create$('Invalid URL: ' + url);
|
|
3113
3117
|
}
|
|
3114
|
-
$this.
|
|
3115
|
-
$this.
|
|
3116
|
-
$this.
|
|
3117
|
-
$this.
|
|
3118
|
+
$this.protocol_1 = removeSuffix(parsed.protocol, ':');
|
|
3119
|
+
$this.host_1 = parsed.hostname;
|
|
3120
|
+
$this.path_1 = parsed.pathname;
|
|
3121
|
+
$this.port_1 = toIntOrNull(parsed.port);
|
|
3118
3122
|
var tmp_1 = $this;
|
|
3119
3123
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
3120
3124
|
var this_0 = removePrefix(parsed.search, '?');
|
|
@@ -3125,8 +3129,8 @@
|
|
|
3125
3129
|
} else {
|
|
3126
3130
|
tmp_2 = this_0;
|
|
3127
3131
|
}
|
|
3128
|
-
tmp_1.
|
|
3129
|
-
$this.
|
|
3132
|
+
tmp_1.query_1 = tmp_2;
|
|
3133
|
+
$this.url_1 = url;
|
|
3130
3134
|
return $this;
|
|
3131
3135
|
}
|
|
3132
3136
|
function JsUrl_init_$Create$(url) {
|
|
@@ -3138,12 +3142,12 @@
|
|
|
3138
3142
|
path = path === VOID ? '' : path;
|
|
3139
3143
|
query = query === VOID ? null : query;
|
|
3140
3144
|
JsUrl.call($this);
|
|
3141
|
-
$this.
|
|
3142
|
-
$this.
|
|
3143
|
-
$this.
|
|
3144
|
-
$this.
|
|
3145
|
-
$this.
|
|
3146
|
-
$this.
|
|
3145
|
+
$this.protocol_1 = protocol;
|
|
3146
|
+
$this.host_1 = host;
|
|
3147
|
+
$this.port_1 = port;
|
|
3148
|
+
$this.path_1 = path;
|
|
3149
|
+
$this.query_1 = query;
|
|
3150
|
+
$this.url_1 = Companion_instance_15.toString_t652pn_k$(protocol, host, port, path, query);
|
|
3147
3151
|
return $this;
|
|
3148
3152
|
}
|
|
3149
3153
|
function JsUrl_init_$Create$_0(protocol, host, port, path, query) {
|
|
@@ -3153,7 +3157,7 @@
|
|
|
3153
3157
|
var tmp;
|
|
3154
3158
|
try {
|
|
3155
3159
|
// Inline function 'okio.use' call
|
|
3156
|
-
var this_0 = buffer(LocalFileSystem_getInstance().
|
|
3160
|
+
var this_0 = buffer(LocalFileSystem_getInstance().source_an8jm4_k$(toLocalPath($this)));
|
|
3157
3161
|
var thrown = null;
|
|
3158
3162
|
var tmp_0;
|
|
3159
3163
|
try {
|
|
@@ -3174,7 +3178,7 @@
|
|
|
3174
3178
|
if (this_0 == null)
|
|
3175
3179
|
null;
|
|
3176
3180
|
else {
|
|
3177
|
-
this_0.
|
|
3181
|
+
this_0.close_yn9xrc_k$();
|
|
3178
3182
|
}
|
|
3179
3183
|
} catch ($p_0) {
|
|
3180
3184
|
if ($p_0 instanceof Error) {
|
|
@@ -3205,53 +3209,53 @@
|
|
|
3205
3209
|
return tmp;
|
|
3206
3210
|
}
|
|
3207
3211
|
function JsUrl$readAsText$lambda(it) {
|
|
3208
|
-
return it.
|
|
3212
|
+
return it.readUtf8_echivt_k$();
|
|
3209
3213
|
}
|
|
3210
3214
|
function JsUrl$readAsByteArray$lambda(it) {
|
|
3211
|
-
return it.
|
|
3215
|
+
return it.readByteArray_52wnjv_k$();
|
|
3212
3216
|
}
|
|
3213
|
-
protoOf(JsUrl).
|
|
3214
|
-
return this.
|
|
3217
|
+
protoOf(JsUrl).get_protocol_mv93kx_k$ = function () {
|
|
3218
|
+
return this.protocol_1;
|
|
3215
3219
|
};
|
|
3216
|
-
protoOf(JsUrl).
|
|
3217
|
-
return this.
|
|
3220
|
+
protoOf(JsUrl).get_host_wonf8x_k$ = function () {
|
|
3221
|
+
return this.host_1;
|
|
3218
3222
|
};
|
|
3219
|
-
protoOf(JsUrl).
|
|
3220
|
-
return this.
|
|
3223
|
+
protoOf(JsUrl).get_path_wos8ry_k$ = function () {
|
|
3224
|
+
return this.path_1;
|
|
3221
3225
|
};
|
|
3222
|
-
protoOf(JsUrl).
|
|
3223
|
-
return this.
|
|
3226
|
+
protoOf(JsUrl).get_port_wosj4a_k$ = function () {
|
|
3227
|
+
return this.port_1;
|
|
3224
3228
|
};
|
|
3225
|
-
protoOf(JsUrl).
|
|
3226
|
-
return this.
|
|
3229
|
+
protoOf(JsUrl).get_query_ixn1y7_k$ = function () {
|
|
3230
|
+
return this.query_1;
|
|
3227
3231
|
};
|
|
3228
|
-
protoOf(JsUrl).
|
|
3232
|
+
protoOf(JsUrl).readAsText_gtp5qj_k$ = function () {
|
|
3229
3233
|
var tmp;
|
|
3230
|
-
if (this.
|
|
3234
|
+
if (this.get_isFile_evxosv_k$() && get_isNode()) {
|
|
3231
3235
|
tmp = readLocalFile(this, JsUrl$readAsText$lambda);
|
|
3232
|
-
} else if (this.
|
|
3233
|
-
tmp = readText(this.
|
|
3236
|
+
} else if (this.get_isFile_evxosv_k$()) {
|
|
3237
|
+
tmp = readText(this.path_1);
|
|
3234
3238
|
} else {
|
|
3235
|
-
tmp = fetch(this.
|
|
3239
|
+
tmp = fetch(this.url_1, 'UTF-8');
|
|
3236
3240
|
}
|
|
3237
3241
|
return tmp;
|
|
3238
3242
|
};
|
|
3239
3243
|
protoOf(JsUrl).readAsText = function () {
|
|
3240
|
-
return this.
|
|
3244
|
+
return this.readAsText_gtp5qj_k$();
|
|
3241
3245
|
};
|
|
3242
|
-
protoOf(JsUrl).
|
|
3246
|
+
protoOf(JsUrl).readAsByteArray_26c90p_k$ = function () {
|
|
3243
3247
|
var tmp;
|
|
3244
|
-
if (this.
|
|
3248
|
+
if (this.get_isFile_evxosv_k$() && get_isNode()) {
|
|
3245
3249
|
tmp = readLocalFile(this, JsUrl$readAsByteArray$lambda);
|
|
3246
|
-
} else if (this.
|
|
3247
|
-
tmp = readBin(this.
|
|
3250
|
+
} else if (this.get_isFile_evxosv_k$()) {
|
|
3251
|
+
tmp = readBin(this.path_1);
|
|
3248
3252
|
} else {
|
|
3249
|
-
tmp = toByteArray(fetch(this.
|
|
3253
|
+
tmp = toByteArray(fetch(this.url_1));
|
|
3250
3254
|
}
|
|
3251
3255
|
return tmp;
|
|
3252
3256
|
};
|
|
3253
3257
|
protoOf(JsUrl).readAsByteArray = function () {
|
|
3254
|
-
return this.
|
|
3258
|
+
return this.readAsByteArray_26c90p_k$();
|
|
3255
3259
|
};
|
|
3256
3260
|
protoOf(JsUrl).equals = function (other) {
|
|
3257
3261
|
if (this === other)
|
|
@@ -3260,15 +3264,15 @@
|
|
|
3260
3264
|
return false;
|
|
3261
3265
|
if (!(other instanceof JsUrl))
|
|
3262
3266
|
THROW_CCE();
|
|
3263
|
-
if (!(this.
|
|
3267
|
+
if (!(this.url_1 === other.url_1))
|
|
3264
3268
|
return false;
|
|
3265
3269
|
return true;
|
|
3266
3270
|
};
|
|
3267
3271
|
protoOf(JsUrl).hashCode = function () {
|
|
3268
|
-
return getStringHashCode(this.
|
|
3272
|
+
return getStringHashCode(this.url_1);
|
|
3269
3273
|
};
|
|
3270
3274
|
protoOf(JsUrl).toString = function () {
|
|
3271
|
-
return this.
|
|
3275
|
+
return this.url_1;
|
|
3272
3276
|
};
|
|
3273
3277
|
function JsUrl() {
|
|
3274
3278
|
}
|
|
@@ -3278,12 +3282,12 @@
|
|
|
3278
3282
|
var tmp = KProperty0;
|
|
3279
3283
|
// Inline function 'kotlin.getValue' call
|
|
3280
3284
|
/* dead property reference removed */
|
|
3281
|
-
return tmp0.
|
|
3285
|
+
return tmp0.get_value_j01efc_k$();
|
|
3282
3286
|
}
|
|
3283
3287
|
var REQUEST$delegate;
|
|
3284
3288
|
function get_isNode() {
|
|
3285
3289
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
3286
|
-
return !Info_getInstance().
|
|
3290
|
+
return !Info_getInstance().get_PLATFORM_c55ni4_k$().equals(Platform_BROWSER_getInstance());
|
|
3287
3291
|
}
|
|
3288
3292
|
function readText(path) {
|
|
3289
3293
|
_init_properties_RemoteAndBrowserIO_kt__6j78jn();
|
|
@@ -3355,7 +3359,7 @@
|
|
|
3355
3359
|
function _get_REQUEST_$ref_g5y4c1() {
|
|
3356
3360
|
return constructCallableReference(function () {
|
|
3357
3361
|
return get_REQUEST();
|
|
3358
|
-
}, 0, 0,
|
|
3362
|
+
}, 0, 0, 142);
|
|
3359
3363
|
}
|
|
3360
3364
|
var properties_initialized_RemoteAndBrowserIO_kt_w2uybl;
|
|
3361
3365
|
function _init_properties_RemoteAndBrowserIO_kt__6j78jn() {
|
|
@@ -3375,7 +3379,7 @@
|
|
|
3375
3379
|
var tmp = KProperty0;
|
|
3376
3380
|
// Inline function 'kotlin.getValue' call
|
|
3377
3381
|
/* dead property reference removed */
|
|
3378
|
-
return tmp0.
|
|
3382
|
+
return tmp0.get_value_j01efc_k$();
|
|
3379
3383
|
}
|
|
3380
3384
|
var FILE_URL_TO_PATH$delegate;
|
|
3381
3385
|
function fileUrl(path) {
|
|
@@ -3397,7 +3401,7 @@
|
|
|
3397
3401
|
function openInputChannel(_this__u8e3s4) {
|
|
3398
3402
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3399
3403
|
var tmp;
|
|
3400
|
-
if (_this__u8e3s4.
|
|
3404
|
+
if (_this__u8e3s4.get_isFile_evxosv_k$() && get_isNode()) {
|
|
3401
3405
|
tmp = wrappingIOException(openInputChannel$lambda(_this__u8e3s4));
|
|
3402
3406
|
} else {
|
|
3403
3407
|
tmp = Companion_instance.ofString(_this__u8e3s4.readAsText());
|
|
@@ -3407,7 +3411,7 @@
|
|
|
3407
3411
|
function openOutputChannel(_this__u8e3s4, append) {
|
|
3408
3412
|
append = append === VOID ? false : append;
|
|
3409
3413
|
_init_properties_UrlUtilsJs_kt__dw3tit();
|
|
3410
|
-
if (!_this__u8e3s4.
|
|
3414
|
+
if (!_this__u8e3s4.get_isFile_evxosv_k$() || !get_isNode()) {
|
|
3411
3415
|
throw IOException_init_$Create$('Writing not supported for ' + toString(_this__u8e3s4));
|
|
3412
3416
|
}
|
|
3413
3417
|
var path = toLocalPath(_this__u8e3s4);
|
|
@@ -3419,12 +3423,12 @@
|
|
|
3419
3423
|
try {
|
|
3420
3424
|
var tmp_0 = Companion_getInstance_7();
|
|
3421
3425
|
var tmp_1 = get_FILE_URL_TO_PATH()(toString(_this__u8e3s4));
|
|
3422
|
-
tmp = tmp_0.
|
|
3426
|
+
tmp = tmp_0.toPath$default_vs59ry_k$((!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
3423
3427
|
} catch ($p) {
|
|
3424
3428
|
var tmp_2;
|
|
3425
3429
|
if ($p instanceof Error) {
|
|
3426
3430
|
var _unused_var__etf5q3 = $p;
|
|
3427
|
-
tmp_2 = Companion_getInstance_7().
|
|
3431
|
+
tmp_2 = Companion_getInstance_7().toPath$default_vs59ry_k$(_this__u8e3s4.get_path_wos8ry_k$());
|
|
3428
3432
|
} else {
|
|
3429
3433
|
throw $p;
|
|
3430
3434
|
}
|
|
@@ -3455,16 +3459,16 @@
|
|
|
3455
3459
|
function _get_FILE_URL_TO_PATH_$ref_kwvzgc() {
|
|
3456
3460
|
return constructCallableReference(function () {
|
|
3457
3461
|
return get_FILE_URL_TO_PATH();
|
|
3458
|
-
}, 0, 0,
|
|
3462
|
+
}, 0, 0, 143);
|
|
3459
3463
|
}
|
|
3460
3464
|
function openInputChannel$lambda($this_openInputChannel) {
|
|
3461
3465
|
return function () {
|
|
3462
|
-
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().
|
|
3466
|
+
return new SourceInputChannel(buffer(LocalFileSystem_getInstance().source_an8jm4_k$(toLocalPath($this_openInputChannel))));
|
|
3463
3467
|
};
|
|
3464
3468
|
}
|
|
3465
3469
|
function openOutputChannel$lambda($append, $path) {
|
|
3466
3470
|
return function () {
|
|
3467
|
-
var sink = $append ? LocalFileSystem_getInstance().
|
|
3471
|
+
var sink = $append ? LocalFileSystem_getInstance().appendingSink$default_r7oz7x_k$($path) : LocalFileSystem_getInstance().sink$default_9jt55n_k$($path);
|
|
3468
3472
|
return new SinkOutputChannel(buffer_0(sink));
|
|
3469
3473
|
};
|
|
3470
3474
|
}
|
|
@@ -3479,16 +3483,16 @@
|
|
|
3479
3483
|
//region block: post-declaration
|
|
3480
3484
|
protoOf(JsUrl).resolve = resolve;
|
|
3481
3485
|
protoOf(JsUrl).div = div;
|
|
3482
|
-
protoOf(JsUrl).
|
|
3483
|
-
protoOf(JsUrl).
|
|
3486
|
+
protoOf(JsUrl).get_isFile_evxosv_k$ = get_isFile;
|
|
3487
|
+
protoOf(JsUrl).get_isHttp_evz74r_k$ = get_isHttp;
|
|
3484
3488
|
//endregion
|
|
3485
3489
|
//region block: init
|
|
3486
|
-
|
|
3490
|
+
Companion_instance_15 = new Companion_0();
|
|
3487
3491
|
//endregion
|
|
3488
3492
|
//region block: exports
|
|
3489
3493
|
_.$_$ = _.$_$ || {};
|
|
3490
3494
|
_.$_$.a = IOLib_getInstance;
|
|
3491
|
-
_.$_$.b =
|
|
3495
|
+
_.$_$.b = Companion_instance_15;
|
|
3492
3496
|
//endregion
|
|
3493
3497
|
return _;
|
|
3494
3498
|
}));
|