@ttsc/wasm 0.33.1 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.ttsc-wasm-build.json +65 -41
- package/dist/go.mod +2 -3
- package/dist/ttsc.wasm +2 -2
- package/go.mod +2 -3
- package/go.sum +4 -4
- package/host/api.go +4 -3
- package/host/fountain.go +5 -5
- package/package.json +1 -1
- package/shim-vendor/shim/ast/enums_gen.go +1 -0
- package/shim-vendor/shim/ast/go.mod +2 -2
- package/shim-vendor/shim/ast/go.sum +4 -4
- package/shim-vendor/shim/ast/neutral.go +141 -0
- package/shim-vendor/shim/astnav/go.mod +2 -2
- package/shim-vendor/shim/astnav/go.sum +4 -4
- package/shim-vendor/shim/bundled/go.mod +2 -2
- package/shim-vendor/shim/bundled/go.sum +4 -4
- package/shim-vendor/shim/checker/go.mod +2 -2
- package/shim-vendor/shim/checker/go.sum +4 -4
- package/shim-vendor/shim/compiler/go.mod +2 -2
- package/shim-vendor/shim/compiler/go.sum +4 -4
- package/shim-vendor/shim/compiler/neutral.go +213 -0
- package/shim-vendor/shim/core/go.mod +2 -2
- package/shim-vendor/shim/core/go.sum +4 -4
- package/shim-vendor/shim/diagnosticwriter/go.mod +2 -2
- package/shim-vendor/shim/diagnosticwriter/go.sum +4 -4
- package/shim-vendor/shim/lsp/go.mod +2 -2
- package/shim-vendor/shim/lsp/go.sum +4 -4
- package/shim-vendor/shim/parser/go.mod +2 -2
- package/shim-vendor/shim/parser/go.sum +4 -4
- package/shim-vendor/shim/printer/go.mod +2 -2
- package/shim-vendor/shim/printer/go.sum +4 -4
- package/shim-vendor/shim/scanner/go.mod +2 -2
- package/shim-vendor/shim/scanner/go.sum +4 -4
- package/shim-vendor/shim/stringutil/go.mod +1 -1
- package/shim-vendor/shim/stringutil/go.sum +2 -2
- package/shim-vendor/shim/stringutil/shim.go +15 -0
- package/shim-vendor/shim/transformers/go.mod +2 -2
- package/shim-vendor/shim/transformers/go.sum +4 -4
- package/shim-vendor/shim/tsoptions/go.mod +2 -2
- package/shim-vendor/shim/tsoptions/go.sum +4 -4
- package/shim-vendor/shim/tsoptions/neutral.go +56 -0
- package/shim-vendor/shim/tspath/go.mod +1 -1
- package/shim-vendor/shim/tspath/go.sum +2 -2
- package/shim-vendor/shim/tspath/neutral.go +150 -0
- package/shim-vendor/shim/tspath/typed_paths.go +266 -0
- package/shim-vendor/shim/vfs/cachedvfs/go.mod +2 -2
- package/shim-vendor/shim/vfs/cachedvfs/go.sum +4 -4
- package/shim-vendor/shim/vfs/go.mod +2 -2
- package/shim-vendor/shim/vfs/go.sum +4 -4
- package/shim-vendor/shim/vfs/neutral.go +20 -0
- package/shim-vendor/shim/vfs/osvfs/go.mod +2 -2
- package/shim-vendor/shim/vfs/osvfs/go.sum +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"identity": "
|
|
3
|
+
"identity": "a23a8f2103238e4f09a0c47dfed242211867b6045ab68791049d086f52e0c2b8",
|
|
4
4
|
"artifacts": [
|
|
5
5
|
{
|
|
6
6
|
"path": "/home/runner/work/ttsc/ttsc/packages/wasm/dist/ttsc.wasm",
|
|
7
7
|
"type": "file",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "37eb8c62704acc482e50e8a448442c43f3fc8ddaaa2f30d1fdd71db14e1f2701"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"path": "/home/runner/work/ttsc/ttsc/packages/wasm/dist/wasm_exec.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"path": "/home/runner/work/ttsc/ttsc/packages/wasm/dist/go.mod",
|
|
17
17
|
"type": "file",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "d1353c51664e5dd22de89ec8484125d00a3a70f000708f62fce9cd19e9b2ff85"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"path": "/home/runner/work/ttsc/ttsc/packages/wasm/shim-vendor/shim",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
{
|
|
25
25
|
"path": "ast/enums_gen.go",
|
|
26
|
-
"sha256": "
|
|
26
|
+
"sha256": "adcddcfdb38342b9f8039a4de51ba45a8c2697042294f86db6e95e81904a24ed"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"path": "ast/extra-shim.json",
|
|
@@ -31,16 +31,20 @@
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"path": "ast/go.mod",
|
|
34
|
-
"sha256": "
|
|
34
|
+
"sha256": "4b08716a73f5d00796593d5f8514b2032c0104dec64834b922e8e3fda6578ddb"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"path": "ast/go.sum",
|
|
38
|
-
"sha256": "
|
|
38
|
+
"sha256": "df95752937676ce695f2dc86f1cebf23e018a07e48fdef492748095f2ada5740"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"path": "ast/lint.go",
|
|
42
42
|
"sha256": "d90cc4e27d09cbe926cb945d1bbd30eec662cd4bdbe283bb29baf9bcdebb799e"
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"path": "ast/neutral.go",
|
|
46
|
+
"sha256": "f871087185f3b8bba0c5b5bedac13b244e8fdee07d7bf3196a80177a8cfe4883"
|
|
47
|
+
},
|
|
44
48
|
{
|
|
45
49
|
"path": "ast/parent.go",
|
|
46
50
|
"sha256": "08b4031577c1abf4b0cf7bbd23d4140b96d6dd559e03ebba05f6d43d37bd5563"
|
|
@@ -83,11 +87,11 @@
|
|
|
83
87
|
},
|
|
84
88
|
{
|
|
85
89
|
"path": "astnav/go.mod",
|
|
86
|
-
"sha256": "
|
|
90
|
+
"sha256": "9b98c2be31c5d040e2c9a710f36c3a804d09eff60a53e9477c689173ecce876c"
|
|
87
91
|
},
|
|
88
92
|
{
|
|
89
93
|
"path": "astnav/go.sum",
|
|
90
|
-
"sha256": "
|
|
94
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
91
95
|
},
|
|
92
96
|
{
|
|
93
97
|
"path": "astnav/shim.go",
|
|
@@ -99,11 +103,11 @@
|
|
|
99
103
|
},
|
|
100
104
|
{
|
|
101
105
|
"path": "bundled/go.mod",
|
|
102
|
-
"sha256": "
|
|
106
|
+
"sha256": "14b0df8429080541c8df7cdabba2235d542befd7a5b32abb7c6b748f57081ee2"
|
|
103
107
|
},
|
|
104
108
|
{
|
|
105
109
|
"path": "bundled/go.sum",
|
|
106
|
-
"sha256": "
|
|
110
|
+
"sha256": "7558ae26ed71678831fa52eae9e9cf0a588e799a780a78f9f0e85b8939ffa324"
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
113
|
"path": "bundled/shim.go",
|
|
@@ -119,11 +123,11 @@
|
|
|
119
123
|
},
|
|
120
124
|
{
|
|
121
125
|
"path": "checker/go.mod",
|
|
122
|
-
"sha256": "
|
|
126
|
+
"sha256": "c870d0a7cefa386a06b8449bd09819df355705d0d105c9e4a6a362a5a55ba954"
|
|
123
127
|
},
|
|
124
128
|
{
|
|
125
129
|
"path": "checker/go.sum",
|
|
126
|
-
"sha256": "
|
|
130
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
127
131
|
},
|
|
128
132
|
{
|
|
129
133
|
"path": "checker/node_builder_fields_gen.go",
|
|
@@ -151,16 +155,20 @@
|
|
|
151
155
|
},
|
|
152
156
|
{
|
|
153
157
|
"path": "compiler/go.mod",
|
|
154
|
-
"sha256": "
|
|
158
|
+
"sha256": "262b1d22e96a04f952fdf40c02c0584e4d2832d66fb6bda526686b1351e3d98d"
|
|
155
159
|
},
|
|
156
160
|
{
|
|
157
161
|
"path": "compiler/go.sum",
|
|
158
|
-
"sha256": "
|
|
162
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
159
163
|
},
|
|
160
164
|
{
|
|
161
165
|
"path": "compiler/incremental.go",
|
|
162
166
|
"sha256": "8451d8297c2c7e236a1ade3226192cb87359e3ade51189ee38416ef72cc2c740"
|
|
163
167
|
},
|
|
168
|
+
{
|
|
169
|
+
"path": "compiler/neutral.go",
|
|
170
|
+
"sha256": "668e1bbc3ff68f5256c1c615ba9f11e2dd272ee83b0b49c735f44265e28fd676"
|
|
171
|
+
},
|
|
164
172
|
{
|
|
165
173
|
"path": "compiler/resolution.go",
|
|
166
174
|
"sha256": "889307031166e025f4e201629d10bb615425d47c68628f50b2a594903897419e"
|
|
@@ -179,11 +187,11 @@
|
|
|
179
187
|
},
|
|
180
188
|
{
|
|
181
189
|
"path": "core/go.mod",
|
|
182
|
-
"sha256": "
|
|
190
|
+
"sha256": "12a4108b9ebf9ee7b7e5da40f97e8d22026ca1238e39f13e1ab661aa3a03fe80"
|
|
183
191
|
},
|
|
184
192
|
{
|
|
185
193
|
"path": "core/go.sum",
|
|
186
|
-
"sha256": "
|
|
194
|
+
"sha256": "a16afb9be81413dd187564516fab73049bd392fcec68b6962c8969195173eee9"
|
|
187
195
|
},
|
|
188
196
|
{
|
|
189
197
|
"path": "core/modulekind.go",
|
|
@@ -195,11 +203,11 @@
|
|
|
195
203
|
},
|
|
196
204
|
{
|
|
197
205
|
"path": "diagnosticwriter/go.mod",
|
|
198
|
-
"sha256": "
|
|
206
|
+
"sha256": "73c89767137f2ea7e1983b6fba0206428ce8e38c6425934c63b8b6668681d880"
|
|
199
207
|
},
|
|
200
208
|
{
|
|
201
209
|
"path": "diagnosticwriter/go.sum",
|
|
202
|
-
"sha256": "
|
|
210
|
+
"sha256": "df95752937676ce695f2dc86f1cebf23e018a07e48fdef492748095f2ada5740"
|
|
203
211
|
},
|
|
204
212
|
{
|
|
205
213
|
"path": "diagnosticwriter/lint.go",
|
|
@@ -215,11 +223,11 @@
|
|
|
215
223
|
},
|
|
216
224
|
{
|
|
217
225
|
"path": "lsp/go.mod",
|
|
218
|
-
"sha256": "
|
|
226
|
+
"sha256": "d59661ad3bb4b61905242ad4b4b7ca55389eaed859920130b387012ff1f0b64c"
|
|
219
227
|
},
|
|
220
228
|
{
|
|
221
229
|
"path": "lsp/go.sum",
|
|
222
|
-
"sha256": "
|
|
230
|
+
"sha256": "c61bc032537b915c71c6fa83aaf8badd6233dbf336d8568060c2d7bf1f5e746f"
|
|
223
231
|
},
|
|
224
232
|
{
|
|
225
233
|
"path": "lsp/shim.go",
|
|
@@ -231,11 +239,11 @@
|
|
|
231
239
|
},
|
|
232
240
|
{
|
|
233
241
|
"path": "parser/go.mod",
|
|
234
|
-
"sha256": "
|
|
242
|
+
"sha256": "dd6e433ed562f6e8a6d01e0cbf0cdda9b84f1855a8e83b87e4e1ad0e351e5942"
|
|
235
243
|
},
|
|
236
244
|
{
|
|
237
245
|
"path": "parser/go.sum",
|
|
238
|
-
"sha256": "
|
|
246
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
239
247
|
},
|
|
240
248
|
{
|
|
241
249
|
"path": "parser/shim.go",
|
|
@@ -247,11 +255,11 @@
|
|
|
247
255
|
},
|
|
248
256
|
{
|
|
249
257
|
"path": "printer/go.mod",
|
|
250
|
-
"sha256": "
|
|
258
|
+
"sha256": "d53e7278636cbfb62fa836cb3235cb2565b2b4b34ca43585af042488ac97e689"
|
|
251
259
|
},
|
|
252
260
|
{
|
|
253
261
|
"path": "printer/go.sum",
|
|
254
|
-
"sha256": "
|
|
262
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
255
263
|
},
|
|
256
264
|
{
|
|
257
265
|
"path": "printer/shim.go",
|
|
@@ -267,11 +275,11 @@
|
|
|
267
275
|
},
|
|
268
276
|
{
|
|
269
277
|
"path": "scanner/go.mod",
|
|
270
|
-
"sha256": "
|
|
278
|
+
"sha256": "13c035490f52d1bf648bb881db63ed2a817b4b06148753497ca361af270043da"
|
|
271
279
|
},
|
|
272
280
|
{
|
|
273
281
|
"path": "scanner/go.sum",
|
|
274
|
-
"sha256": "
|
|
282
|
+
"sha256": "df95752937676ce695f2dc86f1cebf23e018a07e48fdef492748095f2ada5740"
|
|
275
283
|
},
|
|
276
284
|
{
|
|
277
285
|
"path": "scanner/regexp.go",
|
|
@@ -287,23 +295,23 @@
|
|
|
287
295
|
},
|
|
288
296
|
{
|
|
289
297
|
"path": "stringutil/go.mod",
|
|
290
|
-
"sha256": "
|
|
298
|
+
"sha256": "60f07fd89cb021079eb03385b23959daf9a075750c0c01b59489ccdccbd96c24"
|
|
291
299
|
},
|
|
292
300
|
{
|
|
293
301
|
"path": "stringutil/go.sum",
|
|
294
|
-
"sha256": "
|
|
302
|
+
"sha256": "5dd03015d05cf9fae715c9e7aa372a42cbbf3b5ad5f5adbdee0b2aef382515e3"
|
|
295
303
|
},
|
|
296
304
|
{
|
|
297
305
|
"path": "stringutil/shim.go",
|
|
298
|
-
"sha256": "
|
|
306
|
+
"sha256": "3e0e9dda8016bad19578f39a6db7f78a5962891e51e5928ceea920406f9474e6"
|
|
299
307
|
},
|
|
300
308
|
{
|
|
301
309
|
"path": "transformers/go.mod",
|
|
302
|
-
"sha256": "
|
|
310
|
+
"sha256": "a4be4d9101532fda26a87c807ed1019ae012781a38dbf25e134e260f5be3dc9d"
|
|
303
311
|
},
|
|
304
312
|
{
|
|
305
313
|
"path": "transformers/go.sum",
|
|
306
|
-
"sha256": "
|
|
314
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
307
315
|
},
|
|
308
316
|
{
|
|
309
317
|
"path": "transformers/shim.go",
|
|
@@ -319,11 +327,15 @@
|
|
|
319
327
|
},
|
|
320
328
|
{
|
|
321
329
|
"path": "tsoptions/go.mod",
|
|
322
|
-
"sha256": "
|
|
330
|
+
"sha256": "2c7a3fae94b6f22795cb3af65e016d02557bc126ae11dbdfbe5782077ada0b04"
|
|
323
331
|
},
|
|
324
332
|
{
|
|
325
333
|
"path": "tsoptions/go.sum",
|
|
326
|
-
"sha256": "
|
|
334
|
+
"sha256": "5a670ce2903678d58388a2b580b5302ec44fde408fd863e65c2b643c451a79ea"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"path": "tsoptions/neutral.go",
|
|
338
|
+
"sha256": "2a7f1d2f526e5aaa5e41909b105c6dc13b89c92f5c63dd2d6bbc780da5034505"
|
|
327
339
|
},
|
|
328
340
|
{
|
|
329
341
|
"path": "tsoptions/shim.go",
|
|
@@ -335,27 +347,35 @@
|
|
|
335
347
|
},
|
|
336
348
|
{
|
|
337
349
|
"path": "tspath/go.mod",
|
|
338
|
-
"sha256": "
|
|
350
|
+
"sha256": "d9ea7b1c1cb505e85f0ff60ea4c810799ddcc5a3bf85de678f5dc43f7eeb4cb3"
|
|
339
351
|
},
|
|
340
352
|
{
|
|
341
353
|
"path": "tspath/go.sum",
|
|
342
|
-
"sha256": "
|
|
354
|
+
"sha256": "1cf7bef5ff2206b0d9eab27e3a9c58296d9254161cf1f8367548dfd4aaa1c630"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"path": "tspath/neutral.go",
|
|
358
|
+
"sha256": "aac80e49dc87813c7aef78437fd377da2155457e6c77dd7150496419d4733d8e"
|
|
343
359
|
},
|
|
344
360
|
{
|
|
345
361
|
"path": "tspath/shim.go",
|
|
346
362
|
"sha256": "a90c7bc3a7067438eab9a3d693b546e14f9fa6a6ae297e7c0cd05375b5ed6ef9"
|
|
347
363
|
},
|
|
364
|
+
{
|
|
365
|
+
"path": "tspath/typed_paths.go",
|
|
366
|
+
"sha256": "3ab70c754f557b90d789e88fa928f49a5bcd3e2618325422c6e7df7cca77f128"
|
|
367
|
+
},
|
|
348
368
|
{
|
|
349
369
|
"path": "vfs/cachedvfs/extra-shim.json",
|
|
350
370
|
"sha256": "03ce47e72bb9b79fc54a9a5a2b9dbe5c6b52511779775b36d81dafed6af2049a"
|
|
351
371
|
},
|
|
352
372
|
{
|
|
353
373
|
"path": "vfs/cachedvfs/go.mod",
|
|
354
|
-
"sha256": "
|
|
374
|
+
"sha256": "f3db5f8f828faf2d0f4bb8da4fe11122ca5843a153b49cebee017b91fd873cdf"
|
|
355
375
|
},
|
|
356
376
|
{
|
|
357
377
|
"path": "vfs/cachedvfs/go.sum",
|
|
358
|
-
"sha256": "
|
|
378
|
+
"sha256": "7558ae26ed71678831fa52eae9e9cf0a588e799a780a78f9f0e85b8939ffa324"
|
|
359
379
|
},
|
|
360
380
|
{
|
|
361
381
|
"path": "vfs/cachedvfs/shim.go",
|
|
@@ -375,11 +395,15 @@
|
|
|
375
395
|
},
|
|
376
396
|
{
|
|
377
397
|
"path": "vfs/go.mod",
|
|
378
|
-
"sha256": "
|
|
398
|
+
"sha256": "0d9eeae7c23b5b8ae3ef2acb75d33369b881e801bb4a521e1c3528d304619162"
|
|
379
399
|
},
|
|
380
400
|
{
|
|
381
401
|
"path": "vfs/go.sum",
|
|
382
|
-
"sha256": "
|
|
402
|
+
"sha256": "7558ae26ed71678831fa52eae9e9cf0a588e799a780a78f9f0e85b8939ffa324"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"path": "vfs/neutral.go",
|
|
406
|
+
"sha256": "42dfaf71c93cc5a89a3cd3d529dcc9e1fd704b61c33a1724082dad0e7104a40c"
|
|
383
407
|
},
|
|
384
408
|
{
|
|
385
409
|
"path": "vfs/osvfs/extra-shim.json",
|
|
@@ -387,11 +411,11 @@
|
|
|
387
411
|
},
|
|
388
412
|
{
|
|
389
413
|
"path": "vfs/osvfs/go.mod",
|
|
390
|
-
"sha256": "
|
|
414
|
+
"sha256": "b16cd57cad24429ad174ab271ba0d1a725ee5f71547e260d93e5aeb56dea4051"
|
|
391
415
|
},
|
|
392
416
|
{
|
|
393
417
|
"path": "vfs/osvfs/go.sum",
|
|
394
|
-
"sha256": "
|
|
418
|
+
"sha256": "7558ae26ed71678831fa52eae9e9cf0a588e799a780a78f9f0e85b8939ffa324"
|
|
395
419
|
},
|
|
396
420
|
{
|
|
397
421
|
"path": "vfs/osvfs/shim.go",
|
package/dist/go.mod
CHANGED
|
@@ -35,16 +35,15 @@ require (
|
|
|
35
35
|
)
|
|
36
36
|
|
|
37
37
|
require (
|
|
38
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
38
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68 // indirect
|
|
39
39
|
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
|
40
|
-
github.com/microsoft/typescript-go v0.0.0-
|
|
40
|
+
github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b // indirect
|
|
41
41
|
github.com/microsoft/typescript-go/shim/bundled v0.0.0 // indirect
|
|
42
42
|
github.com/microsoft/typescript-go/shim/checker v0.0.0 // indirect
|
|
43
43
|
github.com/microsoft/typescript-go/shim/core v0.0.0 // indirect
|
|
44
44
|
github.com/microsoft/typescript-go/shim/diagnosticwriter v0.0.0 // indirect
|
|
45
45
|
github.com/microsoft/typescript-go/shim/parser v0.0.0 // indirect
|
|
46
46
|
github.com/microsoft/typescript-go/shim/printer v0.0.0 // indirect
|
|
47
|
-
github.com/microsoft/typescript-go/shim/stringutil v0.0.0 // indirect
|
|
48
47
|
github.com/microsoft/typescript-go/shim/tsoptions v0.0.0 // indirect
|
|
49
48
|
github.com/microsoft/typescript-go/shim/tspath v0.0.0 // indirect
|
|
50
49
|
github.com/microsoft/typescript-go/shim/vfs v0.0.0 // indirect
|
package/dist/ttsc.wasm
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/ttsc.wasm
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 34603574 bytes
|
|
4
|
+
sha256: 37eb8c62704acc482e50e8a448442c43f3fc8ddaaa2f30d1fdd71db14e1f2701
|
package/go.mod
CHANGED
|
@@ -35,16 +35,15 @@ require (
|
|
|
35
35
|
)
|
|
36
36
|
|
|
37
37
|
require (
|
|
38
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
38
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68 // indirect
|
|
39
39
|
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
|
40
|
-
github.com/microsoft/typescript-go v0.0.0-
|
|
40
|
+
github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b // indirect
|
|
41
41
|
github.com/microsoft/typescript-go/shim/bundled v0.0.0 // indirect
|
|
42
42
|
github.com/microsoft/typescript-go/shim/checker v0.0.0 // indirect
|
|
43
43
|
github.com/microsoft/typescript-go/shim/core v0.0.0 // indirect
|
|
44
44
|
github.com/microsoft/typescript-go/shim/diagnosticwriter v0.0.0 // indirect
|
|
45
45
|
github.com/microsoft/typescript-go/shim/parser v0.0.0 // indirect
|
|
46
46
|
github.com/microsoft/typescript-go/shim/printer v0.0.0 // indirect
|
|
47
|
-
github.com/microsoft/typescript-go/shim/stringutil v0.0.0 // indirect
|
|
48
47
|
github.com/microsoft/typescript-go/shim/tsoptions v0.0.0 // indirect
|
|
49
48
|
github.com/microsoft/typescript-go/shim/tspath v0.0.0 // indirect
|
|
50
49
|
github.com/microsoft/typescript-go/shim/vfs v0.0.0 // indirect
|
package/go.sum
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
2
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
1
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68 h1:KZaTBSyshWX3MP5jukJcNSuXDQTO+rNpt0J564dX/eg=
|
|
2
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg=
|
|
3
3
|
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
|
4
4
|
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
|
5
5
|
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
|
|
6
6
|
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
|
7
|
-
github.com/microsoft/typescript-go v0.0.0-
|
|
8
|
-
github.com/microsoft/typescript-go v0.0.0-
|
|
7
|
+
github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b h1:IgfPOv9pzPZ1sbyRHOKu3UCvhaTS0IyrkTcs6JLPqhY=
|
|
8
|
+
github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b/go.mod h1:gV4G6M8xxLNqQSRHiFOgKHlY+5YJgYPM6QwFLWllC+8=
|
|
9
9
|
github.com/peter-evans/patience v0.3.0 h1:rX0JdJeepqdQl1Sk9c9uvorjYYzL2TfgLX1adqYm9cA=
|
|
10
10
|
github.com/peter-evans/patience v0.3.0/go.mod h1:Kmxu5sY1NmBLFSStvXjX1wS9mIv7wMcP/ubucyMOAu0=
|
|
11
11
|
github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ=
|
package/host/api.go
CHANGED
|
@@ -12,6 +12,7 @@ import (
|
|
|
12
12
|
"strings"
|
|
13
13
|
|
|
14
14
|
shimcompiler "github.com/microsoft/typescript-go/shim/compiler"
|
|
15
|
+
shimtspath "github.com/microsoft/typescript-go/shim/tspath"
|
|
15
16
|
|
|
16
17
|
"github.com/samchon/ttsc/packages/ttsc/driver"
|
|
17
18
|
)
|
|
@@ -47,8 +48,8 @@ func Build(cwd, tsconfigPath string) ([]byte, int, error) {
|
|
|
47
48
|
if prog != nil {
|
|
48
49
|
rewrites := driver.NewRewriteSet()
|
|
49
50
|
writeFile := shimcompiler.WriteFile(
|
|
50
|
-
func(fileName, text string, _ *shimcompiler.WriteFileData) error {
|
|
51
|
-
output[apiOutputKey(cwd, fileName)] = text
|
|
51
|
+
func(fileName shimtspath.RootedFilePath, text string, _ *shimcompiler.WriteFileData) error {
|
|
52
|
+
output[apiOutputKey(cwd, string(fileName))] = text
|
|
52
53
|
return nil
|
|
53
54
|
},
|
|
54
55
|
)
|
|
@@ -142,7 +143,7 @@ func Transform(cwd, tsconfigPath string) ([]byte, int, error) {
|
|
|
142
143
|
if prog != nil {
|
|
143
144
|
defer prog.Close()
|
|
144
145
|
for _, file := range prog.SourceFiles() {
|
|
145
|
-
typescript[apiOutputKey(cwd, file.FileName())] = file.Text()
|
|
146
|
+
typescript[apiOutputKey(cwd, string(file.FileName()))] = file.Text()
|
|
146
147
|
}
|
|
147
148
|
diags = append(diags, prog.Diagnostics()...)
|
|
148
149
|
}
|
package/host/fountain.go
CHANGED
|
@@ -399,7 +399,7 @@ func jsGetSourceFiles(this js.Value, args []js.Value) any {
|
|
|
399
399
|
files := entry.prog.SourceFiles()
|
|
400
400
|
out := make([]string, 0, len(files))
|
|
401
401
|
for _, f := range files {
|
|
402
|
-
out = append(out, snapshotFileKey(entry.cwd, f.FileName()))
|
|
402
|
+
out = append(out, snapshotFileKey(entry.cwd, string(f.FileName())))
|
|
403
403
|
}
|
|
404
404
|
return fountainOK(GetSourceFilesResult{Files: out})
|
|
405
405
|
})
|
|
@@ -654,13 +654,13 @@ func symbolInfoOf(entry *snapshotEntry, sym *ast.Symbol) *SymbolInfo {
|
|
|
654
654
|
return nil
|
|
655
655
|
}
|
|
656
656
|
info := &SymbolInfo{
|
|
657
|
-
Name: sym
|
|
658
|
-
Flags: int(sym
|
|
657
|
+
Name: ast.SymbolNameOf(sym),
|
|
658
|
+
Flags: int(ast.SymbolFlagsOf(sym)),
|
|
659
659
|
}
|
|
660
660
|
if entry.prog.Checker != nil {
|
|
661
661
|
info.Text = entry.prog.Checker.SymbolToString(sym)
|
|
662
662
|
}
|
|
663
|
-
decls := sym
|
|
663
|
+
decls := ast.SymbolDeclarationsOf(sym)
|
|
664
664
|
if len(decls) > 0 {
|
|
665
665
|
// Cap at 16 to keep merged-namespace symbols (e.g. global lib types)
|
|
666
666
|
// from ballooning the response.
|
|
@@ -678,7 +678,7 @@ func symbolInfoOf(entry *snapshotEntry, sym *ast.Symbol) *SymbolInfo {
|
|
|
678
678
|
item := SymbolDeclaration{Pos: d.Pos(), End: d.End()}
|
|
679
679
|
if file := ast.GetSourceFileOfNode(d); file != nil {
|
|
680
680
|
item.Pos = tokenStart(file, d)
|
|
681
|
-
key := snapshotFileKey(entry.cwd, file.FileName())
|
|
681
|
+
key := snapshotFileKey(entry.cwd, string(file.FileName()))
|
|
682
682
|
item.File = &key
|
|
683
683
|
}
|
|
684
684
|
out = append(out, item)
|
package/package.json
CHANGED
|
@@ -74,6 +74,7 @@ const (
|
|
|
74
74
|
NodeFlagsReachabilityAndEmitFlags = innerast.NodeFlagsReachabilityAndEmitFlags
|
|
75
75
|
NodeFlagsReachabilityCheckFlags = innerast.NodeFlagsReachabilityCheckFlags
|
|
76
76
|
NodeFlagsReparsed = innerast.NodeFlagsReparsed
|
|
77
|
+
NodeFlagsReparserTransformedLiteral = innerast.NodeFlagsReparserTransformedLiteral
|
|
77
78
|
NodeFlagsThisNodeHasError = innerast.NodeFlagsThisNodeHasError
|
|
78
79
|
NodeFlagsThisNodeOrAnySubNodesHasError = innerast.NodeFlagsThisNodeOrAnySubNodesHasError
|
|
79
80
|
NodeFlagsTypeExcludesFlags = innerast.NodeFlagsTypeExcludesFlags
|
|
@@ -2,10 +2,10 @@ module github.com/microsoft/typescript-go/shim/ast
|
|
|
2
2
|
|
|
3
3
|
go 1.26
|
|
4
4
|
|
|
5
|
-
require github.com/microsoft/typescript-go v0.0.0-
|
|
5
|
+
require github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b
|
|
6
6
|
|
|
7
7
|
require (
|
|
8
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
8
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68 // indirect
|
|
9
9
|
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
|
10
10
|
github.com/zeebo/xxh3 v1.1.0 // indirect
|
|
11
11
|
golang.org/x/sync v0.21.0 // indirect
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
2
|
-
github.com/go-json-experiment/json v0.0.0-
|
|
1
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68 h1:KZaTBSyshWX3MP5jukJcNSuXDQTO+rNpt0J564dX/eg=
|
|
2
|
+
github.com/go-json-experiment/json v0.0.0-20260623181947-01eb4420fa68/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg=
|
|
3
3
|
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
|
4
4
|
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
|
5
5
|
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
|
|
6
6
|
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
|
7
|
-
github.com/microsoft/typescript-go v0.0.0-
|
|
8
|
-
github.com/microsoft/typescript-go v0.0.0-
|
|
7
|
+
github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b h1:IgfPOv9pzPZ1sbyRHOKu3UCvhaTS0IyrkTcs6JLPqhY=
|
|
8
|
+
github.com/microsoft/typescript-go v0.0.0-20260708042240-2bd066d87f5b/go.mod h1:gV4G6M8xxLNqQSRHiFOgKHlY+5YJgYPM6QwFLWllC+8=
|
|
9
9
|
github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ=
|
|
10
10
|
github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=
|
|
11
11
|
github.com/zeebo/xxh3 v1.1.0 h1:s7DLGDK45Dyfg7++yxI0khrfwq9661w9EN78eP/UZVs=
|