@flock/wirespec 0.19.0-RC.2 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +163 -163
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt-mordant.mjs.map +1 -1
  5. package/clikt-clikt.mjs +1566 -1566
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +444 -444
  8. package/kotlin-kotlin-stdlib.mjs +2571 -5539
  9. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  10. package/kotlin-openapi-bindings.mjs +20696 -6702
  11. package/kotlin-openapi-bindings.mjs.map +1 -1
  12. package/kotlin-rgxgen.mjs +1818 -1818
  13. package/kotlinx-io-kotlinx-io-core.mjs +453 -453
  14. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2224 -2061
  16. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  17. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1956 -1481
  18. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  19. package/mordant-mordant.mjs +1361 -1361
  20. package/package.json +14 -9
  21. package/wirespec-lsp.mjs +7 -0
  22. package/wirespec-msw.d.ts +53 -0
  23. package/wirespec-msw.mjs +83 -0
  24. package/wirespec-src-compiler-core.mjs +1760 -1696
  25. package/wirespec-src-compiler-core.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-java.mjs +461 -425
  27. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-kotlin.mjs +408 -309
  29. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-python.mjs +382 -383
  31. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-rust.mjs +448 -425
  33. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-scala.mjs +171 -172
  35. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  36. package/wirespec-src-compiler-emitters-typescript.mjs +508 -477
  37. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  38. package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
  39. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  40. package/wirespec-src-compiler-ir.mjs +3869 -3919
  41. package/wirespec-src-compiler-ir.mjs.map +1 -1
  42. package/wirespec-src-compiler-lib.mjs +418 -418
  43. package/wirespec-src-compiler-lib.mjs.map +1 -1
  44. package/wirespec-src-converter-avro.mjs +512 -512
  45. package/wirespec-src-converter-avro.mjs.map +1 -1
  46. package/wirespec-src-converter-openapi.mjs +1596 -1522
  47. package/wirespec-src-converter-openapi.mjs.map +1 -1
  48. package/wirespec-src-ide-lsp.mjs +4928 -0
  49. package/wirespec-src-ide-lsp.mjs.map +1 -0
  50. package/wirespec-src-plugin-arguments.mjs +185 -185
  51. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  52. package/wirespec-src-plugin-cli.mjs +106 -106
  53. package/wirespec-src-plugin-npm.d.mts +2 -11
  54. package/wirespec-src-plugin-npm.mjs +47 -42
  55. package/wirespec-src-plugin-npm.mjs.map +1 -1
  56. package/wirespec-src-tools-generator.mjs +53 -53
  57. package/wirespec-src-tools-generator.mjs.map +1 -1
  58. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +0 -4
  59. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +0 -1
  60. package/kotest-kotest-assertions-kotest-assertions-core.mjs +0 -4
  61. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +0 -1
  62. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +0 -4
  63. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +0 -1
  64. package/kotest-kotest-common.mjs +0 -56
  65. package/kotest-kotest-common.mjs.map +0 -1
  66. package/kotest-kotest-framework-kotest-framework-engine.mjs +0 -4
  67. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +0 -1
  68. package/kotest-kotest-property-kotest-property-datetime.mjs +0 -4
  69. package/kotest-kotest-property-kotest-property-datetime.mjs.map +0 -1
  70. package/kotest-kotest-property.mjs +0 -3230
  71. package/kotest-kotest-property.mjs.map +0 -1
  72. package/kotest-property-arbs.mjs +0 -482
  73. package/kotest-property-arbs.mjs.map +0 -1
  74. package/kotlinx-coroutines-test.mjs +0 -4
  75. package/kotlinx-coroutines-test.mjs.map +0 -1
  76. package/wirespec-generator.d.ts +0 -52
  77. package/wirespec-generator.mjs +0 -9
  78. package/wirespec-src-integration-kotest.mjs +0 -1537
  79. package/wirespec-src-integration-kotest.mjs.map +0 -1
  80. package/xmlutil-core.mjs +0 -4
  81. package/xmlutil-core.mjs.map +0 -1
  82. package/xmlutil-serialization.mjs +0 -4
  83. package/xmlutil-serialization.mjs.map +0 -1
