@ttsc/graph 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/model/loadGraph.d.ts +15 -0
- package/lib/model/loadGraph.js +580 -574
- package/lib/model/loadGraph.js.map +1 -1
- package/lib/reduce.js +27 -15
- package/lib/reduce.js.map +1 -1
- package/lib/view.js +26 -3
- package/lib/view.js.map +1 -1
- package/package.json +3 -3
- package/src/model/loadGraph.ts +11 -2
- package/src/reduce.ts +37 -18
- package/src/view.ts +29 -5
package/lib/model/loadGraph.js
CHANGED
|
@@ -38,6 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.DUMP_SCHEMA_VERSION = void 0;
|
|
40
40
|
exports.loadGraph = loadGraph;
|
|
41
|
+
exports.parseDump = parseDump;
|
|
41
42
|
const _assertGuard_1 = __importStar(require("typia/lib/internal/_assertGuard"));
|
|
42
43
|
const node_child_process_1 = require("node:child_process");
|
|
43
44
|
const typia_1 = __importDefault(require("typia"));
|
|
@@ -125,579 +126,584 @@ function parseDump(json) {
|
|
|
125
126
|
"Install a matching `ttsc` (the binary resolves from the target " +
|
|
126
127
|
"project, or from TTSC_GRAPH_BINARY).");
|
|
127
128
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
method
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
129
|
+
try {
|
|
130
|
+
return (() => {
|
|
131
|
+
const _ip0 = input => "string" === typeof input["file"];
|
|
132
|
+
const _ip1 = input => "string" === typeof input["id"];
|
|
133
|
+
const _ip2 = input => true === _iv0.has(input["kind"]);
|
|
134
|
+
const _iv0 = new Set(["class", "enum", "external_symbol", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
|
|
135
|
+
const _ip3 = input => "string" === typeof input["name"];
|
|
136
|
+
const _ip4 = input => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"];
|
|
137
|
+
const _ip5 = input => "boolean" === typeof input["external"];
|
|
138
|
+
const _ip6 = input => undefined === input["ignored"] || "boolean" === typeof input["ignored"];
|
|
139
|
+
const _ip7 = input => undefined === input["exported"] || "boolean" === typeof input["exported"];
|
|
140
|
+
const _ip8 = input => undefined === input["closure"] || "boolean" === typeof input["closure"];
|
|
141
|
+
const _ip9 = input => undefined === input["modifiers"] || Array.isArray(input["modifiers"]) && input["modifiers"].every(elem => true === _iv1.has(elem));
|
|
142
|
+
const _iv1 = new Set(["abstract", "async", "const", "declare", "default", "export", "optional", "private", "protected", "public", "readonly", "static"]);
|
|
143
|
+
const _ip10 = input => undefined === input["literals"] || Array.isArray(input["literals"]) && input["literals"].every(elem => "string" === typeof elem);
|
|
144
|
+
const _ip11 = input => undefined === input["enumMembers"] || Array.isArray(input["enumMembers"]) && input["enumMembers"].every(elem => "object" === typeof elem && null !== elem && _io9(elem));
|
|
145
|
+
const _ip12 = input => undefined === input["objectMembers"] || Array.isArray(input["objectMembers"]) && input["objectMembers"].every(elem => "object" === typeof elem && null !== elem && _io10(elem));
|
|
146
|
+
const _ip13 = input => undefined === input["decorators"] || Array.isArray(input["decorators"]) && input["decorators"].every(elem => "object" === typeof elem && null !== elem && _io11(elem));
|
|
147
|
+
const _ip14 = input => undefined === input["signature"] || "string" === typeof input["signature"];
|
|
148
|
+
const _ip15 = input => undefined === input["evidence"] || "object" === typeof input["evidence"] && null !== input["evidence"] && _io13(input["evidence"]);
|
|
149
|
+
const _ip16 = input => undefined === input["implementation"] || "object" === typeof input["implementation"] && null !== input["implementation"] && _io13(input["implementation"]);
|
|
150
|
+
const _iv2 = new Set(["accesses", "calls", "contains", "decorates", "dispatches", "exports", "extends", "implements", "imports", "instantiates", "overrides", "renders", "tests", "type_ref"]);
|
|
151
|
+
const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
152
|
+
method: "typia.assert",
|
|
153
|
+
path: _path + ".file",
|
|
154
|
+
expected: "string",
|
|
155
|
+
value: input["file"]
|
|
156
|
+
}, _errorFactory);
|
|
157
|
+
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["id"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
158
|
+
method: "typia.assert",
|
|
159
|
+
path: _path + ".id",
|
|
160
|
+
expected: "string",
|
|
161
|
+
value: input["id"]
|
|
162
|
+
}, _errorFactory);
|
|
163
|
+
const _ap2 = (input, _path, _exceptionable = true) => true === _av0.has(input["kind"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
164
|
+
method: "typia.assert",
|
|
165
|
+
path: _path + ".kind",
|
|
166
|
+
expected: _ae0,
|
|
167
|
+
value: input["kind"]
|
|
168
|
+
}, _errorFactory);
|
|
169
|
+
const _av0 = new Set(["class", "enum", "external_symbol", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
|
|
170
|
+
const _ae0 = "(\"class\" | \"enum\" | \"external_symbol\" | \"file\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"namespace\" | \"package\" | \"parameter\" | \"property\" | \"type\" | \"variable\")";
|
|
171
|
+
const _ap3 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
172
|
+
method: "typia.assert",
|
|
173
|
+
path: _path + ".name",
|
|
174
|
+
expected: "string",
|
|
175
|
+
value: input["name"]
|
|
176
|
+
}, _errorFactory);
|
|
177
|
+
const _ap4 = (input, _path, _exceptionable = true) => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
178
|
+
method: "typia.assert",
|
|
179
|
+
path: _path + ".qualifiedName",
|
|
180
|
+
expected: "(string | undefined)",
|
|
181
|
+
value: input["qualifiedName"]
|
|
182
|
+
}, _errorFactory);
|
|
183
|
+
const _ap5 = (input, _path, _exceptionable = true) => "boolean" === typeof input["external"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
184
|
+
method: "typia.assert",
|
|
185
|
+
path: _path + ".external",
|
|
186
|
+
expected: "boolean",
|
|
187
|
+
value: input["external"]
|
|
188
|
+
}, _errorFactory);
|
|
189
|
+
const _ap6 = (input, _path, _exceptionable = true) => undefined === input["ignored"] || "boolean" === typeof input["ignored"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
190
|
+
method: "typia.assert",
|
|
191
|
+
path: _path + ".ignored",
|
|
192
|
+
expected: "(boolean | undefined)",
|
|
193
|
+
value: input["ignored"]
|
|
194
|
+
}, _errorFactory);
|
|
195
|
+
const _ap7 = (input, _path, _exceptionable = true) => undefined === input["exported"] || "boolean" === typeof input["exported"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
196
|
+
method: "typia.assert",
|
|
197
|
+
path: _path + ".exported",
|
|
198
|
+
expected: "(boolean | undefined)",
|
|
199
|
+
value: input["exported"]
|
|
200
|
+
}, _errorFactory);
|
|
201
|
+
const _ap8 = (input, _path, _exceptionable = true) => undefined === input["closure"] || "boolean" === typeof input["closure"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
202
|
+
method: "typia.assert",
|
|
203
|
+
path: _path + ".closure",
|
|
204
|
+
expected: "(boolean | undefined)",
|
|
205
|
+
value: input["closure"]
|
|
206
|
+
}, _errorFactory);
|
|
207
|
+
const _ap9 = (input, _path, _exceptionable = true) => undefined === input["modifiers"] || (Array.isArray(input["modifiers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
208
|
+
method: "typia.assert",
|
|
209
|
+
path: _path + ".modifiers",
|
|
210
|
+
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
211
|
+
value: input["modifiers"]
|
|
212
|
+
}, _errorFactory)) && input["modifiers"].every((elem, _index21) => true === _av1.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
213
|
+
method: "typia.assert",
|
|
214
|
+
path: _path + ".modifiers[" + _index21 + "]",
|
|
215
|
+
expected: _ae1,
|
|
216
|
+
value: elem
|
|
217
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
218
|
+
method: "typia.assert",
|
|
219
|
+
path: _path + ".modifiers",
|
|
220
|
+
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
221
|
+
value: input["modifiers"]
|
|
222
|
+
}, _errorFactory);
|
|
223
|
+
const _av1 = new Set(["abstract", "async", "const", "declare", "default", "export", "optional", "private", "protected", "public", "readonly", "static"]);
|
|
224
|
+
const _ae1 = "(\"abstract\" | \"async\" | \"const\" | \"declare\" | \"default\" | \"export\" | \"optional\" | \"private\" | \"protected\" | \"public\" | \"readonly\" | \"static\")";
|
|
225
|
+
const _ap10 = (input, _path, _exceptionable = true) => undefined === input["literals"] || (Array.isArray(input["literals"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
226
|
+
method: "typia.assert",
|
|
227
|
+
path: _path + ".literals",
|
|
228
|
+
expected: "(Array<string> | undefined)",
|
|
229
|
+
value: input["literals"]
|
|
230
|
+
}, _errorFactory)) && input["literals"].every((elem, _index22) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
231
|
+
method: "typia.assert",
|
|
232
|
+
path: _path + ".literals[" + _index22 + "]",
|
|
233
|
+
expected: "string",
|
|
234
|
+
value: elem
|
|
235
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
236
|
+
method: "typia.assert",
|
|
237
|
+
path: _path + ".literals",
|
|
238
|
+
expected: "(Array<string> | undefined)",
|
|
239
|
+
value: input["literals"]
|
|
240
|
+
}, _errorFactory);
|
|
241
|
+
const _ap11 = (input, _path, _exceptionable = true) => undefined === input["enumMembers"] || (Array.isArray(input["enumMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
242
|
+
method: "typia.assert",
|
|
243
|
+
path: _path + ".enumMembers",
|
|
244
|
+
expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
|
|
245
|
+
value: input["enumMembers"]
|
|
246
|
+
}, _errorFactory)) && input["enumMembers"].every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
247
|
+
method: "typia.assert",
|
|
248
|
+
path: _path + ".enumMembers[" + _index23 + "]",
|
|
249
|
+
expected: "ITtscGraphNode.IEnumMember",
|
|
250
|
+
value: elem
|
|
251
|
+
}, _errorFactory)) && _ao9(elem, _path + ".enumMembers[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
252
|
+
method: "typia.assert",
|
|
253
|
+
path: _path + ".enumMembers[" + _index23 + "]",
|
|
254
|
+
expected: "ITtscGraphNode.IEnumMember",
|
|
255
|
+
value: elem
|
|
256
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
257
|
+
method: "typia.assert",
|
|
258
|
+
path: _path + ".enumMembers",
|
|
259
|
+
expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
|
|
260
|
+
value: input["enumMembers"]
|
|
261
|
+
}, _errorFactory);
|
|
262
|
+
const _ap12 = (input, _path, _exceptionable = true) => undefined === input["objectMembers"] || (Array.isArray(input["objectMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
263
|
+
method: "typia.assert",
|
|
264
|
+
path: _path + ".objectMembers",
|
|
265
|
+
expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
|
|
266
|
+
value: input["objectMembers"]
|
|
267
|
+
}, _errorFactory)) && input["objectMembers"].every((elem, _index24) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
268
|
+
method: "typia.assert",
|
|
269
|
+
path: _path + ".objectMembers[" + _index24 + "]",
|
|
270
|
+
expected: "ITtscGraphNode.IObjectMember",
|
|
271
|
+
value: elem
|
|
272
|
+
}, _errorFactory)) && _ao10(elem, _path + ".objectMembers[" + _index24 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
273
|
+
method: "typia.assert",
|
|
274
|
+
path: _path + ".objectMembers[" + _index24 + "]",
|
|
275
|
+
expected: "ITtscGraphNode.IObjectMember",
|
|
276
|
+
value: elem
|
|
277
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
278
|
+
method: "typia.assert",
|
|
279
|
+
path: _path + ".objectMembers",
|
|
280
|
+
expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
|
|
281
|
+
value: input["objectMembers"]
|
|
282
|
+
}, _errorFactory);
|
|
283
|
+
const _ap13 = (input, _path, _exceptionable = true) => undefined === input["decorators"] || (Array.isArray(input["decorators"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
284
|
+
method: "typia.assert",
|
|
285
|
+
path: _path + ".decorators",
|
|
286
|
+
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
287
|
+
value: input["decorators"]
|
|
288
|
+
}, _errorFactory)) && input["decorators"].every((elem, _index25) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
289
|
+
method: "typia.assert",
|
|
290
|
+
path: _path + ".decorators[" + _index25 + "]",
|
|
291
|
+
expected: "ITtscGraphDecorator",
|
|
292
|
+
value: elem
|
|
293
|
+
}, _errorFactory)) && _ao11(elem, _path + ".decorators[" + _index25 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
294
|
+
method: "typia.assert",
|
|
295
|
+
path: _path + ".decorators[" + _index25 + "]",
|
|
296
|
+
expected: "ITtscGraphDecorator",
|
|
297
|
+
value: elem
|
|
298
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
299
|
+
method: "typia.assert",
|
|
300
|
+
path: _path + ".decorators",
|
|
301
|
+
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
302
|
+
value: input["decorators"]
|
|
303
|
+
}, _errorFactory);
|
|
304
|
+
const _ap14 = (input, _path, _exceptionable = true) => undefined === input["signature"] || "string" === typeof input["signature"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
305
|
+
method: "typia.assert",
|
|
306
|
+
path: _path + ".signature",
|
|
307
|
+
expected: "(string | undefined)",
|
|
308
|
+
value: input["signature"]
|
|
309
|
+
}, _errorFactory);
|
|
310
|
+
const _ap15 = (input, _path, _exceptionable = true) => undefined === input["evidence"] || ("object" === typeof input["evidence"] && null !== input["evidence"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
311
|
+
method: "typia.assert",
|
|
312
|
+
path: _path + ".evidence",
|
|
313
|
+
expected: "(ITtscGraphSpan | undefined)",
|
|
314
|
+
value: input["evidence"]
|
|
315
|
+
}, _errorFactory)) && _ao13(input["evidence"], _path + ".evidence", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
316
|
+
method: "typia.assert",
|
|
317
|
+
path: _path + ".evidence",
|
|
318
|
+
expected: "(ITtscGraphSpan | undefined)",
|
|
319
|
+
value: input["evidence"]
|
|
320
|
+
}, _errorFactory);
|
|
321
|
+
const _ap16 = (input, _path, _exceptionable = true) => undefined === input["implementation"] || ("object" === typeof input["implementation"] && null !== input["implementation"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
322
|
+
method: "typia.assert",
|
|
323
|
+
path: _path + ".implementation",
|
|
324
|
+
expected: "(ITtscGraphSpan | undefined)",
|
|
325
|
+
value: input["implementation"]
|
|
326
|
+
}, _errorFactory)) && _ao13(input["implementation"], _path + ".implementation", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
327
|
+
method: "typia.assert",
|
|
328
|
+
path: _path + ".implementation",
|
|
329
|
+
expected: "(ITtscGraphSpan | undefined)",
|
|
330
|
+
value: input["implementation"]
|
|
331
|
+
}, _errorFactory);
|
|
332
|
+
const _av2 = new Set(["accesses", "calls", "contains", "decorates", "dispatches", "exports", "extends", "implements", "imports", "instantiates", "overrides", "renders", "tests", "type_ref"]);
|
|
333
|
+
const _ae2 = "(\"accesses\" | \"calls\" | \"contains\" | \"decorates\" | \"dispatches\" | \"exports\" | \"extends\" | \"implements\" | \"imports\" | \"instantiates\" | \"overrides\" | \"renders\" | \"tests\" | \"type_ref\")";
|
|
334
|
+
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.project || _assertGuard_1._assertGuard(_exceptionable, {
|
|
335
|
+
method: "typia.assert",
|
|
336
|
+
path: _path + ".project",
|
|
337
|
+
expected: "string",
|
|
338
|
+
value: input.project
|
|
339
|
+
}, _errorFactory)) && ("string" === typeof input.tsconfig || _assertGuard_1._assertGuard(_exceptionable, {
|
|
340
|
+
method: "typia.assert",
|
|
341
|
+
path: _path + ".tsconfig",
|
|
342
|
+
expected: "string",
|
|
343
|
+
value: input.tsconfig
|
|
344
|
+
}, _errorFactory)) && (("object" === typeof input.provenance && null !== input.provenance || _assertGuard_1._assertGuard(_exceptionable, {
|
|
345
|
+
method: "typia.assert",
|
|
346
|
+
path: _path + ".provenance",
|
|
347
|
+
expected: "ITtscGraphDump.IProvenance",
|
|
348
|
+
value: input.provenance
|
|
349
|
+
}, _errorFactory)) && _ao1(input.provenance, _path + ".provenance", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
350
|
+
method: "typia.assert",
|
|
351
|
+
path: _path + ".provenance",
|
|
352
|
+
expected: "ITtscGraphDump.IProvenance",
|
|
353
|
+
value: input.provenance
|
|
354
|
+
}, _errorFactory)) && ((Array.isArray(input.diagnostics) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
355
|
+
method: "typia.assert",
|
|
356
|
+
path: _path + ".diagnostics",
|
|
357
|
+
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
358
|
+
value: input.diagnostics
|
|
359
|
+
}, _errorFactory)) && input.diagnostics.every((elem, _index14) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
360
|
+
method: "typia.assert",
|
|
361
|
+
path: _path + ".diagnostics[" + _index14 + "]",
|
|
362
|
+
expected: "ITtscGraphDump.IDiagnostic",
|
|
363
|
+
value: elem
|
|
364
|
+
}, _errorFactory)) && _ao7(elem, _path + ".diagnostics[" + _index14 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
365
|
+
method: "typia.assert",
|
|
366
|
+
path: _path + ".diagnostics[" + _index14 + "]",
|
|
367
|
+
expected: "ITtscGraphDump.IDiagnostic",
|
|
368
|
+
value: elem
|
|
369
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
370
|
+
method: "typia.assert",
|
|
371
|
+
path: _path + ".diagnostics",
|
|
372
|
+
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
373
|
+
value: input.diagnostics
|
|
374
|
+
}, _errorFactory)) && ((Array.isArray(input.nodes) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
375
|
+
method: "typia.assert",
|
|
376
|
+
path: _path + ".nodes",
|
|
377
|
+
expected: "Array<ITtscGraphDump.INode>",
|
|
378
|
+
value: input.nodes
|
|
379
|
+
}, _errorFactory)) && input.nodes.every((elem, _index15) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
380
|
+
method: "typia.assert",
|
|
381
|
+
path: _path + ".nodes[" + _index15 + "]",
|
|
382
|
+
expected: "ITtscGraphDump.INode",
|
|
383
|
+
value: elem
|
|
384
|
+
}, _errorFactory)) && _ao8(elem, _path + ".nodes[" + _index15 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
385
|
+
method: "typia.assert",
|
|
386
|
+
path: _path + ".nodes[" + _index15 + "]",
|
|
387
|
+
expected: "ITtscGraphDump.INode",
|
|
388
|
+
value: elem
|
|
389
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
390
|
+
method: "typia.assert",
|
|
391
|
+
path: _path + ".nodes",
|
|
392
|
+
expected: "Array<ITtscGraphDump.INode>",
|
|
393
|
+
value: input.nodes
|
|
394
|
+
}, _errorFactory)) && ((Array.isArray(input.edges) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
395
|
+
method: "typia.assert",
|
|
396
|
+
path: _path + ".edges",
|
|
397
|
+
expected: "Array<ITtscGraphDump.IEdge>",
|
|
398
|
+
value: input.edges
|
|
399
|
+
}, _errorFactory)) && input.edges.every((elem, _index16) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
400
|
+
method: "typia.assert",
|
|
401
|
+
path: _path + ".edges[" + _index16 + "]",
|
|
402
|
+
expected: "ITtscGraphDump.IEdge",
|
|
403
|
+
value: elem
|
|
404
|
+
}, _errorFactory)) && _ao14(elem, _path + ".edges[" + _index16 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
405
|
+
method: "typia.assert",
|
|
406
|
+
path: _path + ".edges[" + _index16 + "]",
|
|
407
|
+
expected: "ITtscGraphDump.IEdge",
|
|
408
|
+
value: elem
|
|
409
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
410
|
+
method: "typia.assert",
|
|
411
|
+
path: _path + ".edges",
|
|
412
|
+
expected: "Array<ITtscGraphDump.IEdge>",
|
|
413
|
+
value: input.edges
|
|
414
|
+
}, _errorFactory));
|
|
415
|
+
const _ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.schemaVersion || _assertGuard_1._assertGuard(_exceptionable, {
|
|
416
|
+
method: "typia.assert",
|
|
417
|
+
path: _path + ".schemaVersion",
|
|
418
|
+
expected: "number",
|
|
419
|
+
value: input.schemaVersion
|
|
420
|
+
}, _errorFactory)) && ((Array.isArray(input.capabilities) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
421
|
+
method: "typia.assert",
|
|
422
|
+
path: _path + ".capabilities",
|
|
423
|
+
expected: "Array<string>",
|
|
424
|
+
value: input.capabilities
|
|
425
|
+
}, _errorFactory)) && input.capabilities.every((elem, _index17) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
426
|
+
method: "typia.assert",
|
|
427
|
+
path: _path + ".capabilities[" + _index17 + "]",
|
|
428
|
+
expected: "string",
|
|
429
|
+
value: elem
|
|
430
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
431
|
+
method: "typia.assert",
|
|
432
|
+
path: _path + ".capabilities",
|
|
433
|
+
expected: "Array<string>",
|
|
434
|
+
value: input.capabilities
|
|
435
|
+
}, _errorFactory)) && (("object" === typeof input.producer && null !== input.producer || _assertGuard_1._assertGuard(_exceptionable, {
|
|
436
|
+
method: "typia.assert",
|
|
437
|
+
path: _path + ".producer",
|
|
438
|
+
expected: "ITtscGraphDump.IProducer",
|
|
439
|
+
value: input.producer
|
|
440
|
+
}, _errorFactory)) && _ao2(input.producer, _path + ".producer", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
441
|
+
method: "typia.assert",
|
|
442
|
+
path: _path + ".producer",
|
|
443
|
+
expected: "ITtscGraphDump.IProducer",
|
|
444
|
+
value: input.producer
|
|
445
|
+
}, _errorFactory)) && (("object" === typeof input.universe && null !== input.universe || _assertGuard_1._assertGuard(_exceptionable, {
|
|
446
|
+
method: "typia.assert",
|
|
447
|
+
path: _path + ".universe",
|
|
448
|
+
expected: "ITtscGraphDump.IUniverse",
|
|
449
|
+
value: input.universe
|
|
450
|
+
}, _errorFactory)) && _ao3(input.universe, _path + ".universe", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
451
|
+
method: "typia.assert",
|
|
452
|
+
path: _path + ".universe",
|
|
453
|
+
expected: "ITtscGraphDump.IUniverse",
|
|
454
|
+
value: input.universe
|
|
455
|
+
}, _errorFactory)) && ((Array.isArray(input.sources) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
456
|
+
method: "typia.assert",
|
|
457
|
+
path: _path + ".sources",
|
|
458
|
+
expected: "Array<ITtscGraphDump.ISourceDigest>",
|
|
459
|
+
value: input.sources
|
|
460
|
+
}, _errorFactory)) && input.sources.every((elem, _index18) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
461
|
+
method: "typia.assert",
|
|
462
|
+
path: _path + ".sources[" + _index18 + "]",
|
|
463
|
+
expected: "ITtscGraphDump.ISourceDigest",
|
|
464
|
+
value: elem
|
|
465
|
+
}, _errorFactory)) && _ao6(elem, _path + ".sources[" + _index18 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
466
|
+
method: "typia.assert",
|
|
467
|
+
path: _path + ".sources[" + _index18 + "]",
|
|
468
|
+
expected: "ITtscGraphDump.ISourceDigest",
|
|
469
|
+
value: elem
|
|
470
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
471
|
+
method: "typia.assert",
|
|
472
|
+
path: _path + ".sources",
|
|
473
|
+
expected: "Array<ITtscGraphDump.ISourceDigest>",
|
|
474
|
+
value: input.sources
|
|
475
|
+
}, _errorFactory));
|
|
476
|
+
const _ao10 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && ("method" === input.kind || "property" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
477
|
+
method: "typia.assert",
|
|
478
|
+
path: _path + ".kind",
|
|
479
|
+
expected: "(\"method\" | \"property\")",
|
|
480
|
+
value: input.kind
|
|
481
|
+
}, _errorFactory)) && (undefined === input.line || "number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
|
|
482
|
+
method: "typia.assert",
|
|
483
|
+
path: _path + ".line",
|
|
484
|
+
expected: "(number | undefined)",
|
|
485
|
+
value: input.line
|
|
486
|
+
}, _errorFactory)) && _ap14(input, _path, true && _exceptionable);
|
|
487
|
+
const _ao11 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && ((Array.isArray(input.arguments) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
488
|
+
method: "typia.assert",
|
|
489
|
+
path: _path + ".arguments",
|
|
490
|
+
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
491
|
+
value: input.arguments
|
|
492
|
+
}, _errorFactory)) && input.arguments.every((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
493
|
+
method: "typia.assert",
|
|
494
|
+
path: _path + ".arguments[" + _index26 + "]",
|
|
495
|
+
expected: "ITtscGraphDecorator.IArgument",
|
|
496
|
+
value: elem
|
|
497
|
+
}, _errorFactory)) && _ao12(elem, _path + ".arguments[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
498
|
+
method: "typia.assert",
|
|
499
|
+
path: _path + ".arguments[" + _index26 + "]",
|
|
500
|
+
expected: "ITtscGraphDecorator.IArgument",
|
|
501
|
+
value: elem
|
|
502
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
503
|
+
method: "typia.assert",
|
|
504
|
+
path: _path + ".arguments",
|
|
505
|
+
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
506
|
+
value: input.arguments
|
|
507
|
+
}, _errorFactory));
|
|
508
|
+
const _ao12 = (input, _path, _exceptionable = true) => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal || _assertGuard_1._assertGuard(_exceptionable, {
|
|
509
|
+
method: "typia.assert",
|
|
510
|
+
path: _path + ".literal",
|
|
511
|
+
expected: "(boolean | number | string | undefined)",
|
|
512
|
+
value: input.literal
|
|
513
|
+
}, _errorFactory);
|
|
514
|
+
const _ao13 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || _assertGuard_1._assertGuard(_exceptionable, {
|
|
515
|
+
method: "typia.assert",
|
|
516
|
+
path: _path + ".file",
|
|
517
|
+
expected: "(string | undefined)",
|
|
518
|
+
value: input.file
|
|
519
|
+
}, _errorFactory)) && ("number" === typeof input.startLine || _assertGuard_1._assertGuard(_exceptionable, {
|
|
520
|
+
method: "typia.assert",
|
|
521
|
+
path: _path + ".startLine",
|
|
522
|
+
expected: "number",
|
|
523
|
+
value: input.startLine
|
|
524
|
+
}, _errorFactory)) && (undefined === input.startCol || "number" === typeof input.startCol || _assertGuard_1._assertGuard(_exceptionable, {
|
|
525
|
+
method: "typia.assert",
|
|
526
|
+
path: _path + ".startCol",
|
|
527
|
+
expected: "(number | undefined)",
|
|
528
|
+
value: input.startCol
|
|
529
|
+
}, _errorFactory)) && (undefined === input.endLine || "number" === typeof input.endLine || _assertGuard_1._assertGuard(_exceptionable, {
|
|
530
|
+
method: "typia.assert",
|
|
531
|
+
path: _path + ".endLine",
|
|
532
|
+
expected: "(number | undefined)",
|
|
533
|
+
value: input.endLine
|
|
534
|
+
}, _errorFactory)) && (undefined === input.endCol || "number" === typeof input.endCol || _assertGuard_1._assertGuard(_exceptionable, {
|
|
535
|
+
method: "typia.assert",
|
|
536
|
+
path: _path + ".endCol",
|
|
537
|
+
expected: "(number | undefined)",
|
|
538
|
+
value: input.endCol
|
|
539
|
+
}, _errorFactory));
|
|
540
|
+
const _ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.from || _assertGuard_1._assertGuard(_exceptionable, {
|
|
541
|
+
method: "typia.assert",
|
|
542
|
+
path: _path + ".from",
|
|
543
|
+
expected: "string",
|
|
544
|
+
value: input.from
|
|
545
|
+
}, _errorFactory)) && ("string" === typeof input.to || _assertGuard_1._assertGuard(_exceptionable, {
|
|
546
|
+
method: "typia.assert",
|
|
547
|
+
path: _path + ".to",
|
|
548
|
+
expected: "string",
|
|
549
|
+
value: input.to
|
|
550
|
+
}, _errorFactory)) && (true === _av2.has(input.kind) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
551
|
+
method: "typia.assert",
|
|
552
|
+
path: _path + ".kind",
|
|
553
|
+
expected: _ae2,
|
|
554
|
+
value: input.kind
|
|
555
|
+
}, _errorFactory)) && _ap15(input, _path, true && _exceptionable);
|
|
556
|
+
const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.tool || _assertGuard_1._assertGuard(_exceptionable, {
|
|
557
|
+
method: "typia.assert",
|
|
558
|
+
path: _path + ".tool",
|
|
559
|
+
expected: "string",
|
|
560
|
+
value: input.tool
|
|
561
|
+
}, _errorFactory)) && ("string" === typeof input.version || _assertGuard_1._assertGuard(_exceptionable, {
|
|
562
|
+
method: "typia.assert",
|
|
563
|
+
path: _path + ".version",
|
|
564
|
+
expected: "string",
|
|
565
|
+
value: input.version
|
|
566
|
+
}, _errorFactory)) && ("string" === typeof input.typescript || _assertGuard_1._assertGuard(_exceptionable, {
|
|
567
|
+
method: "typia.assert",
|
|
568
|
+
path: _path + ".typescript",
|
|
569
|
+
expected: "string",
|
|
570
|
+
value: input.typescript
|
|
571
|
+
}, _errorFactory));
|
|
572
|
+
const _ao3 = (input, _path, _exceptionable = true) => ((Array.isArray(input.configs) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
573
|
+
method: "typia.assert",
|
|
574
|
+
path: _path + ".configs",
|
|
575
|
+
expected: "Array<ITtscGraphDump.IFileDigest>",
|
|
576
|
+
value: input.configs
|
|
577
|
+
}, _errorFactory)) && input.configs.every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
578
|
+
method: "typia.assert",
|
|
579
|
+
path: _path + ".configs[" + _index19 + "]",
|
|
580
|
+
expected: "ITtscGraphDump.IFileDigest",
|
|
581
|
+
value: elem
|
|
582
|
+
}, _errorFactory)) && _ao4(elem, _path + ".configs[" + _index19 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
583
|
+
method: "typia.assert",
|
|
584
|
+
path: _path + ".configs[" + _index19 + "]",
|
|
585
|
+
expected: "ITtscGraphDump.IFileDigest",
|
|
586
|
+
value: elem
|
|
587
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
588
|
+
method: "typia.assert",
|
|
589
|
+
path: _path + ".configs",
|
|
590
|
+
expected: "Array<ITtscGraphDump.IFileDigest>",
|
|
591
|
+
value: input.configs
|
|
592
|
+
}, _errorFactory)) && ((Array.isArray(input.roots) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
593
|
+
method: "typia.assert",
|
|
594
|
+
path: _path + ".roots",
|
|
595
|
+
expected: "Array<ITtscGraphDump.IRootFile>",
|
|
596
|
+
value: input.roots
|
|
597
|
+
}, _errorFactory)) && input.roots.every((elem, _index20) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
598
|
+
method: "typia.assert",
|
|
599
|
+
path: _path + ".roots[" + _index20 + "]",
|
|
600
|
+
expected: "ITtscGraphDump.IRootFile",
|
|
601
|
+
value: elem
|
|
602
|
+
}, _errorFactory)) && _ao5(elem, _path + ".roots[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
603
|
+
method: "typia.assert",
|
|
604
|
+
path: _path + ".roots[" + _index20 + "]",
|
|
605
|
+
expected: "ITtscGraphDump.IRootFile",
|
|
606
|
+
value: elem
|
|
607
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
608
|
+
method: "typia.assert",
|
|
609
|
+
path: _path + ".roots",
|
|
610
|
+
expected: "Array<ITtscGraphDump.IRootFile>",
|
|
611
|
+
value: input.roots
|
|
612
|
+
}, _errorFactory));
|
|
613
|
+
const _ao4 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.digest || _assertGuard_1._assertGuard(_exceptionable, {
|
|
614
|
+
method: "typia.assert",
|
|
615
|
+
path: _path + ".digest",
|
|
616
|
+
expected: "string",
|
|
617
|
+
value: input.digest
|
|
618
|
+
}, _errorFactory));
|
|
619
|
+
const _ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.config || _assertGuard_1._assertGuard(_exceptionable, {
|
|
620
|
+
method: "typia.assert",
|
|
621
|
+
path: _path + ".config",
|
|
622
|
+
expected: "string",
|
|
623
|
+
value: input.config
|
|
624
|
+
}, _errorFactory)) && _ap0(input, _path, true && _exceptionable);
|
|
625
|
+
const _ao6 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.checkerDigest || _assertGuard_1._assertGuard(_exceptionable, {
|
|
626
|
+
method: "typia.assert",
|
|
627
|
+
path: _path + ".checkerDigest",
|
|
628
|
+
expected: "string",
|
|
629
|
+
value: input.checkerDigest
|
|
630
|
+
}, _errorFactory)) && ("string" === typeof input.diskDigest || _assertGuard_1._assertGuard(_exceptionable, {
|
|
631
|
+
method: "typia.assert",
|
|
632
|
+
path: _path + ".diskDigest",
|
|
633
|
+
expected: "string",
|
|
634
|
+
value: input.diskDigest
|
|
635
|
+
}, _errorFactory));
|
|
636
|
+
const _ao7 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
|
|
637
|
+
method: "typia.assert",
|
|
638
|
+
path: _path + ".line",
|
|
639
|
+
expected: "number",
|
|
640
|
+
value: input.line
|
|
641
|
+
}, _errorFactory)) && ("number" === typeof input.column || _assertGuard_1._assertGuard(_exceptionable, {
|
|
642
|
+
method: "typia.assert",
|
|
643
|
+
path: _path + ".column",
|
|
644
|
+
expected: "number",
|
|
645
|
+
value: input.column
|
|
646
|
+
}, _errorFactory)) && ("number" === typeof input.code || _assertGuard_1._assertGuard(_exceptionable, {
|
|
647
|
+
method: "typia.assert",
|
|
648
|
+
path: _path + ".code",
|
|
649
|
+
expected: "number",
|
|
650
|
+
value: input.code
|
|
651
|
+
}, _errorFactory)) && ("error" === input.category || "warning" === input.category || _assertGuard_1._assertGuard(_exceptionable, {
|
|
652
|
+
method: "typia.assert",
|
|
653
|
+
path: _path + ".category",
|
|
654
|
+
expected: "(\"error\" | \"warning\")",
|
|
655
|
+
value: input.category
|
|
656
|
+
}, _errorFactory)) && ("string" === typeof input.message || _assertGuard_1._assertGuard(_exceptionable, {
|
|
657
|
+
method: "typia.assert",
|
|
658
|
+
path: _path + ".message",
|
|
659
|
+
expected: "string",
|
|
660
|
+
value: input.message
|
|
661
|
+
}, _errorFactory));
|
|
662
|
+
const _ao8 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && _ap2(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && _ap4(input, _path, true && _exceptionable) && _ap0(input, _path, true && _exceptionable) && _ap5(input, _path, true && _exceptionable) && _ap6(input, _path, true && _exceptionable) && _ap7(input, _path, true && _exceptionable) && _ap8(input, _path, true && _exceptionable) && _ap9(input, _path, true && _exceptionable) && _ap10(input, _path, true && _exceptionable) && _ap11(input, _path, true && _exceptionable) && _ap12(input, _path, true && _exceptionable) && _ap13(input, _path, true && _exceptionable) && _ap14(input, _path, true && _exceptionable) && _ap15(input, _path, true && _exceptionable) && _ap16(input, _path, true && _exceptionable);
|
|
663
|
+
const _ao9 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && (undefined === input.value || "string" === typeof input.value || _assertGuard_1._assertGuard(_exceptionable, {
|
|
664
|
+
method: "typia.assert",
|
|
665
|
+
path: _path + ".value",
|
|
666
|
+
expected: "(string | undefined)",
|
|
667
|
+
value: input.value
|
|
668
|
+
}, _errorFactory));
|
|
669
|
+
const _io0 = input => "string" === typeof input.project && "string" === typeof input.tsconfig && ("object" === typeof input.provenance && null !== input.provenance && _io1(input.provenance)) && (Array.isArray(input.diagnostics) && input.diagnostics.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io14(elem)));
|
|
670
|
+
const _io1 = input => "number" === typeof input.schemaVersion && (Array.isArray(input.capabilities) && input.capabilities.every(elem => "string" === typeof elem)) && ("object" === typeof input.producer && null !== input.producer && _io2(input.producer)) && ("object" === typeof input.universe && null !== input.universe && _io3(input.universe)) && (Array.isArray(input.sources) && input.sources.every(elem => "object" === typeof elem && null !== elem && _io6(elem)));
|
|
671
|
+
const _io10 = input => _ip3(input) && ("method" === input.kind || "property" === input.kind) && (undefined === input.line || "number" === typeof input.line) && _ip14(input);
|
|
672
|
+
const _io11 = input => _ip3(input) && (Array.isArray(input.arguments) && input.arguments.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem)));
|
|
673
|
+
const _io12 = input => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal;
|
|
674
|
+
const _io13 = input => (undefined === input.file || "string" === typeof input.file) && "number" === typeof input.startLine && (undefined === input.startCol || "number" === typeof input.startCol) && (undefined === input.endLine || "number" === typeof input.endLine) && (undefined === input.endCol || "number" === typeof input.endCol);
|
|
675
|
+
const _io14 = input => "string" === typeof input.from && "string" === typeof input.to && true === _iv2.has(input.kind) && _ip15(input);
|
|
676
|
+
const _io2 = input => "string" === typeof input.tool && "string" === typeof input.version && "string" === typeof input.typescript;
|
|
677
|
+
const _io3 = input => Array.isArray(input.configs) && input.configs.every(elem => "object" === typeof elem && null !== elem && _io4(elem)) && (Array.isArray(input.roots) && input.roots.every(elem => "object" === typeof elem && null !== elem && _io5(elem)));
|
|
678
|
+
const _io4 = input => _ip0(input) && "string" === typeof input.digest;
|
|
679
|
+
const _io5 = input => "string" === typeof input.config && _ip0(input);
|
|
680
|
+
const _io6 = input => _ip0(input) && "string" === typeof input.checkerDigest && "string" === typeof input.diskDigest;
|
|
681
|
+
const _io7 = input => _ip0(input) && "number" === typeof input.line && "number" === typeof input.column && "number" === typeof input.code && ("error" === input.category || "warning" === input.category) && "string" === typeof input.message;
|
|
682
|
+
const _io8 = input => _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip0(input) && _ip5(input) && _ip6(input) && _ip7(input) && _ip8(input) && _ip9(input) && _ip10(input) && _ip11(input) && _ip12(input) && _ip13(input) && _ip14(input) && _ip15(input) && _ip16(input);
|
|
683
|
+
const _io9 = input => _ip3(input) && (undefined === input.value || "string" === typeof input.value);
|
|
684
|
+
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
685
|
+
let _errorFactory;
|
|
686
|
+
return (input, errorFactory) => {
|
|
687
|
+
if (false === __is(input)) {
|
|
688
|
+
_errorFactory = errorFactory;
|
|
689
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _assertGuard_1._assertGuard(true, {
|
|
690
|
+
method: "typia.assert",
|
|
691
|
+
path: _path + "",
|
|
692
|
+
expected: "ITtscGraphDump",
|
|
693
|
+
value: input
|
|
694
|
+
}, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard_1._assertGuard(true, {
|
|
695
|
+
method: "typia.assert",
|
|
696
|
+
path: _path + "",
|
|
697
|
+
expected: "ITtscGraphDump",
|
|
698
|
+
value: input
|
|
699
|
+
}, _errorFactory))(input, "$input", true);
|
|
700
|
+
}
|
|
701
|
+
return input;
|
|
702
|
+
};
|
|
703
|
+
})()(value);
|
|
704
|
+
}
|
|
705
|
+
catch (error) {
|
|
706
|
+
throw new Error(`@ttsc/graph: dump output does not match schema v${String(exports.DUMP_SCHEMA_VERSION)}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
707
|
+
}
|
|
702
708
|
}
|
|
703
709
|
//# sourceMappingURL=loadGraph.js.map
|