@xiuper/mpp-core 0.0.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
package/Xiuper-mpp-codegraph.js
CHANGED
|
@@ -25,58 +25,58 @@
|
|
|
25
25
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
|
|
26
26
|
var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f3;
|
|
27
27
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.o;
|
|
28
|
-
var lazy = kotlin_kotlin.$_$.
|
|
29
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
30
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
28
|
+
var lazy = kotlin_kotlin.$_$.bm;
|
|
29
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
30
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
31
31
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3;
|
|
32
32
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
33
33
|
var emptyMap = kotlin_kotlin.$_$.n8;
|
|
34
|
-
var equals = kotlin_kotlin.$_$.
|
|
35
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
34
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
35
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
36
36
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
|
|
37
37
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
|
|
38
38
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b3;
|
|
39
39
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
|
|
40
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
40
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
41
41
|
var VOID = kotlin_kotlin.$_$.h;
|
|
42
42
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3;
|
|
43
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
44
|
-
var toString = kotlin_kotlin.$_$.
|
|
45
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
46
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
43
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
44
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
45
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
46
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
47
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
48
48
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l3;
|
|
49
49
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j3;
|
|
50
|
-
var Enum = kotlin_kotlin.$_$.
|
|
50
|
+
var Enum = kotlin_kotlin.$_$.qk;
|
|
51
51
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2;
|
|
52
52
|
var emptyList = kotlin_kotlin.$_$.m8;
|
|
53
53
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
|
|
54
54
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
55
|
-
var contains = kotlin_kotlin.$_$.
|
|
56
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
57
|
-
var substring = kotlin_kotlin.$_$.
|
|
58
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
55
|
+
var contains = kotlin_kotlin.$_$.ng;
|
|
56
|
+
var lastIndexOf = kotlin_kotlin.$_$.th;
|
|
57
|
+
var substring = kotlin_kotlin.$_$.zi;
|
|
58
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.rd;
|
|
59
59
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
60
60
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
61
61
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
62
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
63
|
-
var to = kotlin_kotlin.$_$.
|
|
62
|
+
var charSequenceLength = kotlin_kotlin.$_$.ld;
|
|
63
|
+
var to = kotlin_kotlin.$_$.lm;
|
|
64
64
|
var mapOf = kotlin_kotlin.$_$.x9;
|
|
65
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
66
|
-
var removeSuffix = kotlin_kotlin.$_$.
|
|
67
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
68
|
-
var trim = kotlin_kotlin.$_$.
|
|
69
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
70
|
-
var until = kotlin_kotlin.$_$.
|
|
71
|
-
var sliceArray = kotlin_kotlin.$_$.
|
|
72
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
73
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
74
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
65
|
+
var removePrefix = kotlin_kotlin.$_$.ai;
|
|
66
|
+
var removeSuffix = kotlin_kotlin.$_$.bi;
|
|
67
|
+
var isCharSequence = kotlin_kotlin.$_$.ie;
|
|
68
|
+
var trim = kotlin_kotlin.$_$.ck;
|
|
69
|
+
var encodeToByteArray = kotlin_kotlin.$_$.ug;
|
|
70
|
+
var until = kotlin_kotlin.$_$.rf;
|
|
71
|
+
var sliceArray = kotlin_kotlin.$_$.ua;
|
|
72
|
+
var decodeToString = kotlin_kotlin.$_$.pg;
|
|
73
|
+
var startsWith = kotlin_kotlin.$_$.ni;
|
|
74
|
+
var endsWith = kotlin_kotlin.$_$.xg;
|
|
75
75
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.m1;
|
|
76
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
77
|
-
var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
78
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
79
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
76
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
77
|
+
var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
78
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
79
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
80
80
|
//endregion
|
|
81
81
|
//region block: pre-declaration
|
|
82
82
|
initMetadataForCompanion(Companion);
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
// Inline function 'kotlin.arrayOf' call
|
|
114
114
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
115
115
|
// Inline function 'kotlin.js.asDynamic' call
|
|
116
|
-
tmp.
|
|
116
|
+
tmp.w35_1 = [null, tmp_1, null, null, null, null, null, null, null, null, null, lazy(tmp_2, CodeNode$Companion$$childSerializers$_anonymous__o6dld1_0)];
|
|
117
117
|
}
|
|
118
118
|
var Companion_instance;
|
|
119
119
|
function Companion_getInstance() {
|
|
@@ -136,33 +136,33 @@
|
|
|
136
136
|
tmp0_serialDesc.m16('qualifiedName', false);
|
|
137
137
|
tmp0_serialDesc.m16('content', false);
|
|
138
138
|
tmp0_serialDesc.m16('metadata', true);
|
|
139
|
-
this.
|
|
139
|
+
this.x35_1 = tmp0_serialDesc;
|
|
140
140
|
}
|
|
141
|
-
protoOf($serializer).
|
|
142
|
-
var tmp0_desc = this.
|
|
141
|
+
protoOf($serializer).y35 = function (encoder, value) {
|
|
142
|
+
var tmp0_desc = this.x35_1;
|
|
143
143
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
144
|
-
var tmp2_cached = Companion_getInstance().
|
|
145
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
146
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
147
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
148
|
-
tmp1_output.l10(tmp0_desc, 3, value.
|
|
149
|
-
tmp1_output.l10(tmp0_desc, 4, value.
|
|
150
|
-
tmp1_output.g10(tmp0_desc, 5, value.
|
|
151
|
-
tmp1_output.g10(tmp0_desc, 6, value.
|
|
152
|
-
tmp1_output.g10(tmp0_desc, 7, value.
|
|
153
|
-
tmp1_output.g10(tmp0_desc, 8, value.
|
|
154
|
-
tmp1_output.l10(tmp0_desc, 9, value.
|
|
155
|
-
tmp1_output.l10(tmp0_desc, 10, value.
|
|
156
|
-
if (tmp1_output.t10(tmp0_desc, 11) ? true : !equals(value.
|
|
157
|
-
tmp1_output.n10(tmp0_desc, 11, tmp2_cached[11].b1(), value.
|
|
144
|
+
var tmp2_cached = Companion_getInstance().w35_1;
|
|
145
|
+
tmp1_output.l10(tmp0_desc, 0, value.z35_1);
|
|
146
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.a36_1);
|
|
147
|
+
tmp1_output.l10(tmp0_desc, 2, value.b36_1);
|
|
148
|
+
tmp1_output.l10(tmp0_desc, 3, value.c36_1);
|
|
149
|
+
tmp1_output.l10(tmp0_desc, 4, value.d36_1);
|
|
150
|
+
tmp1_output.g10(tmp0_desc, 5, value.e36_1);
|
|
151
|
+
tmp1_output.g10(tmp0_desc, 6, value.f36_1);
|
|
152
|
+
tmp1_output.g10(tmp0_desc, 7, value.g36_1);
|
|
153
|
+
tmp1_output.g10(tmp0_desc, 8, value.h36_1);
|
|
154
|
+
tmp1_output.l10(tmp0_desc, 9, value.i36_1);
|
|
155
|
+
tmp1_output.l10(tmp0_desc, 10, value.j36_1);
|
|
156
|
+
if (tmp1_output.t10(tmp0_desc, 11) ? true : !equals(value.k36_1, emptyMap())) {
|
|
157
|
+
tmp1_output.n10(tmp0_desc, 11, tmp2_cached[11].b1(), value.k36_1);
|
|
158
158
|
}
|
|
159
159
|
tmp1_output.xy(tmp0_desc);
|
|
160
160
|
};
|
|
161
161
|
protoOf($serializer).gv = function (encoder, value) {
|
|
162
|
-
return this.
|
|
162
|
+
return this.y35(encoder, value instanceof CodeNode ? value : THROW_CCE());
|
|
163
163
|
};
|
|
164
164
|
protoOf($serializer).hv = function (decoder) {
|
|
165
|
-
var tmp0_desc = this.
|
|
165
|
+
var tmp0_desc = this.x35_1;
|
|
166
166
|
var tmp1_flag = true;
|
|
167
167
|
var tmp2_index = 0;
|
|
168
168
|
var tmp3_bitMask0 = 0;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
var tmp14_local10 = null;
|
|
180
180
|
var tmp15_local11 = null;
|
|
181
181
|
var tmp16_input = decoder.wy(tmp0_desc);
|
|
182
|
-
var tmp17_cached = Companion_getInstance().
|
|
182
|
+
var tmp17_cached = Companion_getInstance().w35_1;
|
|
183
183
|
if (tmp16_input.mz()) {
|
|
184
184
|
tmp4_local0 = tmp16_input.gz(tmp0_desc, 0);
|
|
185
185
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -268,10 +268,10 @@
|
|
|
268
268
|
return CodeNode_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null);
|
|
269
269
|
};
|
|
270
270
|
protoOf($serializer).fv = function () {
|
|
271
|
-
return this.
|
|
271
|
+
return this.x35_1;
|
|
272
272
|
};
|
|
273
273
|
protoOf($serializer).d17 = function () {
|
|
274
|
-
var tmp0_cached = Companion_getInstance().
|
|
274
|
+
var tmp0_cached = Companion_getInstance().w35_1;
|
|
275
275
|
// Inline function 'kotlin.arrayOf' call
|
|
276
276
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
277
277
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -285,23 +285,23 @@
|
|
|
285
285
|
}
|
|
286
286
|
function CodeNode_init_$Init$(seen0, id, type, name, packageName, filePath, startLine, endLine, startColumn, endColumn, qualifiedName, content, metadata, serializationConstructorMarker, $this) {
|
|
287
287
|
if (!(2047 === (2047 & seen0))) {
|
|
288
|
-
throwMissingFieldException(seen0, 2047, $serializer_getInstance().
|
|
288
|
+
throwMissingFieldException(seen0, 2047, $serializer_getInstance().x35_1);
|
|
289
289
|
}
|
|
290
|
-
$this.
|
|
291
|
-
$this.
|
|
292
|
-
$this.
|
|
293
|
-
$this.
|
|
294
|
-
$this.
|
|
295
|
-
$this.
|
|
296
|
-
$this.
|
|
297
|
-
$this.
|
|
298
|
-
$this.
|
|
299
|
-
$this.
|
|
300
|
-
$this.
|
|
290
|
+
$this.z35_1 = id;
|
|
291
|
+
$this.a36_1 = type;
|
|
292
|
+
$this.b36_1 = name;
|
|
293
|
+
$this.c36_1 = packageName;
|
|
294
|
+
$this.d36_1 = filePath;
|
|
295
|
+
$this.e36_1 = startLine;
|
|
296
|
+
$this.f36_1 = endLine;
|
|
297
|
+
$this.g36_1 = startColumn;
|
|
298
|
+
$this.h36_1 = endColumn;
|
|
299
|
+
$this.i36_1 = qualifiedName;
|
|
300
|
+
$this.j36_1 = content;
|
|
301
301
|
if (0 === (seen0 & 2048))
|
|
302
|
-
$this.
|
|
302
|
+
$this.k36_1 = emptyMap();
|
|
303
303
|
else
|
|
304
|
-
$this.
|
|
304
|
+
$this.k36_1 = metadata;
|
|
305
305
|
return $this;
|
|
306
306
|
}
|
|
307
307
|
function CodeNode_init_$Create$(seen0, id, type, name, packageName, filePath, startLine, endLine, startColumn, endColumn, qualifiedName, content, metadata, serializationConstructorMarker) {
|
|
@@ -310,35 +310,35 @@
|
|
|
310
310
|
function CodeNode(id, type, name, packageName, filePath, startLine, endLine, startColumn, endColumn, qualifiedName, content, metadata) {
|
|
311
311
|
Companion_getInstance();
|
|
312
312
|
metadata = metadata === VOID ? emptyMap() : metadata;
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
313
|
+
this.z35_1 = id;
|
|
314
|
+
this.a36_1 = type;
|
|
315
|
+
this.b36_1 = name;
|
|
316
|
+
this.c36_1 = packageName;
|
|
317
|
+
this.d36_1 = filePath;
|
|
318
|
+
this.e36_1 = startLine;
|
|
319
|
+
this.f36_1 = endLine;
|
|
320
|
+
this.g36_1 = startColumn;
|
|
321
|
+
this.h36_1 = endColumn;
|
|
322
|
+
this.i36_1 = qualifiedName;
|
|
323
|
+
this.j36_1 = content;
|
|
324
|
+
this.k36_1 = metadata;
|
|
325
325
|
}
|
|
326
326
|
protoOf(CodeNode).toString = function () {
|
|
327
|
-
return 'CodeNode(id=' + this.
|
|
327
|
+
return 'CodeNode(id=' + this.z35_1 + ', type=' + this.a36_1.toString() + ', name=' + this.b36_1 + ', packageName=' + this.c36_1 + ', filePath=' + this.d36_1 + ', startLine=' + this.e36_1 + ', endLine=' + this.f36_1 + ', startColumn=' + this.g36_1 + ', endColumn=' + this.h36_1 + ', qualifiedName=' + this.i36_1 + ', content=' + this.j36_1 + ', metadata=' + toString(this.k36_1) + ')';
|
|
328
328
|
};
|
|
329
329
|
protoOf(CodeNode).hashCode = function () {
|
|
330
|
-
var result = getStringHashCode(this.
|
|
331
|
-
result = imul(result, 31) + this.
|
|
332
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
333
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
334
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
335
|
-
result = imul(result, 31) + this.
|
|
336
|
-
result = imul(result, 31) + this.
|
|
337
|
-
result = imul(result, 31) + this.
|
|
338
|
-
result = imul(result, 31) + this.
|
|
339
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
340
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
341
|
-
result = imul(result, 31) + hashCode(this.
|
|
330
|
+
var result = getStringHashCode(this.z35_1);
|
|
331
|
+
result = imul(result, 31) + this.a36_1.hashCode() | 0;
|
|
332
|
+
result = imul(result, 31) + getStringHashCode(this.b36_1) | 0;
|
|
333
|
+
result = imul(result, 31) + getStringHashCode(this.c36_1) | 0;
|
|
334
|
+
result = imul(result, 31) + getStringHashCode(this.d36_1) | 0;
|
|
335
|
+
result = imul(result, 31) + this.e36_1 | 0;
|
|
336
|
+
result = imul(result, 31) + this.f36_1 | 0;
|
|
337
|
+
result = imul(result, 31) + this.g36_1 | 0;
|
|
338
|
+
result = imul(result, 31) + this.h36_1 | 0;
|
|
339
|
+
result = imul(result, 31) + getStringHashCode(this.i36_1) | 0;
|
|
340
|
+
result = imul(result, 31) + getStringHashCode(this.j36_1) | 0;
|
|
341
|
+
result = imul(result, 31) + hashCode(this.k36_1) | 0;
|
|
342
342
|
return result;
|
|
343
343
|
};
|
|
344
344
|
protoOf(CodeNode).equals = function (other) {
|
|
@@ -347,34 +347,34 @@
|
|
|
347
347
|
if (!(other instanceof CodeNode))
|
|
348
348
|
return false;
|
|
349
349
|
var tmp0_other_with_cast = other instanceof CodeNode ? other : THROW_CCE();
|
|
350
|
-
if (!(this.
|
|
350
|
+
if (!(this.z35_1 === tmp0_other_with_cast.z35_1))
|
|
351
351
|
return false;
|
|
352
|
-
if (!this.
|
|
352
|
+
if (!this.a36_1.equals(tmp0_other_with_cast.a36_1))
|
|
353
353
|
return false;
|
|
354
|
-
if (!(this.
|
|
354
|
+
if (!(this.b36_1 === tmp0_other_with_cast.b36_1))
|
|
355
355
|
return false;
|
|
356
|
-
if (!(this.
|
|
356
|
+
if (!(this.c36_1 === tmp0_other_with_cast.c36_1))
|
|
357
357
|
return false;
|
|
358
|
-
if (!(this.
|
|
358
|
+
if (!(this.d36_1 === tmp0_other_with_cast.d36_1))
|
|
359
359
|
return false;
|
|
360
|
-
if (!(this.
|
|
360
|
+
if (!(this.e36_1 === tmp0_other_with_cast.e36_1))
|
|
361
361
|
return false;
|
|
362
|
-
if (!(this.
|
|
362
|
+
if (!(this.f36_1 === tmp0_other_with_cast.f36_1))
|
|
363
363
|
return false;
|
|
364
|
-
if (!(this.
|
|
364
|
+
if (!(this.g36_1 === tmp0_other_with_cast.g36_1))
|
|
365
365
|
return false;
|
|
366
|
-
if (!(this.
|
|
366
|
+
if (!(this.h36_1 === tmp0_other_with_cast.h36_1))
|
|
367
367
|
return false;
|
|
368
|
-
if (!(this.
|
|
368
|
+
if (!(this.i36_1 === tmp0_other_with_cast.i36_1))
|
|
369
369
|
return false;
|
|
370
|
-
if (!(this.
|
|
370
|
+
if (!(this.j36_1 === tmp0_other_with_cast.j36_1))
|
|
371
371
|
return false;
|
|
372
|
-
if (!equals(this.
|
|
372
|
+
if (!equals(this.k36_1, tmp0_other_with_cast.k36_1))
|
|
373
373
|
return false;
|
|
374
374
|
return true;
|
|
375
375
|
};
|
|
376
376
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
377
|
-
return $this.
|
|
377
|
+
return $this.v35_1.b1();
|
|
378
378
|
}
|
|
379
379
|
function CodeElementType$Companion$_anonymous__4husme() {
|
|
380
380
|
return createSimpleEnumSerializer('cc.unitmesh.codegraph.model.CodeElementType', values());
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
Companion_instance_0 = this;
|
|
401
401
|
var tmp = this;
|
|
402
402
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
403
|
-
tmp.
|
|
403
|
+
tmp.v35_1 = lazy(tmp_0, CodeElementType$Companion$_anonymous__4husme);
|
|
404
404
|
}
|
|
405
405
|
protoOf(Companion_0).q1j = function () {
|
|
406
406
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
// Inline function 'kotlin.arrayOf' call
|
|
511
511
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
512
512
|
// Inline function 'kotlin.js.asDynamic' call
|
|
513
|
-
tmp.
|
|
513
|
+
tmp.m36_1 = [null, tmp_1, null, lazy(tmp_2, ImportInfo$Companion$$childSerializers$_anonymous__itqytl_0), null, null, null, null, null, null];
|
|
514
514
|
}
|
|
515
515
|
var Companion_instance_1;
|
|
516
516
|
function Companion_getInstance_1() {
|
|
@@ -531,39 +531,39 @@
|
|
|
531
531
|
tmp0_serialDesc.m16('startLine', false);
|
|
532
532
|
tmp0_serialDesc.m16('endLine', false);
|
|
533
533
|
tmp0_serialDesc.m16('rawText', true);
|
|
534
|
-
this.
|
|
534
|
+
this.n36_1 = tmp0_serialDesc;
|
|
535
535
|
}
|
|
536
|
-
protoOf($serializer_0).
|
|
537
|
-
var tmp0_desc = this.
|
|
536
|
+
protoOf($serializer_0).o36 = function (encoder, value) {
|
|
537
|
+
var tmp0_desc = this.n36_1;
|
|
538
538
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
539
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
540
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
541
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
542
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
543
|
-
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
539
|
+
var tmp2_cached = Companion_getInstance_1().m36_1;
|
|
540
|
+
tmp1_output.l10(tmp0_desc, 0, value.p36_1);
|
|
541
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.q36_1);
|
|
542
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.r36_1 == null)) {
|
|
543
|
+
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.r36_1);
|
|
544
544
|
}
|
|
545
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !equals(value.
|
|
546
|
-
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.
|
|
545
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !equals(value.s36_1, emptyList())) {
|
|
546
|
+
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.s36_1);
|
|
547
547
|
}
|
|
548
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
549
|
-
tmp1_output.d10(tmp0_desc, 4, value.
|
|
548
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.t36_1 === false)) {
|
|
549
|
+
tmp1_output.d10(tmp0_desc, 4, value.t36_1);
|
|
550
550
|
}
|
|
551
|
-
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.
|
|
552
|
-
tmp1_output.d10(tmp0_desc, 5, value.
|
|
551
|
+
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.u36_1 === false)) {
|
|
552
|
+
tmp1_output.d10(tmp0_desc, 5, value.u36_1);
|
|
553
553
|
}
|
|
554
|
-
tmp1_output.l10(tmp0_desc, 6, value.
|
|
555
|
-
tmp1_output.g10(tmp0_desc, 7, value.
|
|
556
|
-
tmp1_output.g10(tmp0_desc, 8, value.
|
|
557
|
-
if (tmp1_output.t10(tmp0_desc, 9) ? true : !(value.
|
|
558
|
-
tmp1_output.l10(tmp0_desc, 9, value.
|
|
554
|
+
tmp1_output.l10(tmp0_desc, 6, value.v36_1);
|
|
555
|
+
tmp1_output.g10(tmp0_desc, 7, value.w36_1);
|
|
556
|
+
tmp1_output.g10(tmp0_desc, 8, value.x36_1);
|
|
557
|
+
if (tmp1_output.t10(tmp0_desc, 9) ? true : !(value.y36_1 === '')) {
|
|
558
|
+
tmp1_output.l10(tmp0_desc, 9, value.y36_1);
|
|
559
559
|
}
|
|
560
560
|
tmp1_output.xy(tmp0_desc);
|
|
561
561
|
};
|
|
562
562
|
protoOf($serializer_0).gv = function (encoder, value) {
|
|
563
|
-
return this.
|
|
563
|
+
return this.o36(encoder, value instanceof ImportInfo ? value : THROW_CCE());
|
|
564
564
|
};
|
|
565
565
|
protoOf($serializer_0).hv = function (decoder) {
|
|
566
|
-
var tmp0_desc = this.
|
|
566
|
+
var tmp0_desc = this.n36_1;
|
|
567
567
|
var tmp1_flag = true;
|
|
568
568
|
var tmp2_index = 0;
|
|
569
569
|
var tmp3_bitMask0 = 0;
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
var tmp12_local8 = 0;
|
|
579
579
|
var tmp13_local9 = null;
|
|
580
580
|
var tmp14_input = decoder.wy(tmp0_desc);
|
|
581
|
-
var tmp15_cached = Companion_getInstance_1().
|
|
581
|
+
var tmp15_cached = Companion_getInstance_1().m36_1;
|
|
582
582
|
if (tmp14_input.mz()) {
|
|
583
583
|
tmp4_local0 = tmp14_input.gz(tmp0_desc, 0);
|
|
584
584
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -655,10 +655,10 @@
|
|
|
655
655
|
return ImportInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
656
656
|
};
|
|
657
657
|
protoOf($serializer_0).fv = function () {
|
|
658
|
-
return this.
|
|
658
|
+
return this.n36_1;
|
|
659
659
|
};
|
|
660
660
|
protoOf($serializer_0).d17 = function () {
|
|
661
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
661
|
+
var tmp0_cached = Companion_getInstance_1().m36_1;
|
|
662
662
|
// Inline function 'kotlin.arrayOf' call
|
|
663
663
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
664
664
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -672,33 +672,33 @@
|
|
|
672
672
|
}
|
|
673
673
|
function ImportInfo_init_$Init$(seen0, path, type, alias, importedNames, isWildcard, isStatic, filePath, startLine, endLine, rawText, serializationConstructorMarker, $this) {
|
|
674
674
|
if (!(451 === (451 & seen0))) {
|
|
675
|
-
throwMissingFieldException(seen0, 451, $serializer_getInstance_0().
|
|
675
|
+
throwMissingFieldException(seen0, 451, $serializer_getInstance_0().n36_1);
|
|
676
676
|
}
|
|
677
|
-
$this.
|
|
678
|
-
$this.
|
|
677
|
+
$this.p36_1 = path;
|
|
678
|
+
$this.q36_1 = type;
|
|
679
679
|
if (0 === (seen0 & 4))
|
|
680
|
-
$this.
|
|
680
|
+
$this.r36_1 = null;
|
|
681
681
|
else
|
|
682
|
-
$this.
|
|
682
|
+
$this.r36_1 = alias;
|
|
683
683
|
if (0 === (seen0 & 8))
|
|
684
|
-
$this.
|
|
684
|
+
$this.s36_1 = emptyList();
|
|
685
685
|
else
|
|
686
|
-
$this.
|
|
686
|
+
$this.s36_1 = importedNames;
|
|
687
687
|
if (0 === (seen0 & 16))
|
|
688
|
-
$this.
|
|
688
|
+
$this.t36_1 = false;
|
|
689
689
|
else
|
|
690
|
-
$this.
|
|
690
|
+
$this.t36_1 = isWildcard;
|
|
691
691
|
if (0 === (seen0 & 32))
|
|
692
|
-
$this.
|
|
692
|
+
$this.u36_1 = false;
|
|
693
693
|
else
|
|
694
|
-
$this.
|
|
695
|
-
$this.
|
|
696
|
-
$this.
|
|
697
|
-
$this.
|
|
694
|
+
$this.u36_1 = isStatic;
|
|
695
|
+
$this.v36_1 = filePath;
|
|
696
|
+
$this.w36_1 = startLine;
|
|
697
|
+
$this.x36_1 = endLine;
|
|
698
698
|
if (0 === (seen0 & 512))
|
|
699
|
-
$this.
|
|
699
|
+
$this.y36_1 = '';
|
|
700
700
|
else
|
|
701
|
-
$this.
|
|
701
|
+
$this.y36_1 = rawText;
|
|
702
702
|
return $this;
|
|
703
703
|
}
|
|
704
704
|
function ImportInfo_init_$Create$(seen0, path, type, alias, importedNames, isWildcard, isStatic, filePath, startLine, endLine, rawText, serializationConstructorMarker) {
|
|
@@ -711,36 +711,36 @@
|
|
|
711
711
|
isWildcard = isWildcard === VOID ? false : isWildcard;
|
|
712
712
|
isStatic = isStatic === VOID ? false : isStatic;
|
|
713
713
|
rawText = rawText === VOID ? '' : rawText;
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
723
|
-
this.
|
|
724
|
-
}
|
|
725
|
-
protoOf(ImportInfo).
|
|
726
|
-
var separator = contains(this.
|
|
727
|
-
var lastIndex = lastIndexOf(this.
|
|
728
|
-
return lastIndex >= 0 ? substring(this.
|
|
714
|
+
this.p36_1 = path;
|
|
715
|
+
this.q36_1 = type;
|
|
716
|
+
this.r36_1 = alias;
|
|
717
|
+
this.s36_1 = importedNames;
|
|
718
|
+
this.t36_1 = isWildcard;
|
|
719
|
+
this.u36_1 = isStatic;
|
|
720
|
+
this.v36_1 = filePath;
|
|
721
|
+
this.w36_1 = startLine;
|
|
722
|
+
this.x36_1 = endLine;
|
|
723
|
+
this.y36_1 = rawText;
|
|
724
|
+
}
|
|
725
|
+
protoOf(ImportInfo).z36 = function () {
|
|
726
|
+
var separator = contains(this.p36_1, '::') ? '::' : contains(this.p36_1, '/') ? '/' : '.';
|
|
727
|
+
var lastIndex = lastIndexOf(this.p36_1, separator);
|
|
728
|
+
return lastIndex >= 0 ? substring(this.p36_1, lastIndex + separator.length | 0) : this.p36_1;
|
|
729
729
|
};
|
|
730
730
|
protoOf(ImportInfo).toString = function () {
|
|
731
|
-
return 'ImportInfo(path=' + this.
|
|
731
|
+
return 'ImportInfo(path=' + this.p36_1 + ', type=' + this.q36_1.toString() + ', alias=' + this.r36_1 + ', importedNames=' + toString(this.s36_1) + ', isWildcard=' + this.t36_1 + ', isStatic=' + this.u36_1 + ', filePath=' + this.v36_1 + ', startLine=' + this.w36_1 + ', endLine=' + this.x36_1 + ', rawText=' + this.y36_1 + ')';
|
|
732
732
|
};
|
|
733
733
|
protoOf(ImportInfo).hashCode = function () {
|
|
734
|
-
var result = getStringHashCode(this.
|
|
735
|
-
result = imul(result, 31) + this.
|
|
736
|
-
result = imul(result, 31) + (this.
|
|
737
|
-
result = imul(result, 31) + hashCode(this.
|
|
738
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
739
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
740
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
741
|
-
result = imul(result, 31) + this.
|
|
742
|
-
result = imul(result, 31) + this.
|
|
743
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
734
|
+
var result = getStringHashCode(this.p36_1);
|
|
735
|
+
result = imul(result, 31) + this.q36_1.hashCode() | 0;
|
|
736
|
+
result = imul(result, 31) + (this.r36_1 == null ? 0 : getStringHashCode(this.r36_1)) | 0;
|
|
737
|
+
result = imul(result, 31) + hashCode(this.s36_1) | 0;
|
|
738
|
+
result = imul(result, 31) + getBooleanHashCode(this.t36_1) | 0;
|
|
739
|
+
result = imul(result, 31) + getBooleanHashCode(this.u36_1) | 0;
|
|
740
|
+
result = imul(result, 31) + getStringHashCode(this.v36_1) | 0;
|
|
741
|
+
result = imul(result, 31) + this.w36_1 | 0;
|
|
742
|
+
result = imul(result, 31) + this.x36_1 | 0;
|
|
743
|
+
result = imul(result, 31) + getStringHashCode(this.y36_1) | 0;
|
|
744
744
|
return result;
|
|
745
745
|
};
|
|
746
746
|
protoOf(ImportInfo).equals = function (other) {
|
|
@@ -749,30 +749,30 @@
|
|
|
749
749
|
if (!(other instanceof ImportInfo))
|
|
750
750
|
return false;
|
|
751
751
|
var tmp0_other_with_cast = other instanceof ImportInfo ? other : THROW_CCE();
|
|
752
|
-
if (!(this.
|
|
752
|
+
if (!(this.p36_1 === tmp0_other_with_cast.p36_1))
|
|
753
753
|
return false;
|
|
754
|
-
if (!this.
|
|
754
|
+
if (!this.q36_1.equals(tmp0_other_with_cast.q36_1))
|
|
755
755
|
return false;
|
|
756
|
-
if (!(this.
|
|
756
|
+
if (!(this.r36_1 == tmp0_other_with_cast.r36_1))
|
|
757
757
|
return false;
|
|
758
|
-
if (!equals(this.
|
|
758
|
+
if (!equals(this.s36_1, tmp0_other_with_cast.s36_1))
|
|
759
759
|
return false;
|
|
760
|
-
if (!(this.
|
|
760
|
+
if (!(this.t36_1 === tmp0_other_with_cast.t36_1))
|
|
761
761
|
return false;
|
|
762
|
-
if (!(this.
|
|
762
|
+
if (!(this.u36_1 === tmp0_other_with_cast.u36_1))
|
|
763
763
|
return false;
|
|
764
|
-
if (!(this.
|
|
764
|
+
if (!(this.v36_1 === tmp0_other_with_cast.v36_1))
|
|
765
765
|
return false;
|
|
766
|
-
if (!(this.
|
|
766
|
+
if (!(this.w36_1 === tmp0_other_with_cast.w36_1))
|
|
767
767
|
return false;
|
|
768
|
-
if (!(this.
|
|
768
|
+
if (!(this.x36_1 === tmp0_other_with_cast.x36_1))
|
|
769
769
|
return false;
|
|
770
|
-
if (!(this.
|
|
770
|
+
if (!(this.y36_1 === tmp0_other_with_cast.y36_1))
|
|
771
771
|
return false;
|
|
772
772
|
return true;
|
|
773
773
|
};
|
|
774
774
|
function _get_$cachedSerializer__te6jhj_0($this) {
|
|
775
|
-
return $this.
|
|
775
|
+
return $this.l36_1.b1();
|
|
776
776
|
}
|
|
777
777
|
function ImportType$Companion$_anonymous__sitmj4() {
|
|
778
778
|
return createSimpleEnumSerializer('cc.unitmesh.codegraph.model.ImportType', values_0());
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
Companion_instance_2 = this;
|
|
791
791
|
var tmp = this;
|
|
792
792
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
793
|
-
tmp.
|
|
793
|
+
tmp.l36_1 = lazy(tmp_0, ImportType$Companion$_anonymous__sitmj4);
|
|
794
794
|
}
|
|
795
795
|
protoOf(Companion_2).q1j = function () {
|
|
796
796
|
return _get_$cachedSerializer__te6jhj_0(this);
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
}
|
|
911
911
|
function CodeGraphFactory() {
|
|
912
912
|
}
|
|
913
|
-
protoOf(CodeGraphFactory).
|
|
913
|
+
protoOf(CodeGraphFactory).a37 = function () {
|
|
914
914
|
return new JsCodeParser();
|
|
915
915
|
};
|
|
916
916
|
var CodeGraphFactory_instance;
|
|
@@ -927,14 +927,14 @@
|
|
|
927
927
|
}
|
|
928
928
|
function Companion_3() {
|
|
929
929
|
Companion_instance_3 = this;
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
930
|
+
this.b37_1 = false;
|
|
931
|
+
this.c37_1 = null;
|
|
932
932
|
var tmp = this;
|
|
933
933
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
934
|
-
tmp.
|
|
935
|
-
this.
|
|
934
|
+
tmp.d37_1 = LinkedHashMap_init_$Create$();
|
|
935
|
+
this.e37_1 = '';
|
|
936
936
|
}
|
|
937
|
-
protoOf(Companion_3).
|
|
937
|
+
protoOf(Companion_3).f37 = function (TreeSitterClass) {
|
|
938
938
|
return new TreeSitterClass();
|
|
939
939
|
};
|
|
940
940
|
var Companion_instance_3;
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1006
1006
|
var child = node.child(i);
|
|
1007
1007
|
if (child != null) {
|
|
1008
|
-
processNode($this, child, sourceCode, filePath, packageName, language, nodes, codeNode.
|
|
1008
|
+
processNode($this, child, sourceCode, filePath, packageName, language, nodes, codeNode.b36_1);
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
while (inductionVariable < childCount);
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
}
|
|
1225
1225
|
function $initializeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1226
1226
|
CoroutineImpl.call(this, resultContinuation);
|
|
1227
|
-
this.
|
|
1227
|
+
this.c38_1 = _this__u8e3s4;
|
|
1228
1228
|
}
|
|
1229
1229
|
protoOf($initializeCOROUTINE$).fa = function () {
|
|
1230
1230
|
var suspendResult = this.z9_1;
|
|
@@ -1234,30 +1234,30 @@
|
|
|
1234
1234
|
switch (tmp) {
|
|
1235
1235
|
case 0:
|
|
1236
1236
|
this.y9_1 = 2;
|
|
1237
|
-
if (Companion_getInstance_3().
|
|
1237
|
+
if (Companion_getInstance_3().b37_1)
|
|
1238
1238
|
return Unit_instance;
|
|
1239
|
-
Companion_getInstance_3().
|
|
1239
|
+
Companion_getInstance_3().c37_1 = require('web-tree-sitter');
|
|
1240
1240
|
var tmp_0 = this;
|
|
1241
1241
|
var tmp_1 = require.resolve('web-tree-sitter/tree-sitter.wasm');
|
|
1242
|
-
tmp_0.
|
|
1243
|
-
this.
|
|
1242
|
+
tmp_0.d38_1 = (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE();
|
|
1243
|
+
this.e38_1 = NodePath.dirname(this.d38_1);
|
|
1244
1244
|
var tmp_2 = this;
|
|
1245
1245
|
var tmp_3 = require.resolve('@unit-mesh/treesitter-artifacts/package.json');
|
|
1246
|
-
tmp_2.
|
|
1247
|
-
Companion_getInstance_3().
|
|
1248
|
-
this.
|
|
1246
|
+
tmp_2.f38_1 = (!(tmp_3 == null) ? typeof tmp_3 === 'string' : false) ? tmp_3 : THROW_CCE();
|
|
1247
|
+
Companion_getInstance_3().e37_1 = NodePath.join(NodePath.dirname(this.f38_1), 'wasm');
|
|
1248
|
+
this.g38_1 = createInitOptions(Companion_getInstance_3(), this.e38_1);
|
|
1249
1249
|
var tmp_4 = this;
|
|
1250
|
-
var tmp_5 = Companion_getInstance_3().
|
|
1251
|
-
tmp_4.
|
|
1250
|
+
var tmp_5 = Companion_getInstance_3().c37_1.init(this.g38_1);
|
|
1251
|
+
tmp_4.h38_1 = tmp_5 instanceof Promise ? tmp_5 : THROW_CCE();
|
|
1252
1252
|
this.x9_1 = 1;
|
|
1253
|
-
suspendResult = await_0(this.
|
|
1253
|
+
suspendResult = await_0(this.h38_1, this);
|
|
1254
1254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1255
1255
|
return suspendResult;
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
1258
|
continue $sm;
|
|
1259
1259
|
case 1:
|
|
1260
|
-
Companion_getInstance_3().
|
|
1260
|
+
Companion_getInstance_3().b37_1 = true;
|
|
1261
1261
|
return Unit_instance;
|
|
1262
1262
|
case 2:
|
|
1263
1263
|
throw this.aa_1;
|
|
@@ -1275,10 +1275,10 @@
|
|
|
1275
1275
|
};
|
|
1276
1276
|
function $parseNodesCOROUTINE$(_this__u8e3s4, sourceCode, filePath, language, resultContinuation) {
|
|
1277
1277
|
CoroutineImpl.call(this, resultContinuation);
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1278
|
+
this.q38_1 = _this__u8e3s4;
|
|
1279
|
+
this.r38_1 = sourceCode;
|
|
1280
|
+
this.s38_1 = filePath;
|
|
1281
|
+
this.t38_1 = language;
|
|
1282
1282
|
}
|
|
1283
1283
|
protoOf($parseNodesCOROUTINE$).fa = function () {
|
|
1284
1284
|
var suspendResult = this.z9_1;
|
|
@@ -1289,7 +1289,7 @@
|
|
|
1289
1289
|
case 0:
|
|
1290
1290
|
this.y9_1 = 3;
|
|
1291
1291
|
this.x9_1 = 1;
|
|
1292
|
-
suspendResult = this.
|
|
1292
|
+
suspendResult = this.q38_1.u38(this);
|
|
1293
1293
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1294
1294
|
return suspendResult;
|
|
1295
1295
|
}
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
continue $sm;
|
|
1298
1298
|
case 1:
|
|
1299
1299
|
this.x9_1 = 2;
|
|
1300
|
-
suspendResult = getOrCreateParser(this.
|
|
1300
|
+
suspendResult = getOrCreateParser(this.q38_1, this.t38_1, this);
|
|
1301
1301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1302
1302
|
return suspendResult;
|
|
1303
1303
|
}
|
|
@@ -1305,9 +1305,9 @@
|
|
|
1305
1305
|
continue $sm;
|
|
1306
1306
|
case 2:
|
|
1307
1307
|
var parser = suspendResult;
|
|
1308
|
-
var tree = parser.parse(this.
|
|
1308
|
+
var tree = parser.parse(this.r38_1);
|
|
1309
1309
|
var rootNode = tree.rootNode;
|
|
1310
|
-
return buildNodesFromTreeNode(this.
|
|
1310
|
+
return buildNodesFromTreeNode(this.q38_1, rootNode, this.r38_1, this.s38_1, this.t38_1);
|
|
1311
1311
|
case 3:
|
|
1312
1312
|
throw this.aa_1;
|
|
1313
1313
|
}
|
|
@@ -1324,10 +1324,10 @@
|
|
|
1324
1324
|
};
|
|
1325
1325
|
function $parseImportsCOROUTINE$(_this__u8e3s4, sourceCode, filePath, language, resultContinuation) {
|
|
1326
1326
|
CoroutineImpl.call(this, resultContinuation);
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1327
|
+
this.d39_1 = _this__u8e3s4;
|
|
1328
|
+
this.e39_1 = sourceCode;
|
|
1329
|
+
this.f39_1 = filePath;
|
|
1330
|
+
this.g39_1 = language;
|
|
1331
1331
|
}
|
|
1332
1332
|
protoOf($parseImportsCOROUTINE$).fa = function () {
|
|
1333
1333
|
var suspendResult = this.z9_1;
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
case 0:
|
|
1339
1339
|
this.y9_1 = 3;
|
|
1340
1340
|
this.x9_1 = 1;
|
|
1341
|
-
suspendResult = this.
|
|
1341
|
+
suspendResult = this.d39_1.u38(this);
|
|
1342
1342
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1343
1343
|
return suspendResult;
|
|
1344
1344
|
}
|
|
@@ -1346,7 +1346,7 @@
|
|
|
1346
1346
|
continue $sm;
|
|
1347
1347
|
case 1:
|
|
1348
1348
|
this.x9_1 = 2;
|
|
1349
|
-
suspendResult = getOrCreateParser(this.
|
|
1349
|
+
suspendResult = getOrCreateParser(this.d39_1, this.g39_1, this);
|
|
1350
1350
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1351
1351
|
return suspendResult;
|
|
1352
1352
|
}
|
|
@@ -1354,9 +1354,9 @@
|
|
|
1354
1354
|
continue $sm;
|
|
1355
1355
|
case 2:
|
|
1356
1356
|
var parser = suspendResult;
|
|
1357
|
-
var tree = parser.parse(this.
|
|
1357
|
+
var tree = parser.parse(this.e39_1);
|
|
1358
1358
|
var rootNode = tree.rootNode;
|
|
1359
|
-
return extractImportsFromNode(this.
|
|
1359
|
+
return extractImportsFromNode(this.d39_1, rootNode, this.e39_1, this.f39_1, this.g39_1);
|
|
1360
1360
|
case 3:
|
|
1361
1361
|
throw this.aa_1;
|
|
1362
1362
|
}
|
|
@@ -1373,8 +1373,8 @@
|
|
|
1373
1373
|
};
|
|
1374
1374
|
function $getOrCreateParserCOROUTINE$(_this__u8e3s4, language, resultContinuation) {
|
|
1375
1375
|
CoroutineImpl.call(this, resultContinuation);
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1376
|
+
this.o37_1 = _this__u8e3s4;
|
|
1377
|
+
this.p37_1 = language;
|
|
1378
1378
|
}
|
|
1379
1379
|
protoOf($getOrCreateParserCOROUTINE$).fa = function () {
|
|
1380
1380
|
var suspendResult = this.z9_1;
|
|
@@ -1384,18 +1384,18 @@
|
|
|
1384
1384
|
switch (tmp) {
|
|
1385
1385
|
case 0:
|
|
1386
1386
|
this.y9_1 = 2;
|
|
1387
|
-
if (Companion_getInstance_3().
|
|
1388
|
-
return Companion_getInstance_3().
|
|
1387
|
+
if (Companion_getInstance_3().d37_1.h2(this.p37_1)) {
|
|
1388
|
+
return Companion_getInstance_3().d37_1.j2(this.p37_1);
|
|
1389
1389
|
}
|
|
1390
1390
|
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1391
|
+
this.q37_1 = Companion_getInstance_3().f37(Companion_getInstance_3().c37_1);
|
|
1392
|
+
this.r37_1 = getLanguageWasmName(this.o37_1, this.p37_1);
|
|
1393
|
+
this.s37_1 = NodePath.join(Companion_getInstance_3().e37_1, this.r37_1);
|
|
1394
1394
|
var tmp_0 = this;
|
|
1395
|
-
var tmp_1 = Companion_getInstance_3().
|
|
1396
|
-
tmp_0.
|
|
1395
|
+
var tmp_1 = Companion_getInstance_3().c37_1.Language.load(this.s37_1);
|
|
1396
|
+
tmp_0.t37_1 = tmp_1 instanceof Promise ? tmp_1 : THROW_CCE();
|
|
1397
1397
|
this.x9_1 = 1;
|
|
1398
|
-
suspendResult = await_0(this.
|
|
1398
|
+
suspendResult = await_0(this.t37_1, this);
|
|
1399
1399
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1400
1400
|
return suspendResult;
|
|
1401
1401
|
}
|
|
@@ -1403,12 +1403,12 @@
|
|
|
1403
1403
|
continue $sm;
|
|
1404
1404
|
case 1:
|
|
1405
1405
|
var languageGrammar = suspendResult;
|
|
1406
|
-
this.
|
|
1407
|
-
var tmp0 = Companion_getInstance_3().
|
|
1408
|
-
var tmp2 = this.
|
|
1409
|
-
var value = this.
|
|
1406
|
+
this.q37_1.setLanguage(languageGrammar);
|
|
1407
|
+
var tmp0 = Companion_getInstance_3().d37_1;
|
|
1408
|
+
var tmp2 = this.p37_1;
|
|
1409
|
+
var value = this.q37_1;
|
|
1410
1410
|
tmp0.r2(tmp2, value);
|
|
1411
|
-
return this.
|
|
1411
|
+
return this.q37_1;
|
|
1412
1412
|
case 2:
|
|
1413
1413
|
throw this.aa_1;
|
|
1414
1414
|
}
|
|
@@ -1426,19 +1426,19 @@
|
|
|
1426
1426
|
function JsCodeParser() {
|
|
1427
1427
|
Companion_getInstance_3();
|
|
1428
1428
|
}
|
|
1429
|
-
protoOf(JsCodeParser).
|
|
1429
|
+
protoOf(JsCodeParser).u38 = function ($completion) {
|
|
1430
1430
|
var tmp = new $initializeCOROUTINE$(this, $completion);
|
|
1431
1431
|
tmp.z9_1 = Unit_instance;
|
|
1432
1432
|
tmp.aa_1 = null;
|
|
1433
1433
|
return tmp.fa();
|
|
1434
1434
|
};
|
|
1435
|
-
protoOf(JsCodeParser).
|
|
1435
|
+
protoOf(JsCodeParser).h39 = function (sourceCode, filePath, language, $completion) {
|
|
1436
1436
|
var tmp = new $parseNodesCOROUTINE$(this, sourceCode, filePath, language, $completion);
|
|
1437
1437
|
tmp.z9_1 = Unit_instance;
|
|
1438
1438
|
tmp.aa_1 = null;
|
|
1439
1439
|
return tmp.fa();
|
|
1440
1440
|
};
|
|
1441
|
-
protoOf(JsCodeParser).
|
|
1441
|
+
protoOf(JsCodeParser).i39 = function (sourceCode, filePath, language, $completion) {
|
|
1442
1442
|
var tmp = new $parseImportsCOROUTINE$(this, sourceCode, filePath, language, $completion);
|
|
1443
1443
|
tmp.z9_1 = Unit_instance;
|
|
1444
1444
|
tmp.aa_1 = null;
|