@@ -0,0 +1,4928 @@
1
+ import {
2
+ LinkedHashMap_init_$Create$3t495nfs82xn as LinkedHashMap_init_$Create$,
3
+ Unit_instance28fytmsmm6r23 as Unit_instance,
4
+ protoOf180f3jzyo7rfj as protoOf,
5
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
6
+ coerceIn10f36k81le1mm as coerceIn,
7
+ coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
8
+ mutableListOf6oorvk2mtdmp as mutableListOf,
9
+ charCodeAt1yspne1d8erbm as charCodeAt,
10
+ _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
11
+ toIntArray2d4xwvtjb01mq as toIntArray,
12
+ VOID3gxj6tk5isa35 as VOID,
13
+ noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
14
+ collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
15
+ ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
16
+ emptyList1g2z5xcrvp2zy as emptyList,
17
+ ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
18
+ emptyMapr06gerzljqtm as emptyMap,
19
+ to2cs3ny02qtbcb as to,
20
+ mapOf2zpbbmyqk8xpf as mapOf,
21
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
22
+ getStringHashCode26igk1bx568vk as getStringHashCode,
23
+ Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$,
24
+ Companion_instance25ullnynvxd0w as Companion_instance,
25
+ getKClass3t8tygqu4lcxf as getKClass,
26
+ arrayOf1akklvh2at202 as arrayOf,
27
+ createKType31ecntyyaay3k as createKType,
28
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
29
+ isInterface3d6p8outrmvmk as isInterface,
30
+ _Result___init__impl__xyqfz83a5421h46yeyh as _Result___init__impl__xyqfz8,
31
+ createFailure8paxfkfa5dc7 as createFailure,
32
+ Result__exceptionOrNull_impl_p6xea91su3v1n6nioxn as Result__exceptionOrNull_impl_p6xea9,
33
+ _Result___get_value__impl__bjfvqg3630bgmytqwyb as _Result___get_value__impl__bjfvqg,
34
+ getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
35
+ _Result___get_isFailure__impl__jpiriv131ia60azkd5j as _Result___get_isFailure__impl__jpiriv,
36
+ KtList3hktaavzmj137 as KtList,
37
+ createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
38
+ lastOrNull1aq5oz189qoe1 as lastOrNull,
39
+ listOf1jh22dvmctj1r as listOf,
40
+ Enum3alwj03lh1n41 as Enum,
41
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
42
+ objectCreate1ve4bgxiu4x98 as objectCreate,
43
+ toString30pk9tzaqopn as toString,
44
+ hashCodeq5arwsb9dgti as hashCode,
45
+ equals2au1ep9vhcato as equals,
46
+ LazyThreadSafetyMode_PUBLICATION_getInstance1vspt3xrdob1a as LazyThreadSafetyMode_PUBLICATION_getInstance,
47
+ lazy1261dae0bgscp as lazy,
48
+ toString1pkumu07cwy4m as toString_0,
49
+ getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
50
+ StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
51
+ toIntOrNull3w2d066r9pvwm as toIntOrNull,
52
+ RegexOption_IGNORE_CASE_getInstance2ohbx186qe23p as RegexOption_IGNORE_CASE_getInstance,
53
+ Regex_init_$Create$o3w44y7t0smx as Regex_init_$Create$_0,
54
+ } from './kotlin-kotlin-stdlib.mjs';
55
+ import {
56
+ get_spec3cnzsbb1ufwje as get_spec,
57
+ get_logger18kl6wyy7pz6k as get_logger,
58
+ HasLanguageSpec1fo5x3q6dcifj as HasLanguageSpec,
59
+ NoLoggero51bdi3we1s0 as NoLogger,
60
+ FileUri2xjkmf4jmvpab as FileUri,
61
+ ModuleContent750xezzquzy9 as ModuleContent,
62
+ parse24q0pxmbph48t as parse,
63
+ WirespecSpec_getInstance2x4f4ixdva2y9 as WirespecSpec_getInstance,
64
+ tokenize2ymgjd76lr1sl as tokenize,
65
+ KebabCaseIdentifier2roq2r1s9ahq8 as KebabCaseIdentifier,
66
+ DromedaryCaseIdentifier3bjovj9ngiet7 as DromedaryCaseIdentifier,
67
+ ScreamingSnakeCaseIdentifierjzeiajd79unl as ScreamingSnakeCaseIdentifier,
68
+ SnakeCaseIdentifiert3757tq4n2n1 as SnakeCaseIdentifier,
69
+ ScreamingKebabCaseIdentifier13r61crww8ni8 as ScreamingKebabCaseIdentifier,
70
+ Method7frfgnmsbcz7 as Method,
71
+ TypeIdentifiergm4ir7tusmw4 as TypeIdentifier,
72
+ PascalCaseIdentifier1ini8sgmeovpo as PascalCaseIdentifier,
73
+ SpecificType3uxvcea176lg1 as SpecificType,
74
+ Keyword2prqifa1s3j3m as Keyword,
75
+ } from './wirespec-src-compiler-core.mjs';
76
+ import {
77
+ nonEmptyListOf17xawqyzwrlrt as nonEmptyListOf,
78
+ _NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa as _NonEmptyList___get_all__impl__pmf509,
79
+ _NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f as _NonEmptyList___init__impl__fxd0xp,
80
+ NonEmptyList3ak25ihy2gcvs as NonEmptyList,
81
+ Left2oemzq1tpcg4i as Left,
82
+ Right351sh2v8odavg as Right,
83
+ } from './arrow-arrow-core.mjs';
84
+ import {
85
+ serializer1i4e9ym37oxmo as serializer,
86
+ KSerializerzf77vz1967fq as KSerializer,
87
+ PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
88
+ StringSerializer_getInstance2hpyx1v3alnih as StringSerializer_getInstance,
89
+ UnknownFieldException_init_$Create$2dwzk7svpmqo1 as UnknownFieldException_init_$Create$,
90
+ get_nullable197rfua9r7fsz as get_nullable,
91
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
92
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
93
+ throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
94
+ IntSerializer_getInstance3pev8isxtkhc2 as IntSerializer_getInstance,
95
+ ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
96
+ LinkedHashMapSerializermaoj2nyji7op as LinkedHashMapSerializer,
97
+ BooleanSerializer_getInstancei6giaf3o69cd as BooleanSerializer_getInstance,
98
+ } from './kotlinx-serialization-kotlinx-serialization-core.mjs';
99
+ import {
100
+ JsonElementf07o4p6p57al as JsonElement,
101
+ JsonNull_getInstance3cean630pgfyb as JsonNull_getInstance,
102
+ JsonNull2liwjj96vm0w2 as JsonNull,
103
+ Jsonsmkyu9xjl7fv as Json,
104
+ JsonPrimitiveSerializer_getInstance3aiuqg95nb72f as JsonPrimitiveSerializer_getInstance,
105
+ JsonElementSerializer_getInstanceiquifkyyjet4 as JsonElementSerializer_getInstance,
106
+ } from './kotlinx-serialization-kotlinx-serialization-json.mjs';
107
+ //region block: imports
108
+ var imul = Math.imul;
109
+ //endregion
110
+ //region block: pre-declaration
111
+ initMetadataForClass(DocumentStore, 'DocumentStore', DocumentStore);
112
+ initMetadataForClass(Document, 'Document');
113
+ initMetadataForClass(LanguageService$parseContext$1, VOID, VOID, VOID, [HasLanguageSpec, NoLogger]);
114
+ initMetadataForObject(LanguageService, 'LanguageService');
115
+ initMetadataForClass(LspToken, 'LspToken');
116
+ initMetadataForClass(LspServer, 'LspServer');
117
+ initMetadataForObject(SemanticTokenLegend, 'SemanticTokenLegend');
118
+ initMetadataForClass(TokenKind, 'TokenKind', VOID, Enum);
119
+ initMetadataForCompanion(Companion);
120
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
121
+ initMetadataForClass(JsonRpcMessage, 'JsonRpcMessage', JsonRpcMessage, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
122
+ initMetadataForCompanion(Companion_0);
123
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
124
+ initMetadataForClass(JsonRpcError, 'JsonRpcError', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
125
+ initMetadataForCompanion(Companion_1);
126
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
127
+ initMetadataForClass(InitializeResult, 'InitializeResult', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
128
+ initMetadataForCompanion(Companion_2);
129
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
130
+ initMetadataForClass(SemanticTokensParams, 'SemanticTokensParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
131
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
132
+ initMetadataForClass(TextDocumentIdentifier, 'TextDocumentIdentifier', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
133
+ initMetadataForCompanion(Companion_3);
134
+ initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
135
+ initMetadataForClass(SemanticTokens, 'SemanticTokens', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
136
+ initMetadataForCompanion(Companion_4);
137
+ initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
138
+ initMetadataForClass(TextDocumentPositionParams, 'TextDocumentPositionParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_5});
139
+ initMetadataForCompanion(Companion_5);
140
+ initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
141
+ initMetadataForClass(Location, 'Location', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_6});
142
+ initMetadataForCompanion(Companion_6);
143
+ initMetadataForObject($serializer_7, '$serializer', VOID, VOID, [GeneratedSerializer]);
144
+ initMetadataForClass(Position, 'Position', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_7});
145
+ initMetadataForCompanion(Companion_7);
146
+ initMetadataForObject($serializer_8, '$serializer', VOID, VOID, [GeneratedSerializer]);
147
+ initMetadataForClass(Range, 'Range', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_8});
148
+ initMetadataForCompanion(Companion_8);
149
+ initMetadataForObject($serializer_9, '$serializer', VOID, VOID, [GeneratedSerializer]);
150
+ initMetadataForClass(RenameParams, 'RenameParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_9});
151
+ initMetadataForCompanion(Companion_9);
152
+ initMetadataForObject($serializer_10, '$serializer', VOID, VOID, [GeneratedSerializer]);
153
+ initMetadataForClass(WorkspaceEdit, 'WorkspaceEdit', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
154
+ initMetadataForCompanion(Companion_10);
155
+ initMetadataForObject($serializer_11, '$serializer', VOID, VOID, [GeneratedSerializer]);
156
+ initMetadataForClass(DidOpenTextDocumentParams, 'DidOpenTextDocumentParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_11});
157
+ initMetadataForObject($serializer_12, '$serializer', VOID, VOID, [GeneratedSerializer]);
158
+ initMetadataForClass(TextDocumentItem, 'TextDocumentItem', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_12});
159
+ initMetadataForCompanion(Companion_11);
160
+ initMetadataForObject($serializer_13, '$serializer', VOID, VOID, [GeneratedSerializer]);
161
+ initMetadataForClass(DidChangeTextDocumentParams, 'DidChangeTextDocumentParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_13});
162
+ initMetadataForObject($serializer_14, '$serializer', VOID, VOID, [GeneratedSerializer]);
163
+ initMetadataForClass(TextDocumentContentChangeEvent, 'TextDocumentContentChangeEvent', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_14});
164
+ initMetadataForObject($serializer_15, '$serializer', VOID, VOID, [GeneratedSerializer]);
165
+ initMetadataForClass(VersionedTextDocumentIdentifier, 'VersionedTextDocumentIdentifier', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_15});
166
+ initMetadataForCompanion(Companion_12);
167
+ initMetadataForObject($serializer_16, '$serializer', VOID, VOID, [GeneratedSerializer]);
168
+ initMetadataForClass(DidCloseTextDocumentParams, 'DidCloseTextDocumentParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_16});
169
+ initMetadataForCompanion(Companion_13);
170
+ initMetadataForObject($serializer_17, '$serializer', VOID, VOID, [GeneratedSerializer]);
171
+ initMetadataForClass(Diagnostic, 'Diagnostic', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_17});
172
+ initMetadataForCompanion(Companion_14);
173
+ initMetadataForObject($serializer_18, '$serializer', VOID, VOID, [GeneratedSerializer]);
174
+ initMetadataForClass(PublishDiagnosticsParams, 'PublishDiagnosticsParams', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_18});
175
+ initMetadataForCompanion(Companion_15);
176
+ initMetadataForObject($serializer_19, '$serializer', VOID, VOID, [GeneratedSerializer]);
177
+ initMetadataForClass(ServerCapabilities, 'ServerCapabilities', ServerCapabilities, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_19});
178
+ initMetadataForCompanion(Companion_16);
179
+ initMetadataForObject($serializer_20, '$serializer', VOID, VOID, [GeneratedSerializer]);
180
+ initMetadataForClass(SemanticTokensOptions, 'SemanticTokensOptions', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_20});
181
+ initMetadataForCompanion(Companion_17);
182
+ initMetadataForObject($serializer_21, '$serializer', VOID, VOID, [GeneratedSerializer]);
183
+ initMetadataForClass(SemanticTokensLegend, 'SemanticTokensLegend', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_21});
184
+ initMetadataForCompanion(Companion_18);
185
+ initMetadataForObject($serializer_22, '$serializer', VOID, VOID, [GeneratedSerializer]);
186
+ initMetadataForClass(RenameOptions, 'RenameOptions', RenameOptions, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_22});
187
+ initMetadataForCompanion(Companion_19);
188
+ initMetadataForObject($serializer_23, '$serializer', VOID, VOID, [GeneratedSerializer]);
189
+ initMetadataForClass(ServerInfo, 'ServerInfo', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_23});
190
+ initMetadataForCompanion(Companion_20);
191
+ initMetadataForObject($serializer_24, '$serializer', VOID, VOID, [GeneratedSerializer]);
192
+ initMetadataForClass(TextEdit, 'TextEdit', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_24});
193
+ initMetadataForCompanion(Companion_21);
194
+ initMetadataForObject($serializer_25, '$serializer', VOID, VOID, [GeneratedSerializer]);
195
+ initMetadataForClass(TextDocumentSyncOptions, 'TextDocumentSyncOptions', TextDocumentSyncOptions, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_25});
196
+ initMetadataForClass(NodeIpcTransport, 'NodeIpcTransport', NodeIpcTransport);
197
+ initMetadataForClass(NodeStdioTransport, 'NodeStdioTransport', NodeStdioTransport);
198
+ //endregion
199
+ function DocumentStore() {
200
+ var tmp = this;
201
+ // Inline function 'kotlin.collections.mutableMapOf' call
202
+ tmp.j50_1 = LinkedHashMap_init_$Create$();
203
+ }
204
+ protoOf(DocumentStore).k50 = function (uri, version, text) {
205
+ // Inline function 'kotlin.also' call
206
+ var this_0 = new Document(uri, version, text);
207
+ // Inline function 'kotlin.collections.set' call
208
+ this.j50_1.s2(uri, this_0);
209
+ return this_0;
210
+ };
211
+ protoOf(DocumentStore).l50 = function (uri, version, text) {
212
+ var tmp0_safe_receiver = this.j50_1.p2(uri);
213
+ var tmp;
214
+ if (tmp0_safe_receiver == null) {
215
+ tmp = null;
216
+ } else {
217
+ // Inline function 'kotlin.also' call
218
+ tmp0_safe_receiver.q50(version, text);
219
+ tmp = tmp0_safe_receiver;
220
+ }
221
+ return tmp;
222
+ };
223
+ protoOf(DocumentStore).r50 = function (uri) {
224
+ this.j50_1.t2(uri);
225
+ };
226
+ protoOf(DocumentStore).fd = function (uri) {
227
+ return this.j50_1.p2(uri);
228
+ };
229
+ function Document(uri, version, text) {
230
+ this.m50_1 = uri;
231
+ this.n50_1 = version;
232
+ this.o50_1 = text;
233
+ this.p50_1 = computeLineStarts(text);
234
+ }
235
+ protoOf(Document).q50 = function (version, newText) {
236
+ this.n50_1 = version;
237
+ this.o50_1 = newText;
238
+ this.p50_1 = computeLineStarts(newText);
239
+ };
240
+ protoOf(Document).s50 = function (offset) {
241
+ var tmp0_elvis_lhs = this.p50_1;
242
+ var tmp;
243
+ if (tmp0_elvis_lhs == null) {
244
+ // Inline function 'kotlin.also' call
245
+ var this_0 = computeLineStarts(this.o50_1);
246
+ this.p50_1 = this_0;
247
+ tmp = this_0;
248
+ } else {
249
+ tmp = tmp0_elvis_lhs;
250
+ }
251
+ var lineStarts = tmp;
252
+ var clamped = coerceIn(offset, 0, this.o50_1.length);
253
+ var low = 0;
254
+ var high = lineStarts.length - 1 | 0;
255
+ while (low <= high) {
256
+ var mid = (low + high | 0) >>> 1 | 0;
257
+ var midStart = lineStarts[mid];
258
+ if (midStart === clamped)
259
+ return new Position(mid, 0);
260
+ else if (midStart < clamped)
261
+ low = mid + 1 | 0;
262
+ else
263
+ high = mid - 1 | 0;
264
+ }
265
+ var line = coerceAtLeast(low - 1 | 0, 0);
266
+ var character = clamped - lineStarts[line] | 0;
267
+ return new Position(line, character);
268
+ };
269
+ function computeLineStarts(text) {
270
+ var starts = mutableListOf([0]);
271
+ var i = 0;
272
+ while (i < text.length) {
273
+ var c = charCodeAt(text, i);
274
+ if (c === _Char___init__impl__6a9atx(10)) {
275
+ starts.x(i + 1 | 0);
276
+ } else if (c === _Char___init__impl__6a9atx(13)) {
277
+ if ((i + 1 | 0) < text.length && charCodeAt(text, i + 1 | 0) === _Char___init__impl__6a9atx(10)) {
278
+ i = i + 1 | 0;
279
+ }
280
+ starts.x(i + 1 | 0);
281
+ }
282
+ i = i + 1 | 0;
283
+ }
284
+ return toIntArray(starts);
285
+ }
286
+ function get_PASCAL_CASE_REGEX() {
287
+ _init_properties_LanguageService_kt__im7jbf();
288
+ return PASCAL_CASE_REGEX;
289
+ }
290
+ var PASCAL_CASE_REGEX;
291
+ function tokenAt($this, document, position) {
292
+ var tmp0 = $this.u50(document);
293
+ var tmp$ret$1;
294
+ $l$block: {
295
+ // Inline function 'kotlin.collections.firstOrNull' call
296
+ var _iterator__ex2g4s = tmp0.t();
297
+ while (_iterator__ex2g4s.u()) {
298
+ var element = _iterator__ex2g4s.v();
299
+ if (element.v50_1 === position.a51_1 && position.b51_1 >= element.w50_1 && position.b51_1 <= (element.w50_1 + element.x50_1 | 0)) {
300
+ tmp$ret$1 = element;
301
+ break $l$block;
302
+ }
303
+ }
304
+ tmp$ret$1 = null;
305
+ }
306
+ return tmp$ret$1;
307
+ }
308
+ function toLspToken($this, _this__u8e3s4) {
309
+ var tmp0_elvis_lhs = toTokenKind(_this__u8e3s4.js_1);
310
+ var tmp;
311
+ if (tmp0_elvis_lhs == null) {
312
+ return null;
313
+ } else {
314
+ tmp = tmp0_elvis_lhs;
315
+ }
316
+ var kind = tmp;
317
+ var length = _this__u8e3s4.ks_1.ns_1.ov_1;
318
+ if (length === 0)
319
+ return null;
320
+ var line = _this__u8e3s4.ks_1.ls_1 - 1 | 0;
321
+ var character = (_this__u8e3s4.ks_1.ms_1 - 1 | 0) - length | 0;
322
+ if (line < 0 || character < 0)
323
+ return null;
324
+ return new LspToken(line, character, length, kind, _this__u8e3s4.is_1);
325
+ }
326
+ function toDiagnostic($this, _this__u8e3s4, document) {
327
+ var length = coerceAtLeast(_this__u8e3s4.qs_1.ns_1.ov_1, 1);
328
+ var endIdx = coerceAtLeast(_this__u8e3s4.qs_1.ns_1.nv_1, 0);
329
+ var startIdx = coerceAtLeast(endIdx - length | 0, 0);
330
+ var startPos = document.s50(startIdx);
331
+ var endPos = document.s50(endIdx);
332
+ var tmp0_range = new Range(startPos, endPos);
333
+ var tmp2_message = _this__u8e3s4.e();
334
+ return new Diagnostic(tmp0_range, 1, VOID, 'wirespec', tmp2_message);
335
+ }
336
+ function LanguageService$parseContext$1() {
337
+ }
338
+ function LanguageService() {
339
+ LanguageService_instance = this;
340
+ var tmp = this;
341
+ tmp.t50_1 = new LanguageService$parseContext$1();
342
+ }
343
+ protoOf(LanguageService).c51 = function (document) {
344
+ // Inline function 'arrow.core.Either.fold' call
345
+ var this_0 = parse(this.t50_1, nonEmptyListOf(new ModuleContent(new FileUri(document.m50_1), document.o50_1), []));
346
+ var tmp;
347
+ if (this_0 instanceof Right) {
348
+ this_0.fm_1;
349
+ tmp = emptyList();
350
+ } else {
351
+ if (this_0 instanceof Left) {
352
+ // Inline function 'arrow.core.NonEmptyList.map' call
353
+ var this_1 = this_0.dm_1.om_1;
354
+ // Inline function 'kotlin.collections.map' call
355
+ var this_2 = _NonEmptyList___get_all__impl__pmf509(this_1);
356
+ // Inline function 'kotlin.collections.mapTo' call
357
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
358
+ var _iterator__ex2g4s = this_2.t();
359
+ while (_iterator__ex2g4s.u()) {
360
+ var item = _iterator__ex2g4s.v();
361
+ var tmp$ret$1 = toDiagnostic(LanguageService_getInstance(), item, document);
362
+ destination.x(tmp$ret$1);
363
+ }
364
+ var tmp$ret$4 = _NonEmptyList___init__impl__fxd0xp(destination);
365
+ tmp = new NonEmptyList(tmp$ret$4);
366
+ } else {
367
+ noWhenBranchMatchedException();
368
+ }
369
+ }
370
+ return tmp;
371
+ };
372
+ protoOf(LanguageService).u50 = function (document) {
373
+ // Inline function 'kotlin.collections.mapNotNull' call
374
+ var tmp0 = new NonEmptyList(tokenize(WirespecSpec_getInstance(), document.o50_1));
375
+ // Inline function 'kotlin.collections.mapNotNullTo' call
376
+ var destination = ArrayList_init_$Create$_0();
377
+ // Inline function 'kotlin.collections.forEach' call
378
+ var _iterator__ex2g4s = tmp0.t();
379
+ while (_iterator__ex2g4s.u()) {
380
+ var element = _iterator__ex2g4s.v();
381
+ var tmp0_safe_receiver = toLspToken(LanguageService_getInstance(), element);
382
+ if (tmp0_safe_receiver == null)
383
+ null;
384
+ else {
385
+ // Inline function 'kotlin.let' call
386
+ destination.x(tmp0_safe_receiver);
387
+ }
388
+ }
389
+ return destination;
390
+ };
391
+ protoOf(LanguageService).d51 = function (document) {
392
+ // Inline function 'kotlin.collections.mutableListOf' call
393
+ var data = ArrayList_init_$Create$_0();
394
+ var prevLine = 0;
395
+ var prevChar = 0;
396
+ var _iterator__ex2g4s = this.u50(document).t();
397
+ while (_iterator__ex2g4s.u()) {
398
+ var t = _iterator__ex2g4s.v();
399
+ var deltaLine = t.v50_1 - prevLine | 0;
400
+ var deltaChar = deltaLine === 0 ? t.w50_1 - prevChar | 0 : t.w50_1;
401
+ // Inline function 'kotlin.collections.plusAssign' call
402
+ data.x(deltaLine);
403
+ // Inline function 'kotlin.collections.plusAssign' call
404
+ data.x(deltaChar);
405
+ // Inline function 'kotlin.collections.plusAssign' call
406
+ var element = t.x50_1;
407
+ data.x(element);
408
+ // Inline function 'kotlin.collections.plusAssign' call
409
+ var element_0 = toSemanticType(t.y50_1);
410
+ data.x(element_0);
411
+ // Inline function 'kotlin.collections.plusAssign' call
412
+ data.x(0);
413
+ prevLine = t.v50_1;
414
+ prevChar = t.w50_1;
415
+ }
416
+ return new SemanticTokens(data);
417
+ };
418
+ protoOf(LanguageService).e51 = function (document, position) {
419
+ var tmp0_elvis_lhs = tokenAt(this, document, position);
420
+ var tmp;
421
+ if (tmp0_elvis_lhs == null) {
422
+ return emptyList();
423
+ } else {
424
+ tmp = tmp0_elvis_lhs;
425
+ }
426
+ var hit = tmp;
427
+ if (!hit.y50_1.equals(TokenKind_USER_TYPE_getInstance()))
428
+ return emptyList();
429
+ // Inline function 'kotlin.collections.filter' call
430
+ var tmp0 = this.u50(document);
431
+ // Inline function 'kotlin.collections.filterTo' call
432
+ var destination = ArrayList_init_$Create$_0();
433
+ var _iterator__ex2g4s = tmp0.t();
434
+ while (_iterator__ex2g4s.u()) {
435
+ var element = _iterator__ex2g4s.v();
436
+ if (element.y50_1.equals(TokenKind_USER_TYPE_getInstance()) && element.z50_1 === hit.z50_1) {
437
+ destination.x(element);
438
+ }
439
+ }
440
+ // Inline function 'kotlin.collections.map' call
441
+ // Inline function 'kotlin.collections.mapTo' call
442
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
443
+ var _iterator__ex2g4s_0 = destination.t();
444
+ while (_iterator__ex2g4s_0.u()) {
445
+ var item = _iterator__ex2g4s_0.v();
446
+ var tmp$ret$3 = new Location(document.m50_1, item.wc());
447
+ destination_0.x(tmp$ret$3);
448
+ }
449
+ return destination_0;
450
+ };
451
+ protoOf(LanguageService).f51 = function (document, position) {
452
+ var tmp0_elvis_lhs = tokenAt(this, document, position);
453
+ var tmp;
454
+ if (tmp0_elvis_lhs == null) {
455
+ return null;
456
+ } else {
457
+ tmp = tmp0_elvis_lhs;
458
+ }
459
+ var hit = tmp;
460
+ return hit.y50_1.equals(TokenKind_USER_TYPE_getInstance()) ? hit.wc() : null;
461
+ };
462
+ protoOf(LanguageService).g51 = function (document, position, newName) {
463
+ if (!isValidPascalCaseIdentifier(newName))
464
+ return null;
465
+ var tmp0_elvis_lhs = tokenAt(this, document, position);
466
+ var tmp;
467
+ if (tmp0_elvis_lhs == null) {
468
+ return null;
469
+ } else {
470
+ tmp = tmp0_elvis_lhs;
471
+ }
472
+ var hit = tmp;
473
+ if (!hit.y50_1.equals(TokenKind_USER_TYPE_getInstance()))
474
+ return null;
475
+ if (newName === hit.z50_1)
476
+ return new WorkspaceEdit(emptyMap());
477
+ // Inline function 'kotlin.collections.filter' call
478
+ var tmp0 = this.u50(document);
479
+ // Inline function 'kotlin.collections.filterTo' call
480
+ var destination = ArrayList_init_$Create$_0();
481
+ var _iterator__ex2g4s = tmp0.t();
482
+ while (_iterator__ex2g4s.u()) {
483
+ var element = _iterator__ex2g4s.v();
484
+ if (element.y50_1.equals(TokenKind_USER_TYPE_getInstance()) && element.z50_1 === hit.z50_1) {
485
+ destination.x(element);
486
+ }
487
+ }
488
+ // Inline function 'kotlin.collections.map' call
489
+ // Inline function 'kotlin.collections.mapTo' call
490
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
491
+ var _iterator__ex2g4s_0 = destination.t();
492
+ while (_iterator__ex2g4s_0.u()) {
493
+ var item = _iterator__ex2g4s_0.v();
494
+ var tmp$ret$3 = new TextEdit(item.wc(), newName);
495
+ destination_0.x(tmp$ret$3);
496
+ }
497
+ var edits = destination_0;
498
+ if (edits.r())
499
+ return null;
500
+ return new WorkspaceEdit(mapOf(to(document.m50_1, edits)));
501
+ };
502
+ var LanguageService_instance;
503
+ function LanguageService_getInstance() {
504
+ if (LanguageService_instance == null)
505
+ new LanguageService();
506
+ return LanguageService_instance;
507
+ }
508
+ function LspToken(line, character, length, kind, value) {
509
+ this.v50_1 = line;
510
+ this.w50_1 = character;
511
+ this.x50_1 = length;
512
+ this.y50_1 = kind;
513
+ this.z50_1 = value;
514
+ }
515
+ protoOf(LspToken).wc = function () {
516
+ return new Range(new Position(this.v50_1, this.w50_1), new Position(this.v50_1, this.w50_1 + this.x50_1 | 0));
517
+ };
518
+ protoOf(LspToken).toString = function () {
519
+ return 'LspToken(line=' + this.v50_1 + ', character=' + this.w50_1 + ', length=' + this.x50_1 + ', kind=' + this.y50_1.toString() + ', value=' + this.z50_1 + ')';
520
+ };
521
+ protoOf(LspToken).hashCode = function () {
522
+ var result = this.v50_1;
523
+ result = imul(result, 31) + this.w50_1 | 0;
524
+ result = imul(result, 31) + this.x50_1 | 0;
525
+ result = imul(result, 31) + this.y50_1.hashCode() | 0;
526
+ result = imul(result, 31) + getStringHashCode(this.z50_1) | 0;
527
+ return result;
528
+ };
529
+ protoOf(LspToken).equals = function (other) {
530
+ if (this === other)
531
+ return true;
532
+ if (!(other instanceof LspToken))
533
+ return false;
534
+ if (!(this.v50_1 === other.v50_1))
535
+ return false;
536
+ if (!(this.w50_1 === other.w50_1))
537
+ return false;
538
+ if (!(this.x50_1 === other.x50_1))
539
+ return false;
540
+ if (!this.y50_1.equals(other.y50_1))
541
+ return false;
542
+ if (!(this.z50_1 === other.z50_1))
543
+ return false;
544
+ return true;
545
+ };
546
+ function isValidPascalCaseIdentifier(name) {
547
+ _init_properties_LanguageService_kt__im7jbf();
548
+ return get_PASCAL_CASE_REGEX().oc(name);
549
+ }
550
+ var properties_initialized_LanguageService_kt_cwryz1;
551
+ function _init_properties_LanguageService_kt__im7jbf() {
552
+ if (!properties_initialized_LanguageService_kt_cwryz1) {
553
+ properties_initialized_LanguageService_kt_cwryz1 = true;
554
+ PASCAL_CASE_REGEX = Regex_init_$Create$('^[A-Z][A-Za-z0-9_]*$');
555
+ }
556
+ }
557
+ function onMessage($this, payload) {
558
+ // Inline function 'kotlin.runCatching' call
559
+ var tmp;
560
+ try {
561
+ // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
562
+ var this_0 = $this.j51_1;
563
+ // Inline function 'kotlinx.serialization.serializer' call
564
+ var this_1 = this_0.w24();
565
+ // Inline function 'kotlinx.serialization.internal.cast' call
566
+ var this_2 = serializer(this_1, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
567
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
568
+ // Inline function 'kotlin.Companion.success' call
569
+ var value = this_0.c2m(tmp$ret$1, payload);
570
+ tmp = _Result___init__impl__xyqfz8(value);
571
+ } catch ($p) {
572
+ var tmp_0;
573
+ if ($p instanceof Error) {
574
+ var e = $p;
575
+ // Inline function 'kotlin.Companion.failure' call
576
+ tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
577
+ } else {
578
+ throw $p;
579
+ }
580
+ tmp = tmp_0;
581
+ }
582
+ // Inline function 'kotlin.getOrElse' call
583
+ var this_3 = tmp;
584
+ var exception = Result__exceptionOrNull_impl_p6xea9(this_3);
585
+ var tmp_1;
586
+ if (exception == null) {
587
+ var tmp_2 = _Result___get_value__impl__bjfvqg(this_3);
588
+ tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
589
+ } else {
590
+ respondError($this, null, -32700, 'Parse error: ' + exception.message);
591
+ return Unit_instance;
592
+ }
593
+ var message = tmp_1;
594
+ try {
595
+ if (message.r51()) {
596
+ handleRequest($this, message);
597
+ } else if (message.q51()) {
598
+ handleNotification($this, message);
599
+ }
600
+ } catch ($p) {
601
+ if ($p instanceof Error) {
602
+ var t = $p;
603
+ if (!(message.l51_1 == null)) {
604
+ var tmp0_elvis_lhs = t.message;
605
+ var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getKClassFromExpression(t).o() : tmp0_elvis_lhs;
606
+ respondError($this, message.l51_1, -32603, tmp1_elvis_lhs == null ? 'internal error' : tmp1_elvis_lhs);
607
+ }
608
+ } else {
609
+ throw $p;
610
+ }
611
+ }
612
+ }
613
+ function handleRequest($this, message) {
614
+ var tmp0_elvis_lhs = message.l51_1;
615
+ var tmp;
616
+ if (tmp0_elvis_lhs == null) {
617
+ return Unit_instance;
618
+ } else {
619
+ tmp = tmp0_elvis_lhs;
620
+ }
621
+ var id = tmp;
622
+ switch (message.m51_1) {
623
+ case 'initialize':
624
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
625
+
626
+ var result = buildInitializeResult($this);
627
+ var tmp_0;
628
+ if (result instanceof JsonElement) {
629
+ tmp_0 = result;
630
+ } else {
631
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
632
+ var this_0 = $this.j51_1;
633
+ // Inline function 'kotlinx.serialization.serializer' call
634
+ var this_1 = this_0.w24();
635
+ // Inline function 'kotlinx.serialization.internal.cast' call
636
+ var this_2 = serializer(this_1, createKType(getKClass(InitializeResult), arrayOf([]), false));
637
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
638
+ tmp_0 = this_0.d2m(tmp$ret$1, result);
639
+ }
640
+
641
+ var element = tmp_0;
642
+ var response = new JsonRpcMessage(VOID, id, VOID, VOID, element);
643
+ // Inline function 'kotlinx.serialization.encodeToString' call
644
+
645
+ var this_3 = $this.j51_1;
646
+ // Inline function 'kotlinx.serialization.serializer' call
647
+
648
+ var this_4 = this_3.w24();
649
+ // Inline function 'kotlinx.serialization.internal.cast' call
650
+
651
+ var this_5 = serializer(this_4, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
652
+ var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
653
+ var tmp$ret$5 = this_3.b2m(tmp$ret$4, response);
654
+ $this.h51_1.s51(tmp$ret$5);
655
+ break;
656
+ case 'shutdown':
657
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
658
+
659
+ var result_0 = JsonNull_getInstance();
660
+ var tmp_1;
661
+ if (result_0 instanceof JsonElement) {
662
+ tmp_1 = result_0;
663
+ } else {
664
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
665
+ var this_6 = $this.j51_1;
666
+ // Inline function 'kotlinx.serialization.serializer' call
667
+ var this_7 = this_6.w24();
668
+ // Inline function 'kotlinx.serialization.internal.cast' call
669
+ var this_8 = serializer(this_7, createKType(getKClass(JsonNull), arrayOf([]), false));
670
+ var tmp$ret$8 = isInterface(this_8, KSerializer) ? this_8 : THROW_CCE();
671
+ tmp_1 = this_6.d2m(tmp$ret$8, result_0);
672
+ }
673
+
674
+ var element_0 = tmp_1;
675
+ var response_0 = new JsonRpcMessage(VOID, id, VOID, VOID, element_0);
676
+ // Inline function 'kotlinx.serialization.encodeToString' call
677
+
678
+ var this_9 = $this.j51_1;
679
+ // Inline function 'kotlinx.serialization.serializer' call
680
+
681
+ var this_10 = this_9.w24();
682
+ // Inline function 'kotlinx.serialization.internal.cast' call
683
+
684
+ var this_11 = serializer(this_10, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
685
+ var tmp$ret$11 = isInterface(this_11, KSerializer) ? this_11 : THROW_CCE();
686
+ var tmp$ret$12 = this_9.b2m(tmp$ret$11, response_0);
687
+ $this.h51_1.s51(tmp$ret$12);
688
+ break;
689
+ case 'textDocument/semanticTokens/full':
690
+ case 'textDocument/semanticTokens/full/delta':
691
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
692
+
693
+ var tmp0_safe_receiver = message.n51_1;
694
+ var tmp_2;
695
+ if (tmp0_safe_receiver == null) {
696
+ tmp_2 = null;
697
+ } else {
698
+ // Inline function 'kotlin.let' call
699
+ // Inline function 'kotlin.runCatching' call
700
+ var tmp_3;
701
+ try {
702
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
703
+ var this_12 = $this.j51_1;
704
+ // Inline function 'kotlinx.serialization.serializer' call
705
+ var this_13 = this_12.w24();
706
+ // Inline function 'kotlinx.serialization.internal.cast' call
707
+ var this_14 = serializer(this_13, createKType(getKClass(SemanticTokensParams), arrayOf([]), false));
708
+ var tmp$ret$15 = isInterface(this_14, KSerializer) ? this_14 : THROW_CCE();
709
+ // Inline function 'kotlin.Companion.success' call
710
+ var value = this_12.e2m(tmp$ret$15, tmp0_safe_receiver);
711
+ tmp_3 = _Result___init__impl__xyqfz8(value);
712
+ } catch ($p) {
713
+ var tmp_4;
714
+ if ($p instanceof Error) {
715
+ var e = $p;
716
+ // Inline function 'kotlin.Companion.failure' call
717
+ tmp_4 = _Result___init__impl__xyqfz8(createFailure(e));
718
+ } else {
719
+ throw $p;
720
+ }
721
+ tmp_3 = tmp_4;
722
+ }
723
+ // Inline function 'kotlin.Result.getOrNull' call
724
+ var this_15 = tmp_3;
725
+ var tmp_5;
726
+ if (_Result___get_isFailure__impl__jpiriv(this_15)) {
727
+ tmp_5 = null;
728
+ } else {
729
+ var tmp_6 = _Result___get_value__impl__bjfvqg(this_15);
730
+ tmp_5 = (tmp_6 == null ? true : !(tmp_6 == null)) ? tmp_6 : THROW_CCE();
731
+ }
732
+ tmp_2 = tmp_5;
733
+ }
734
+
735
+ var tmp2_elvis_lhs = tmp_2;
736
+ var tmp_7;
737
+ if (tmp2_elvis_lhs == null) {
738
+ // Inline function 'kotlin.run' call
739
+ respondError($this, id, -32602, 'Invalid params for ' + message.m51_1);
740
+ return Unit_instance;
741
+ } else {
742
+ tmp_7 = tmp2_elvis_lhs;
743
+ }
744
+
745
+ var params = tmp_7;
746
+ var doc = $this.i51_1.fd(params.u51_1.t51_1);
747
+ if (doc == null) {
748
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
749
+ var result_1 = JsonNull_getInstance();
750
+ var tmp_8;
751
+ if (result_1 instanceof JsonElement) {
752
+ tmp_8 = result_1;
753
+ } else {
754
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
755
+ var this_16 = $this.j51_1;
756
+ // Inline function 'kotlinx.serialization.serializer' call
757
+ var this_17 = this_16.w24();
758
+ // Inline function 'kotlinx.serialization.internal.cast' call
759
+ var this_18 = serializer(this_17, createKType(getKClass(JsonNull), arrayOf([]), false));
760
+ var tmp$ret$27 = isInterface(this_18, KSerializer) ? this_18 : THROW_CCE();
761
+ tmp_8 = this_16.d2m(tmp$ret$27, result_1);
762
+ }
763
+ var element_1 = tmp_8;
764
+ var response_1 = new JsonRpcMessage(VOID, id, VOID, VOID, element_1);
765
+ // Inline function 'kotlinx.serialization.encodeToString' call
766
+ var this_19 = $this.j51_1;
767
+ // Inline function 'kotlinx.serialization.serializer' call
768
+ var this_20 = this_19.w24();
769
+ // Inline function 'kotlinx.serialization.internal.cast' call
770
+ var this_21 = serializer(this_20, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
771
+ var tmp$ret$30 = isInterface(this_21, KSerializer) ? this_21 : THROW_CCE();
772
+ var tmp$ret$31 = this_19.b2m(tmp$ret$30, response_1);
773
+ $this.h51_1.s51(tmp$ret$31);
774
+ } else {
775
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
776
+ var result_2 = LanguageService_getInstance().d51(doc);
777
+ var tmp_9;
778
+ if (result_2 instanceof JsonElement) {
779
+ tmp_9 = result_2;
780
+ } else {
781
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
782
+ var this_22 = $this.j51_1;
783
+ // Inline function 'kotlinx.serialization.serializer' call
784
+ var this_23 = this_22.w24();
785
+ // Inline function 'kotlinx.serialization.internal.cast' call
786
+ var this_24 = serializer(this_23, createKType(getKClass(SemanticTokens), arrayOf([]), false));
787
+ var tmp$ret$34 = isInterface(this_24, KSerializer) ? this_24 : THROW_CCE();
788
+ tmp_9 = this_22.d2m(tmp$ret$34, result_2);
789
+ }
790
+ var element_2 = tmp_9;
791
+ var response_2 = new JsonRpcMessage(VOID, id, VOID, VOID, element_2);
792
+ // Inline function 'kotlinx.serialization.encodeToString' call
793
+ var this_25 = $this.j51_1;
794
+ // Inline function 'kotlinx.serialization.serializer' call
795
+ var this_26 = this_25.w24();
796
+ // Inline function 'kotlinx.serialization.internal.cast' call
797
+ var this_27 = serializer(this_26, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
798
+ var tmp$ret$37 = isInterface(this_27, KSerializer) ? this_27 : THROW_CCE();
799
+ var tmp$ret$38 = this_25.b2m(tmp$ret$37, response_2);
800
+ $this.h51_1.s51(tmp$ret$38);
801
+ }
802
+
803
+ break;
804
+ case 'textDocument/definition':
805
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
806
+
807
+ var tmp0_safe_receiver_0 = message.n51_1;
808
+ var tmp_10;
809
+ if (tmp0_safe_receiver_0 == null) {
810
+ tmp_10 = null;
811
+ } else {
812
+ // Inline function 'kotlin.let' call
813
+ // Inline function 'kotlin.runCatching' call
814
+ var tmp_11;
815
+ try {
816
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
817
+ var this_28 = $this.j51_1;
818
+ // Inline function 'kotlinx.serialization.serializer' call
819
+ var this_29 = this_28.w24();
820
+ // Inline function 'kotlinx.serialization.internal.cast' call
821
+ var this_30 = serializer(this_29, createKType(getKClass(TextDocumentPositionParams), arrayOf([]), false));
822
+ var tmp$ret$41 = isInterface(this_30, KSerializer) ? this_30 : THROW_CCE();
823
+ // Inline function 'kotlin.Companion.success' call
824
+ var value_0 = this_28.e2m(tmp$ret$41, tmp0_safe_receiver_0);
825
+ tmp_11 = _Result___init__impl__xyqfz8(value_0);
826
+ } catch ($p) {
827
+ var tmp_12;
828
+ if ($p instanceof Error) {
829
+ var e_0 = $p;
830
+ // Inline function 'kotlin.Companion.failure' call
831
+ tmp_12 = _Result___init__impl__xyqfz8(createFailure(e_0));
832
+ } else {
833
+ throw $p;
834
+ }
835
+ tmp_11 = tmp_12;
836
+ }
837
+ // Inline function 'kotlin.Result.getOrNull' call
838
+ var this_31 = tmp_11;
839
+ var tmp_13;
840
+ if (_Result___get_isFailure__impl__jpiriv(this_31)) {
841
+ tmp_13 = null;
842
+ } else {
843
+ var tmp_14 = _Result___get_value__impl__bjfvqg(this_31);
844
+ tmp_13 = (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : THROW_CCE();
845
+ }
846
+ tmp_10 = tmp_13;
847
+ }
848
+
849
+ var tmp3_elvis_lhs = tmp_10;
850
+ var tmp_15;
851
+ if (tmp3_elvis_lhs == null) {
852
+ // Inline function 'kotlin.run' call
853
+ respondError($this, id, -32602, 'Invalid params for textDocument/definition');
854
+ return Unit_instance;
855
+ } else {
856
+ tmp_15 = tmp3_elvis_lhs;
857
+ }
858
+
859
+ var params_0 = tmp_15;
860
+ var doc_0 = $this.i51_1.fd(params_0.v51_1.t51_1);
861
+ if (doc_0 == null) {
862
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
863
+ var result_3 = JsonNull_getInstance();
864
+ var tmp_16;
865
+ if (result_3 instanceof JsonElement) {
866
+ tmp_16 = result_3;
867
+ } else {
868
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
869
+ var this_32 = $this.j51_1;
870
+ // Inline function 'kotlinx.serialization.serializer' call
871
+ var this_33 = this_32.w24();
872
+ // Inline function 'kotlinx.serialization.internal.cast' call
873
+ var this_34 = serializer(this_33, createKType(getKClass(JsonNull), arrayOf([]), false));
874
+ var tmp$ret$53 = isInterface(this_34, KSerializer) ? this_34 : THROW_CCE();
875
+ tmp_16 = this_32.d2m(tmp$ret$53, result_3);
876
+ }
877
+ var element_3 = tmp_16;
878
+ var response_3 = new JsonRpcMessage(VOID, id, VOID, VOID, element_3);
879
+ // Inline function 'kotlinx.serialization.encodeToString' call
880
+ var this_35 = $this.j51_1;
881
+ // Inline function 'kotlinx.serialization.serializer' call
882
+ var this_36 = this_35.w24();
883
+ // Inline function 'kotlinx.serialization.internal.cast' call
884
+ var this_37 = serializer(this_36, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
885
+ var tmp$ret$56 = isInterface(this_37, KSerializer) ? this_37 : THROW_CCE();
886
+ var tmp$ret$57 = this_35.b2m(tmp$ret$56, response_3);
887
+ $this.h51_1.s51(tmp$ret$57);
888
+ } else {
889
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
890
+ var result_4 = LanguageService_getInstance().e51(doc_0, params_0.w51_1);
891
+ var tmp_17;
892
+ if (result_4 instanceof JsonElement) {
893
+ tmp_17 = result_4;
894
+ } else {
895
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
896
+ var this_38 = $this.j51_1;
897
+ // Inline function 'kotlinx.serialization.serializer' call
898
+ var this_39 = this_38.w24();
899
+ // Inline function 'kotlinx.serialization.internal.cast' call
900
+ var this_40 = serializer(this_39, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Location), arrayOf([]), false))]), false));
901
+ var tmp$ret$60 = isInterface(this_40, KSerializer) ? this_40 : THROW_CCE();
902
+ tmp_17 = this_38.d2m(tmp$ret$60, result_4);
903
+ }
904
+ var element_4 = tmp_17;
905
+ var response_4 = new JsonRpcMessage(VOID, id, VOID, VOID, element_4);
906
+ // Inline function 'kotlinx.serialization.encodeToString' call
907
+ var this_41 = $this.j51_1;
908
+ // Inline function 'kotlinx.serialization.serializer' call
909
+ var this_42 = this_41.w24();
910
+ // Inline function 'kotlinx.serialization.internal.cast' call
911
+ var this_43 = serializer(this_42, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
912
+ var tmp$ret$63 = isInterface(this_43, KSerializer) ? this_43 : THROW_CCE();
913
+ var tmp$ret$64 = this_41.b2m(tmp$ret$63, response_4);
914
+ $this.h51_1.s51(tmp$ret$64);
915
+ }
916
+
917
+ break;
918
+ case 'textDocument/prepareRename':
919
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
920
+
921
+ var tmp0_safe_receiver_1 = message.n51_1;
922
+ var tmp_18;
923
+ if (tmp0_safe_receiver_1 == null) {
924
+ tmp_18 = null;
925
+ } else {
926
+ // Inline function 'kotlin.let' call
927
+ // Inline function 'kotlin.runCatching' call
928
+ var tmp_19;
929
+ try {
930
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
931
+ var this_44 = $this.j51_1;
932
+ // Inline function 'kotlinx.serialization.serializer' call
933
+ var this_45 = this_44.w24();
934
+ // Inline function 'kotlinx.serialization.internal.cast' call
935
+ var this_46 = serializer(this_45, createKType(getKClass(TextDocumentPositionParams), arrayOf([]), false));
936
+ var tmp$ret$67 = isInterface(this_46, KSerializer) ? this_46 : THROW_CCE();
937
+ // Inline function 'kotlin.Companion.success' call
938
+ var value_1 = this_44.e2m(tmp$ret$67, tmp0_safe_receiver_1);
939
+ tmp_19 = _Result___init__impl__xyqfz8(value_1);
940
+ } catch ($p) {
941
+ var tmp_20;
942
+ if ($p instanceof Error) {
943
+ var e_1 = $p;
944
+ // Inline function 'kotlin.Companion.failure' call
945
+ tmp_20 = _Result___init__impl__xyqfz8(createFailure(e_1));
946
+ } else {
947
+ throw $p;
948
+ }
949
+ tmp_19 = tmp_20;
950
+ }
951
+ // Inline function 'kotlin.Result.getOrNull' call
952
+ var this_47 = tmp_19;
953
+ var tmp_21;
954
+ if (_Result___get_isFailure__impl__jpiriv(this_47)) {
955
+ tmp_21 = null;
956
+ } else {
957
+ var tmp_22 = _Result___get_value__impl__bjfvqg(this_47);
958
+ tmp_21 = (tmp_22 == null ? true : !(tmp_22 == null)) ? tmp_22 : THROW_CCE();
959
+ }
960
+ tmp_18 = tmp_21;
961
+ }
962
+
963
+ var tmp4_elvis_lhs = tmp_18;
964
+ var tmp_23;
965
+ if (tmp4_elvis_lhs == null) {
966
+ // Inline function 'kotlin.run' call
967
+ respondError($this, id, -32602, 'Invalid params for textDocument/prepareRename');
968
+ return Unit_instance;
969
+ } else {
970
+ tmp_23 = tmp4_elvis_lhs;
971
+ }
972
+
973
+ var params_1 = tmp_23;
974
+ var doc_1 = $this.i51_1.fd(params_1.v51_1.t51_1);
975
+ var tmp_24;
976
+ if (doc_1 == null) {
977
+ tmp_24 = null;
978
+ } else {
979
+ // Inline function 'kotlin.let' call
980
+ tmp_24 = LanguageService_getInstance().f51(doc_1, params_1.w51_1);
981
+ }
982
+
983
+ var range = tmp_24;
984
+ if (range == null) {
985
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
986
+ var result_5 = JsonNull_getInstance();
987
+ var tmp_25;
988
+ if (result_5 instanceof JsonElement) {
989
+ tmp_25 = result_5;
990
+ } else {
991
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
992
+ var this_48 = $this.j51_1;
993
+ // Inline function 'kotlinx.serialization.serializer' call
994
+ var this_49 = this_48.w24();
995
+ // Inline function 'kotlinx.serialization.internal.cast' call
996
+ var this_50 = serializer(this_49, createKType(getKClass(JsonNull), arrayOf([]), false));
997
+ var tmp$ret$81 = isInterface(this_50, KSerializer) ? this_50 : THROW_CCE();
998
+ tmp_25 = this_48.d2m(tmp$ret$81, result_5);
999
+ }
1000
+ var element_5 = tmp_25;
1001
+ var response_5 = new JsonRpcMessage(VOID, id, VOID, VOID, element_5);
1002
+ // Inline function 'kotlinx.serialization.encodeToString' call
1003
+ var this_51 = $this.j51_1;
1004
+ // Inline function 'kotlinx.serialization.serializer' call
1005
+ var this_52 = this_51.w24();
1006
+ // Inline function 'kotlinx.serialization.internal.cast' call
1007
+ var this_53 = serializer(this_52, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
1008
+ var tmp$ret$84 = isInterface(this_53, KSerializer) ? this_53 : THROW_CCE();
1009
+ var tmp$ret$85 = this_51.b2m(tmp$ret$84, response_5);
1010
+ $this.h51_1.s51(tmp$ret$85);
1011
+ } else {
1012
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
1013
+ var tmp_26;
1014
+ if (range instanceof JsonElement) {
1015
+ tmp_26 = range;
1016
+ } else {
1017
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
1018
+ var this_54 = $this.j51_1;
1019
+ // Inline function 'kotlinx.serialization.serializer' call
1020
+ var this_55 = this_54.w24();
1021
+ // Inline function 'kotlinx.serialization.internal.cast' call
1022
+ var this_56 = serializer(this_55, createKType(getKClass(Range), arrayOf([]), false));
1023
+ var tmp$ret$88 = isInterface(this_56, KSerializer) ? this_56 : THROW_CCE();
1024
+ tmp_26 = this_54.d2m(tmp$ret$88, range);
1025
+ }
1026
+ var element_6 = tmp_26;
1027
+ var response_6 = new JsonRpcMessage(VOID, id, VOID, VOID, element_6);
1028
+ // Inline function 'kotlinx.serialization.encodeToString' call
1029
+ var this_57 = $this.j51_1;
1030
+ // Inline function 'kotlinx.serialization.serializer' call
1031
+ var this_58 = this_57.w24();
1032
+ // Inline function 'kotlinx.serialization.internal.cast' call
1033
+ var this_59 = serializer(this_58, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
1034
+ var tmp$ret$91 = isInterface(this_59, KSerializer) ? this_59 : THROW_CCE();
1035
+ var tmp$ret$92 = this_57.b2m(tmp$ret$91, response_6);
1036
+ $this.h51_1.s51(tmp$ret$92);
1037
+ }
1038
+
1039
+ break;
1040
+ case 'textDocument/rename':
1041
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
1042
+
1043
+ var tmp0_safe_receiver_2 = message.n51_1;
1044
+ var tmp_27;
1045
+ if (tmp0_safe_receiver_2 == null) {
1046
+ tmp_27 = null;
1047
+ } else {
1048
+ // Inline function 'kotlin.let' call
1049
+ // Inline function 'kotlin.runCatching' call
1050
+ var tmp_28;
1051
+ try {
1052
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
1053
+ var this_60 = $this.j51_1;
1054
+ // Inline function 'kotlinx.serialization.serializer' call
1055
+ var this_61 = this_60.w24();
1056
+ // Inline function 'kotlinx.serialization.internal.cast' call
1057
+ var this_62 = serializer(this_61, createKType(getKClass(RenameParams), arrayOf([]), false));
1058
+ var tmp$ret$95 = isInterface(this_62, KSerializer) ? this_62 : THROW_CCE();
1059
+ // Inline function 'kotlin.Companion.success' call
1060
+ var value_2 = this_60.e2m(tmp$ret$95, tmp0_safe_receiver_2);
1061
+ tmp_28 = _Result___init__impl__xyqfz8(value_2);
1062
+ } catch ($p) {
1063
+ var tmp_29;
1064
+ if ($p instanceof Error) {
1065
+ var e_2 = $p;
1066
+ // Inline function 'kotlin.Companion.failure' call
1067
+ tmp_29 = _Result___init__impl__xyqfz8(createFailure(e_2));
1068
+ } else {
1069
+ throw $p;
1070
+ }
1071
+ tmp_28 = tmp_29;
1072
+ }
1073
+ // Inline function 'kotlin.Result.getOrNull' call
1074
+ var this_63 = tmp_28;
1075
+ var tmp_30;
1076
+ if (_Result___get_isFailure__impl__jpiriv(this_63)) {
1077
+ tmp_30 = null;
1078
+ } else {
1079
+ var tmp_31 = _Result___get_value__impl__bjfvqg(this_63);
1080
+ tmp_30 = (tmp_31 == null ? true : !(tmp_31 == null)) ? tmp_31 : THROW_CCE();
1081
+ }
1082
+ tmp_27 = tmp_30;
1083
+ }
1084
+
1085
+ var tmp6_elvis_lhs = tmp_27;
1086
+ var tmp_32;
1087
+ if (tmp6_elvis_lhs == null) {
1088
+ // Inline function 'kotlin.run' call
1089
+ respondError($this, id, -32602, 'Invalid params for textDocument/rename');
1090
+ return Unit_instance;
1091
+ } else {
1092
+ tmp_32 = tmp6_elvis_lhs;
1093
+ }
1094
+
1095
+ var params_2 = tmp_32;
1096
+ var doc_2 = $this.i51_1.fd(params_2.x51_1.t51_1);
1097
+ var tmp_33;
1098
+ if (doc_2 == null) {
1099
+ tmp_33 = null;
1100
+ } else {
1101
+ // Inline function 'kotlin.let' call
1102
+ tmp_33 = LanguageService_getInstance().g51(doc_2, params_2.y51_1, params_2.z51_1);
1103
+ }
1104
+
1105
+ var edit = tmp_33;
1106
+ if (edit == null) {
1107
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
1108
+ var result_6 = JsonNull_getInstance();
1109
+ var tmp_34;
1110
+ if (result_6 instanceof JsonElement) {
1111
+ tmp_34 = result_6;
1112
+ } else {
1113
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
1114
+ var this_64 = $this.j51_1;
1115
+ // Inline function 'kotlinx.serialization.serializer' call
1116
+ var this_65 = this_64.w24();
1117
+ // Inline function 'kotlinx.serialization.internal.cast' call
1118
+ var this_66 = serializer(this_65, createKType(getKClass(JsonNull), arrayOf([]), false));
1119
+ var tmp$ret$109 = isInterface(this_66, KSerializer) ? this_66 : THROW_CCE();
1120
+ tmp_34 = this_64.d2m(tmp$ret$109, result_6);
1121
+ }
1122
+ var element_7 = tmp_34;
1123
+ var response_7 = new JsonRpcMessage(VOID, id, VOID, VOID, element_7);
1124
+ // Inline function 'kotlinx.serialization.encodeToString' call
1125
+ var this_67 = $this.j51_1;
1126
+ // Inline function 'kotlinx.serialization.serializer' call
1127
+ var this_68 = this_67.w24();
1128
+ // Inline function 'kotlinx.serialization.internal.cast' call
1129
+ var this_69 = serializer(this_68, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
1130
+ var tmp$ret$112 = isInterface(this_69, KSerializer) ? this_69 : THROW_CCE();
1131
+ var tmp$ret$113 = this_67.b2m(tmp$ret$112, response_7);
1132
+ $this.h51_1.s51(tmp$ret$113);
1133
+ } else {
1134
+ // Inline function 'community.flock.wirespec.lsp.LspServer.respond' call
1135
+ var tmp_35;
1136
+ if (edit instanceof JsonElement) {
1137
+ tmp_35 = edit;
1138
+ } else {
1139
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
1140
+ var this_70 = $this.j51_1;
1141
+ // Inline function 'kotlinx.serialization.serializer' call
1142
+ var this_71 = this_70.w24();
1143
+ // Inline function 'kotlinx.serialization.internal.cast' call
1144
+ var this_72 = serializer(this_71, createKType(getKClass(WorkspaceEdit), arrayOf([]), false));
1145
+ var tmp$ret$116 = isInterface(this_72, KSerializer) ? this_72 : THROW_CCE();
1146
+ tmp_35 = this_70.d2m(tmp$ret$116, edit);
1147
+ }
1148
+ var element_8 = tmp_35;
1149
+ var response_8 = new JsonRpcMessage(VOID, id, VOID, VOID, element_8);
1150
+ // Inline function 'kotlinx.serialization.encodeToString' call
1151
+ var this_73 = $this.j51_1;
1152
+ // Inline function 'kotlinx.serialization.serializer' call
1153
+ var this_74 = this_73.w24();
1154
+ // Inline function 'kotlinx.serialization.internal.cast' call
1155
+ var this_75 = serializer(this_74, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
1156
+ var tmp$ret$119 = isInterface(this_75, KSerializer) ? this_75 : THROW_CCE();
1157
+ var tmp$ret$120 = this_73.b2m(tmp$ret$119, response_8);
1158
+ $this.h51_1.s51(tmp$ret$120);
1159
+ }
1160
+
1161
+ break;
1162
+ default:
1163
+ respondError($this, id, -32601, 'Method not found: ' + message.m51_1);
1164
+ break;
1165
+ }
1166
+ }
1167
+ function handleNotification($this, message) {
1168
+ switch (message.m51_1) {
1169
+ case 'initialized':
1170
+ break;
1171
+ case 'exit':
1172
+ break;
1173
+ case 'textDocument/didOpen':
1174
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
1175
+
1176
+ var tmp0_safe_receiver = message.n51_1;
1177
+ var tmp;
1178
+ if (tmp0_safe_receiver == null) {
1179
+ tmp = null;
1180
+ } else {
1181
+ // Inline function 'kotlin.let' call
1182
+ // Inline function 'kotlin.runCatching' call
1183
+ var tmp_0;
1184
+ try {
1185
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
1186
+ var this_0 = $this.j51_1;
1187
+ // Inline function 'kotlinx.serialization.serializer' call
1188
+ var this_1 = this_0.w24();
1189
+ // Inline function 'kotlinx.serialization.internal.cast' call
1190
+ var this_2 = serializer(this_1, createKType(getKClass(DidOpenTextDocumentParams), arrayOf([]), false));
1191
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
1192
+ // Inline function 'kotlin.Companion.success' call
1193
+ var value = this_0.e2m(tmp$ret$1, tmp0_safe_receiver);
1194
+ tmp_0 = _Result___init__impl__xyqfz8(value);
1195
+ } catch ($p) {
1196
+ var tmp_1;
1197
+ if ($p instanceof Error) {
1198
+ var e = $p;
1199
+ // Inline function 'kotlin.Companion.failure' call
1200
+ tmp_1 = _Result___init__impl__xyqfz8(createFailure(e));
1201
+ } else {
1202
+ throw $p;
1203
+ }
1204
+ tmp_0 = tmp_1;
1205
+ }
1206
+ // Inline function 'kotlin.Result.getOrNull' call
1207
+ var this_3 = tmp_0;
1208
+ var tmp_2;
1209
+ if (_Result___get_isFailure__impl__jpiriv(this_3)) {
1210
+ tmp_2 = null;
1211
+ } else {
1212
+ var tmp_3 = _Result___get_value__impl__bjfvqg(this_3);
1213
+ tmp_2 = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
1214
+ }
1215
+ tmp = tmp_2;
1216
+ }
1217
+
1218
+ var tmp1_elvis_lhs = tmp;
1219
+ var tmp_4;
1220
+ if (tmp1_elvis_lhs == null) {
1221
+ return Unit_instance;
1222
+ } else {
1223
+ tmp_4 = tmp1_elvis_lhs;
1224
+ }
1225
+
1226
+ var params = tmp_4;
1227
+ var doc = $this.i51_1.k50(params.e52_1.a52_1, params.e52_1.c52_1, params.e52_1.d52_1);
1228
+ publishDiagnostics($this, doc);
1229
+ break;
1230
+ case 'textDocument/didChange':
1231
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
1232
+
1233
+ var tmp0_safe_receiver_0 = message.n51_1;
1234
+ var tmp_5;
1235
+ if (tmp0_safe_receiver_0 == null) {
1236
+ tmp_5 = null;
1237
+ } else {
1238
+ // Inline function 'kotlin.let' call
1239
+ // Inline function 'kotlin.runCatching' call
1240
+ var tmp_6;
1241
+ try {
1242
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
1243
+ var this_4 = $this.j51_1;
1244
+ // Inline function 'kotlinx.serialization.serializer' call
1245
+ var this_5 = this_4.w24();
1246
+ // Inline function 'kotlinx.serialization.internal.cast' call
1247
+ var this_6 = serializer(this_5, createKType(getKClass(DidChangeTextDocumentParams), arrayOf([]), false));
1248
+ var tmp$ret$12 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
1249
+ // Inline function 'kotlin.Companion.success' call
1250
+ var value_0 = this_4.e2m(tmp$ret$12, tmp0_safe_receiver_0);
1251
+ tmp_6 = _Result___init__impl__xyqfz8(value_0);
1252
+ } catch ($p) {
1253
+ var tmp_7;
1254
+ if ($p instanceof Error) {
1255
+ var e_0 = $p;
1256
+ // Inline function 'kotlin.Companion.failure' call
1257
+ tmp_7 = _Result___init__impl__xyqfz8(createFailure(e_0));
1258
+ } else {
1259
+ throw $p;
1260
+ }
1261
+ tmp_6 = tmp_7;
1262
+ }
1263
+ // Inline function 'kotlin.Result.getOrNull' call
1264
+ var this_7 = tmp_6;
1265
+ var tmp_8;
1266
+ if (_Result___get_isFailure__impl__jpiriv(this_7)) {
1267
+ tmp_8 = null;
1268
+ } else {
1269
+ var tmp_9 = _Result___get_value__impl__bjfvqg(this_7);
1270
+ tmp_8 = (tmp_9 == null ? true : !(tmp_9 == null)) ? tmp_9 : THROW_CCE();
1271
+ }
1272
+ tmp_5 = tmp_8;
1273
+ }
1274
+
1275
+ var tmp2_elvis_lhs = tmp_5;
1276
+ var tmp_10;
1277
+ if (tmp2_elvis_lhs == null) {
1278
+ return Unit_instance;
1279
+ } else {
1280
+ tmp_10 = tmp2_elvis_lhs;
1281
+ }
1282
+
1283
+ var params_0 = tmp_10;
1284
+ var tmp3_safe_receiver = lastOrNull(params_0.g52_1);
1285
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i52_1;
1286
+ var tmp_11;
1287
+ if (tmp4_elvis_lhs == null) {
1288
+ return Unit_instance;
1289
+ } else {
1290
+ tmp_11 = tmp4_elvis_lhs;
1291
+ }
1292
+
1293
+ var newText = tmp_11;
1294
+ var tmp5_elvis_lhs = params_0.f52_1.k52_1;
1295
+ var tmp6_elvis_lhs = $this.i51_1.l50(params_0.f52_1.j52_1, tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs, newText);
1296
+ var tmp_12;
1297
+ if (tmp6_elvis_lhs == null) {
1298
+ var tmp7_elvis_lhs = params_0.f52_1.k52_1;
1299
+ tmp_12 = $this.i51_1.k50(params_0.f52_1.j52_1, tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs, newText);
1300
+ } else {
1301
+ tmp_12 = tmp6_elvis_lhs;
1302
+ }
1303
+
1304
+ var doc_0 = tmp_12;
1305
+ publishDiagnostics($this, doc_0);
1306
+ break;
1307
+ case 'textDocument/didClose':
1308
+ // Inline function 'community.flock.wirespec.lsp.LspServer.decodeOrNull' call
1309
+
1310
+ var tmp0_safe_receiver_1 = message.n51_1;
1311
+ var tmp_13;
1312
+ if (tmp0_safe_receiver_1 == null) {
1313
+ tmp_13 = null;
1314
+ } else {
1315
+ // Inline function 'kotlin.let' call
1316
+ // Inline function 'kotlin.runCatching' call
1317
+ var tmp_14;
1318
+ try {
1319
+ // Inline function 'kotlinx.serialization.json.decodeFromJsonElement' call
1320
+ var this_8 = $this.j51_1;
1321
+ // Inline function 'kotlinx.serialization.serializer' call
1322
+ var this_9 = this_8.w24();
1323
+ // Inline function 'kotlinx.serialization.internal.cast' call
1324
+ var this_10 = serializer(this_9, createKType(getKClass(DidCloseTextDocumentParams), arrayOf([]), false));
1325
+ var tmp$ret$23 = isInterface(this_10, KSerializer) ? this_10 : THROW_CCE();
1326
+ // Inline function 'kotlin.Companion.success' call
1327
+ var value_1 = this_8.e2m(tmp$ret$23, tmp0_safe_receiver_1);
1328
+ tmp_14 = _Result___init__impl__xyqfz8(value_1);
1329
+ } catch ($p) {
1330
+ var tmp_15;
1331
+ if ($p instanceof Error) {
1332
+ var e_1 = $p;
1333
+ // Inline function 'kotlin.Companion.failure' call
1334
+ tmp_15 = _Result___init__impl__xyqfz8(createFailure(e_1));
1335
+ } else {
1336
+ throw $p;
1337
+ }
1338
+ tmp_14 = tmp_15;
1339
+ }
1340
+ // Inline function 'kotlin.Result.getOrNull' call
1341
+ var this_11 = tmp_14;
1342
+ var tmp_16;
1343
+ if (_Result___get_isFailure__impl__jpiriv(this_11)) {
1344
+ tmp_16 = null;
1345
+ } else {
1346
+ var tmp_17 = _Result___get_value__impl__bjfvqg(this_11);
1347
+ tmp_16 = (tmp_17 == null ? true : !(tmp_17 == null)) ? tmp_17 : THROW_CCE();
1348
+ }
1349
+ tmp_13 = tmp_16;
1350
+ }
1351
+
1352
+ var tmp8_elvis_lhs = tmp_13;
1353
+ var tmp_18;
1354
+ if (tmp8_elvis_lhs == null) {
1355
+ return Unit_instance;
1356
+ } else {
1357
+ tmp_18 = tmp8_elvis_lhs;
1358
+ }
1359
+
1360
+ var params_1 = tmp_18;
1361
+ $this.i51_1.r50(params_1.l52_1.t51_1);
1362
+ break;
1363
+ default:
1364
+ break;
1365
+ }
1366
+ }
1367
+ function publishDiagnostics($this, doc) {
1368
+ var diagnostics = LanguageService_getInstance().c51(doc);
1369
+ var params = new PublishDiagnosticsParams(doc.m50_1, diagnostics);
1370
+ // Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
1371
+ var this_0 = $this.j51_1;
1372
+ // Inline function 'kotlinx.serialization.serializer' call
1373
+ var this_1 = this_0.w24();
1374
+ // Inline function 'kotlinx.serialization.internal.cast' call
1375
+ var this_2 = serializer(this_1, createKType(getKClass(PublishDiagnosticsParams), arrayOf([]), false));
1376
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
1377
+ var tmp$ret$2 = this_0.d2m(tmp$ret$1, params);
1378
+ sendNotification($this, 'textDocument/publishDiagnostics', tmp$ret$2);
1379
+ }
1380
+ function buildInitializeResult($this) {
1381
+ return new InitializeResult(new ServerCapabilities(VOID, new SemanticTokensOptions(new SemanticTokensLegend(SemanticTokenLegend_getInstance().q52_1, SemanticTokenLegend_getInstance().r52_1), false, true), true, new RenameOptions(true)), new ServerInfo('wirespec-lsp'));
1382
+ }
1383
+ function respondError($this, id, code, message) {
1384
+ var response = new JsonRpcMessage(VOID, id, VOID, VOID, VOID, new JsonRpcError(code, message));
1385
+ // Inline function 'kotlinx.serialization.encodeToString' call
1386
+ var this_0 = $this.j51_1;
1387
+ // Inline function 'kotlinx.serialization.serializer' call
1388
+ var this_1 = this_0.w24();
1389
+ // Inline function 'kotlinx.serialization.internal.cast' call
1390
+ var this_2 = serializer(this_1, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
1391
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
1392
+ var tmp$ret$2 = this_0.b2m(tmp$ret$1, response);
1393
+ $this.h51_1.s51(tmp$ret$2);
1394
+ }
1395
+ function sendNotification($this, method, params) {
1396
+ var message = new JsonRpcMessage(VOID, VOID, method, params);
1397
+ // Inline function 'kotlinx.serialization.encodeToString' call
1398
+ var this_0 = $this.j51_1;
1399
+ // Inline function 'kotlinx.serialization.serializer' call
1400
+ var this_1 = this_0.w24();
1401
+ // Inline function 'kotlinx.serialization.internal.cast' call
1402
+ var this_2 = serializer(this_1, createKType(getKClass(JsonRpcMessage), arrayOf([]), false));
1403
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
1404
+ var tmp$ret$2 = this_0.b2m(tmp$ret$1, message);
1405
+ $this.h51_1.s51(tmp$ret$2);
1406
+ }
1407
+ function LspServer$json$lambda($this$Json) {
1408
+ $this$Json.w2m_1 = true;
1409
+ $this$Json.u2m_1 = true;
1410
+ $this$Json.v2m_1 = false;
1411
+ return Unit_instance;
1412
+ }
1413
+ function LspServer$onMessage$ref(p0) {
1414
+ var l = function (_this__u8e3s4) {
1415
+ var tmp0 = p0;
1416
+ onMessage(tmp0, _this__u8e3s4);
1417
+ return Unit_instance;
1418
+ };
1419
+ l.callableName = 'onMessage';
1420
+ return l;
1421
+ }
1422
+ function LspServer(transport) {
1423
+ this.h51_1 = transport;
1424
+ this.i51_1 = new DocumentStore();
1425
+ var tmp = this;
1426
+ tmp.j51_1 = Json(VOID, LspServer$json$lambda);
1427
+ }
1428
+ protoOf(LspServer).s52 = function () {
1429
+ this.h51_1.t52(LspServer$onMessage$ref(this));
1430
+ };
1431
+ function SemanticTokenLegend() {
1432
+ SemanticTokenLegend_instance = this;
1433
+ this.m52_1 = 0;
1434
+ this.n52_1 = 1;
1435
+ this.o52_1 = 2;
1436
+ this.p52_1 = 3;
1437
+ this.q52_1 = listOf(['keyword', 'type', 'variable', 'method']);
1438
+ var tmp = this;
1439
+ // Inline function 'kotlin.collections.listOf' call
1440
+ tmp.r52_1 = emptyList();
1441
+ }
1442
+ var SemanticTokenLegend_instance;
1443
+ function SemanticTokenLegend_getInstance() {
1444
+ if (SemanticTokenLegend_instance == null)
1445
+ new SemanticTokenLegend();
1446
+ return SemanticTokenLegend_instance;
1447
+ }
1448
+ function toSemanticType(_this__u8e3s4) {
1449
+ var tmp;
1450
+ switch (_this__u8e3s4.b3_1) {
1451
+ case 0:
1452
+ tmp = 0;
1453
+ break;
1454
+ case 1:
1455
+ tmp = 1;
1456
+ break;
1457
+ case 2:
1458
+ tmp = 1;
1459
+ break;
1460
+ case 3:
1461
+ tmp = 2;
1462
+ break;
1463
+ case 4:
1464
+ tmp = 3;
1465
+ break;
1466
+ default:
1467
+ noWhenBranchMatchedException();
1468
+ break;
1469
+ }
1470
+ return tmp;
1471
+ }
1472
+ var TokenKind_KEYWORD_instance;
1473
+ var TokenKind_BUILT_IN_TYPE_instance;
1474
+ var TokenKind_USER_TYPE_instance;
1475
+ var TokenKind_FIELD_instance;
1476
+ var TokenKind_METHOD_instance;
1477
+ var TokenKind_entriesInitialized;
1478
+ function TokenKind_initEntries() {
1479
+ if (TokenKind_entriesInitialized)
1480
+ return Unit_instance;
1481
+ TokenKind_entriesInitialized = true;
1482
+ TokenKind_KEYWORD_instance = new TokenKind('KEYWORD', 0);
1483
+ TokenKind_BUILT_IN_TYPE_instance = new TokenKind('BUILT_IN_TYPE', 1);
1484
+ TokenKind_USER_TYPE_instance = new TokenKind('USER_TYPE', 2);
1485
+ TokenKind_FIELD_instance = new TokenKind('FIELD', 3);
1486
+ TokenKind_METHOD_instance = new TokenKind('METHOD', 4);
1487
+ }
1488
+ function TokenKind(name, ordinal) {
1489
+ Enum.call(this, name, ordinal);
1490
+ }
1491
+ function toTokenKind(_this__u8e3s4) {
1492
+ var tmp;
1493
+ if (isInterface(_this__u8e3s4, Keyword)) {
1494
+ tmp = TokenKind_KEYWORD_getInstance();
1495
+ } else {
1496
+ if (isInterface(_this__u8e3s4, SpecificType)) {
1497
+ tmp = TokenKind_BUILT_IN_TYPE_getInstance();
1498
+ } else {
1499
+ if (_this__u8e3s4 instanceof PascalCaseIdentifier) {
1500
+ tmp = TokenKind_USER_TYPE_getInstance();
1501
+ } else {
1502
+ if (isInterface(_this__u8e3s4, TypeIdentifier)) {
1503
+ tmp = TokenKind_USER_TYPE_getInstance();
1504
+ } else {
1505
+ if (_this__u8e3s4 instanceof Method) {
1506
+ tmp = TokenKind_METHOD_getInstance();
1507
+ } else {
1508
+ var tmp_0;
1509
+ var tmp_1;
1510
+ if (_this__u8e3s4 instanceof DromedaryCaseIdentifier) {
1511
+ tmp_1 = true;
1512
+ } else {
1513
+ tmp_1 = _this__u8e3s4 instanceof KebabCaseIdentifier;
1514
+ }
1515
+ if (tmp_1) {
1516
+ tmp_0 = true;
1517
+ } else {
1518
+ var tmp_2;
1519
+ if (_this__u8e3s4 instanceof ScreamingKebabCaseIdentifier) {
1520
+ tmp_2 = true;
1521
+ } else {
1522
+ var tmp_3;
1523
+ if (_this__u8e3s4 instanceof SnakeCaseIdentifier) {
1524
+ tmp_3 = true;
1525
+ } else {
1526
+ tmp_3 = _this__u8e3s4 instanceof ScreamingSnakeCaseIdentifier;
1527
+ }
1528
+ tmp_2 = tmp_3;
1529
+ }
1530
+ tmp_0 = tmp_2;
1531
+ }
1532
+ if (tmp_0) {
1533
+ tmp = TokenKind_FIELD_getInstance();
1534
+ } else {
1535
+ tmp = null;
1536
+ }
1537
+ }
1538
+ }
1539
+ }
1540
+ }
1541
+ }
1542
+ return tmp;
1543
+ }
1544
+ function TokenKind_KEYWORD_getInstance() {
1545
+ TokenKind_initEntries();
1546
+ return TokenKind_KEYWORD_instance;
1547
+ }
1548
+ function TokenKind_BUILT_IN_TYPE_getInstance() {
1549
+ TokenKind_initEntries();
1550
+ return TokenKind_BUILT_IN_TYPE_instance;
1551
+ }
1552
+ function TokenKind_USER_TYPE_getInstance() {
1553
+ TokenKind_initEntries();
1554
+ return TokenKind_USER_TYPE_instance;
1555
+ }
1556
+ function TokenKind_FIELD_getInstance() {
1557
+ TokenKind_initEntries();
1558
+ return TokenKind_FIELD_instance;
1559
+ }
1560
+ function TokenKind_METHOD_getInstance() {
1561
+ TokenKind_initEntries();
1562
+ return TokenKind_METHOD_instance;
1563
+ }
1564
+ function Companion() {
1565
+ }
1566
+ var Companion_instance_0;
1567
+ function Companion_getInstance() {
1568
+ return Companion_instance_0;
1569
+ }
1570
+ function $serializer() {
1571
+ $serializer_instance = this;
1572
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.JsonRpcMessage', this, 6);
1573
+ tmp0_serialDesc.v2b('jsonrpc', true);
1574
+ tmp0_serialDesc.v2b('id', true);
1575
+ tmp0_serialDesc.v2b('method', true);
1576
+ tmp0_serialDesc.v2b('params', true);
1577
+ tmp0_serialDesc.v2b('result', true);
1578
+ tmp0_serialDesc.v2b('error', true);
1579
+ this.u52_1 = tmp0_serialDesc;
1580
+ }
1581
+ protoOf($serializer).v52 = function (encoder, value) {
1582
+ var tmp0_desc = this.u52_1;
1583
+ var tmp1_output = encoder.h24(tmp0_desc);
1584
+ if (tmp1_output.e26(tmp0_desc, 0) ? true : !(value.k51_1 === '2.0')) {
1585
+ tmp1_output.w25(tmp0_desc, 0, value.k51_1);
1586
+ }
1587
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.l51_1 == null)) {
1588
+ tmp1_output.a26(tmp0_desc, 1, JsonPrimitiveSerializer_getInstance(), value.l51_1);
1589
+ }
1590
+ if (tmp1_output.e26(tmp0_desc, 2) ? true : !(value.m51_1 == null)) {
1591
+ tmp1_output.a26(tmp0_desc, 2, StringSerializer_getInstance(), value.m51_1);
1592
+ }
1593
+ if (tmp1_output.e26(tmp0_desc, 3) ? true : !(value.n51_1 == null)) {
1594
+ tmp1_output.a26(tmp0_desc, 3, JsonElementSerializer_getInstance(), value.n51_1);
1595
+ }
1596
+ if (tmp1_output.e26(tmp0_desc, 4) ? true : !(value.o51_1 == null)) {
1597
+ tmp1_output.a26(tmp0_desc, 4, JsonElementSerializer_getInstance(), value.o51_1);
1598
+ }
1599
+ if (tmp1_output.e26(tmp0_desc, 5) ? true : !(value.p51_1 == null)) {
1600
+ tmp1_output.a26(tmp0_desc, 5, $serializer_getInstance_0(), value.p51_1);
1601
+ }
1602
+ tmp1_output.i24(tmp0_desc);
1603
+ };
1604
+ protoOf($serializer).i21 = function (encoder, value) {
1605
+ return this.v52(encoder, value instanceof JsonRpcMessage ? value : THROW_CCE());
1606
+ };
1607
+ protoOf($serializer).j21 = function (decoder) {
1608
+ var tmp0_desc = this.u52_1;
1609
+ var tmp1_flag = true;
1610
+ var tmp2_index = 0;
1611
+ var tmp3_bitMask0 = 0;
1612
+ var tmp4_local0 = null;
1613
+ var tmp5_local1 = null;
1614
+ var tmp6_local2 = null;
1615
+ var tmp7_local3 = null;
1616
+ var tmp8_local4 = null;
1617
+ var tmp9_local5 = null;
1618
+ var tmp10_input = decoder.h24(tmp0_desc);
1619
+ if (tmp10_input.x24()) {
1620
+ tmp4_local0 = tmp10_input.r24(tmp0_desc, 0);
1621
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1622
+ tmp5_local1 = tmp10_input.v24(tmp0_desc, 1, JsonPrimitiveSerializer_getInstance(), tmp5_local1);
1623
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1624
+ tmp6_local2 = tmp10_input.v24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1625
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1626
+ tmp7_local3 = tmp10_input.v24(tmp0_desc, 3, JsonElementSerializer_getInstance(), tmp7_local3);
1627
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1628
+ tmp8_local4 = tmp10_input.v24(tmp0_desc, 4, JsonElementSerializer_getInstance(), tmp8_local4);
1629
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1630
+ tmp9_local5 = tmp10_input.v24(tmp0_desc, 5, $serializer_getInstance_0(), tmp9_local5);
1631
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1632
+ } else
1633
+ while (tmp1_flag) {
1634
+ tmp2_index = tmp10_input.y24(tmp0_desc);
1635
+ switch (tmp2_index) {
1636
+ case -1:
1637
+ tmp1_flag = false;
1638
+ break;
1639
+ case 0:
1640
+ tmp4_local0 = tmp10_input.r24(tmp0_desc, 0);
1641
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1642
+ break;
1643
+ case 1:
1644
+ tmp5_local1 = tmp10_input.v24(tmp0_desc, 1, JsonPrimitiveSerializer_getInstance(), tmp5_local1);
1645
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1646
+ break;
1647
+ case 2:
1648
+ tmp6_local2 = tmp10_input.v24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
1649
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1650
+ break;
1651
+ case 3:
1652
+ tmp7_local3 = tmp10_input.v24(tmp0_desc, 3, JsonElementSerializer_getInstance(), tmp7_local3);
1653
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
1654
+ break;
1655
+ case 4:
1656
+ tmp8_local4 = tmp10_input.v24(tmp0_desc, 4, JsonElementSerializer_getInstance(), tmp8_local4);
1657
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
1658
+ break;
1659
+ case 5:
1660
+ tmp9_local5 = tmp10_input.v24(tmp0_desc, 5, $serializer_getInstance_0(), tmp9_local5);
1661
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
1662
+ break;
1663
+ default:
1664
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1665
+ }
1666
+ }
1667
+ tmp10_input.i24(tmp0_desc);
1668
+ return JsonRpcMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
1669
+ };
1670
+ protoOf($serializer).h21 = function () {
1671
+ return this.u52_1;
1672
+ };
1673
+ protoOf($serializer).k2c = function () {
1674
+ // Inline function 'kotlin.arrayOf' call
1675
+ // Inline function 'kotlin.js.unsafeCast' call
1676
+ // Inline function 'kotlin.js.asDynamic' call
1677
+ return [StringSerializer_getInstance(), get_nullable(JsonPrimitiveSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(JsonElementSerializer_getInstance()), get_nullable(JsonElementSerializer_getInstance()), get_nullable($serializer_getInstance_0())];
1678
+ };
1679
+ var $serializer_instance;
1680
+ function $serializer_getInstance() {
1681
+ if ($serializer_instance == null)
1682
+ new $serializer();
1683
+ return $serializer_instance;
1684
+ }
1685
+ function JsonRpcMessage_init_$Init$(seen0, jsonrpc, id, method, params, result, error, serializationConstructorMarker, $this) {
1686
+ if (!(0 === (0 & seen0))) {
1687
+ throwMissingFieldException(seen0, 0, $serializer_getInstance().u52_1);
1688
+ }
1689
+ if (0 === (seen0 & 1))
1690
+ $this.k51_1 = '2.0';
1691
+ else
1692
+ $this.k51_1 = jsonrpc;
1693
+ if (0 === (seen0 & 2))
1694
+ $this.l51_1 = null;
1695
+ else
1696
+ $this.l51_1 = id;
1697
+ if (0 === (seen0 & 4))
1698
+ $this.m51_1 = null;
1699
+ else
1700
+ $this.m51_1 = method;
1701
+ if (0 === (seen0 & 8))
1702
+ $this.n51_1 = null;
1703
+ else
1704
+ $this.n51_1 = params;
1705
+ if (0 === (seen0 & 16))
1706
+ $this.o51_1 = null;
1707
+ else
1708
+ $this.o51_1 = result;
1709
+ if (0 === (seen0 & 32))
1710
+ $this.p51_1 = null;
1711
+ else
1712
+ $this.p51_1 = error;
1713
+ return $this;
1714
+ }
1715
+ function JsonRpcMessage_init_$Create$(seen0, jsonrpc, id, method, params, result, error, serializationConstructorMarker) {
1716
+ return JsonRpcMessage_init_$Init$(seen0, jsonrpc, id, method, params, result, error, serializationConstructorMarker, objectCreate(protoOf(JsonRpcMessage)));
1717
+ }
1718
+ function JsonRpcMessage(jsonrpc, id, method, params, result, error) {
1719
+ jsonrpc = jsonrpc === VOID ? '2.0' : jsonrpc;
1720
+ id = id === VOID ? null : id;
1721
+ method = method === VOID ? null : method;
1722
+ params = params === VOID ? null : params;
1723
+ result = result === VOID ? null : result;
1724
+ error = error === VOID ? null : error;
1725
+ this.k51_1 = jsonrpc;
1726
+ this.l51_1 = id;
1727
+ this.m51_1 = method;
1728
+ this.n51_1 = params;
1729
+ this.o51_1 = result;
1730
+ this.p51_1 = error;
1731
+ }
1732
+ protoOf(JsonRpcMessage).r51 = function () {
1733
+ return !(this.l51_1 == null) && !(this.m51_1 == null);
1734
+ };
1735
+ protoOf(JsonRpcMessage).q51 = function () {
1736
+ return this.l51_1 == null && !(this.m51_1 == null);
1737
+ };
1738
+ protoOf(JsonRpcMessage).toString = function () {
1739
+ return 'JsonRpcMessage(jsonrpc=' + this.k51_1 + ', id=' + toString(this.l51_1) + ', method=' + this.m51_1 + ', params=' + toString(this.n51_1) + ', result=' + toString(this.o51_1) + ', error=' + toString(this.p51_1) + ')';
1740
+ };
1741
+ protoOf(JsonRpcMessage).hashCode = function () {
1742
+ var result = getStringHashCode(this.k51_1);
1743
+ result = imul(result, 31) + (this.l51_1 == null ? 0 : hashCode(this.l51_1)) | 0;
1744
+ result = imul(result, 31) + (this.m51_1 == null ? 0 : getStringHashCode(this.m51_1)) | 0;
1745
+ result = imul(result, 31) + (this.n51_1 == null ? 0 : hashCode(this.n51_1)) | 0;
1746
+ result = imul(result, 31) + (this.o51_1 == null ? 0 : hashCode(this.o51_1)) | 0;
1747
+ result = imul(result, 31) + (this.p51_1 == null ? 0 : this.p51_1.hashCode()) | 0;
1748
+ return result;
1749
+ };
1750
+ protoOf(JsonRpcMessage).equals = function (other) {
1751
+ if (this === other)
1752
+ return true;
1753
+ if (!(other instanceof JsonRpcMessage))
1754
+ return false;
1755
+ if (!(this.k51_1 === other.k51_1))
1756
+ return false;
1757
+ if (!equals(this.l51_1, other.l51_1))
1758
+ return false;
1759
+ if (!(this.m51_1 == other.m51_1))
1760
+ return false;
1761
+ if (!equals(this.n51_1, other.n51_1))
1762
+ return false;
1763
+ if (!equals(this.o51_1, other.o51_1))
1764
+ return false;
1765
+ if (!equals(this.p51_1, other.p51_1))
1766
+ return false;
1767
+ return true;
1768
+ };
1769
+ function Companion_0() {
1770
+ this.w52_1 = -32700;
1771
+ this.x52_1 = -32600;
1772
+ this.y52_1 = -32601;
1773
+ this.z52_1 = -32602;
1774
+ this.a53_1 = -32603;
1775
+ }
1776
+ var Companion_instance_1;
1777
+ function Companion_getInstance_0() {
1778
+ return Companion_instance_1;
1779
+ }
1780
+ function $serializer_0() {
1781
+ $serializer_instance_0 = this;
1782
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.JsonRpcError', this, 3);
1783
+ tmp0_serialDesc.v2b('code', false);
1784
+ tmp0_serialDesc.v2b('message', false);
1785
+ tmp0_serialDesc.v2b('data', true);
1786
+ this.b53_1 = tmp0_serialDesc;
1787
+ }
1788
+ protoOf($serializer_0).c53 = function (encoder, value) {
1789
+ var tmp0_desc = this.b53_1;
1790
+ var tmp1_output = encoder.h24(tmp0_desc);
1791
+ tmp1_output.r25(tmp0_desc, 0, value.d53_1);
1792
+ tmp1_output.w25(tmp0_desc, 1, value.e53_1);
1793
+ if (tmp1_output.e26(tmp0_desc, 2) ? true : !(value.f53_1 == null)) {
1794
+ tmp1_output.a26(tmp0_desc, 2, JsonElementSerializer_getInstance(), value.f53_1);
1795
+ }
1796
+ tmp1_output.i24(tmp0_desc);
1797
+ };
1798
+ protoOf($serializer_0).i21 = function (encoder, value) {
1799
+ return this.c53(encoder, value instanceof JsonRpcError ? value : THROW_CCE());
1800
+ };
1801
+ protoOf($serializer_0).j21 = function (decoder) {
1802
+ var tmp0_desc = this.b53_1;
1803
+ var tmp1_flag = true;
1804
+ var tmp2_index = 0;
1805
+ var tmp3_bitMask0 = 0;
1806
+ var tmp4_local0 = 0;
1807
+ var tmp5_local1 = null;
1808
+ var tmp6_local2 = null;
1809
+ var tmp7_input = decoder.h24(tmp0_desc);
1810
+ if (tmp7_input.x24()) {
1811
+ tmp4_local0 = tmp7_input.m24(tmp0_desc, 0);
1812
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1813
+ tmp5_local1 = tmp7_input.r24(tmp0_desc, 1);
1814
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1815
+ tmp6_local2 = tmp7_input.v24(tmp0_desc, 2, JsonElementSerializer_getInstance(), tmp6_local2);
1816
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1817
+ } else
1818
+ while (tmp1_flag) {
1819
+ tmp2_index = tmp7_input.y24(tmp0_desc);
1820
+ switch (tmp2_index) {
1821
+ case -1:
1822
+ tmp1_flag = false;
1823
+ break;
1824
+ case 0:
1825
+ tmp4_local0 = tmp7_input.m24(tmp0_desc, 0);
1826
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1827
+ break;
1828
+ case 1:
1829
+ tmp5_local1 = tmp7_input.r24(tmp0_desc, 1);
1830
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1831
+ break;
1832
+ case 2:
1833
+ tmp6_local2 = tmp7_input.v24(tmp0_desc, 2, JsonElementSerializer_getInstance(), tmp6_local2);
1834
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
1835
+ break;
1836
+ default:
1837
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1838
+ }
1839
+ }
1840
+ tmp7_input.i24(tmp0_desc);
1841
+ return JsonRpcError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
1842
+ };
1843
+ protoOf($serializer_0).h21 = function () {
1844
+ return this.b53_1;
1845
+ };
1846
+ protoOf($serializer_0).k2c = function () {
1847
+ // Inline function 'kotlin.arrayOf' call
1848
+ // Inline function 'kotlin.js.unsafeCast' call
1849
+ // Inline function 'kotlin.js.asDynamic' call
1850
+ return [IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(JsonElementSerializer_getInstance())];
1851
+ };
1852
+ var $serializer_instance_0;
1853
+ function $serializer_getInstance_0() {
1854
+ if ($serializer_instance_0 == null)
1855
+ new $serializer_0();
1856
+ return $serializer_instance_0;
1857
+ }
1858
+ function JsonRpcError_init_$Init$(seen0, code, message, data, serializationConstructorMarker, $this) {
1859
+ if (!(3 === (3 & seen0))) {
1860
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_0().b53_1);
1861
+ }
1862
+ $this.d53_1 = code;
1863
+ $this.e53_1 = message;
1864
+ if (0 === (seen0 & 4))
1865
+ $this.f53_1 = null;
1866
+ else
1867
+ $this.f53_1 = data;
1868
+ return $this;
1869
+ }
1870
+ function JsonRpcError_init_$Create$(seen0, code, message, data, serializationConstructorMarker) {
1871
+ return JsonRpcError_init_$Init$(seen0, code, message, data, serializationConstructorMarker, objectCreate(protoOf(JsonRpcError)));
1872
+ }
1873
+ function JsonRpcError(code, message, data) {
1874
+ data = data === VOID ? null : data;
1875
+ this.d53_1 = code;
1876
+ this.e53_1 = message;
1877
+ this.f53_1 = data;
1878
+ }
1879
+ protoOf(JsonRpcError).toString = function () {
1880
+ return 'JsonRpcError(code=' + this.d53_1 + ', message=' + this.e53_1 + ', data=' + toString(this.f53_1) + ')';
1881
+ };
1882
+ protoOf(JsonRpcError).hashCode = function () {
1883
+ var result = this.d53_1;
1884
+ result = imul(result, 31) + getStringHashCode(this.e53_1) | 0;
1885
+ result = imul(result, 31) + (this.f53_1 == null ? 0 : hashCode(this.f53_1)) | 0;
1886
+ return result;
1887
+ };
1888
+ protoOf(JsonRpcError).equals = function (other) {
1889
+ if (this === other)
1890
+ return true;
1891
+ if (!(other instanceof JsonRpcError))
1892
+ return false;
1893
+ if (!(this.d53_1 === other.d53_1))
1894
+ return false;
1895
+ if (!(this.e53_1 === other.e53_1))
1896
+ return false;
1897
+ if (!equals(this.f53_1, other.f53_1))
1898
+ return false;
1899
+ return true;
1900
+ };
1901
+ function Companion_1() {
1902
+ }
1903
+ var Companion_instance_2;
1904
+ function Companion_getInstance_1() {
1905
+ return Companion_instance_2;
1906
+ }
1907
+ function $serializer_1() {
1908
+ $serializer_instance_1 = this;
1909
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.InitializeResult', this, 2);
1910
+ tmp0_serialDesc.v2b('capabilities', false);
1911
+ tmp0_serialDesc.v2b('serverInfo', true);
1912
+ this.g53_1 = tmp0_serialDesc;
1913
+ }
1914
+ protoOf($serializer_1).h53 = function (encoder, value) {
1915
+ var tmp0_desc = this.g53_1;
1916
+ var tmp1_output = encoder.h24(tmp0_desc);
1917
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_19(), value.i53_1);
1918
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.j53_1 == null)) {
1919
+ tmp1_output.a26(tmp0_desc, 1, $serializer_getInstance_23(), value.j53_1);
1920
+ }
1921
+ tmp1_output.i24(tmp0_desc);
1922
+ };
1923
+ protoOf($serializer_1).i21 = function (encoder, value) {
1924
+ return this.h53(encoder, value instanceof InitializeResult ? value : THROW_CCE());
1925
+ };
1926
+ protoOf($serializer_1).j21 = function (decoder) {
1927
+ var tmp0_desc = this.g53_1;
1928
+ var tmp1_flag = true;
1929
+ var tmp2_index = 0;
1930
+ var tmp3_bitMask0 = 0;
1931
+ var tmp4_local0 = null;
1932
+ var tmp5_local1 = null;
1933
+ var tmp6_input = decoder.h24(tmp0_desc);
1934
+ if (tmp6_input.x24()) {
1935
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_19(), tmp4_local0);
1936
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1937
+ tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, $serializer_getInstance_23(), tmp5_local1);
1938
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1939
+ } else
1940
+ while (tmp1_flag) {
1941
+ tmp2_index = tmp6_input.y24(tmp0_desc);
1942
+ switch (tmp2_index) {
1943
+ case -1:
1944
+ tmp1_flag = false;
1945
+ break;
1946
+ case 0:
1947
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_19(), tmp4_local0);
1948
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1949
+ break;
1950
+ case 1:
1951
+ tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, $serializer_getInstance_23(), tmp5_local1);
1952
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
1953
+ break;
1954
+ default:
1955
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1956
+ }
1957
+ }
1958
+ tmp6_input.i24(tmp0_desc);
1959
+ return InitializeResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
1960
+ };
1961
+ protoOf($serializer_1).h21 = function () {
1962
+ return this.g53_1;
1963
+ };
1964
+ protoOf($serializer_1).k2c = function () {
1965
+ // Inline function 'kotlin.arrayOf' call
1966
+ // Inline function 'kotlin.js.unsafeCast' call
1967
+ // Inline function 'kotlin.js.asDynamic' call
1968
+ return [$serializer_getInstance_19(), get_nullable($serializer_getInstance_23())];
1969
+ };
1970
+ var $serializer_instance_1;
1971
+ function $serializer_getInstance_1() {
1972
+ if ($serializer_instance_1 == null)
1973
+ new $serializer_1();
1974
+ return $serializer_instance_1;
1975
+ }
1976
+ function InitializeResult_init_$Init$(seen0, capabilities, serverInfo, serializationConstructorMarker, $this) {
1977
+ if (!(1 === (1 & seen0))) {
1978
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_1().g53_1);
1979
+ }
1980
+ $this.i53_1 = capabilities;
1981
+ if (0 === (seen0 & 2))
1982
+ $this.j53_1 = null;
1983
+ else
1984
+ $this.j53_1 = serverInfo;
1985
+ return $this;
1986
+ }
1987
+ function InitializeResult_init_$Create$(seen0, capabilities, serverInfo, serializationConstructorMarker) {
1988
+ return InitializeResult_init_$Init$(seen0, capabilities, serverInfo, serializationConstructorMarker, objectCreate(protoOf(InitializeResult)));
1989
+ }
1990
+ function InitializeResult(capabilities, serverInfo) {
1991
+ serverInfo = serverInfo === VOID ? null : serverInfo;
1992
+ this.i53_1 = capabilities;
1993
+ this.j53_1 = serverInfo;
1994
+ }
1995
+ protoOf(InitializeResult).toString = function () {
1996
+ return 'InitializeResult(capabilities=' + this.i53_1.toString() + ', serverInfo=' + toString(this.j53_1) + ')';
1997
+ };
1998
+ protoOf(InitializeResult).hashCode = function () {
1999
+ var result = this.i53_1.hashCode();
2000
+ result = imul(result, 31) + (this.j53_1 == null ? 0 : this.j53_1.hashCode()) | 0;
2001
+ return result;
2002
+ };
2003
+ protoOf(InitializeResult).equals = function (other) {
2004
+ if (this === other)
2005
+ return true;
2006
+ if (!(other instanceof InitializeResult))
2007
+ return false;
2008
+ if (!this.i53_1.equals(other.i53_1))
2009
+ return false;
2010
+ if (!equals(this.j53_1, other.j53_1))
2011
+ return false;
2012
+ return true;
2013
+ };
2014
+ function Companion_2() {
2015
+ }
2016
+ var Companion_instance_3;
2017
+ function Companion_getInstance_2() {
2018
+ return Companion_instance_3;
2019
+ }
2020
+ function $serializer_2() {
2021
+ $serializer_instance_2 = this;
2022
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.SemanticTokensParams', this, 1);
2023
+ tmp0_serialDesc.v2b('textDocument', false);
2024
+ this.k53_1 = tmp0_serialDesc;
2025
+ }
2026
+ protoOf($serializer_2).l53 = function (encoder, value) {
2027
+ var tmp0_desc = this.k53_1;
2028
+ var tmp1_output = encoder.h24(tmp0_desc);
2029
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_3(), value.u51_1);
2030
+ tmp1_output.i24(tmp0_desc);
2031
+ };
2032
+ protoOf($serializer_2).i21 = function (encoder, value) {
2033
+ return this.l53(encoder, value instanceof SemanticTokensParams ? value : THROW_CCE());
2034
+ };
2035
+ protoOf($serializer_2).j21 = function (decoder) {
2036
+ var tmp0_desc = this.k53_1;
2037
+ var tmp1_flag = true;
2038
+ var tmp2_index = 0;
2039
+ var tmp3_bitMask0 = 0;
2040
+ var tmp4_local0 = null;
2041
+ var tmp5_input = decoder.h24(tmp0_desc);
2042
+ if (tmp5_input.x24()) {
2043
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
2044
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2045
+ } else
2046
+ while (tmp1_flag) {
2047
+ tmp2_index = tmp5_input.y24(tmp0_desc);
2048
+ switch (tmp2_index) {
2049
+ case -1:
2050
+ tmp1_flag = false;
2051
+ break;
2052
+ case 0:
2053
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
2054
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2055
+ break;
2056
+ default:
2057
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2058
+ }
2059
+ }
2060
+ tmp5_input.i24(tmp0_desc);
2061
+ return SemanticTokensParams_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
2062
+ };
2063
+ protoOf($serializer_2).h21 = function () {
2064
+ return this.k53_1;
2065
+ };
2066
+ protoOf($serializer_2).k2c = function () {
2067
+ // Inline function 'kotlin.arrayOf' call
2068
+ // Inline function 'kotlin.js.unsafeCast' call
2069
+ // Inline function 'kotlin.js.asDynamic' call
2070
+ return [$serializer_getInstance_3()];
2071
+ };
2072
+ var $serializer_instance_2;
2073
+ function $serializer_getInstance_2() {
2074
+ if ($serializer_instance_2 == null)
2075
+ new $serializer_2();
2076
+ return $serializer_instance_2;
2077
+ }
2078
+ function SemanticTokensParams_init_$Init$(seen0, textDocument, serializationConstructorMarker, $this) {
2079
+ if (!(1 === (1 & seen0))) {
2080
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_2().k53_1);
2081
+ }
2082
+ $this.u51_1 = textDocument;
2083
+ return $this;
2084
+ }
2085
+ function SemanticTokensParams_init_$Create$(seen0, textDocument, serializationConstructorMarker) {
2086
+ return SemanticTokensParams_init_$Init$(seen0, textDocument, serializationConstructorMarker, objectCreate(protoOf(SemanticTokensParams)));
2087
+ }
2088
+ function SemanticTokensParams(textDocument) {
2089
+ this.u51_1 = textDocument;
2090
+ }
2091
+ protoOf(SemanticTokensParams).toString = function () {
2092
+ return 'SemanticTokensParams(textDocument=' + this.u51_1.toString() + ')';
2093
+ };
2094
+ protoOf(SemanticTokensParams).hashCode = function () {
2095
+ return this.u51_1.hashCode();
2096
+ };
2097
+ protoOf(SemanticTokensParams).equals = function (other) {
2098
+ if (this === other)
2099
+ return true;
2100
+ if (!(other instanceof SemanticTokensParams))
2101
+ return false;
2102
+ if (!this.u51_1.equals(other.u51_1))
2103
+ return false;
2104
+ return true;
2105
+ };
2106
+ function $serializer_3() {
2107
+ $serializer_instance_3 = this;
2108
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.TextDocumentIdentifier', this, 1);
2109
+ tmp0_serialDesc.v2b('uri', false);
2110
+ this.m53_1 = tmp0_serialDesc;
2111
+ }
2112
+ protoOf($serializer_3).n53 = function (encoder, value) {
2113
+ var tmp0_desc = this.m53_1;
2114
+ var tmp1_output = encoder.h24(tmp0_desc);
2115
+ tmp1_output.w25(tmp0_desc, 0, value.t51_1);
2116
+ tmp1_output.i24(tmp0_desc);
2117
+ };
2118
+ protoOf($serializer_3).i21 = function (encoder, value) {
2119
+ return this.n53(encoder, value instanceof TextDocumentIdentifier ? value : THROW_CCE());
2120
+ };
2121
+ protoOf($serializer_3).j21 = function (decoder) {
2122
+ var tmp0_desc = this.m53_1;
2123
+ var tmp1_flag = true;
2124
+ var tmp2_index = 0;
2125
+ var tmp3_bitMask0 = 0;
2126
+ var tmp4_local0 = null;
2127
+ var tmp5_input = decoder.h24(tmp0_desc);
2128
+ if (tmp5_input.x24()) {
2129
+ tmp4_local0 = tmp5_input.r24(tmp0_desc, 0);
2130
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2131
+ } else
2132
+ while (tmp1_flag) {
2133
+ tmp2_index = tmp5_input.y24(tmp0_desc);
2134
+ switch (tmp2_index) {
2135
+ case -1:
2136
+ tmp1_flag = false;
2137
+ break;
2138
+ case 0:
2139
+ tmp4_local0 = tmp5_input.r24(tmp0_desc, 0);
2140
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2141
+ break;
2142
+ default:
2143
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2144
+ }
2145
+ }
2146
+ tmp5_input.i24(tmp0_desc);
2147
+ return TextDocumentIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
2148
+ };
2149
+ protoOf($serializer_3).h21 = function () {
2150
+ return this.m53_1;
2151
+ };
2152
+ protoOf($serializer_3).k2c = function () {
2153
+ // Inline function 'kotlin.arrayOf' call
2154
+ // Inline function 'kotlin.js.unsafeCast' call
2155
+ // Inline function 'kotlin.js.asDynamic' call
2156
+ return [StringSerializer_getInstance()];
2157
+ };
2158
+ var $serializer_instance_3;
2159
+ function $serializer_getInstance_3() {
2160
+ if ($serializer_instance_3 == null)
2161
+ new $serializer_3();
2162
+ return $serializer_instance_3;
2163
+ }
2164
+ function TextDocumentIdentifier_init_$Init$(seen0, uri, serializationConstructorMarker, $this) {
2165
+ if (!(1 === (1 & seen0))) {
2166
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_3().m53_1);
2167
+ }
2168
+ $this.t51_1 = uri;
2169
+ return $this;
2170
+ }
2171
+ function TextDocumentIdentifier_init_$Create$(seen0, uri, serializationConstructorMarker) {
2172
+ return TextDocumentIdentifier_init_$Init$(seen0, uri, serializationConstructorMarker, objectCreate(protoOf(TextDocumentIdentifier)));
2173
+ }
2174
+ function TextDocumentIdentifier() {
2175
+ }
2176
+ protoOf(TextDocumentIdentifier).toString = function () {
2177
+ return 'TextDocumentIdentifier(uri=' + this.t51_1 + ')';
2178
+ };
2179
+ protoOf(TextDocumentIdentifier).hashCode = function () {
2180
+ return getStringHashCode(this.t51_1);
2181
+ };
2182
+ protoOf(TextDocumentIdentifier).equals = function (other) {
2183
+ if (this === other)
2184
+ return true;
2185
+ if (!(other instanceof TextDocumentIdentifier))
2186
+ return false;
2187
+ if (!(this.t51_1 === other.t51_1))
2188
+ return false;
2189
+ return true;
2190
+ };
2191
+ function SemanticTokens$Companion$$childSerializers$_anonymous__7msx0q() {
2192
+ return new ArrayListSerializer(IntSerializer_getInstance());
2193
+ }
2194
+ function Companion_3() {
2195
+ Companion_instance_4 = this;
2196
+ var tmp = this;
2197
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2198
+ // Inline function 'kotlin.arrayOf' call
2199
+ // Inline function 'kotlin.js.unsafeCast' call
2200
+ // Inline function 'kotlin.js.asDynamic' call
2201
+ tmp.o53_1 = [lazy(tmp_0, SemanticTokens$Companion$$childSerializers$_anonymous__7msx0q)];
2202
+ }
2203
+ var Companion_instance_4;
2204
+ function Companion_getInstance_3() {
2205
+ if (Companion_instance_4 == null)
2206
+ new Companion_3();
2207
+ return Companion_instance_4;
2208
+ }
2209
+ function $serializer_4() {
2210
+ $serializer_instance_4 = this;
2211
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.SemanticTokens', this, 1);
2212
+ tmp0_serialDesc.v2b('data', false);
2213
+ this.p53_1 = tmp0_serialDesc;
2214
+ }
2215
+ protoOf($serializer_4).q53 = function (encoder, value) {
2216
+ var tmp0_desc = this.p53_1;
2217
+ var tmp1_output = encoder.h24(tmp0_desc);
2218
+ var tmp2_cached = Companion_getInstance_3().o53_1;
2219
+ tmp1_output.y25(tmp0_desc, 0, tmp2_cached[0].l1(), value.r53_1);
2220
+ tmp1_output.i24(tmp0_desc);
2221
+ };
2222
+ protoOf($serializer_4).i21 = function (encoder, value) {
2223
+ return this.q53(encoder, value instanceof SemanticTokens ? value : THROW_CCE());
2224
+ };
2225
+ protoOf($serializer_4).j21 = function (decoder) {
2226
+ var tmp0_desc = this.p53_1;
2227
+ var tmp1_flag = true;
2228
+ var tmp2_index = 0;
2229
+ var tmp3_bitMask0 = 0;
2230
+ var tmp4_local0 = null;
2231
+ var tmp5_input = decoder.h24(tmp0_desc);
2232
+ var tmp6_cached = Companion_getInstance_3().o53_1;
2233
+ if (tmp5_input.x24()) {
2234
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, tmp6_cached[0].l1(), tmp4_local0);
2235
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2236
+ } else
2237
+ while (tmp1_flag) {
2238
+ tmp2_index = tmp5_input.y24(tmp0_desc);
2239
+ switch (tmp2_index) {
2240
+ case -1:
2241
+ tmp1_flag = false;
2242
+ break;
2243
+ case 0:
2244
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, tmp6_cached[0].l1(), tmp4_local0);
2245
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2246
+ break;
2247
+ default:
2248
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2249
+ }
2250
+ }
2251
+ tmp5_input.i24(tmp0_desc);
2252
+ return SemanticTokens_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
2253
+ };
2254
+ protoOf($serializer_4).h21 = function () {
2255
+ return this.p53_1;
2256
+ };
2257
+ protoOf($serializer_4).k2c = function () {
2258
+ // Inline function 'kotlin.arrayOf' call
2259
+ // Inline function 'kotlin.js.unsafeCast' call
2260
+ // Inline function 'kotlin.js.asDynamic' call
2261
+ return [Companion_getInstance_3().o53_1[0].l1()];
2262
+ };
2263
+ var $serializer_instance_4;
2264
+ function $serializer_getInstance_4() {
2265
+ if ($serializer_instance_4 == null)
2266
+ new $serializer_4();
2267
+ return $serializer_instance_4;
2268
+ }
2269
+ function SemanticTokens_init_$Init$(seen0, data, serializationConstructorMarker, $this) {
2270
+ if (!(1 === (1 & seen0))) {
2271
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_4().p53_1);
2272
+ }
2273
+ $this.r53_1 = data;
2274
+ return $this;
2275
+ }
2276
+ function SemanticTokens_init_$Create$(seen0, data, serializationConstructorMarker) {
2277
+ return SemanticTokens_init_$Init$(seen0, data, serializationConstructorMarker, objectCreate(protoOf(SemanticTokens)));
2278
+ }
2279
+ function SemanticTokens(data) {
2280
+ Companion_getInstance_3();
2281
+ this.r53_1 = data;
2282
+ }
2283
+ protoOf(SemanticTokens).toString = function () {
2284
+ return 'SemanticTokens(data=' + toString_0(this.r53_1) + ')';
2285
+ };
2286
+ protoOf(SemanticTokens).hashCode = function () {
2287
+ return hashCode(this.r53_1);
2288
+ };
2289
+ protoOf(SemanticTokens).equals = function (other) {
2290
+ if (this === other)
2291
+ return true;
2292
+ if (!(other instanceof SemanticTokens))
2293
+ return false;
2294
+ if (!equals(this.r53_1, other.r53_1))
2295
+ return false;
2296
+ return true;
2297
+ };
2298
+ function Companion_4() {
2299
+ }
2300
+ var Companion_instance_5;
2301
+ function Companion_getInstance_4() {
2302
+ return Companion_instance_5;
2303
+ }
2304
+ function $serializer_5() {
2305
+ $serializer_instance_5 = this;
2306
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.TextDocumentPositionParams', this, 2);
2307
+ tmp0_serialDesc.v2b('textDocument', false);
2308
+ tmp0_serialDesc.v2b('position', false);
2309
+ this.s53_1 = tmp0_serialDesc;
2310
+ }
2311
+ protoOf($serializer_5).t53 = function (encoder, value) {
2312
+ var tmp0_desc = this.s53_1;
2313
+ var tmp1_output = encoder.h24(tmp0_desc);
2314
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_3(), value.v51_1);
2315
+ tmp1_output.y25(tmp0_desc, 1, $serializer_getInstance_7(), value.w51_1);
2316
+ tmp1_output.i24(tmp0_desc);
2317
+ };
2318
+ protoOf($serializer_5).i21 = function (encoder, value) {
2319
+ return this.t53(encoder, value instanceof TextDocumentPositionParams ? value : THROW_CCE());
2320
+ };
2321
+ protoOf($serializer_5).j21 = function (decoder) {
2322
+ var tmp0_desc = this.s53_1;
2323
+ var tmp1_flag = true;
2324
+ var tmp2_index = 0;
2325
+ var tmp3_bitMask0 = 0;
2326
+ var tmp4_local0 = null;
2327
+ var tmp5_local1 = null;
2328
+ var tmp6_input = decoder.h24(tmp0_desc);
2329
+ if (tmp6_input.x24()) {
2330
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
2331
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2332
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, $serializer_getInstance_7(), tmp5_local1);
2333
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2334
+ } else
2335
+ while (tmp1_flag) {
2336
+ tmp2_index = tmp6_input.y24(tmp0_desc);
2337
+ switch (tmp2_index) {
2338
+ case -1:
2339
+ tmp1_flag = false;
2340
+ break;
2341
+ case 0:
2342
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
2343
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2344
+ break;
2345
+ case 1:
2346
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, $serializer_getInstance_7(), tmp5_local1);
2347
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2348
+ break;
2349
+ default:
2350
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2351
+ }
2352
+ }
2353
+ tmp6_input.i24(tmp0_desc);
2354
+ return TextDocumentPositionParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
2355
+ };
2356
+ protoOf($serializer_5).h21 = function () {
2357
+ return this.s53_1;
2358
+ };
2359
+ protoOf($serializer_5).k2c = function () {
2360
+ // Inline function 'kotlin.arrayOf' call
2361
+ // Inline function 'kotlin.js.unsafeCast' call
2362
+ // Inline function 'kotlin.js.asDynamic' call
2363
+ return [$serializer_getInstance_3(), $serializer_getInstance_7()];
2364
+ };
2365
+ var $serializer_instance_5;
2366
+ function $serializer_getInstance_5() {
2367
+ if ($serializer_instance_5 == null)
2368
+ new $serializer_5();
2369
+ return $serializer_instance_5;
2370
+ }
2371
+ function TextDocumentPositionParams_init_$Init$(seen0, textDocument, position, serializationConstructorMarker, $this) {
2372
+ if (!(3 === (3 & seen0))) {
2373
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_5().s53_1);
2374
+ }
2375
+ $this.v51_1 = textDocument;
2376
+ $this.w51_1 = position;
2377
+ return $this;
2378
+ }
2379
+ function TextDocumentPositionParams_init_$Create$(seen0, textDocument, position, serializationConstructorMarker) {
2380
+ return TextDocumentPositionParams_init_$Init$(seen0, textDocument, position, serializationConstructorMarker, objectCreate(protoOf(TextDocumentPositionParams)));
2381
+ }
2382
+ function TextDocumentPositionParams(textDocument, position) {
2383
+ this.v51_1 = textDocument;
2384
+ this.w51_1 = position;
2385
+ }
2386
+ protoOf(TextDocumentPositionParams).toString = function () {
2387
+ return 'TextDocumentPositionParams(textDocument=' + this.v51_1.toString() + ', position=' + this.w51_1.toString() + ')';
2388
+ };
2389
+ protoOf(TextDocumentPositionParams).hashCode = function () {
2390
+ var result = this.v51_1.hashCode();
2391
+ result = imul(result, 31) + this.w51_1.hashCode() | 0;
2392
+ return result;
2393
+ };
2394
+ protoOf(TextDocumentPositionParams).equals = function (other) {
2395
+ if (this === other)
2396
+ return true;
2397
+ if (!(other instanceof TextDocumentPositionParams))
2398
+ return false;
2399
+ if (!this.v51_1.equals(other.v51_1))
2400
+ return false;
2401
+ if (!this.w51_1.equals(other.w51_1))
2402
+ return false;
2403
+ return true;
2404
+ };
2405
+ function Companion_5() {
2406
+ }
2407
+ var Companion_instance_6;
2408
+ function Companion_getInstance_5() {
2409
+ return Companion_instance_6;
2410
+ }
2411
+ function $serializer_6() {
2412
+ $serializer_instance_6 = this;
2413
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.Location', this, 2);
2414
+ tmp0_serialDesc.v2b('uri', false);
2415
+ tmp0_serialDesc.v2b('range', false);
2416
+ this.u53_1 = tmp0_serialDesc;
2417
+ }
2418
+ protoOf($serializer_6).v53 = function (encoder, value) {
2419
+ var tmp0_desc = this.u53_1;
2420
+ var tmp1_output = encoder.h24(tmp0_desc);
2421
+ tmp1_output.w25(tmp0_desc, 0, value.w53_1);
2422
+ tmp1_output.y25(tmp0_desc, 1, $serializer_getInstance_8(), value.x53_1);
2423
+ tmp1_output.i24(tmp0_desc);
2424
+ };
2425
+ protoOf($serializer_6).i21 = function (encoder, value) {
2426
+ return this.v53(encoder, value instanceof Location ? value : THROW_CCE());
2427
+ };
2428
+ protoOf($serializer_6).j21 = function (decoder) {
2429
+ var tmp0_desc = this.u53_1;
2430
+ var tmp1_flag = true;
2431
+ var tmp2_index = 0;
2432
+ var tmp3_bitMask0 = 0;
2433
+ var tmp4_local0 = null;
2434
+ var tmp5_local1 = null;
2435
+ var tmp6_input = decoder.h24(tmp0_desc);
2436
+ if (tmp6_input.x24()) {
2437
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
2438
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2439
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, $serializer_getInstance_8(), tmp5_local1);
2440
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2441
+ } else
2442
+ while (tmp1_flag) {
2443
+ tmp2_index = tmp6_input.y24(tmp0_desc);
2444
+ switch (tmp2_index) {
2445
+ case -1:
2446
+ tmp1_flag = false;
2447
+ break;
2448
+ case 0:
2449
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
2450
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2451
+ break;
2452
+ case 1:
2453
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, $serializer_getInstance_8(), tmp5_local1);
2454
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2455
+ break;
2456
+ default:
2457
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2458
+ }
2459
+ }
2460
+ tmp6_input.i24(tmp0_desc);
2461
+ return Location_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
2462
+ };
2463
+ protoOf($serializer_6).h21 = function () {
2464
+ return this.u53_1;
2465
+ };
2466
+ protoOf($serializer_6).k2c = function () {
2467
+ // Inline function 'kotlin.arrayOf' call
2468
+ // Inline function 'kotlin.js.unsafeCast' call
2469
+ // Inline function 'kotlin.js.asDynamic' call
2470
+ return [StringSerializer_getInstance(), $serializer_getInstance_8()];
2471
+ };
2472
+ var $serializer_instance_6;
2473
+ function $serializer_getInstance_6() {
2474
+ if ($serializer_instance_6 == null)
2475
+ new $serializer_6();
2476
+ return $serializer_instance_6;
2477
+ }
2478
+ function Location_init_$Init$(seen0, uri, range, serializationConstructorMarker, $this) {
2479
+ if (!(3 === (3 & seen0))) {
2480
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_6().u53_1);
2481
+ }
2482
+ $this.w53_1 = uri;
2483
+ $this.x53_1 = range;
2484
+ return $this;
2485
+ }
2486
+ function Location_init_$Create$(seen0, uri, range, serializationConstructorMarker) {
2487
+ return Location_init_$Init$(seen0, uri, range, serializationConstructorMarker, objectCreate(protoOf(Location)));
2488
+ }
2489
+ function Location(uri, range) {
2490
+ this.w53_1 = uri;
2491
+ this.x53_1 = range;
2492
+ }
2493
+ protoOf(Location).toString = function () {
2494
+ return 'Location(uri=' + this.w53_1 + ', range=' + this.x53_1.toString() + ')';
2495
+ };
2496
+ protoOf(Location).hashCode = function () {
2497
+ var result = getStringHashCode(this.w53_1);
2498
+ result = imul(result, 31) + this.x53_1.hashCode() | 0;
2499
+ return result;
2500
+ };
2501
+ protoOf(Location).equals = function (other) {
2502
+ if (this === other)
2503
+ return true;
2504
+ if (!(other instanceof Location))
2505
+ return false;
2506
+ if (!(this.w53_1 === other.w53_1))
2507
+ return false;
2508
+ if (!this.x53_1.equals(other.x53_1))
2509
+ return false;
2510
+ return true;
2511
+ };
2512
+ function Companion_6() {
2513
+ }
2514
+ var Companion_instance_7;
2515
+ function Companion_getInstance_6() {
2516
+ return Companion_instance_7;
2517
+ }
2518
+ function $serializer_7() {
2519
+ $serializer_instance_7 = this;
2520
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.Position', this, 2);
2521
+ tmp0_serialDesc.v2b('line', false);
2522
+ tmp0_serialDesc.v2b('character', false);
2523
+ this.y53_1 = tmp0_serialDesc;
2524
+ }
2525
+ protoOf($serializer_7).z53 = function (encoder, value) {
2526
+ var tmp0_desc = this.y53_1;
2527
+ var tmp1_output = encoder.h24(tmp0_desc);
2528
+ tmp1_output.r25(tmp0_desc, 0, value.a51_1);
2529
+ tmp1_output.r25(tmp0_desc, 1, value.b51_1);
2530
+ tmp1_output.i24(tmp0_desc);
2531
+ };
2532
+ protoOf($serializer_7).i21 = function (encoder, value) {
2533
+ return this.z53(encoder, value instanceof Position ? value : THROW_CCE());
2534
+ };
2535
+ protoOf($serializer_7).j21 = function (decoder) {
2536
+ var tmp0_desc = this.y53_1;
2537
+ var tmp1_flag = true;
2538
+ var tmp2_index = 0;
2539
+ var tmp3_bitMask0 = 0;
2540
+ var tmp4_local0 = 0;
2541
+ var tmp5_local1 = 0;
2542
+ var tmp6_input = decoder.h24(tmp0_desc);
2543
+ if (tmp6_input.x24()) {
2544
+ tmp4_local0 = tmp6_input.m24(tmp0_desc, 0);
2545
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2546
+ tmp5_local1 = tmp6_input.m24(tmp0_desc, 1);
2547
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2548
+ } else
2549
+ while (tmp1_flag) {
2550
+ tmp2_index = tmp6_input.y24(tmp0_desc);
2551
+ switch (tmp2_index) {
2552
+ case -1:
2553
+ tmp1_flag = false;
2554
+ break;
2555
+ case 0:
2556
+ tmp4_local0 = tmp6_input.m24(tmp0_desc, 0);
2557
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2558
+ break;
2559
+ case 1:
2560
+ tmp5_local1 = tmp6_input.m24(tmp0_desc, 1);
2561
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2562
+ break;
2563
+ default:
2564
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2565
+ }
2566
+ }
2567
+ tmp6_input.i24(tmp0_desc);
2568
+ return Position_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
2569
+ };
2570
+ protoOf($serializer_7).h21 = function () {
2571
+ return this.y53_1;
2572
+ };
2573
+ protoOf($serializer_7).k2c = function () {
2574
+ // Inline function 'kotlin.arrayOf' call
2575
+ // Inline function 'kotlin.js.unsafeCast' call
2576
+ // Inline function 'kotlin.js.asDynamic' call
2577
+ return [IntSerializer_getInstance(), IntSerializer_getInstance()];
2578
+ };
2579
+ var $serializer_instance_7;
2580
+ function $serializer_getInstance_7() {
2581
+ if ($serializer_instance_7 == null)
2582
+ new $serializer_7();
2583
+ return $serializer_instance_7;
2584
+ }
2585
+ function Position_init_$Init$(seen0, line, character, serializationConstructorMarker, $this) {
2586
+ if (!(3 === (3 & seen0))) {
2587
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_7().y53_1);
2588
+ }
2589
+ $this.a51_1 = line;
2590
+ $this.b51_1 = character;
2591
+ return $this;
2592
+ }
2593
+ function Position_init_$Create$(seen0, line, character, serializationConstructorMarker) {
2594
+ return Position_init_$Init$(seen0, line, character, serializationConstructorMarker, objectCreate(protoOf(Position)));
2595
+ }
2596
+ function Position(line, character) {
2597
+ this.a51_1 = line;
2598
+ this.b51_1 = character;
2599
+ }
2600
+ protoOf(Position).toString = function () {
2601
+ return 'Position(line=' + this.a51_1 + ', character=' + this.b51_1 + ')';
2602
+ };
2603
+ protoOf(Position).hashCode = function () {
2604
+ var result = this.a51_1;
2605
+ result = imul(result, 31) + this.b51_1 | 0;
2606
+ return result;
2607
+ };
2608
+ protoOf(Position).equals = function (other) {
2609
+ if (this === other)
2610
+ return true;
2611
+ if (!(other instanceof Position))
2612
+ return false;
2613
+ if (!(this.a51_1 === other.a51_1))
2614
+ return false;
2615
+ if (!(this.b51_1 === other.b51_1))
2616
+ return false;
2617
+ return true;
2618
+ };
2619
+ function Companion_7() {
2620
+ }
2621
+ var Companion_instance_8;
2622
+ function Companion_getInstance_7() {
2623
+ return Companion_instance_8;
2624
+ }
2625
+ function $serializer_8() {
2626
+ $serializer_instance_8 = this;
2627
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.Range', this, 2);
2628
+ tmp0_serialDesc.v2b('start', false);
2629
+ tmp0_serialDesc.v2b('end', false);
2630
+ this.a54_1 = tmp0_serialDesc;
2631
+ }
2632
+ protoOf($serializer_8).b54 = function (encoder, value) {
2633
+ var tmp0_desc = this.a54_1;
2634
+ var tmp1_output = encoder.h24(tmp0_desc);
2635
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_7(), value.c54_1);
2636
+ tmp1_output.y25(tmp0_desc, 1, $serializer_getInstance_7(), value.d54_1);
2637
+ tmp1_output.i24(tmp0_desc);
2638
+ };
2639
+ protoOf($serializer_8).i21 = function (encoder, value) {
2640
+ return this.b54(encoder, value instanceof Range ? value : THROW_CCE());
2641
+ };
2642
+ protoOf($serializer_8).j21 = function (decoder) {
2643
+ var tmp0_desc = this.a54_1;
2644
+ var tmp1_flag = true;
2645
+ var tmp2_index = 0;
2646
+ var tmp3_bitMask0 = 0;
2647
+ var tmp4_local0 = null;
2648
+ var tmp5_local1 = null;
2649
+ var tmp6_input = decoder.h24(tmp0_desc);
2650
+ if (tmp6_input.x24()) {
2651
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_7(), tmp4_local0);
2652
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2653
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, $serializer_getInstance_7(), tmp5_local1);
2654
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2655
+ } else
2656
+ while (tmp1_flag) {
2657
+ tmp2_index = tmp6_input.y24(tmp0_desc);
2658
+ switch (tmp2_index) {
2659
+ case -1:
2660
+ tmp1_flag = false;
2661
+ break;
2662
+ case 0:
2663
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_7(), tmp4_local0);
2664
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2665
+ break;
2666
+ case 1:
2667
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, $serializer_getInstance_7(), tmp5_local1);
2668
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2669
+ break;
2670
+ default:
2671
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2672
+ }
2673
+ }
2674
+ tmp6_input.i24(tmp0_desc);
2675
+ return Range_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
2676
+ };
2677
+ protoOf($serializer_8).h21 = function () {
2678
+ return this.a54_1;
2679
+ };
2680
+ protoOf($serializer_8).k2c = function () {
2681
+ // Inline function 'kotlin.arrayOf' call
2682
+ // Inline function 'kotlin.js.unsafeCast' call
2683
+ // Inline function 'kotlin.js.asDynamic' call
2684
+ return [$serializer_getInstance_7(), $serializer_getInstance_7()];
2685
+ };
2686
+ var $serializer_instance_8;
2687
+ function $serializer_getInstance_8() {
2688
+ if ($serializer_instance_8 == null)
2689
+ new $serializer_8();
2690
+ return $serializer_instance_8;
2691
+ }
2692
+ function Range_init_$Init$(seen0, start, end, serializationConstructorMarker, $this) {
2693
+ if (!(3 === (3 & seen0))) {
2694
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_8().a54_1);
2695
+ }
2696
+ $this.c54_1 = start;
2697
+ $this.d54_1 = end;
2698
+ return $this;
2699
+ }
2700
+ function Range_init_$Create$(seen0, start, end, serializationConstructorMarker) {
2701
+ return Range_init_$Init$(seen0, start, end, serializationConstructorMarker, objectCreate(protoOf(Range)));
2702
+ }
2703
+ function Range(start, end) {
2704
+ this.c54_1 = start;
2705
+ this.d54_1 = end;
2706
+ }
2707
+ protoOf(Range).toString = function () {
2708
+ return 'Range(start=' + this.c54_1.toString() + ', end=' + this.d54_1.toString() + ')';
2709
+ };
2710
+ protoOf(Range).hashCode = function () {
2711
+ var result = this.c54_1.hashCode();
2712
+ result = imul(result, 31) + this.d54_1.hashCode() | 0;
2713
+ return result;
2714
+ };
2715
+ protoOf(Range).equals = function (other) {
2716
+ if (this === other)
2717
+ return true;
2718
+ if (!(other instanceof Range))
2719
+ return false;
2720
+ if (!this.c54_1.equals(other.c54_1))
2721
+ return false;
2722
+ if (!this.d54_1.equals(other.d54_1))
2723
+ return false;
2724
+ return true;
2725
+ };
2726
+ function Companion_8() {
2727
+ }
2728
+ var Companion_instance_9;
2729
+ function Companion_getInstance_8() {
2730
+ return Companion_instance_9;
2731
+ }
2732
+ function $serializer_9() {
2733
+ $serializer_instance_9 = this;
2734
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.RenameParams', this, 3);
2735
+ tmp0_serialDesc.v2b('textDocument', false);
2736
+ tmp0_serialDesc.v2b('position', false);
2737
+ tmp0_serialDesc.v2b('newName', false);
2738
+ this.e54_1 = tmp0_serialDesc;
2739
+ }
2740
+ protoOf($serializer_9).f54 = function (encoder, value) {
2741
+ var tmp0_desc = this.e54_1;
2742
+ var tmp1_output = encoder.h24(tmp0_desc);
2743
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_3(), value.x51_1);
2744
+ tmp1_output.y25(tmp0_desc, 1, $serializer_getInstance_7(), value.y51_1);
2745
+ tmp1_output.w25(tmp0_desc, 2, value.z51_1);
2746
+ tmp1_output.i24(tmp0_desc);
2747
+ };
2748
+ protoOf($serializer_9).i21 = function (encoder, value) {
2749
+ return this.f54(encoder, value instanceof RenameParams ? value : THROW_CCE());
2750
+ };
2751
+ protoOf($serializer_9).j21 = function (decoder) {
2752
+ var tmp0_desc = this.e54_1;
2753
+ var tmp1_flag = true;
2754
+ var tmp2_index = 0;
2755
+ var tmp3_bitMask0 = 0;
2756
+ var tmp4_local0 = null;
2757
+ var tmp5_local1 = null;
2758
+ var tmp6_local2 = null;
2759
+ var tmp7_input = decoder.h24(tmp0_desc);
2760
+ if (tmp7_input.x24()) {
2761
+ tmp4_local0 = tmp7_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
2762
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2763
+ tmp5_local1 = tmp7_input.t24(tmp0_desc, 1, $serializer_getInstance_7(), tmp5_local1);
2764
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2765
+ tmp6_local2 = tmp7_input.r24(tmp0_desc, 2);
2766
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
2767
+ } else
2768
+ while (tmp1_flag) {
2769
+ tmp2_index = tmp7_input.y24(tmp0_desc);
2770
+ switch (tmp2_index) {
2771
+ case -1:
2772
+ tmp1_flag = false;
2773
+ break;
2774
+ case 0:
2775
+ tmp4_local0 = tmp7_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
2776
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2777
+ break;
2778
+ case 1:
2779
+ tmp5_local1 = tmp7_input.t24(tmp0_desc, 1, $serializer_getInstance_7(), tmp5_local1);
2780
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2781
+ break;
2782
+ case 2:
2783
+ tmp6_local2 = tmp7_input.r24(tmp0_desc, 2);
2784
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
2785
+ break;
2786
+ default:
2787
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2788
+ }
2789
+ }
2790
+ tmp7_input.i24(tmp0_desc);
2791
+ return RenameParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
2792
+ };
2793
+ protoOf($serializer_9).h21 = function () {
2794
+ return this.e54_1;
2795
+ };
2796
+ protoOf($serializer_9).k2c = function () {
2797
+ // Inline function 'kotlin.arrayOf' call
2798
+ // Inline function 'kotlin.js.unsafeCast' call
2799
+ // Inline function 'kotlin.js.asDynamic' call
2800
+ return [$serializer_getInstance_3(), $serializer_getInstance_7(), StringSerializer_getInstance()];
2801
+ };
2802
+ var $serializer_instance_9;
2803
+ function $serializer_getInstance_9() {
2804
+ if ($serializer_instance_9 == null)
2805
+ new $serializer_9();
2806
+ return $serializer_instance_9;
2807
+ }
2808
+ function RenameParams_init_$Init$(seen0, textDocument, position, newName, serializationConstructorMarker, $this) {
2809
+ if (!(7 === (7 & seen0))) {
2810
+ throwMissingFieldException(seen0, 7, $serializer_getInstance_9().e54_1);
2811
+ }
2812
+ $this.x51_1 = textDocument;
2813
+ $this.y51_1 = position;
2814
+ $this.z51_1 = newName;
2815
+ return $this;
2816
+ }
2817
+ function RenameParams_init_$Create$(seen0, textDocument, position, newName, serializationConstructorMarker) {
2818
+ return RenameParams_init_$Init$(seen0, textDocument, position, newName, serializationConstructorMarker, objectCreate(protoOf(RenameParams)));
2819
+ }
2820
+ function RenameParams(textDocument, position, newName) {
2821
+ this.x51_1 = textDocument;
2822
+ this.y51_1 = position;
2823
+ this.z51_1 = newName;
2824
+ }
2825
+ protoOf(RenameParams).toString = function () {
2826
+ return 'RenameParams(textDocument=' + this.x51_1.toString() + ', position=' + this.y51_1.toString() + ', newName=' + this.z51_1 + ')';
2827
+ };
2828
+ protoOf(RenameParams).hashCode = function () {
2829
+ var result = this.x51_1.hashCode();
2830
+ result = imul(result, 31) + this.y51_1.hashCode() | 0;
2831
+ result = imul(result, 31) + getStringHashCode(this.z51_1) | 0;
2832
+ return result;
2833
+ };
2834
+ protoOf(RenameParams).equals = function (other) {
2835
+ if (this === other)
2836
+ return true;
2837
+ if (!(other instanceof RenameParams))
2838
+ return false;
2839
+ if (!this.x51_1.equals(other.x51_1))
2840
+ return false;
2841
+ if (!this.y51_1.equals(other.y51_1))
2842
+ return false;
2843
+ if (!(this.z51_1 === other.z51_1))
2844
+ return false;
2845
+ return true;
2846
+ };
2847
+ function WorkspaceEdit$Companion$$childSerializers$_anonymous__ffjtbf() {
2848
+ return new LinkedHashMapSerializer(StringSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_24()));
2849
+ }
2850
+ function Companion_9() {
2851
+ Companion_instance_10 = this;
2852
+ var tmp = this;
2853
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2854
+ // Inline function 'kotlin.arrayOf' call
2855
+ // Inline function 'kotlin.js.unsafeCast' call
2856
+ // Inline function 'kotlin.js.asDynamic' call
2857
+ tmp.g54_1 = [lazy(tmp_0, WorkspaceEdit$Companion$$childSerializers$_anonymous__ffjtbf)];
2858
+ }
2859
+ var Companion_instance_10;
2860
+ function Companion_getInstance_9() {
2861
+ if (Companion_instance_10 == null)
2862
+ new Companion_9();
2863
+ return Companion_instance_10;
2864
+ }
2865
+ function $serializer_10() {
2866
+ $serializer_instance_10 = this;
2867
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.WorkspaceEdit', this, 1);
2868
+ tmp0_serialDesc.v2b('changes', false);
2869
+ this.h54_1 = tmp0_serialDesc;
2870
+ }
2871
+ protoOf($serializer_10).i54 = function (encoder, value) {
2872
+ var tmp0_desc = this.h54_1;
2873
+ var tmp1_output = encoder.h24(tmp0_desc);
2874
+ var tmp2_cached = Companion_getInstance_9().g54_1;
2875
+ tmp1_output.y25(tmp0_desc, 0, tmp2_cached[0].l1(), value.j54_1);
2876
+ tmp1_output.i24(tmp0_desc);
2877
+ };
2878
+ protoOf($serializer_10).i21 = function (encoder, value) {
2879
+ return this.i54(encoder, value instanceof WorkspaceEdit ? value : THROW_CCE());
2880
+ };
2881
+ protoOf($serializer_10).j21 = function (decoder) {
2882
+ var tmp0_desc = this.h54_1;
2883
+ var tmp1_flag = true;
2884
+ var tmp2_index = 0;
2885
+ var tmp3_bitMask0 = 0;
2886
+ var tmp4_local0 = null;
2887
+ var tmp5_input = decoder.h24(tmp0_desc);
2888
+ var tmp6_cached = Companion_getInstance_9().g54_1;
2889
+ if (tmp5_input.x24()) {
2890
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, tmp6_cached[0].l1(), tmp4_local0);
2891
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2892
+ } else
2893
+ while (tmp1_flag) {
2894
+ tmp2_index = tmp5_input.y24(tmp0_desc);
2895
+ switch (tmp2_index) {
2896
+ case -1:
2897
+ tmp1_flag = false;
2898
+ break;
2899
+ case 0:
2900
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, tmp6_cached[0].l1(), tmp4_local0);
2901
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2902
+ break;
2903
+ default:
2904
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2905
+ }
2906
+ }
2907
+ tmp5_input.i24(tmp0_desc);
2908
+ return WorkspaceEdit_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
2909
+ };
2910
+ protoOf($serializer_10).h21 = function () {
2911
+ return this.h54_1;
2912
+ };
2913
+ protoOf($serializer_10).k2c = function () {
2914
+ // Inline function 'kotlin.arrayOf' call
2915
+ // Inline function 'kotlin.js.unsafeCast' call
2916
+ // Inline function 'kotlin.js.asDynamic' call
2917
+ return [Companion_getInstance_9().g54_1[0].l1()];
2918
+ };
2919
+ var $serializer_instance_10;
2920
+ function $serializer_getInstance_10() {
2921
+ if ($serializer_instance_10 == null)
2922
+ new $serializer_10();
2923
+ return $serializer_instance_10;
2924
+ }
2925
+ function WorkspaceEdit_init_$Init$(seen0, changes, serializationConstructorMarker, $this) {
2926
+ if (!(1 === (1 & seen0))) {
2927
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_10().h54_1);
2928
+ }
2929
+ $this.j54_1 = changes;
2930
+ return $this;
2931
+ }
2932
+ function WorkspaceEdit_init_$Create$(seen0, changes, serializationConstructorMarker) {
2933
+ return WorkspaceEdit_init_$Init$(seen0, changes, serializationConstructorMarker, objectCreate(protoOf(WorkspaceEdit)));
2934
+ }
2935
+ function WorkspaceEdit(changes) {
2936
+ Companion_getInstance_9();
2937
+ this.j54_1 = changes;
2938
+ }
2939
+ protoOf(WorkspaceEdit).toString = function () {
2940
+ return 'WorkspaceEdit(changes=' + toString_0(this.j54_1) + ')';
2941
+ };
2942
+ protoOf(WorkspaceEdit).hashCode = function () {
2943
+ return hashCode(this.j54_1);
2944
+ };
2945
+ protoOf(WorkspaceEdit).equals = function (other) {
2946
+ if (this === other)
2947
+ return true;
2948
+ if (!(other instanceof WorkspaceEdit))
2949
+ return false;
2950
+ if (!equals(this.j54_1, other.j54_1))
2951
+ return false;
2952
+ return true;
2953
+ };
2954
+ function Companion_10() {
2955
+ }
2956
+ var Companion_instance_11;
2957
+ function Companion_getInstance_10() {
2958
+ return Companion_instance_11;
2959
+ }
2960
+ function $serializer_11() {
2961
+ $serializer_instance_11 = this;
2962
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.DidOpenTextDocumentParams', this, 1);
2963
+ tmp0_serialDesc.v2b('textDocument', false);
2964
+ this.k54_1 = tmp0_serialDesc;
2965
+ }
2966
+ protoOf($serializer_11).l54 = function (encoder, value) {
2967
+ var tmp0_desc = this.k54_1;
2968
+ var tmp1_output = encoder.h24(tmp0_desc);
2969
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_12(), value.e52_1);
2970
+ tmp1_output.i24(tmp0_desc);
2971
+ };
2972
+ protoOf($serializer_11).i21 = function (encoder, value) {
2973
+ return this.l54(encoder, value instanceof DidOpenTextDocumentParams ? value : THROW_CCE());
2974
+ };
2975
+ protoOf($serializer_11).j21 = function (decoder) {
2976
+ var tmp0_desc = this.k54_1;
2977
+ var tmp1_flag = true;
2978
+ var tmp2_index = 0;
2979
+ var tmp3_bitMask0 = 0;
2980
+ var tmp4_local0 = null;
2981
+ var tmp5_input = decoder.h24(tmp0_desc);
2982
+ if (tmp5_input.x24()) {
2983
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, $serializer_getInstance_12(), tmp4_local0);
2984
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2985
+ } else
2986
+ while (tmp1_flag) {
2987
+ tmp2_index = tmp5_input.y24(tmp0_desc);
2988
+ switch (tmp2_index) {
2989
+ case -1:
2990
+ tmp1_flag = false;
2991
+ break;
2992
+ case 0:
2993
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, $serializer_getInstance_12(), tmp4_local0);
2994
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2995
+ break;
2996
+ default:
2997
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2998
+ }
2999
+ }
3000
+ tmp5_input.i24(tmp0_desc);
3001
+ return DidOpenTextDocumentParams_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
3002
+ };
3003
+ protoOf($serializer_11).h21 = function () {
3004
+ return this.k54_1;
3005
+ };
3006
+ protoOf($serializer_11).k2c = function () {
3007
+ // Inline function 'kotlin.arrayOf' call
3008
+ // Inline function 'kotlin.js.unsafeCast' call
3009
+ // Inline function 'kotlin.js.asDynamic' call
3010
+ return [$serializer_getInstance_12()];
3011
+ };
3012
+ var $serializer_instance_11;
3013
+ function $serializer_getInstance_11() {
3014
+ if ($serializer_instance_11 == null)
3015
+ new $serializer_11();
3016
+ return $serializer_instance_11;
3017
+ }
3018
+ function DidOpenTextDocumentParams_init_$Init$(seen0, textDocument, serializationConstructorMarker, $this) {
3019
+ if (!(1 === (1 & seen0))) {
3020
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_11().k54_1);
3021
+ }
3022
+ $this.e52_1 = textDocument;
3023
+ return $this;
3024
+ }
3025
+ function DidOpenTextDocumentParams_init_$Create$(seen0, textDocument, serializationConstructorMarker) {
3026
+ return DidOpenTextDocumentParams_init_$Init$(seen0, textDocument, serializationConstructorMarker, objectCreate(protoOf(DidOpenTextDocumentParams)));
3027
+ }
3028
+ function DidOpenTextDocumentParams(textDocument) {
3029
+ this.e52_1 = textDocument;
3030
+ }
3031
+ protoOf(DidOpenTextDocumentParams).toString = function () {
3032
+ return 'DidOpenTextDocumentParams(textDocument=' + this.e52_1.toString() + ')';
3033
+ };
3034
+ protoOf(DidOpenTextDocumentParams).hashCode = function () {
3035
+ return this.e52_1.hashCode();
3036
+ };
3037
+ protoOf(DidOpenTextDocumentParams).equals = function (other) {
3038
+ if (this === other)
3039
+ return true;
3040
+ if (!(other instanceof DidOpenTextDocumentParams))
3041
+ return false;
3042
+ if (!this.e52_1.equals(other.e52_1))
3043
+ return false;
3044
+ return true;
3045
+ };
3046
+ function $serializer_12() {
3047
+ $serializer_instance_12 = this;
3048
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.TextDocumentItem', this, 4);
3049
+ tmp0_serialDesc.v2b('uri', false);
3050
+ tmp0_serialDesc.v2b('languageId', false);
3051
+ tmp0_serialDesc.v2b('version', false);
3052
+ tmp0_serialDesc.v2b('text', false);
3053
+ this.m54_1 = tmp0_serialDesc;
3054
+ }
3055
+ protoOf($serializer_12).n54 = function (encoder, value) {
3056
+ var tmp0_desc = this.m54_1;
3057
+ var tmp1_output = encoder.h24(tmp0_desc);
3058
+ tmp1_output.w25(tmp0_desc, 0, value.a52_1);
3059
+ tmp1_output.w25(tmp0_desc, 1, value.b52_1);
3060
+ tmp1_output.r25(tmp0_desc, 2, value.c52_1);
3061
+ tmp1_output.w25(tmp0_desc, 3, value.d52_1);
3062
+ tmp1_output.i24(tmp0_desc);
3063
+ };
3064
+ protoOf($serializer_12).i21 = function (encoder, value) {
3065
+ return this.n54(encoder, value instanceof TextDocumentItem ? value : THROW_CCE());
3066
+ };
3067
+ protoOf($serializer_12).j21 = function (decoder) {
3068
+ var tmp0_desc = this.m54_1;
3069
+ var tmp1_flag = true;
3070
+ var tmp2_index = 0;
3071
+ var tmp3_bitMask0 = 0;
3072
+ var tmp4_local0 = null;
3073
+ var tmp5_local1 = null;
3074
+ var tmp6_local2 = 0;
3075
+ var tmp7_local3 = null;
3076
+ var tmp8_input = decoder.h24(tmp0_desc);
3077
+ if (tmp8_input.x24()) {
3078
+ tmp4_local0 = tmp8_input.r24(tmp0_desc, 0);
3079
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3080
+ tmp5_local1 = tmp8_input.r24(tmp0_desc, 1);
3081
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3082
+ tmp6_local2 = tmp8_input.m24(tmp0_desc, 2);
3083
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3084
+ tmp7_local3 = tmp8_input.r24(tmp0_desc, 3);
3085
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3086
+ } else
3087
+ while (tmp1_flag) {
3088
+ tmp2_index = tmp8_input.y24(tmp0_desc);
3089
+ switch (tmp2_index) {
3090
+ case -1:
3091
+ tmp1_flag = false;
3092
+ break;
3093
+ case 0:
3094
+ tmp4_local0 = tmp8_input.r24(tmp0_desc, 0);
3095
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3096
+ break;
3097
+ case 1:
3098
+ tmp5_local1 = tmp8_input.r24(tmp0_desc, 1);
3099
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3100
+ break;
3101
+ case 2:
3102
+ tmp6_local2 = tmp8_input.m24(tmp0_desc, 2);
3103
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3104
+ break;
3105
+ case 3:
3106
+ tmp7_local3 = tmp8_input.r24(tmp0_desc, 3);
3107
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3108
+ break;
3109
+ default:
3110
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3111
+ }
3112
+ }
3113
+ tmp8_input.i24(tmp0_desc);
3114
+ return TextDocumentItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
3115
+ };
3116
+ protoOf($serializer_12).h21 = function () {
3117
+ return this.m54_1;
3118
+ };
3119
+ protoOf($serializer_12).k2c = function () {
3120
+ // Inline function 'kotlin.arrayOf' call
3121
+ // Inline function 'kotlin.js.unsafeCast' call
3122
+ // Inline function 'kotlin.js.asDynamic' call
3123
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()];
3124
+ };
3125
+ var $serializer_instance_12;
3126
+ function $serializer_getInstance_12() {
3127
+ if ($serializer_instance_12 == null)
3128
+ new $serializer_12();
3129
+ return $serializer_instance_12;
3130
+ }
3131
+ function TextDocumentItem_init_$Init$(seen0, uri, languageId, version, text, serializationConstructorMarker, $this) {
3132
+ if (!(15 === (15 & seen0))) {
3133
+ throwMissingFieldException(seen0, 15, $serializer_getInstance_12().m54_1);
3134
+ }
3135
+ $this.a52_1 = uri;
3136
+ $this.b52_1 = languageId;
3137
+ $this.c52_1 = version;
3138
+ $this.d52_1 = text;
3139
+ return $this;
3140
+ }
3141
+ function TextDocumentItem_init_$Create$(seen0, uri, languageId, version, text, serializationConstructorMarker) {
3142
+ return TextDocumentItem_init_$Init$(seen0, uri, languageId, version, text, serializationConstructorMarker, objectCreate(protoOf(TextDocumentItem)));
3143
+ }
3144
+ function TextDocumentItem() {
3145
+ }
3146
+ protoOf(TextDocumentItem).toString = function () {
3147
+ return 'TextDocumentItem(uri=' + this.a52_1 + ', languageId=' + this.b52_1 + ', version=' + this.c52_1 + ', text=' + this.d52_1 + ')';
3148
+ };
3149
+ protoOf(TextDocumentItem).hashCode = function () {
3150
+ var result = getStringHashCode(this.a52_1);
3151
+ result = imul(result, 31) + getStringHashCode(this.b52_1) | 0;
3152
+ result = imul(result, 31) + this.c52_1 | 0;
3153
+ result = imul(result, 31) + getStringHashCode(this.d52_1) | 0;
3154
+ return result;
3155
+ };
3156
+ protoOf(TextDocumentItem).equals = function (other) {
3157
+ if (this === other)
3158
+ return true;
3159
+ if (!(other instanceof TextDocumentItem))
3160
+ return false;
3161
+ if (!(this.a52_1 === other.a52_1))
3162
+ return false;
3163
+ if (!(this.b52_1 === other.b52_1))
3164
+ return false;
3165
+ if (!(this.c52_1 === other.c52_1))
3166
+ return false;
3167
+ if (!(this.d52_1 === other.d52_1))
3168
+ return false;
3169
+ return true;
3170
+ };
3171
+ function DidChangeTextDocumentParams$Companion$$childSerializers$_anonymous__jf2771() {
3172
+ return new ArrayListSerializer($serializer_getInstance_14());
3173
+ }
3174
+ function Companion_11() {
3175
+ Companion_instance_12 = this;
3176
+ var tmp = this;
3177
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
3178
+ // Inline function 'kotlin.arrayOf' call
3179
+ // Inline function 'kotlin.js.unsafeCast' call
3180
+ // Inline function 'kotlin.js.asDynamic' call
3181
+ tmp.o54_1 = [null, lazy(tmp_0, DidChangeTextDocumentParams$Companion$$childSerializers$_anonymous__jf2771)];
3182
+ }
3183
+ var Companion_instance_12;
3184
+ function Companion_getInstance_11() {
3185
+ if (Companion_instance_12 == null)
3186
+ new Companion_11();
3187
+ return Companion_instance_12;
3188
+ }
3189
+ function $serializer_13() {
3190
+ $serializer_instance_13 = this;
3191
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.DidChangeTextDocumentParams', this, 2);
3192
+ tmp0_serialDesc.v2b('textDocument', false);
3193
+ tmp0_serialDesc.v2b('contentChanges', false);
3194
+ this.p54_1 = tmp0_serialDesc;
3195
+ }
3196
+ protoOf($serializer_13).q54 = function (encoder, value) {
3197
+ var tmp0_desc = this.p54_1;
3198
+ var tmp1_output = encoder.h24(tmp0_desc);
3199
+ var tmp2_cached = Companion_getInstance_11().o54_1;
3200
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_15(), value.f52_1);
3201
+ tmp1_output.y25(tmp0_desc, 1, tmp2_cached[1].l1(), value.g52_1);
3202
+ tmp1_output.i24(tmp0_desc);
3203
+ };
3204
+ protoOf($serializer_13).i21 = function (encoder, value) {
3205
+ return this.q54(encoder, value instanceof DidChangeTextDocumentParams ? value : THROW_CCE());
3206
+ };
3207
+ protoOf($serializer_13).j21 = function (decoder) {
3208
+ var tmp0_desc = this.p54_1;
3209
+ var tmp1_flag = true;
3210
+ var tmp2_index = 0;
3211
+ var tmp3_bitMask0 = 0;
3212
+ var tmp4_local0 = null;
3213
+ var tmp5_local1 = null;
3214
+ var tmp6_input = decoder.h24(tmp0_desc);
3215
+ var tmp7_cached = Companion_getInstance_11().o54_1;
3216
+ if (tmp6_input.x24()) {
3217
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_15(), tmp4_local0);
3218
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3219
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, tmp7_cached[1].l1(), tmp5_local1);
3220
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3221
+ } else
3222
+ while (tmp1_flag) {
3223
+ tmp2_index = tmp6_input.y24(tmp0_desc);
3224
+ switch (tmp2_index) {
3225
+ case -1:
3226
+ tmp1_flag = false;
3227
+ break;
3228
+ case 0:
3229
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_15(), tmp4_local0);
3230
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3231
+ break;
3232
+ case 1:
3233
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, tmp7_cached[1].l1(), tmp5_local1);
3234
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3235
+ break;
3236
+ default:
3237
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3238
+ }
3239
+ }
3240
+ tmp6_input.i24(tmp0_desc);
3241
+ return DidChangeTextDocumentParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
3242
+ };
3243
+ protoOf($serializer_13).h21 = function () {
3244
+ return this.p54_1;
3245
+ };
3246
+ protoOf($serializer_13).k2c = function () {
3247
+ var tmp0_cached = Companion_getInstance_11().o54_1;
3248
+ // Inline function 'kotlin.arrayOf' call
3249
+ // Inline function 'kotlin.js.unsafeCast' call
3250
+ // Inline function 'kotlin.js.asDynamic' call
3251
+ return [$serializer_getInstance_15(), tmp0_cached[1].l1()];
3252
+ };
3253
+ var $serializer_instance_13;
3254
+ function $serializer_getInstance_13() {
3255
+ if ($serializer_instance_13 == null)
3256
+ new $serializer_13();
3257
+ return $serializer_instance_13;
3258
+ }
3259
+ function DidChangeTextDocumentParams_init_$Init$(seen0, textDocument, contentChanges, serializationConstructorMarker, $this) {
3260
+ if (!(3 === (3 & seen0))) {
3261
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_13().p54_1);
3262
+ }
3263
+ $this.f52_1 = textDocument;
3264
+ $this.g52_1 = contentChanges;
3265
+ return $this;
3266
+ }
3267
+ function DidChangeTextDocumentParams_init_$Create$(seen0, textDocument, contentChanges, serializationConstructorMarker) {
3268
+ return DidChangeTextDocumentParams_init_$Init$(seen0, textDocument, contentChanges, serializationConstructorMarker, objectCreate(protoOf(DidChangeTextDocumentParams)));
3269
+ }
3270
+ function DidChangeTextDocumentParams(textDocument, contentChanges) {
3271
+ Companion_getInstance_11();
3272
+ this.f52_1 = textDocument;
3273
+ this.g52_1 = contentChanges;
3274
+ }
3275
+ protoOf(DidChangeTextDocumentParams).toString = function () {
3276
+ return 'DidChangeTextDocumentParams(textDocument=' + this.f52_1.toString() + ', contentChanges=' + toString_0(this.g52_1) + ')';
3277
+ };
3278
+ protoOf(DidChangeTextDocumentParams).hashCode = function () {
3279
+ var result = this.f52_1.hashCode();
3280
+ result = imul(result, 31) + hashCode(this.g52_1) | 0;
3281
+ return result;
3282
+ };
3283
+ protoOf(DidChangeTextDocumentParams).equals = function (other) {
3284
+ if (this === other)
3285
+ return true;
3286
+ if (!(other instanceof DidChangeTextDocumentParams))
3287
+ return false;
3288
+ if (!this.f52_1.equals(other.f52_1))
3289
+ return false;
3290
+ if (!equals(this.g52_1, other.g52_1))
3291
+ return false;
3292
+ return true;
3293
+ };
3294
+ function $serializer_14() {
3295
+ $serializer_instance_14 = this;
3296
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.TextDocumentContentChangeEvent', this, 2);
3297
+ tmp0_serialDesc.v2b('range', true);
3298
+ tmp0_serialDesc.v2b('text', false);
3299
+ this.r54_1 = tmp0_serialDesc;
3300
+ }
3301
+ protoOf($serializer_14).s54 = function (encoder, value) {
3302
+ var tmp0_desc = this.r54_1;
3303
+ var tmp1_output = encoder.h24(tmp0_desc);
3304
+ if (tmp1_output.e26(tmp0_desc, 0) ? true : !(value.h52_1 == null)) {
3305
+ tmp1_output.a26(tmp0_desc, 0, $serializer_getInstance_8(), value.h52_1);
3306
+ }
3307
+ tmp1_output.w25(tmp0_desc, 1, value.i52_1);
3308
+ tmp1_output.i24(tmp0_desc);
3309
+ };
3310
+ protoOf($serializer_14).i21 = function (encoder, value) {
3311
+ return this.s54(encoder, value instanceof TextDocumentContentChangeEvent ? value : THROW_CCE());
3312
+ };
3313
+ protoOf($serializer_14).j21 = function (decoder) {
3314
+ var tmp0_desc = this.r54_1;
3315
+ var tmp1_flag = true;
3316
+ var tmp2_index = 0;
3317
+ var tmp3_bitMask0 = 0;
3318
+ var tmp4_local0 = null;
3319
+ var tmp5_local1 = null;
3320
+ var tmp6_input = decoder.h24(tmp0_desc);
3321
+ if (tmp6_input.x24()) {
3322
+ tmp4_local0 = tmp6_input.v24(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
3323
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3324
+ tmp5_local1 = tmp6_input.r24(tmp0_desc, 1);
3325
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3326
+ } else
3327
+ while (tmp1_flag) {
3328
+ tmp2_index = tmp6_input.y24(tmp0_desc);
3329
+ switch (tmp2_index) {
3330
+ case -1:
3331
+ tmp1_flag = false;
3332
+ break;
3333
+ case 0:
3334
+ tmp4_local0 = tmp6_input.v24(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
3335
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3336
+ break;
3337
+ case 1:
3338
+ tmp5_local1 = tmp6_input.r24(tmp0_desc, 1);
3339
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3340
+ break;
3341
+ default:
3342
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3343
+ }
3344
+ }
3345
+ tmp6_input.i24(tmp0_desc);
3346
+ return TextDocumentContentChangeEvent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
3347
+ };
3348
+ protoOf($serializer_14).h21 = function () {
3349
+ return this.r54_1;
3350
+ };
3351
+ protoOf($serializer_14).k2c = function () {
3352
+ // Inline function 'kotlin.arrayOf' call
3353
+ // Inline function 'kotlin.js.unsafeCast' call
3354
+ // Inline function 'kotlin.js.asDynamic' call
3355
+ return [get_nullable($serializer_getInstance_8()), StringSerializer_getInstance()];
3356
+ };
3357
+ var $serializer_instance_14;
3358
+ function $serializer_getInstance_14() {
3359
+ if ($serializer_instance_14 == null)
3360
+ new $serializer_14();
3361
+ return $serializer_instance_14;
3362
+ }
3363
+ function TextDocumentContentChangeEvent_init_$Init$(seen0, range, text, serializationConstructorMarker, $this) {
3364
+ if (!(2 === (2 & seen0))) {
3365
+ throwMissingFieldException(seen0, 2, $serializer_getInstance_14().r54_1);
3366
+ }
3367
+ if (0 === (seen0 & 1))
3368
+ $this.h52_1 = null;
3369
+ else
3370
+ $this.h52_1 = range;
3371
+ $this.i52_1 = text;
3372
+ return $this;
3373
+ }
3374
+ function TextDocumentContentChangeEvent_init_$Create$(seen0, range, text, serializationConstructorMarker) {
3375
+ return TextDocumentContentChangeEvent_init_$Init$(seen0, range, text, serializationConstructorMarker, objectCreate(protoOf(TextDocumentContentChangeEvent)));
3376
+ }
3377
+ function TextDocumentContentChangeEvent() {
3378
+ }
3379
+ protoOf(TextDocumentContentChangeEvent).toString = function () {
3380
+ return 'TextDocumentContentChangeEvent(range=' + toString(this.h52_1) + ', text=' + this.i52_1 + ')';
3381
+ };
3382
+ protoOf(TextDocumentContentChangeEvent).hashCode = function () {
3383
+ var result = this.h52_1 == null ? 0 : this.h52_1.hashCode();
3384
+ result = imul(result, 31) + getStringHashCode(this.i52_1) | 0;
3385
+ return result;
3386
+ };
3387
+ protoOf(TextDocumentContentChangeEvent).equals = function (other) {
3388
+ if (this === other)
3389
+ return true;
3390
+ if (!(other instanceof TextDocumentContentChangeEvent))
3391
+ return false;
3392
+ if (!equals(this.h52_1, other.h52_1))
3393
+ return false;
3394
+ if (!(this.i52_1 === other.i52_1))
3395
+ return false;
3396
+ return true;
3397
+ };
3398
+ function $serializer_15() {
3399
+ $serializer_instance_15 = this;
3400
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.VersionedTextDocumentIdentifier', this, 2);
3401
+ tmp0_serialDesc.v2b('uri', false);
3402
+ tmp0_serialDesc.v2b('version', true);
3403
+ this.t54_1 = tmp0_serialDesc;
3404
+ }
3405
+ protoOf($serializer_15).u54 = function (encoder, value) {
3406
+ var tmp0_desc = this.t54_1;
3407
+ var tmp1_output = encoder.h24(tmp0_desc);
3408
+ tmp1_output.w25(tmp0_desc, 0, value.j52_1);
3409
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.k52_1 == null)) {
3410
+ tmp1_output.a26(tmp0_desc, 1, IntSerializer_getInstance(), value.k52_1);
3411
+ }
3412
+ tmp1_output.i24(tmp0_desc);
3413
+ };
3414
+ protoOf($serializer_15).i21 = function (encoder, value) {
3415
+ return this.u54(encoder, value instanceof VersionedTextDocumentIdentifier ? value : THROW_CCE());
3416
+ };
3417
+ protoOf($serializer_15).j21 = function (decoder) {
3418
+ var tmp0_desc = this.t54_1;
3419
+ var tmp1_flag = true;
3420
+ var tmp2_index = 0;
3421
+ var tmp3_bitMask0 = 0;
3422
+ var tmp4_local0 = null;
3423
+ var tmp5_local1 = null;
3424
+ var tmp6_input = decoder.h24(tmp0_desc);
3425
+ if (tmp6_input.x24()) {
3426
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
3427
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3428
+ tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
3429
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3430
+ } else
3431
+ while (tmp1_flag) {
3432
+ tmp2_index = tmp6_input.y24(tmp0_desc);
3433
+ switch (tmp2_index) {
3434
+ case -1:
3435
+ tmp1_flag = false;
3436
+ break;
3437
+ case 0:
3438
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
3439
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3440
+ break;
3441
+ case 1:
3442
+ tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
3443
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3444
+ break;
3445
+ default:
3446
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3447
+ }
3448
+ }
3449
+ tmp6_input.i24(tmp0_desc);
3450
+ return VersionedTextDocumentIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
3451
+ };
3452
+ protoOf($serializer_15).h21 = function () {
3453
+ return this.t54_1;
3454
+ };
3455
+ protoOf($serializer_15).k2c = function () {
3456
+ // Inline function 'kotlin.arrayOf' call
3457
+ // Inline function 'kotlin.js.unsafeCast' call
3458
+ // Inline function 'kotlin.js.asDynamic' call
3459
+ return [StringSerializer_getInstance(), get_nullable(IntSerializer_getInstance())];
3460
+ };
3461
+ var $serializer_instance_15;
3462
+ function $serializer_getInstance_15() {
3463
+ if ($serializer_instance_15 == null)
3464
+ new $serializer_15();
3465
+ return $serializer_instance_15;
3466
+ }
3467
+ function VersionedTextDocumentIdentifier_init_$Init$(seen0, uri, version, serializationConstructorMarker, $this) {
3468
+ if (!(1 === (1 & seen0))) {
3469
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_15().t54_1);
3470
+ }
3471
+ $this.j52_1 = uri;
3472
+ if (0 === (seen0 & 2))
3473
+ $this.k52_1 = null;
3474
+ else
3475
+ $this.k52_1 = version;
3476
+ return $this;
3477
+ }
3478
+ function VersionedTextDocumentIdentifier_init_$Create$(seen0, uri, version, serializationConstructorMarker) {
3479
+ return VersionedTextDocumentIdentifier_init_$Init$(seen0, uri, version, serializationConstructorMarker, objectCreate(protoOf(VersionedTextDocumentIdentifier)));
3480
+ }
3481
+ function VersionedTextDocumentIdentifier() {
3482
+ }
3483
+ protoOf(VersionedTextDocumentIdentifier).toString = function () {
3484
+ return 'VersionedTextDocumentIdentifier(uri=' + this.j52_1 + ', version=' + this.k52_1 + ')';
3485
+ };
3486
+ protoOf(VersionedTextDocumentIdentifier).hashCode = function () {
3487
+ var result = getStringHashCode(this.j52_1);
3488
+ result = imul(result, 31) + (this.k52_1 == null ? 0 : this.k52_1) | 0;
3489
+ return result;
3490
+ };
3491
+ protoOf(VersionedTextDocumentIdentifier).equals = function (other) {
3492
+ if (this === other)
3493
+ return true;
3494
+ if (!(other instanceof VersionedTextDocumentIdentifier))
3495
+ return false;
3496
+ if (!(this.j52_1 === other.j52_1))
3497
+ return false;
3498
+ if (!(this.k52_1 == other.k52_1))
3499
+ return false;
3500
+ return true;
3501
+ };
3502
+ function Companion_12() {
3503
+ }
3504
+ var Companion_instance_13;
3505
+ function Companion_getInstance_12() {
3506
+ return Companion_instance_13;
3507
+ }
3508
+ function $serializer_16() {
3509
+ $serializer_instance_16 = this;
3510
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.DidCloseTextDocumentParams', this, 1);
3511
+ tmp0_serialDesc.v2b('textDocument', false);
3512
+ this.v54_1 = tmp0_serialDesc;
3513
+ }
3514
+ protoOf($serializer_16).w54 = function (encoder, value) {
3515
+ var tmp0_desc = this.v54_1;
3516
+ var tmp1_output = encoder.h24(tmp0_desc);
3517
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_3(), value.l52_1);
3518
+ tmp1_output.i24(tmp0_desc);
3519
+ };
3520
+ protoOf($serializer_16).i21 = function (encoder, value) {
3521
+ return this.w54(encoder, value instanceof DidCloseTextDocumentParams ? value : THROW_CCE());
3522
+ };
3523
+ protoOf($serializer_16).j21 = function (decoder) {
3524
+ var tmp0_desc = this.v54_1;
3525
+ var tmp1_flag = true;
3526
+ var tmp2_index = 0;
3527
+ var tmp3_bitMask0 = 0;
3528
+ var tmp4_local0 = null;
3529
+ var tmp5_input = decoder.h24(tmp0_desc);
3530
+ if (tmp5_input.x24()) {
3531
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
3532
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3533
+ } else
3534
+ while (tmp1_flag) {
3535
+ tmp2_index = tmp5_input.y24(tmp0_desc);
3536
+ switch (tmp2_index) {
3537
+ case -1:
3538
+ tmp1_flag = false;
3539
+ break;
3540
+ case 0:
3541
+ tmp4_local0 = tmp5_input.t24(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0);
3542
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3543
+ break;
3544
+ default:
3545
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3546
+ }
3547
+ }
3548
+ tmp5_input.i24(tmp0_desc);
3549
+ return DidCloseTextDocumentParams_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
3550
+ };
3551
+ protoOf($serializer_16).h21 = function () {
3552
+ return this.v54_1;
3553
+ };
3554
+ protoOf($serializer_16).k2c = function () {
3555
+ // Inline function 'kotlin.arrayOf' call
3556
+ // Inline function 'kotlin.js.unsafeCast' call
3557
+ // Inline function 'kotlin.js.asDynamic' call
3558
+ return [$serializer_getInstance_3()];
3559
+ };
3560
+ var $serializer_instance_16;
3561
+ function $serializer_getInstance_16() {
3562
+ if ($serializer_instance_16 == null)
3563
+ new $serializer_16();
3564
+ return $serializer_instance_16;
3565
+ }
3566
+ function DidCloseTextDocumentParams_init_$Init$(seen0, textDocument, serializationConstructorMarker, $this) {
3567
+ if (!(1 === (1 & seen0))) {
3568
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_16().v54_1);
3569
+ }
3570
+ $this.l52_1 = textDocument;
3571
+ return $this;
3572
+ }
3573
+ function DidCloseTextDocumentParams_init_$Create$(seen0, textDocument, serializationConstructorMarker) {
3574
+ return DidCloseTextDocumentParams_init_$Init$(seen0, textDocument, serializationConstructorMarker, objectCreate(protoOf(DidCloseTextDocumentParams)));
3575
+ }
3576
+ function DidCloseTextDocumentParams(textDocument) {
3577
+ this.l52_1 = textDocument;
3578
+ }
3579
+ protoOf(DidCloseTextDocumentParams).toString = function () {
3580
+ return 'DidCloseTextDocumentParams(textDocument=' + this.l52_1.toString() + ')';
3581
+ };
3582
+ protoOf(DidCloseTextDocumentParams).hashCode = function () {
3583
+ return this.l52_1.hashCode();
3584
+ };
3585
+ protoOf(DidCloseTextDocumentParams).equals = function (other) {
3586
+ if (this === other)
3587
+ return true;
3588
+ if (!(other instanceof DidCloseTextDocumentParams))
3589
+ return false;
3590
+ if (!this.l52_1.equals(other.l52_1))
3591
+ return false;
3592
+ return true;
3593
+ };
3594
+ function Companion_13() {
3595
+ }
3596
+ var Companion_instance_14;
3597
+ function Companion_getInstance_13() {
3598
+ return Companion_instance_14;
3599
+ }
3600
+ function $serializer_17() {
3601
+ $serializer_instance_17 = this;
3602
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.Diagnostic', this, 5);
3603
+ tmp0_serialDesc.v2b('range', false);
3604
+ tmp0_serialDesc.v2b('severity', true);
3605
+ tmp0_serialDesc.v2b('code', true);
3606
+ tmp0_serialDesc.v2b('source', true);
3607
+ tmp0_serialDesc.v2b('message', false);
3608
+ this.x54_1 = tmp0_serialDesc;
3609
+ }
3610
+ protoOf($serializer_17).y54 = function (encoder, value) {
3611
+ var tmp0_desc = this.x54_1;
3612
+ var tmp1_output = encoder.h24(tmp0_desc);
3613
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_8(), value.z54_1);
3614
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.a55_1 == null)) {
3615
+ tmp1_output.a26(tmp0_desc, 1, IntSerializer_getInstance(), value.a55_1);
3616
+ }
3617
+ if (tmp1_output.e26(tmp0_desc, 2) ? true : !(value.b55_1 == null)) {
3618
+ tmp1_output.a26(tmp0_desc, 2, StringSerializer_getInstance(), value.b55_1);
3619
+ }
3620
+ if (tmp1_output.e26(tmp0_desc, 3) ? true : !(value.c55_1 == null)) {
3621
+ tmp1_output.a26(tmp0_desc, 3, StringSerializer_getInstance(), value.c55_1);
3622
+ }
3623
+ tmp1_output.w25(tmp0_desc, 4, value.d55_1);
3624
+ tmp1_output.i24(tmp0_desc);
3625
+ };
3626
+ protoOf($serializer_17).i21 = function (encoder, value) {
3627
+ return this.y54(encoder, value instanceof Diagnostic ? value : THROW_CCE());
3628
+ };
3629
+ protoOf($serializer_17).j21 = function (decoder) {
3630
+ var tmp0_desc = this.x54_1;
3631
+ var tmp1_flag = true;
3632
+ var tmp2_index = 0;
3633
+ var tmp3_bitMask0 = 0;
3634
+ var tmp4_local0 = null;
3635
+ var tmp5_local1 = null;
3636
+ var tmp6_local2 = null;
3637
+ var tmp7_local3 = null;
3638
+ var tmp8_local4 = null;
3639
+ var tmp9_input = decoder.h24(tmp0_desc);
3640
+ if (tmp9_input.x24()) {
3641
+ tmp4_local0 = tmp9_input.t24(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
3642
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3643
+ tmp5_local1 = tmp9_input.v24(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
3644
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3645
+ tmp6_local2 = tmp9_input.v24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
3646
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3647
+ tmp7_local3 = tmp9_input.v24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
3648
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3649
+ tmp8_local4 = tmp9_input.r24(tmp0_desc, 4);
3650
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
3651
+ } else
3652
+ while (tmp1_flag) {
3653
+ tmp2_index = tmp9_input.y24(tmp0_desc);
3654
+ switch (tmp2_index) {
3655
+ case -1:
3656
+ tmp1_flag = false;
3657
+ break;
3658
+ case 0:
3659
+ tmp4_local0 = tmp9_input.t24(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
3660
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3661
+ break;
3662
+ case 1:
3663
+ tmp5_local1 = tmp9_input.v24(tmp0_desc, 1, IntSerializer_getInstance(), tmp5_local1);
3664
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3665
+ break;
3666
+ case 2:
3667
+ tmp6_local2 = tmp9_input.v24(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
3668
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3669
+ break;
3670
+ case 3:
3671
+ tmp7_local3 = tmp9_input.v24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
3672
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3673
+ break;
3674
+ case 4:
3675
+ tmp8_local4 = tmp9_input.r24(tmp0_desc, 4);
3676
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
3677
+ break;
3678
+ default:
3679
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3680
+ }
3681
+ }
3682
+ tmp9_input.i24(tmp0_desc);
3683
+ return Diagnostic_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
3684
+ };
3685
+ protoOf($serializer_17).h21 = function () {
3686
+ return this.x54_1;
3687
+ };
3688
+ protoOf($serializer_17).k2c = function () {
3689
+ // Inline function 'kotlin.arrayOf' call
3690
+ // Inline function 'kotlin.js.unsafeCast' call
3691
+ // Inline function 'kotlin.js.asDynamic' call
3692
+ return [$serializer_getInstance_8(), get_nullable(IntSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()];
3693
+ };
3694
+ var $serializer_instance_17;
3695
+ function $serializer_getInstance_17() {
3696
+ if ($serializer_instance_17 == null)
3697
+ new $serializer_17();
3698
+ return $serializer_instance_17;
3699
+ }
3700
+ function Diagnostic_init_$Init$(seen0, range, severity, code, source, message, serializationConstructorMarker, $this) {
3701
+ if (!(17 === (17 & seen0))) {
3702
+ throwMissingFieldException(seen0, 17, $serializer_getInstance_17().x54_1);
3703
+ }
3704
+ $this.z54_1 = range;
3705
+ if (0 === (seen0 & 2))
3706
+ $this.a55_1 = null;
3707
+ else
3708
+ $this.a55_1 = severity;
3709
+ if (0 === (seen0 & 4))
3710
+ $this.b55_1 = null;
3711
+ else
3712
+ $this.b55_1 = code;
3713
+ if (0 === (seen0 & 8))
3714
+ $this.c55_1 = null;
3715
+ else
3716
+ $this.c55_1 = source;
3717
+ $this.d55_1 = message;
3718
+ return $this;
3719
+ }
3720
+ function Diagnostic_init_$Create$(seen0, range, severity, code, source, message, serializationConstructorMarker) {
3721
+ return Diagnostic_init_$Init$(seen0, range, severity, code, source, message, serializationConstructorMarker, objectCreate(protoOf(Diagnostic)));
3722
+ }
3723
+ function Diagnostic(range, severity, code, source, message) {
3724
+ severity = severity === VOID ? null : severity;
3725
+ code = code === VOID ? null : code;
3726
+ source = source === VOID ? null : source;
3727
+ this.z54_1 = range;
3728
+ this.a55_1 = severity;
3729
+ this.b55_1 = code;
3730
+ this.c55_1 = source;
3731
+ this.d55_1 = message;
3732
+ }
3733
+ protoOf(Diagnostic).toString = function () {
3734
+ return 'Diagnostic(range=' + this.z54_1.toString() + ', severity=' + this.a55_1 + ', code=' + this.b55_1 + ', source=' + this.c55_1 + ', message=' + this.d55_1 + ')';
3735
+ };
3736
+ protoOf(Diagnostic).hashCode = function () {
3737
+ var result = this.z54_1.hashCode();
3738
+ result = imul(result, 31) + (this.a55_1 == null ? 0 : this.a55_1) | 0;
3739
+ result = imul(result, 31) + (this.b55_1 == null ? 0 : getStringHashCode(this.b55_1)) | 0;
3740
+ result = imul(result, 31) + (this.c55_1 == null ? 0 : getStringHashCode(this.c55_1)) | 0;
3741
+ result = imul(result, 31) + getStringHashCode(this.d55_1) | 0;
3742
+ return result;
3743
+ };
3744
+ protoOf(Diagnostic).equals = function (other) {
3745
+ if (this === other)
3746
+ return true;
3747
+ if (!(other instanceof Diagnostic))
3748
+ return false;
3749
+ if (!this.z54_1.equals(other.z54_1))
3750
+ return false;
3751
+ if (!(this.a55_1 == other.a55_1))
3752
+ return false;
3753
+ if (!(this.b55_1 == other.b55_1))
3754
+ return false;
3755
+ if (!(this.c55_1 == other.c55_1))
3756
+ return false;
3757
+ if (!(this.d55_1 === other.d55_1))
3758
+ return false;
3759
+ return true;
3760
+ };
3761
+ function PublishDiagnosticsParams$Companion$$childSerializers$_anonymous__qmhhk7() {
3762
+ return new ArrayListSerializer($serializer_getInstance_17());
3763
+ }
3764
+ function Companion_14() {
3765
+ Companion_instance_15 = this;
3766
+ var tmp = this;
3767
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
3768
+ // Inline function 'kotlin.arrayOf' call
3769
+ // Inline function 'kotlin.js.unsafeCast' call
3770
+ // Inline function 'kotlin.js.asDynamic' call
3771
+ tmp.e55_1 = [null, lazy(tmp_0, PublishDiagnosticsParams$Companion$$childSerializers$_anonymous__qmhhk7)];
3772
+ }
3773
+ var Companion_instance_15;
3774
+ function Companion_getInstance_14() {
3775
+ if (Companion_instance_15 == null)
3776
+ new Companion_14();
3777
+ return Companion_instance_15;
3778
+ }
3779
+ function $serializer_18() {
3780
+ $serializer_instance_18 = this;
3781
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.PublishDiagnosticsParams', this, 2);
3782
+ tmp0_serialDesc.v2b('uri', false);
3783
+ tmp0_serialDesc.v2b('diagnostics', false);
3784
+ this.f55_1 = tmp0_serialDesc;
3785
+ }
3786
+ protoOf($serializer_18).g55 = function (encoder, value) {
3787
+ var tmp0_desc = this.f55_1;
3788
+ var tmp1_output = encoder.h24(tmp0_desc);
3789
+ var tmp2_cached = Companion_getInstance_14().e55_1;
3790
+ tmp1_output.w25(tmp0_desc, 0, value.h55_1);
3791
+ tmp1_output.y25(tmp0_desc, 1, tmp2_cached[1].l1(), value.i55_1);
3792
+ tmp1_output.i24(tmp0_desc);
3793
+ };
3794
+ protoOf($serializer_18).i21 = function (encoder, value) {
3795
+ return this.g55(encoder, value instanceof PublishDiagnosticsParams ? value : THROW_CCE());
3796
+ };
3797
+ protoOf($serializer_18).j21 = function (decoder) {
3798
+ var tmp0_desc = this.f55_1;
3799
+ var tmp1_flag = true;
3800
+ var tmp2_index = 0;
3801
+ var tmp3_bitMask0 = 0;
3802
+ var tmp4_local0 = null;
3803
+ var tmp5_local1 = null;
3804
+ var tmp6_input = decoder.h24(tmp0_desc);
3805
+ var tmp7_cached = Companion_getInstance_14().e55_1;
3806
+ if (tmp6_input.x24()) {
3807
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
3808
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3809
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, tmp7_cached[1].l1(), tmp5_local1);
3810
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3811
+ } else
3812
+ while (tmp1_flag) {
3813
+ tmp2_index = tmp6_input.y24(tmp0_desc);
3814
+ switch (tmp2_index) {
3815
+ case -1:
3816
+ tmp1_flag = false;
3817
+ break;
3818
+ case 0:
3819
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
3820
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3821
+ break;
3822
+ case 1:
3823
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, tmp7_cached[1].l1(), tmp5_local1);
3824
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3825
+ break;
3826
+ default:
3827
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3828
+ }
3829
+ }
3830
+ tmp6_input.i24(tmp0_desc);
3831
+ return PublishDiagnosticsParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
3832
+ };
3833
+ protoOf($serializer_18).h21 = function () {
3834
+ return this.f55_1;
3835
+ };
3836
+ protoOf($serializer_18).k2c = function () {
3837
+ var tmp0_cached = Companion_getInstance_14().e55_1;
3838
+ // Inline function 'kotlin.arrayOf' call
3839
+ // Inline function 'kotlin.js.unsafeCast' call
3840
+ // Inline function 'kotlin.js.asDynamic' call
3841
+ return [StringSerializer_getInstance(), tmp0_cached[1].l1()];
3842
+ };
3843
+ var $serializer_instance_18;
3844
+ function $serializer_getInstance_18() {
3845
+ if ($serializer_instance_18 == null)
3846
+ new $serializer_18();
3847
+ return $serializer_instance_18;
3848
+ }
3849
+ function PublishDiagnosticsParams_init_$Init$(seen0, uri, diagnostics, serializationConstructorMarker, $this) {
3850
+ if (!(3 === (3 & seen0))) {
3851
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_18().f55_1);
3852
+ }
3853
+ $this.h55_1 = uri;
3854
+ $this.i55_1 = diagnostics;
3855
+ return $this;
3856
+ }
3857
+ function PublishDiagnosticsParams_init_$Create$(seen0, uri, diagnostics, serializationConstructorMarker) {
3858
+ return PublishDiagnosticsParams_init_$Init$(seen0, uri, diagnostics, serializationConstructorMarker, objectCreate(protoOf(PublishDiagnosticsParams)));
3859
+ }
3860
+ function PublishDiagnosticsParams(uri, diagnostics) {
3861
+ Companion_getInstance_14();
3862
+ this.h55_1 = uri;
3863
+ this.i55_1 = diagnostics;
3864
+ }
3865
+ protoOf(PublishDiagnosticsParams).toString = function () {
3866
+ return 'PublishDiagnosticsParams(uri=' + this.h55_1 + ', diagnostics=' + toString_0(this.i55_1) + ')';
3867
+ };
3868
+ protoOf(PublishDiagnosticsParams).hashCode = function () {
3869
+ var result = getStringHashCode(this.h55_1);
3870
+ result = imul(result, 31) + hashCode(this.i55_1) | 0;
3871
+ return result;
3872
+ };
3873
+ protoOf(PublishDiagnosticsParams).equals = function (other) {
3874
+ if (this === other)
3875
+ return true;
3876
+ if (!(other instanceof PublishDiagnosticsParams))
3877
+ return false;
3878
+ if (!(this.h55_1 === other.h55_1))
3879
+ return false;
3880
+ if (!equals(this.i55_1, other.i55_1))
3881
+ return false;
3882
+ return true;
3883
+ };
3884
+ function Companion_15() {
3885
+ }
3886
+ var Companion_instance_16;
3887
+ function Companion_getInstance_15() {
3888
+ return Companion_instance_16;
3889
+ }
3890
+ function $serializer_19() {
3891
+ $serializer_instance_19 = this;
3892
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.ServerCapabilities', this, 4);
3893
+ tmp0_serialDesc.v2b('textDocumentSync', true);
3894
+ tmp0_serialDesc.v2b('semanticTokensProvider', true);
3895
+ tmp0_serialDesc.v2b('definitionProvider', true);
3896
+ tmp0_serialDesc.v2b('renameProvider', true);
3897
+ this.j55_1 = tmp0_serialDesc;
3898
+ }
3899
+ protoOf($serializer_19).k55 = function (encoder, value) {
3900
+ var tmp0_desc = this.j55_1;
3901
+ var tmp1_output = encoder.h24(tmp0_desc);
3902
+ if (tmp1_output.e26(tmp0_desc, 0) ? true : !value.l55_1.equals(new TextDocumentSyncOptions())) {
3903
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_25(), value.l55_1);
3904
+ }
3905
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.m55_1 == null)) {
3906
+ tmp1_output.a26(tmp0_desc, 1, $serializer_getInstance_20(), value.m55_1);
3907
+ }
3908
+ if (tmp1_output.e26(tmp0_desc, 2) ? true : !(value.n55_1 === false)) {
3909
+ tmp1_output.o25(tmp0_desc, 2, value.n55_1);
3910
+ }
3911
+ if (tmp1_output.e26(tmp0_desc, 3) ? true : !(value.o55_1 == null)) {
3912
+ tmp1_output.a26(tmp0_desc, 3, $serializer_getInstance_22(), value.o55_1);
3913
+ }
3914
+ tmp1_output.i24(tmp0_desc);
3915
+ };
3916
+ protoOf($serializer_19).i21 = function (encoder, value) {
3917
+ return this.k55(encoder, value instanceof ServerCapabilities ? value : THROW_CCE());
3918
+ };
3919
+ protoOf($serializer_19).j21 = function (decoder) {
3920
+ var tmp0_desc = this.j55_1;
3921
+ var tmp1_flag = true;
3922
+ var tmp2_index = 0;
3923
+ var tmp3_bitMask0 = 0;
3924
+ var tmp4_local0 = null;
3925
+ var tmp5_local1 = null;
3926
+ var tmp6_local2 = false;
3927
+ var tmp7_local3 = null;
3928
+ var tmp8_input = decoder.h24(tmp0_desc);
3929
+ if (tmp8_input.x24()) {
3930
+ tmp4_local0 = tmp8_input.t24(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0);
3931
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3932
+ tmp5_local1 = tmp8_input.v24(tmp0_desc, 1, $serializer_getInstance_20(), tmp5_local1);
3933
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3934
+ tmp6_local2 = tmp8_input.j24(tmp0_desc, 2);
3935
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3936
+ tmp7_local3 = tmp8_input.v24(tmp0_desc, 3, $serializer_getInstance_22(), tmp7_local3);
3937
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3938
+ } else
3939
+ while (tmp1_flag) {
3940
+ tmp2_index = tmp8_input.y24(tmp0_desc);
3941
+ switch (tmp2_index) {
3942
+ case -1:
3943
+ tmp1_flag = false;
3944
+ break;
3945
+ case 0:
3946
+ tmp4_local0 = tmp8_input.t24(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0);
3947
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3948
+ break;
3949
+ case 1:
3950
+ tmp5_local1 = tmp8_input.v24(tmp0_desc, 1, $serializer_getInstance_20(), tmp5_local1);
3951
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3952
+ break;
3953
+ case 2:
3954
+ tmp6_local2 = tmp8_input.j24(tmp0_desc, 2);
3955
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3956
+ break;
3957
+ case 3:
3958
+ tmp7_local3 = tmp8_input.v24(tmp0_desc, 3, $serializer_getInstance_22(), tmp7_local3);
3959
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3960
+ break;
3961
+ default:
3962
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3963
+ }
3964
+ }
3965
+ tmp8_input.i24(tmp0_desc);
3966
+ return ServerCapabilities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
3967
+ };
3968
+ protoOf($serializer_19).h21 = function () {
3969
+ return this.j55_1;
3970
+ };
3971
+ protoOf($serializer_19).k2c = function () {
3972
+ // Inline function 'kotlin.arrayOf' call
3973
+ // Inline function 'kotlin.js.unsafeCast' call
3974
+ // Inline function 'kotlin.js.asDynamic' call
3975
+ return [$serializer_getInstance_25(), get_nullable($serializer_getInstance_20()), BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_22())];
3976
+ };
3977
+ var $serializer_instance_19;
3978
+ function $serializer_getInstance_19() {
3979
+ if ($serializer_instance_19 == null)
3980
+ new $serializer_19();
3981
+ return $serializer_instance_19;
3982
+ }
3983
+ function ServerCapabilities_init_$Init$(seen0, textDocumentSync, semanticTokensProvider, definitionProvider, renameProvider, serializationConstructorMarker, $this) {
3984
+ if (!(0 === (0 & seen0))) {
3985
+ throwMissingFieldException(seen0, 0, $serializer_getInstance_19().j55_1);
3986
+ }
3987
+ if (0 === (seen0 & 1))
3988
+ $this.l55_1 = new TextDocumentSyncOptions();
3989
+ else
3990
+ $this.l55_1 = textDocumentSync;
3991
+ if (0 === (seen0 & 2))
3992
+ $this.m55_1 = null;
3993
+ else
3994
+ $this.m55_1 = semanticTokensProvider;
3995
+ if (0 === (seen0 & 4))
3996
+ $this.n55_1 = false;
3997
+ else
3998
+ $this.n55_1 = definitionProvider;
3999
+ if (0 === (seen0 & 8))
4000
+ $this.o55_1 = null;
4001
+ else
4002
+ $this.o55_1 = renameProvider;
4003
+ return $this;
4004
+ }
4005
+ function ServerCapabilities_init_$Create$(seen0, textDocumentSync, semanticTokensProvider, definitionProvider, renameProvider, serializationConstructorMarker) {
4006
+ return ServerCapabilities_init_$Init$(seen0, textDocumentSync, semanticTokensProvider, definitionProvider, renameProvider, serializationConstructorMarker, objectCreate(protoOf(ServerCapabilities)));
4007
+ }
4008
+ function ServerCapabilities(textDocumentSync, semanticTokensProvider, definitionProvider, renameProvider) {
4009
+ textDocumentSync = textDocumentSync === VOID ? new TextDocumentSyncOptions() : textDocumentSync;
4010
+ semanticTokensProvider = semanticTokensProvider === VOID ? null : semanticTokensProvider;
4011
+ definitionProvider = definitionProvider === VOID ? false : definitionProvider;
4012
+ renameProvider = renameProvider === VOID ? null : renameProvider;
4013
+ this.l55_1 = textDocumentSync;
4014
+ this.m55_1 = semanticTokensProvider;
4015
+ this.n55_1 = definitionProvider;
4016
+ this.o55_1 = renameProvider;
4017
+ }
4018
+ protoOf(ServerCapabilities).toString = function () {
4019
+ return 'ServerCapabilities(textDocumentSync=' + this.l55_1.toString() + ', semanticTokensProvider=' + toString(this.m55_1) + ', definitionProvider=' + this.n55_1 + ', renameProvider=' + toString(this.o55_1) + ')';
4020
+ };
4021
+ protoOf(ServerCapabilities).hashCode = function () {
4022
+ var result = this.l55_1.hashCode();
4023
+ result = imul(result, 31) + (this.m55_1 == null ? 0 : this.m55_1.hashCode()) | 0;
4024
+ result = imul(result, 31) + getBooleanHashCode(this.n55_1) | 0;
4025
+ result = imul(result, 31) + (this.o55_1 == null ? 0 : this.o55_1.hashCode()) | 0;
4026
+ return result;
4027
+ };
4028
+ protoOf(ServerCapabilities).equals = function (other) {
4029
+ if (this === other)
4030
+ return true;
4031
+ if (!(other instanceof ServerCapabilities))
4032
+ return false;
4033
+ if (!this.l55_1.equals(other.l55_1))
4034
+ return false;
4035
+ if (!equals(this.m55_1, other.m55_1))
4036
+ return false;
4037
+ if (!(this.n55_1 === other.n55_1))
4038
+ return false;
4039
+ if (!equals(this.o55_1, other.o55_1))
4040
+ return false;
4041
+ return true;
4042
+ };
4043
+ function Companion_16() {
4044
+ }
4045
+ var Companion_instance_17;
4046
+ function Companion_getInstance_16() {
4047
+ return Companion_instance_17;
4048
+ }
4049
+ function $serializer_20() {
4050
+ $serializer_instance_20 = this;
4051
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.SemanticTokensOptions', this, 3);
4052
+ tmp0_serialDesc.v2b('legend', false);
4053
+ tmp0_serialDesc.v2b('range', true);
4054
+ tmp0_serialDesc.v2b('full', true);
4055
+ this.p55_1 = tmp0_serialDesc;
4056
+ }
4057
+ protoOf($serializer_20).q55 = function (encoder, value) {
4058
+ var tmp0_desc = this.p55_1;
4059
+ var tmp1_output = encoder.h24(tmp0_desc);
4060
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_21(), value.r55_1);
4061
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.s55_1 === false)) {
4062
+ tmp1_output.o25(tmp0_desc, 1, value.s55_1);
4063
+ }
4064
+ if (tmp1_output.e26(tmp0_desc, 2) ? true : !(value.t55_1 === true)) {
4065
+ tmp1_output.o25(tmp0_desc, 2, value.t55_1);
4066
+ }
4067
+ tmp1_output.i24(tmp0_desc);
4068
+ };
4069
+ protoOf($serializer_20).i21 = function (encoder, value) {
4070
+ return this.q55(encoder, value instanceof SemanticTokensOptions ? value : THROW_CCE());
4071
+ };
4072
+ protoOf($serializer_20).j21 = function (decoder) {
4073
+ var tmp0_desc = this.p55_1;
4074
+ var tmp1_flag = true;
4075
+ var tmp2_index = 0;
4076
+ var tmp3_bitMask0 = 0;
4077
+ var tmp4_local0 = null;
4078
+ var tmp5_local1 = false;
4079
+ var tmp6_local2 = false;
4080
+ var tmp7_input = decoder.h24(tmp0_desc);
4081
+ if (tmp7_input.x24()) {
4082
+ tmp4_local0 = tmp7_input.t24(tmp0_desc, 0, $serializer_getInstance_21(), tmp4_local0);
4083
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4084
+ tmp5_local1 = tmp7_input.j24(tmp0_desc, 1);
4085
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4086
+ tmp6_local2 = tmp7_input.j24(tmp0_desc, 2);
4087
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
4088
+ } else
4089
+ while (tmp1_flag) {
4090
+ tmp2_index = tmp7_input.y24(tmp0_desc);
4091
+ switch (tmp2_index) {
4092
+ case -1:
4093
+ tmp1_flag = false;
4094
+ break;
4095
+ case 0:
4096
+ tmp4_local0 = tmp7_input.t24(tmp0_desc, 0, $serializer_getInstance_21(), tmp4_local0);
4097
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4098
+ break;
4099
+ case 1:
4100
+ tmp5_local1 = tmp7_input.j24(tmp0_desc, 1);
4101
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4102
+ break;
4103
+ case 2:
4104
+ tmp6_local2 = tmp7_input.j24(tmp0_desc, 2);
4105
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
4106
+ break;
4107
+ default:
4108
+ throw UnknownFieldException_init_$Create$(tmp2_index);
4109
+ }
4110
+ }
4111
+ tmp7_input.i24(tmp0_desc);
4112
+ return SemanticTokensOptions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
4113
+ };
4114
+ protoOf($serializer_20).h21 = function () {
4115
+ return this.p55_1;
4116
+ };
4117
+ protoOf($serializer_20).k2c = function () {
4118
+ // Inline function 'kotlin.arrayOf' call
4119
+ // Inline function 'kotlin.js.unsafeCast' call
4120
+ // Inline function 'kotlin.js.asDynamic' call
4121
+ return [$serializer_getInstance_21(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
4122
+ };
4123
+ var $serializer_instance_20;
4124
+ function $serializer_getInstance_20() {
4125
+ if ($serializer_instance_20 == null)
4126
+ new $serializer_20();
4127
+ return $serializer_instance_20;
4128
+ }
4129
+ function SemanticTokensOptions_init_$Init$(seen0, legend, range, full, serializationConstructorMarker, $this) {
4130
+ if (!(1 === (1 & seen0))) {
4131
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_20().p55_1);
4132
+ }
4133
+ $this.r55_1 = legend;
4134
+ if (0 === (seen0 & 2))
4135
+ $this.s55_1 = false;
4136
+ else
4137
+ $this.s55_1 = range;
4138
+ if (0 === (seen0 & 4))
4139
+ $this.t55_1 = true;
4140
+ else
4141
+ $this.t55_1 = full;
4142
+ return $this;
4143
+ }
4144
+ function SemanticTokensOptions_init_$Create$(seen0, legend, range, full, serializationConstructorMarker) {
4145
+ return SemanticTokensOptions_init_$Init$(seen0, legend, range, full, serializationConstructorMarker, objectCreate(protoOf(SemanticTokensOptions)));
4146
+ }
4147
+ function SemanticTokensOptions(legend, range, full) {
4148
+ range = range === VOID ? false : range;
4149
+ full = full === VOID ? true : full;
4150
+ this.r55_1 = legend;
4151
+ this.s55_1 = range;
4152
+ this.t55_1 = full;
4153
+ }
4154
+ protoOf(SemanticTokensOptions).toString = function () {
4155
+ return 'SemanticTokensOptions(legend=' + this.r55_1.toString() + ', range=' + this.s55_1 + ', full=' + this.t55_1 + ')';
4156
+ };
4157
+ protoOf(SemanticTokensOptions).hashCode = function () {
4158
+ var result = this.r55_1.hashCode();
4159
+ result = imul(result, 31) + getBooleanHashCode(this.s55_1) | 0;
4160
+ result = imul(result, 31) + getBooleanHashCode(this.t55_1) | 0;
4161
+ return result;
4162
+ };
4163
+ protoOf(SemanticTokensOptions).equals = function (other) {
4164
+ if (this === other)
4165
+ return true;
4166
+ if (!(other instanceof SemanticTokensOptions))
4167
+ return false;
4168
+ if (!this.r55_1.equals(other.r55_1))
4169
+ return false;
4170
+ if (!(this.s55_1 === other.s55_1))
4171
+ return false;
4172
+ if (!(this.t55_1 === other.t55_1))
4173
+ return false;
4174
+ return true;
4175
+ };
4176
+ function SemanticTokensLegend$Companion$$childSerializers$_anonymous__c919tp() {
4177
+ return new ArrayListSerializer(StringSerializer_getInstance());
4178
+ }
4179
+ function SemanticTokensLegend$Companion$$childSerializers$_anonymous__c919tp_0() {
4180
+ return new ArrayListSerializer(StringSerializer_getInstance());
4181
+ }
4182
+ function Companion_17() {
4183
+ Companion_instance_18 = this;
4184
+ var tmp = this;
4185
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
4186
+ var tmp_1 = lazy(tmp_0, SemanticTokensLegend$Companion$$childSerializers$_anonymous__c919tp);
4187
+ var tmp_2 = LazyThreadSafetyMode_PUBLICATION_getInstance();
4188
+ // Inline function 'kotlin.arrayOf' call
4189
+ // Inline function 'kotlin.js.unsafeCast' call
4190
+ // Inline function 'kotlin.js.asDynamic' call
4191
+ tmp.u55_1 = [tmp_1, lazy(tmp_2, SemanticTokensLegend$Companion$$childSerializers$_anonymous__c919tp_0)];
4192
+ }
4193
+ var Companion_instance_18;
4194
+ function Companion_getInstance_17() {
4195
+ if (Companion_instance_18 == null)
4196
+ new Companion_17();
4197
+ return Companion_instance_18;
4198
+ }
4199
+ function $serializer_21() {
4200
+ $serializer_instance_21 = this;
4201
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.SemanticTokensLegend', this, 2);
4202
+ tmp0_serialDesc.v2b('tokenTypes', false);
4203
+ tmp0_serialDesc.v2b('tokenModifiers', false);
4204
+ this.v55_1 = tmp0_serialDesc;
4205
+ }
4206
+ protoOf($serializer_21).w55 = function (encoder, value) {
4207
+ var tmp0_desc = this.v55_1;
4208
+ var tmp1_output = encoder.h24(tmp0_desc);
4209
+ var tmp2_cached = Companion_getInstance_17().u55_1;
4210
+ tmp1_output.y25(tmp0_desc, 0, tmp2_cached[0].l1(), value.x55_1);
4211
+ tmp1_output.y25(tmp0_desc, 1, tmp2_cached[1].l1(), value.y55_1);
4212
+ tmp1_output.i24(tmp0_desc);
4213
+ };
4214
+ protoOf($serializer_21).i21 = function (encoder, value) {
4215
+ return this.w55(encoder, value instanceof SemanticTokensLegend ? value : THROW_CCE());
4216
+ };
4217
+ protoOf($serializer_21).j21 = function (decoder) {
4218
+ var tmp0_desc = this.v55_1;
4219
+ var tmp1_flag = true;
4220
+ var tmp2_index = 0;
4221
+ var tmp3_bitMask0 = 0;
4222
+ var tmp4_local0 = null;
4223
+ var tmp5_local1 = null;
4224
+ var tmp6_input = decoder.h24(tmp0_desc);
4225
+ var tmp7_cached = Companion_getInstance_17().u55_1;
4226
+ if (tmp6_input.x24()) {
4227
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, tmp7_cached[0].l1(), tmp4_local0);
4228
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4229
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, tmp7_cached[1].l1(), tmp5_local1);
4230
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4231
+ } else
4232
+ while (tmp1_flag) {
4233
+ tmp2_index = tmp6_input.y24(tmp0_desc);
4234
+ switch (tmp2_index) {
4235
+ case -1:
4236
+ tmp1_flag = false;
4237
+ break;
4238
+ case 0:
4239
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, tmp7_cached[0].l1(), tmp4_local0);
4240
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4241
+ break;
4242
+ case 1:
4243
+ tmp5_local1 = tmp6_input.t24(tmp0_desc, 1, tmp7_cached[1].l1(), tmp5_local1);
4244
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4245
+ break;
4246
+ default:
4247
+ throw UnknownFieldException_init_$Create$(tmp2_index);
4248
+ }
4249
+ }
4250
+ tmp6_input.i24(tmp0_desc);
4251
+ return SemanticTokensLegend_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
4252
+ };
4253
+ protoOf($serializer_21).h21 = function () {
4254
+ return this.v55_1;
4255
+ };
4256
+ protoOf($serializer_21).k2c = function () {
4257
+ var tmp0_cached = Companion_getInstance_17().u55_1;
4258
+ // Inline function 'kotlin.arrayOf' call
4259
+ // Inline function 'kotlin.js.unsafeCast' call
4260
+ // Inline function 'kotlin.js.asDynamic' call
4261
+ return [tmp0_cached[0].l1(), tmp0_cached[1].l1()];
4262
+ };
4263
+ var $serializer_instance_21;
4264
+ function $serializer_getInstance_21() {
4265
+ if ($serializer_instance_21 == null)
4266
+ new $serializer_21();
4267
+ return $serializer_instance_21;
4268
+ }
4269
+ function SemanticTokensLegend_init_$Init$(seen0, tokenTypes, tokenModifiers, serializationConstructorMarker, $this) {
4270
+ if (!(3 === (3 & seen0))) {
4271
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_21().v55_1);
4272
+ }
4273
+ $this.x55_1 = tokenTypes;
4274
+ $this.y55_1 = tokenModifiers;
4275
+ return $this;
4276
+ }
4277
+ function SemanticTokensLegend_init_$Create$(seen0, tokenTypes, tokenModifiers, serializationConstructorMarker) {
4278
+ return SemanticTokensLegend_init_$Init$(seen0, tokenTypes, tokenModifiers, serializationConstructorMarker, objectCreate(protoOf(SemanticTokensLegend)));
4279
+ }
4280
+ function SemanticTokensLegend(tokenTypes, tokenModifiers) {
4281
+ Companion_getInstance_17();
4282
+ this.x55_1 = tokenTypes;
4283
+ this.y55_1 = tokenModifiers;
4284
+ }
4285
+ protoOf(SemanticTokensLegend).toString = function () {
4286
+ return 'SemanticTokensLegend(tokenTypes=' + toString_0(this.x55_1) + ', tokenModifiers=' + toString_0(this.y55_1) + ')';
4287
+ };
4288
+ protoOf(SemanticTokensLegend).hashCode = function () {
4289
+ var result = hashCode(this.x55_1);
4290
+ result = imul(result, 31) + hashCode(this.y55_1) | 0;
4291
+ return result;
4292
+ };
4293
+ protoOf(SemanticTokensLegend).equals = function (other) {
4294
+ if (this === other)
4295
+ return true;
4296
+ if (!(other instanceof SemanticTokensLegend))
4297
+ return false;
4298
+ if (!equals(this.x55_1, other.x55_1))
4299
+ return false;
4300
+ if (!equals(this.y55_1, other.y55_1))
4301
+ return false;
4302
+ return true;
4303
+ };
4304
+ function Companion_18() {
4305
+ }
4306
+ var Companion_instance_19;
4307
+ function Companion_getInstance_18() {
4308
+ return Companion_instance_19;
4309
+ }
4310
+ function $serializer_22() {
4311
+ $serializer_instance_22 = this;
4312
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.RenameOptions', this, 1);
4313
+ tmp0_serialDesc.v2b('prepareProvider', true);
4314
+ this.z55_1 = tmp0_serialDesc;
4315
+ }
4316
+ protoOf($serializer_22).a56 = function (encoder, value) {
4317
+ var tmp0_desc = this.z55_1;
4318
+ var tmp1_output = encoder.h24(tmp0_desc);
4319
+ if (tmp1_output.e26(tmp0_desc, 0) ? true : !(value.b56_1 === false)) {
4320
+ tmp1_output.o25(tmp0_desc, 0, value.b56_1);
4321
+ }
4322
+ tmp1_output.i24(tmp0_desc);
4323
+ };
4324
+ protoOf($serializer_22).i21 = function (encoder, value) {
4325
+ return this.a56(encoder, value instanceof RenameOptions ? value : THROW_CCE());
4326
+ };
4327
+ protoOf($serializer_22).j21 = function (decoder) {
4328
+ var tmp0_desc = this.z55_1;
4329
+ var tmp1_flag = true;
4330
+ var tmp2_index = 0;
4331
+ var tmp3_bitMask0 = 0;
4332
+ var tmp4_local0 = false;
4333
+ var tmp5_input = decoder.h24(tmp0_desc);
4334
+ if (tmp5_input.x24()) {
4335
+ tmp4_local0 = tmp5_input.j24(tmp0_desc, 0);
4336
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4337
+ } else
4338
+ while (tmp1_flag) {
4339
+ tmp2_index = tmp5_input.y24(tmp0_desc);
4340
+ switch (tmp2_index) {
4341
+ case -1:
4342
+ tmp1_flag = false;
4343
+ break;
4344
+ case 0:
4345
+ tmp4_local0 = tmp5_input.j24(tmp0_desc, 0);
4346
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4347
+ break;
4348
+ default:
4349
+ throw UnknownFieldException_init_$Create$(tmp2_index);
4350
+ }
4351
+ }
4352
+ tmp5_input.i24(tmp0_desc);
4353
+ return RenameOptions_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
4354
+ };
4355
+ protoOf($serializer_22).h21 = function () {
4356
+ return this.z55_1;
4357
+ };
4358
+ protoOf($serializer_22).k2c = function () {
4359
+ // Inline function 'kotlin.arrayOf' call
4360
+ // Inline function 'kotlin.js.unsafeCast' call
4361
+ // Inline function 'kotlin.js.asDynamic' call
4362
+ return [BooleanSerializer_getInstance()];
4363
+ };
4364
+ var $serializer_instance_22;
4365
+ function $serializer_getInstance_22() {
4366
+ if ($serializer_instance_22 == null)
4367
+ new $serializer_22();
4368
+ return $serializer_instance_22;
4369
+ }
4370
+ function RenameOptions_init_$Init$(seen0, prepareProvider, serializationConstructorMarker, $this) {
4371
+ if (!(0 === (0 & seen0))) {
4372
+ throwMissingFieldException(seen0, 0, $serializer_getInstance_22().z55_1);
4373
+ }
4374
+ if (0 === (seen0 & 1))
4375
+ $this.b56_1 = false;
4376
+ else
4377
+ $this.b56_1 = prepareProvider;
4378
+ return $this;
4379
+ }
4380
+ function RenameOptions_init_$Create$(seen0, prepareProvider, serializationConstructorMarker) {
4381
+ return RenameOptions_init_$Init$(seen0, prepareProvider, serializationConstructorMarker, objectCreate(protoOf(RenameOptions)));
4382
+ }
4383
+ function RenameOptions(prepareProvider) {
4384
+ prepareProvider = prepareProvider === VOID ? false : prepareProvider;
4385
+ this.b56_1 = prepareProvider;
4386
+ }
4387
+ protoOf(RenameOptions).toString = function () {
4388
+ return 'RenameOptions(prepareProvider=' + this.b56_1 + ')';
4389
+ };
4390
+ protoOf(RenameOptions).hashCode = function () {
4391
+ return getBooleanHashCode(this.b56_1);
4392
+ };
4393
+ protoOf(RenameOptions).equals = function (other) {
4394
+ if (this === other)
4395
+ return true;
4396
+ if (!(other instanceof RenameOptions))
4397
+ return false;
4398
+ if (!(this.b56_1 === other.b56_1))
4399
+ return false;
4400
+ return true;
4401
+ };
4402
+ function Companion_19() {
4403
+ }
4404
+ var Companion_instance_20;
4405
+ function Companion_getInstance_19() {
4406
+ return Companion_instance_20;
4407
+ }
4408
+ function $serializer_23() {
4409
+ $serializer_instance_23 = this;
4410
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.ServerInfo', this, 2);
4411
+ tmp0_serialDesc.v2b('name', false);
4412
+ tmp0_serialDesc.v2b('version', true);
4413
+ this.c56_1 = tmp0_serialDesc;
4414
+ }
4415
+ protoOf($serializer_23).d56 = function (encoder, value) {
4416
+ var tmp0_desc = this.c56_1;
4417
+ var tmp1_output = encoder.h24(tmp0_desc);
4418
+ tmp1_output.w25(tmp0_desc, 0, value.e56_1);
4419
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.f56_1 == null)) {
4420
+ tmp1_output.a26(tmp0_desc, 1, StringSerializer_getInstance(), value.f56_1);
4421
+ }
4422
+ tmp1_output.i24(tmp0_desc);
4423
+ };
4424
+ protoOf($serializer_23).i21 = function (encoder, value) {
4425
+ return this.d56(encoder, value instanceof ServerInfo ? value : THROW_CCE());
4426
+ };
4427
+ protoOf($serializer_23).j21 = function (decoder) {
4428
+ var tmp0_desc = this.c56_1;
4429
+ var tmp1_flag = true;
4430
+ var tmp2_index = 0;
4431
+ var tmp3_bitMask0 = 0;
4432
+ var tmp4_local0 = null;
4433
+ var tmp5_local1 = null;
4434
+ var tmp6_input = decoder.h24(tmp0_desc);
4435
+ if (tmp6_input.x24()) {
4436
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
4437
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4438
+ tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
4439
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4440
+ } else
4441
+ while (tmp1_flag) {
4442
+ tmp2_index = tmp6_input.y24(tmp0_desc);
4443
+ switch (tmp2_index) {
4444
+ case -1:
4445
+ tmp1_flag = false;
4446
+ break;
4447
+ case 0:
4448
+ tmp4_local0 = tmp6_input.r24(tmp0_desc, 0);
4449
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4450
+ break;
4451
+ case 1:
4452
+ tmp5_local1 = tmp6_input.v24(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
4453
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4454
+ break;
4455
+ default:
4456
+ throw UnknownFieldException_init_$Create$(tmp2_index);
4457
+ }
4458
+ }
4459
+ tmp6_input.i24(tmp0_desc);
4460
+ return ServerInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
4461
+ };
4462
+ protoOf($serializer_23).h21 = function () {
4463
+ return this.c56_1;
4464
+ };
4465
+ protoOf($serializer_23).k2c = function () {
4466
+ // Inline function 'kotlin.arrayOf' call
4467
+ // Inline function 'kotlin.js.unsafeCast' call
4468
+ // Inline function 'kotlin.js.asDynamic' call
4469
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
4470
+ };
4471
+ var $serializer_instance_23;
4472
+ function $serializer_getInstance_23() {
4473
+ if ($serializer_instance_23 == null)
4474
+ new $serializer_23();
4475
+ return $serializer_instance_23;
4476
+ }
4477
+ function ServerInfo_init_$Init$(seen0, name, version, serializationConstructorMarker, $this) {
4478
+ if (!(1 === (1 & seen0))) {
4479
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_23().c56_1);
4480
+ }
4481
+ $this.e56_1 = name;
4482
+ if (0 === (seen0 & 2))
4483
+ $this.f56_1 = null;
4484
+ else
4485
+ $this.f56_1 = version;
4486
+ return $this;
4487
+ }
4488
+ function ServerInfo_init_$Create$(seen0, name, version, serializationConstructorMarker) {
4489
+ return ServerInfo_init_$Init$(seen0, name, version, serializationConstructorMarker, objectCreate(protoOf(ServerInfo)));
4490
+ }
4491
+ function ServerInfo(name, version) {
4492
+ version = version === VOID ? null : version;
4493
+ this.e56_1 = name;
4494
+ this.f56_1 = version;
4495
+ }
4496
+ protoOf(ServerInfo).toString = function () {
4497
+ return 'ServerInfo(name=' + this.e56_1 + ', version=' + this.f56_1 + ')';
4498
+ };
4499
+ protoOf(ServerInfo).hashCode = function () {
4500
+ var result = getStringHashCode(this.e56_1);
4501
+ result = imul(result, 31) + (this.f56_1 == null ? 0 : getStringHashCode(this.f56_1)) | 0;
4502
+ return result;
4503
+ };
4504
+ protoOf(ServerInfo).equals = function (other) {
4505
+ if (this === other)
4506
+ return true;
4507
+ if (!(other instanceof ServerInfo))
4508
+ return false;
4509
+ if (!(this.e56_1 === other.e56_1))
4510
+ return false;
4511
+ if (!(this.f56_1 == other.f56_1))
4512
+ return false;
4513
+ return true;
4514
+ };
4515
+ function Companion_20() {
4516
+ }
4517
+ var Companion_instance_21;
4518
+ function Companion_getInstance_20() {
4519
+ return Companion_instance_21;
4520
+ }
4521
+ function $serializer_24() {
4522
+ $serializer_instance_24 = this;
4523
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.TextEdit', this, 2);
4524
+ tmp0_serialDesc.v2b('range', false);
4525
+ tmp0_serialDesc.v2b('newText', false);
4526
+ this.g56_1 = tmp0_serialDesc;
4527
+ }
4528
+ protoOf($serializer_24).h56 = function (encoder, value) {
4529
+ var tmp0_desc = this.g56_1;
4530
+ var tmp1_output = encoder.h24(tmp0_desc);
4531
+ tmp1_output.y25(tmp0_desc, 0, $serializer_getInstance_8(), value.i56_1);
4532
+ tmp1_output.w25(tmp0_desc, 1, value.j56_1);
4533
+ tmp1_output.i24(tmp0_desc);
4534
+ };
4535
+ protoOf($serializer_24).i21 = function (encoder, value) {
4536
+ return this.h56(encoder, value instanceof TextEdit ? value : THROW_CCE());
4537
+ };
4538
+ protoOf($serializer_24).j21 = function (decoder) {
4539
+ var tmp0_desc = this.g56_1;
4540
+ var tmp1_flag = true;
4541
+ var tmp2_index = 0;
4542
+ var tmp3_bitMask0 = 0;
4543
+ var tmp4_local0 = null;
4544
+ var tmp5_local1 = null;
4545
+ var tmp6_input = decoder.h24(tmp0_desc);
4546
+ if (tmp6_input.x24()) {
4547
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
4548
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4549
+ tmp5_local1 = tmp6_input.r24(tmp0_desc, 1);
4550
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4551
+ } else
4552
+ while (tmp1_flag) {
4553
+ tmp2_index = tmp6_input.y24(tmp0_desc);
4554
+ switch (tmp2_index) {
4555
+ case -1:
4556
+ tmp1_flag = false;
4557
+ break;
4558
+ case 0:
4559
+ tmp4_local0 = tmp6_input.t24(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
4560
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4561
+ break;
4562
+ case 1:
4563
+ tmp5_local1 = tmp6_input.r24(tmp0_desc, 1);
4564
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4565
+ break;
4566
+ default:
4567
+ throw UnknownFieldException_init_$Create$(tmp2_index);
4568
+ }
4569
+ }
4570
+ tmp6_input.i24(tmp0_desc);
4571
+ return TextEdit_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
4572
+ };
4573
+ protoOf($serializer_24).h21 = function () {
4574
+ return this.g56_1;
4575
+ };
4576
+ protoOf($serializer_24).k2c = function () {
4577
+ // Inline function 'kotlin.arrayOf' call
4578
+ // Inline function 'kotlin.js.unsafeCast' call
4579
+ // Inline function 'kotlin.js.asDynamic' call
4580
+ return [$serializer_getInstance_8(), StringSerializer_getInstance()];
4581
+ };
4582
+ var $serializer_instance_24;
4583
+ function $serializer_getInstance_24() {
4584
+ if ($serializer_instance_24 == null)
4585
+ new $serializer_24();
4586
+ return $serializer_instance_24;
4587
+ }
4588
+ function TextEdit_init_$Init$(seen0, range, newText, serializationConstructorMarker, $this) {
4589
+ if (!(3 === (3 & seen0))) {
4590
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_24().g56_1);
4591
+ }
4592
+ $this.i56_1 = range;
4593
+ $this.j56_1 = newText;
4594
+ return $this;
4595
+ }
4596
+ function TextEdit_init_$Create$(seen0, range, newText, serializationConstructorMarker) {
4597
+ return TextEdit_init_$Init$(seen0, range, newText, serializationConstructorMarker, objectCreate(protoOf(TextEdit)));
4598
+ }
4599
+ function TextEdit(range, newText) {
4600
+ this.i56_1 = range;
4601
+ this.j56_1 = newText;
4602
+ }
4603
+ protoOf(TextEdit).toString = function () {
4604
+ return 'TextEdit(range=' + this.i56_1.toString() + ', newText=' + this.j56_1 + ')';
4605
+ };
4606
+ protoOf(TextEdit).hashCode = function () {
4607
+ var result = this.i56_1.hashCode();
4608
+ result = imul(result, 31) + getStringHashCode(this.j56_1) | 0;
4609
+ return result;
4610
+ };
4611
+ protoOf(TextEdit).equals = function (other) {
4612
+ if (this === other)
4613
+ return true;
4614
+ if (!(other instanceof TextEdit))
4615
+ return false;
4616
+ if (!this.i56_1.equals(other.i56_1))
4617
+ return false;
4618
+ if (!(this.j56_1 === other.j56_1))
4619
+ return false;
4620
+ return true;
4621
+ };
4622
+ function Companion_21() {
4623
+ }
4624
+ var Companion_instance_22;
4625
+ function Companion_getInstance_21() {
4626
+ return Companion_instance_22;
4627
+ }
4628
+ function $serializer_25() {
4629
+ $serializer_instance_25 = this;
4630
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.lsp.protocol.TextDocumentSyncOptions', this, 2);
4631
+ tmp0_serialDesc.v2b('openClose', true);
4632
+ tmp0_serialDesc.v2b('change', true);
4633
+ this.k56_1 = tmp0_serialDesc;
4634
+ }
4635
+ protoOf($serializer_25).l56 = function (encoder, value) {
4636
+ var tmp0_desc = this.k56_1;
4637
+ var tmp1_output = encoder.h24(tmp0_desc);
4638
+ if (tmp1_output.e26(tmp0_desc, 0) ? true : !(value.m56_1 === true)) {
4639
+ tmp1_output.o25(tmp0_desc, 0, value.m56_1);
4640
+ }
4641
+ if (tmp1_output.e26(tmp0_desc, 1) ? true : !(value.n56_1 === 1)) {
4642
+ tmp1_output.r25(tmp0_desc, 1, value.n56_1);
4643
+ }
4644
+ tmp1_output.i24(tmp0_desc);
4645
+ };
4646
+ protoOf($serializer_25).i21 = function (encoder, value) {
4647
+ return this.l56(encoder, value instanceof TextDocumentSyncOptions ? value : THROW_CCE());
4648
+ };
4649
+ protoOf($serializer_25).j21 = function (decoder) {
4650
+ var tmp0_desc = this.k56_1;
4651
+ var tmp1_flag = true;
4652
+ var tmp2_index = 0;
4653
+ var tmp3_bitMask0 = 0;
4654
+ var tmp4_local0 = false;
4655
+ var tmp5_local1 = 0;
4656
+ var tmp6_input = decoder.h24(tmp0_desc);
4657
+ if (tmp6_input.x24()) {
4658
+ tmp4_local0 = tmp6_input.j24(tmp0_desc, 0);
4659
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4660
+ tmp5_local1 = tmp6_input.m24(tmp0_desc, 1);
4661
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4662
+ } else
4663
+ while (tmp1_flag) {
4664
+ tmp2_index = tmp6_input.y24(tmp0_desc);
4665
+ switch (tmp2_index) {
4666
+ case -1:
4667
+ tmp1_flag = false;
4668
+ break;
4669
+ case 0:
4670
+ tmp4_local0 = tmp6_input.j24(tmp0_desc, 0);
4671
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
4672
+ break;
4673
+ case 1:
4674
+ tmp5_local1 = tmp6_input.m24(tmp0_desc, 1);
4675
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
4676
+ break;
4677
+ default:
4678
+ throw UnknownFieldException_init_$Create$(tmp2_index);
4679
+ }
4680
+ }
4681
+ tmp6_input.i24(tmp0_desc);
4682
+ return TextDocumentSyncOptions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
4683
+ };
4684
+ protoOf($serializer_25).h21 = function () {
4685
+ return this.k56_1;
4686
+ };
4687
+ protoOf($serializer_25).k2c = function () {
4688
+ // Inline function 'kotlin.arrayOf' call
4689
+ // Inline function 'kotlin.js.unsafeCast' call
4690
+ // Inline function 'kotlin.js.asDynamic' call
4691
+ return [BooleanSerializer_getInstance(), IntSerializer_getInstance()];
4692
+ };
4693
+ var $serializer_instance_25;
4694
+ function $serializer_getInstance_25() {
4695
+ if ($serializer_instance_25 == null)
4696
+ new $serializer_25();
4697
+ return $serializer_instance_25;
4698
+ }
4699
+ function TextDocumentSyncOptions_init_$Init$(seen0, openClose, change, serializationConstructorMarker, $this) {
4700
+ if (!(0 === (0 & seen0))) {
4701
+ throwMissingFieldException(seen0, 0, $serializer_getInstance_25().k56_1);
4702
+ }
4703
+ if (0 === (seen0 & 1))
4704
+ $this.m56_1 = true;
4705
+ else
4706
+ $this.m56_1 = openClose;
4707
+ if (0 === (seen0 & 2))
4708
+ $this.n56_1 = 1;
4709
+ else
4710
+ $this.n56_1 = change;
4711
+ return $this;
4712
+ }
4713
+ function TextDocumentSyncOptions_init_$Create$(seen0, openClose, change, serializationConstructorMarker) {
4714
+ return TextDocumentSyncOptions_init_$Init$(seen0, openClose, change, serializationConstructorMarker, objectCreate(protoOf(TextDocumentSyncOptions)));
4715
+ }
4716
+ function TextDocumentSyncOptions(openClose, change) {
4717
+ openClose = openClose === VOID ? true : openClose;
4718
+ change = change === VOID ? 1 : change;
4719
+ this.m56_1 = openClose;
4720
+ this.n56_1 = change;
4721
+ }
4722
+ protoOf(TextDocumentSyncOptions).toString = function () {
4723
+ return 'TextDocumentSyncOptions(openClose=' + this.m56_1 + ', change=' + this.n56_1 + ')';
4724
+ };
4725
+ protoOf(TextDocumentSyncOptions).hashCode = function () {
4726
+ var result = getBooleanHashCode(this.m56_1);
4727
+ result = imul(result, 31) + this.n56_1 | 0;
4728
+ return result;
4729
+ };
4730
+ protoOf(TextDocumentSyncOptions).equals = function (other) {
4731
+ if (this === other)
4732
+ return true;
4733
+ if (!(other instanceof TextDocumentSyncOptions))
4734
+ return false;
4735
+ if (!(this.m56_1 === other.m56_1))
4736
+ return false;
4737
+ if (!(this.n56_1 === other.n56_1))
4738
+ return false;
4739
+ return true;
4740
+ };
4741
+ function startLsp(useNodeIpc) {
4742
+ var transport = useNodeIpc ? new NodeIpcTransport() : new NodeStdioTransport();
4743
+ (new LspServer(transport)).s52();
4744
+ }
4745
+ function NodeIpcTransport$start$lambda($onMessage) {
4746
+ return function (message) {
4747
+ $onMessage(jsJsonStringify(message));
4748
+ return Unit_instance;
4749
+ };
4750
+ }
4751
+ function NodeIpcTransport() {
4752
+ }
4753
+ protoOf(NodeIpcTransport).t52 = function (onMessage) {
4754
+ var tmp = process;
4755
+ tmp.on('message', NodeIpcTransport$start$lambda(onMessage));
4756
+ };
4757
+ protoOf(NodeIpcTransport).s51 = function (json) {
4758
+ process.send(jsJsonParse(json));
4759
+ };
4760
+ function jsJsonStringify(value) {
4761
+ var tmp = JSON.stringify(value);
4762
+ return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
4763
+ }
4764
+ function jsJsonParse(value) {
4765
+ var tmp = JSON.parse(value);
4766
+ return !(tmp == null) ? tmp : THROW_CCE();
4767
+ }
4768
+ function get_CONTENT_LENGTH_REGEX() {
4769
+ _init_properties_NodeStdioTransport_kt__wuyuxu();
4770
+ return CONTENT_LENGTH_REGEX;
4771
+ }
4772
+ var CONTENT_LENGTH_REGEX;
4773
+ function drainFrames($this, onMessage) {
4774
+ var $this_0 = $this;
4775
+ var onMessage_0 = onMessage;
4776
+ $l$1: do {
4777
+ $l$0: do {
4778
+ if ($this_0.p56_1 < 0) {
4779
+ var headerEnd = indexOf($this_0.o56_1, '\r\n\r\n');
4780
+ if (headerEnd < 0)
4781
+ return Unit_instance;
4782
+ var header = $this_0.o56_1.xb(0, headerEnd);
4783
+ var tmp = $this_0;
4784
+ var tmp0_elvis_lhs = parseContentLength(header);
4785
+ tmp.p56_1 = tmp0_elvis_lhs == null ? -2 : tmp0_elvis_lhs;
4786
+ $this_0.o56_1.cc(0, headerEnd + 4 | 0);
4787
+ if ($this_0.p56_1 === -2) {
4788
+ $this_0.p56_1 = -1;
4789
+ return Unit_instance;
4790
+ }
4791
+ }
4792
+ if ($this_0.o56_1.a() < $this_0.p56_1)
4793
+ return Unit_instance;
4794
+ var body = $this_0.o56_1.xb(0, $this_0.p56_1);
4795
+ $this_0.o56_1.cc(0, $this_0.p56_1);
4796
+ $this_0.p56_1 = -1;
4797
+ onMessage_0(body);
4798
+ var tmp0 = $this_0;
4799
+ var tmp1 = onMessage_0;
4800
+ $this_0 = tmp0;
4801
+ onMessage_0 = tmp1;
4802
+ continue $l$0;
4803
+ }
4804
+ while (false);
4805
+ }
4806
+ while (true);
4807
+ }
4808
+ function NodeStdioTransport$start$lambda(this$0, $onMessage) {
4809
+ return function (chunk) {
4810
+ this$0.o56_1.q(typeof chunk === 'string' ? chunk : THROW_CCE());
4811
+ drainFrames(this$0, $onMessage);
4812
+ return Unit_instance;
4813
+ };
4814
+ }
4815
+ function NodeStdioTransport() {
4816
+ this.o56_1 = StringBuilder_init_$Create$();
4817
+ this.p56_1 = -1;
4818
+ }
4819
+ protoOf(NodeStdioTransport).t52 = function (onMessage) {
4820
+ process.stdin.setEncoding('utf8');
4821
+ var tmp = process.stdin;
4822
+ tmp.on('data', NodeStdioTransport$start$lambda(this, onMessage));
4823
+ };
4824
+ protoOf(NodeStdioTransport).s51 = function (json) {
4825
+ var byteLength = Buffer.byteLength(json, 'utf8');
4826
+ process.stdout.write('Content-Length: ' + byteLength + '\r\n\r\n' + json);
4827
+ };
4828
+ function indexOf(buffer, needle) {
4829
+ _init_properties_NodeStdioTransport_kt__wuyuxu();
4830
+ var haystackLen = buffer.a();
4831
+ var needleLen = needle.length;
4832
+ if (needleLen === 0 || needleLen > haystackLen)
4833
+ return -1;
4834
+ var inductionVariable = 0;
4835
+ var last = haystackLen - needleLen | 0;
4836
+ if (inductionVariable <= last)
4837
+ outer: do {
4838
+ var i = inductionVariable;
4839
+ inductionVariable = inductionVariable + 1 | 0;
4840
+ var inductionVariable_0 = 0;
4841
+ if (inductionVariable_0 < needleLen)
4842
+ do {
4843
+ var j = inductionVariable_0;
4844
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
4845
+ if (!(buffer.b(i + j | 0) === charCodeAt(needle, j)))
4846
+ continue outer;
4847
+ }
4848
+ while (inductionVariable_0 < needleLen);
4849
+ return i;
4850
+ }
4851
+ while (!(i === last));
4852
+ return -1;
4853
+ }
4854
+ function parseContentLength(header) {
4855
+ _init_properties_NodeStdioTransport_kt__wuyuxu();
4856
+ var tmp0_safe_receiver = get_CONTENT_LENGTH_REGEX().qc(header);
4857
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qd();
4858
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b1(1);
4859
+ return tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
4860
+ }
4861
+ var properties_initialized_NodeStdioTransport_kt_ut1jlw;
4862
+ function _init_properties_NodeStdioTransport_kt__wuyuxu() {
4863
+ if (!properties_initialized_NodeStdioTransport_kt_ut1jlw) {
4864
+ properties_initialized_NodeStdioTransport_kt_ut1jlw = true;
4865
+ CONTENT_LENGTH_REGEX = Regex_init_$Create$_0('Content-Length: (\\d+)', RegexOption_IGNORE_CASE_getInstance());
4866
+ }
4867
+ }
4868
+ //region block: post-declaration
4869
+ protoOf(LanguageService$parseContext$1).wn = get_spec;
4870
+ protoOf(LanguageService$parseContext$1).xn = get_logger;
4871
+ protoOf($serializer).l2c = typeParametersSerializers;
4872
+ protoOf($serializer_0).l2c = typeParametersSerializers;
4873
+ protoOf($serializer_1).l2c = typeParametersSerializers;
4874
+ protoOf($serializer_2).l2c = typeParametersSerializers;
4875
+ protoOf($serializer_3).l2c = typeParametersSerializers;
4876
+ protoOf($serializer_4).l2c = typeParametersSerializers;
4877
+ protoOf($serializer_5).l2c = typeParametersSerializers;
4878
+ protoOf($serializer_6).l2c = typeParametersSerializers;
4879
+ protoOf($serializer_7).l2c = typeParametersSerializers;
4880
+ protoOf($serializer_8).l2c = typeParametersSerializers;
4881
+ protoOf($serializer_9).l2c = typeParametersSerializers;
4882
+ protoOf($serializer_10).l2c = typeParametersSerializers;
4883
+ protoOf($serializer_11).l2c = typeParametersSerializers;
4884
+ protoOf($serializer_12).l2c = typeParametersSerializers;
4885
+ protoOf($serializer_13).l2c = typeParametersSerializers;
4886
+ protoOf($serializer_14).l2c = typeParametersSerializers;
4887
+ protoOf($serializer_15).l2c = typeParametersSerializers;
4888
+ protoOf($serializer_16).l2c = typeParametersSerializers;
4889
+ protoOf($serializer_17).l2c = typeParametersSerializers;
4890
+ protoOf($serializer_18).l2c = typeParametersSerializers;
4891
+ protoOf($serializer_19).l2c = typeParametersSerializers;
4892
+ protoOf($serializer_20).l2c = typeParametersSerializers;
4893
+ protoOf($serializer_21).l2c = typeParametersSerializers;
4894
+ protoOf($serializer_22).l2c = typeParametersSerializers;
4895
+ protoOf($serializer_23).l2c = typeParametersSerializers;
4896
+ protoOf($serializer_24).l2c = typeParametersSerializers;
4897
+ protoOf($serializer_25).l2c = typeParametersSerializers;
4898
+ //endregion
4899
+ //region block: init
4900
+ Companion_instance_0 = new Companion();
4901
+ Companion_instance_1 = new Companion_0();
4902
+ Companion_instance_2 = new Companion_1();
4903
+ Companion_instance_3 = new Companion_2();
4904
+ Companion_instance_5 = new Companion_4();
4905
+ Companion_instance_6 = new Companion_5();
4906
+ Companion_instance_7 = new Companion_6();
4907
+ Companion_instance_8 = new Companion_7();
4908
+ Companion_instance_9 = new Companion_8();
4909
+ Companion_instance_11 = new Companion_10();
4910
+ Companion_instance_13 = new Companion_12();
4911
+ Companion_instance_14 = new Companion_13();
4912
+ Companion_instance_16 = new Companion_15();
4913
+ Companion_instance_17 = new Companion_16();
4914
+ Companion_instance_19 = new Companion_18();
4915
+ Companion_instance_20 = new Companion_19();
4916
+ Companion_instance_21 = new Companion_20();
4917
+ Companion_instance_22 = new Companion_21();
4918
+ //endregion
4919
+ //region block: exports
4920
+ export {
4921
+ startLsp as startLsp,
4922
+ };
4923
+ export {
4924
+ startLsp as startLsp38soy38wwmr8t,
4925
+ };
4926
+ //endregion
4927
+
4928
+ //# sourceMappingURL=wirespec-src-ide-lsp.mjs.map