@ttsc/graph 0.23.0 → 0.24.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/README.md +1 -1
- package/lib/index.js +36 -0
- package/lib/index.js.map +1 -1
- package/lib/model/TtscGraphMemory.d.ts +1 -1
- package/lib/model/TtscGraphMemory.js +16 -13
- package/lib/model/TtscGraphMemory.js.map +1 -1
- package/lib/model/TtscGraphSession.d.ts +2 -0
- package/lib/model/TtscGraphSession.js +414 -220
- package/lib/model/TtscGraphSession.js.map +1 -1
- package/lib/model/TtscGraphShardStore.d.ts +16 -0
- package/lib/model/TtscGraphShardStore.js +272 -0
- package/lib/model/TtscGraphShardStore.js.map +1 -0
- package/lib/model/loadGraph.js +48 -54
- package/lib/model/loadGraph.js.map +1 -1
- package/lib/server/runDetails.js +4 -9
- package/lib/server/runDetails.js.map +1 -1
- package/lib/server/runEntrypoints.js +4 -7
- package/lib/server/runEntrypoints.js.map +1 -1
- package/lib/server/runLookup.js +1 -1
- package/lib/server/runLookup.js.map +1 -1
- package/lib/server/runOverview.js +3 -3
- package/lib/server/runOverview.js.map +1 -1
- package/lib/server/runTour.js +7 -11
- package/lib/server/runTour.js.map +1 -1
- package/lib/server/runTrace.d.ts +4 -5
- package/lib/server/runTrace.js +10 -19
- package/lib/server/runTrace.js.map +1 -1
- package/lib/structures/ITtscGraphDump.d.ts +8 -2
- package/lib/structures/ITtscGraphNode.d.ts +1 -2
- package/lib/structures/ITtscGraphSnapshot.d.ts +37 -1
- package/lib/structures/TtscGraphDumpEdgeKind.d.ts +2 -0
- package/lib/structures/TtscGraphDumpEdgeKind.js +3 -0
- package/lib/structures/TtscGraphDumpEdgeKind.js.map +1 -0
- package/lib/structures/TtscGraphDumpNodeKind.d.ts +2 -0
- package/lib/structures/TtscGraphDumpNodeKind.js +3 -0
- package/lib/structures/TtscGraphDumpNodeKind.js.map +1 -0
- package/lib/structures/TtscGraphEdgeKind.d.ts +8 -6
- package/lib/structures/TtscGraphNodeKind.d.ts +5 -6
- package/lib/structures/TtscGraphNodeModifier.d.ts +1 -1
- package/lib/structures/index.d.ts +2 -0
- package/lib/structures/index.js +2 -0
- package/lib/structures/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +40 -0
- package/src/model/TtscGraphMemory.ts +10 -8
- package/src/model/TtscGraphSession.ts +64 -16
- package/src/model/TtscGraphShardStore.ts +371 -0
- package/src/server/runDetails.ts +5 -10
- package/src/server/runEntrypoints.ts +4 -7
- package/src/server/runLookup.ts +1 -1
- package/src/server/runOverview.ts +3 -3
- package/src/server/runTour.ts +8 -14
- package/src/server/runTrace.ts +10 -19
- package/src/structures/ITtscGraphDump.ts +10 -2
- package/src/structures/ITtscGraphNode.ts +1 -2
- package/src/structures/ITtscGraphSnapshot.ts +42 -1
- package/src/structures/TtscGraphDumpEdgeKind.ts +11 -0
- package/src/structures/TtscGraphDumpNodeKind.ts +10 -0
- package/src/structures/TtscGraphEdgeKind.ts +8 -9
- package/src/structures/TtscGraphNodeKind.ts +5 -11
- package/src/structures/TtscGraphNodeModifier.ts +1 -2
- package/src/structures/index.ts +2 -0
|
@@ -44,6 +44,7 @@ const typia_1 = __importDefault(require("typia"));
|
|
|
44
44
|
const nativeExecutable_1 = require("../nativeExecutable");
|
|
45
45
|
const resolveGraphBinary_1 = require("../resolveGraphBinary");
|
|
46
46
|
const TtscGraphMemory_1 = require("./TtscGraphMemory");
|
|
47
|
+
const TtscGraphShardStore_1 = require("./TtscGraphShardStore");
|
|
47
48
|
const loadGraph_1 = require("./loadGraph");
|
|
48
49
|
/**
|
|
49
50
|
* The serve protocol version this client speaks.
|
|
@@ -54,6 +55,7 @@ const loadGraph_1 = require("./loadGraph");
|
|
|
54
55
|
* constant out of this file and fails if the pair drifts.
|
|
55
56
|
*/
|
|
56
57
|
const PROTOCOL_VERSION = 1;
|
|
58
|
+
const GRAPH_SNAPSHOT_PROTOCOL_VERSION = 1;
|
|
57
59
|
const DEFAULT_REQUEST_TIMEOUT_MS = 300000;
|
|
58
60
|
const MAX_TIMER_MS = 2147483647;
|
|
59
61
|
const TERMINATION_GRACE_MS = 1000;
|
|
@@ -75,6 +77,7 @@ class TtscGraphSession {
|
|
|
75
77
|
pending = new Map();
|
|
76
78
|
queue = Promise.resolve();
|
|
77
79
|
current;
|
|
80
|
+
shardStore = new TtscGraphShardStore_1.TtscGraphShardStore();
|
|
78
81
|
closed = false;
|
|
79
82
|
constructor(options) {
|
|
80
83
|
const requestTimeoutMs = options.requestTimeoutMs ?? DEFAULT_REQUEST_TIMEOUT_MS;
|
|
@@ -161,20 +164,63 @@ class TtscGraphSession {
|
|
|
161
164
|
// The protocol version and the envelope shape were both settled in onLine,
|
|
162
165
|
// before this frame was ever routed here.
|
|
163
166
|
const response = await this.request(signal);
|
|
167
|
+
this.assertResponseSemantics(response);
|
|
164
168
|
if (response.error !== undefined) {
|
|
165
169
|
throw new Error(`@ttsc/graph: ${response.error}`);
|
|
166
170
|
}
|
|
167
171
|
if (response.changed) {
|
|
168
|
-
if (response.
|
|
169
|
-
|
|
172
|
+
if (response.snapshot !== undefined) {
|
|
173
|
+
try {
|
|
174
|
+
this.current = TtscGraphMemory_1.TtscGraphMemory.from(this.shardStore.apply(response.snapshot));
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
const failure = asError(error);
|
|
178
|
+
if (this.child !== undefined)
|
|
179
|
+
this.failChild(this.child, failure);
|
|
180
|
+
throw failure;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else if (response.dump !== undefined) {
|
|
184
|
+
// A serve-protocol-v1 binary predating graph shard negotiation ignores
|
|
185
|
+
// the optional request field and retains the complete-dump response.
|
|
186
|
+
this.current = TtscGraphMemory_1.TtscGraphMemory.from(response.dump);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
throw new Error(`@ttsc/graph: native ${response.mode} response omitted both graph snapshot protocol v${String(GRAPH_SNAPSHOT_PROTOCOL_VERSION)} data and a compatible dump`);
|
|
170
190
|
}
|
|
171
|
-
this.current = TtscGraphMemory_1.TtscGraphMemory.from(response.dump);
|
|
172
191
|
}
|
|
173
192
|
if (this.current === undefined) {
|
|
174
193
|
throw new Error("@ttsc/graph: native session returned no initial graph snapshot");
|
|
175
194
|
}
|
|
176
195
|
return this.current;
|
|
177
196
|
}
|
|
197
|
+
assertResponseSemantics(response) {
|
|
198
|
+
const bodies = Number(response.dump !== undefined) +
|
|
199
|
+
Number(response.snapshot !== undefined);
|
|
200
|
+
let problem;
|
|
201
|
+
if (response.error !== undefined) {
|
|
202
|
+
if (response.mode !== "error" || response.changed || bodies !== 0) {
|
|
203
|
+
problem = "an error response carried snapshot state";
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
else if (response.mode === "error") {
|
|
207
|
+
problem = "an error-mode response omitted its error";
|
|
208
|
+
}
|
|
209
|
+
else if (response.changed) {
|
|
210
|
+
if (response.mode === "unchanged" || bodies !== 1) {
|
|
211
|
+
problem = "a changed response did not carry exactly one snapshot body";
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else if (response.mode !== "unchanged" || bodies !== 0) {
|
|
215
|
+
problem = "an unchanged response carried changed mode or snapshot state";
|
|
216
|
+
}
|
|
217
|
+
if (problem === undefined)
|
|
218
|
+
return;
|
|
219
|
+
const error = new Error(`@ttsc/graph: native session returned ${problem}`);
|
|
220
|
+
if (this.child !== undefined)
|
|
221
|
+
this.failChild(this.child, error);
|
|
222
|
+
throw error;
|
|
223
|
+
}
|
|
178
224
|
request(signal) {
|
|
179
225
|
if (signal?.aborted)
|
|
180
226
|
throw cancelledError(signal);
|
|
@@ -200,7 +246,7 @@ class TtscGraphSession {
|
|
|
200
246
|
pending.abort();
|
|
201
247
|
return;
|
|
202
248
|
}
|
|
203
|
-
child.process.stdin.write(`${JSON.stringify({ id })}\n`, (error) => {
|
|
249
|
+
child.process.stdin.write(`${JSON.stringify({ id, graphSnapshotVersion: GRAPH_SNAPSHOT_PROTOCOL_VERSION })}\n`, (error) => {
|
|
204
250
|
if (error === null || error === undefined)
|
|
205
251
|
return;
|
|
206
252
|
if (this.pending.get(id) !== pending)
|
|
@@ -275,35 +321,50 @@ class TtscGraphSession {
|
|
|
275
321
|
// routes the frame — were the unchecked ones. Anything added to the
|
|
276
322
|
// envelope belongs on this side of that line.
|
|
277
323
|
response = (() => {
|
|
278
|
-
const _ip0 = input =>
|
|
279
|
-
const _ip1 = input => "
|
|
280
|
-
const _ip2 = input => "string" === typeof input["
|
|
281
|
-
const _ip3 = input =>
|
|
282
|
-
const
|
|
283
|
-
const
|
|
284
|
-
const
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
const
|
|
290
|
-
const
|
|
291
|
-
const
|
|
292
|
-
const
|
|
293
|
-
const
|
|
294
|
-
const
|
|
295
|
-
const
|
|
296
|
-
const
|
|
297
|
-
const
|
|
298
|
-
const
|
|
299
|
-
const
|
|
324
|
+
const _ip0 = input => "number" === typeof input["protocolVersion"];
|
|
325
|
+
const _ip1 = input => Array.isArray(input["capabilities"]) && input["capabilities"].every(elem => "string" === typeof elem);
|
|
326
|
+
const _ip2 = input => "string" === typeof input["project"];
|
|
327
|
+
const _ip3 = input => "string" === typeof input["tsconfig"];
|
|
328
|
+
const _ip4 = input => Array.isArray(input["diagnostics"]) && input["diagnostics"].every(elem => "object" === typeof elem && null !== elem && _io8(elem));
|
|
329
|
+
const _ip5 = input => Array.isArray(input["nodes"]) && input["nodes"].every(elem => "object" === typeof elem && null !== elem && _io9(elem));
|
|
330
|
+
const _ip6 = input => Array.isArray(input["edges"]) && input["edges"].every(elem => "object" === typeof elem && null !== elem && _io15(elem));
|
|
331
|
+
const _ip7 = input => "number" === typeof input["schemaVersion"];
|
|
332
|
+
const _ip8 = input => "object" === typeof input["producer"] && null !== input["producer"] && _io3(input["producer"]);
|
|
333
|
+
const _ip9 = input => "object" === typeof input["universe"] && null !== input["universe"] && _io4(input["universe"]);
|
|
334
|
+
const _ip10 = input => "string" === typeof input["file"];
|
|
335
|
+
const _ip11 = input => "string" === typeof input["digest"];
|
|
336
|
+
const _ip12 = input => "string" === typeof input["id"];
|
|
337
|
+
const _ip13 = input => "string" === typeof input["name"];
|
|
338
|
+
const _ip14 = input => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"];
|
|
339
|
+
const _ip15 = input => "boolean" === typeof input["external"];
|
|
340
|
+
const _ip16 = input => undefined === input["ignored"] || "boolean" === typeof input["ignored"];
|
|
341
|
+
const _ip17 = input => undefined === input["exported"] || "boolean" === typeof input["exported"];
|
|
342
|
+
const _ip18 = input => undefined === input["closure"] || "boolean" === typeof input["closure"];
|
|
343
|
+
const _ip19 = input => undefined === input["modifiers"] || Array.isArray(input["modifiers"]) && input["modifiers"].every(elem => true === _iv0.has(elem));
|
|
344
|
+
const _iv0 = new Set(["abstract", "async", "const", "declare", "default", "export", "private", "protected", "public", "readonly", "static"]);
|
|
345
|
+
const _ip20 = input => undefined === input["literals"] || Array.isArray(input["literals"]) && input["literals"].every(elem => "string" === typeof elem);
|
|
346
|
+
const _ip21 = input => undefined === input["enumMembers"] || Array.isArray(input["enumMembers"]) && input["enumMembers"].every(elem => "object" === typeof elem && null !== elem && _io10(elem));
|
|
347
|
+
const _ip22 = input => undefined === input["objectMembers"] || Array.isArray(input["objectMembers"]) && input["objectMembers"].every(elem => "object" === typeof elem && null !== elem && _io11(elem));
|
|
348
|
+
const _ip23 = input => undefined === input["decorators"] || Array.isArray(input["decorators"]) && input["decorators"].every(elem => "object" === typeof elem && null !== elem && _io12(elem));
|
|
349
|
+
const _ip24 = input => undefined === input["signature"] || "string" === typeof input["signature"];
|
|
350
|
+
const _ip25 = input => "class" === input["kind"] || "enum" === input["kind"] || "function" === input["kind"] || "interface" === input["kind"] || "method" === input["kind"] || "module" === input["kind"] || "type" === input["kind"] || "variable" === input["kind"];
|
|
351
|
+
const _ip26 = input => undefined === input["evidence"] || "object" === typeof input["evidence"] && null !== input["evidence"] && _io14(input["evidence"]);
|
|
352
|
+
const _ip27 = input => undefined === input["implementation"] || "object" === typeof input["implementation"] && null !== input["implementation"] && _io14(input["implementation"]);
|
|
353
|
+
const _ip28 = input => "string" === typeof input["key"];
|
|
354
|
+
const _ap0 = (input, _path, _exceptionable = true) => "number" === typeof input["protocolVersion"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
355
|
+
method: "typia.assert",
|
|
356
|
+
path: _path + ".protocolVersion",
|
|
357
|
+
expected: "number",
|
|
358
|
+
value: input["protocolVersion"]
|
|
359
|
+
}, _errorFactory);
|
|
360
|
+
const _ap1 = (input, _path, _exceptionable = true) => (Array.isArray(input["capabilities"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
300
361
|
method: "typia.assert",
|
|
301
362
|
path: _path + ".capabilities",
|
|
302
363
|
expected: "Array<string>",
|
|
303
364
|
value: input["capabilities"]
|
|
304
|
-
}, _errorFactory)) && input["capabilities"].every((elem,
|
|
365
|
+
}, _errorFactory)) && input["capabilities"].every((elem, _index17) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
305
366
|
method: "typia.assert",
|
|
306
|
-
path: _path + ".capabilities[" +
|
|
367
|
+
path: _path + ".capabilities[" + _index17 + "]",
|
|
307
368
|
expected: "string",
|
|
308
369
|
value: elem
|
|
309
370
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -312,71 +373,172 @@ class TtscGraphSession {
|
|
|
312
373
|
expected: "Array<string>",
|
|
313
374
|
value: input["capabilities"]
|
|
314
375
|
}, _errorFactory);
|
|
315
|
-
const
|
|
376
|
+
const _ap2 = (input, _path, _exceptionable = true) => "string" === typeof input["project"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
377
|
+
method: "typia.assert",
|
|
378
|
+
path: _path + ".project",
|
|
379
|
+
expected: "string",
|
|
380
|
+
value: input["project"]
|
|
381
|
+
}, _errorFactory);
|
|
382
|
+
const _ap3 = (input, _path, _exceptionable = true) => "string" === typeof input["tsconfig"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
383
|
+
method: "typia.assert",
|
|
384
|
+
path: _path + ".tsconfig",
|
|
385
|
+
expected: "string",
|
|
386
|
+
value: input["tsconfig"]
|
|
387
|
+
}, _errorFactory);
|
|
388
|
+
const _ap4 = (input, _path, _exceptionable = true) => (Array.isArray(input["diagnostics"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
389
|
+
method: "typia.assert",
|
|
390
|
+
path: _path + ".diagnostics",
|
|
391
|
+
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
392
|
+
value: input["diagnostics"]
|
|
393
|
+
}, _errorFactory)) && input["diagnostics"].every((elem, _index18) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
394
|
+
method: "typia.assert",
|
|
395
|
+
path: _path + ".diagnostics[" + _index18 + "]",
|
|
396
|
+
expected: "ITtscGraphDump.IDiagnostic",
|
|
397
|
+
value: elem
|
|
398
|
+
}, _errorFactory)) && _ao8(elem, _path + ".diagnostics[" + _index18 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
399
|
+
method: "typia.assert",
|
|
400
|
+
path: _path + ".diagnostics[" + _index18 + "]",
|
|
401
|
+
expected: "ITtscGraphDump.IDiagnostic",
|
|
402
|
+
value: elem
|
|
403
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
404
|
+
method: "typia.assert",
|
|
405
|
+
path: _path + ".diagnostics",
|
|
406
|
+
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
407
|
+
value: input["diagnostics"]
|
|
408
|
+
}, _errorFactory);
|
|
409
|
+
const _ap5 = (input, _path, _exceptionable = true) => (Array.isArray(input["nodes"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
410
|
+
method: "typia.assert",
|
|
411
|
+
path: _path + ".nodes",
|
|
412
|
+
expected: "Array<ITtscGraphDump.INode>",
|
|
413
|
+
value: input["nodes"]
|
|
414
|
+
}, _errorFactory)) && input["nodes"].every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
415
|
+
method: "typia.assert",
|
|
416
|
+
path: _path + ".nodes[" + _index19 + "]",
|
|
417
|
+
expected: "ITtscGraphDump.INode",
|
|
418
|
+
value: elem
|
|
419
|
+
}, _errorFactory)) && _ao9(elem, _path + ".nodes[" + _index19 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
420
|
+
method: "typia.assert",
|
|
421
|
+
path: _path + ".nodes[" + _index19 + "]",
|
|
422
|
+
expected: "ITtscGraphDump.INode",
|
|
423
|
+
value: elem
|
|
424
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
425
|
+
method: "typia.assert",
|
|
426
|
+
path: _path + ".nodes",
|
|
427
|
+
expected: "Array<ITtscGraphDump.INode>",
|
|
428
|
+
value: input["nodes"]
|
|
429
|
+
}, _errorFactory);
|
|
430
|
+
const _ap6 = (input, _path, _exceptionable = true) => (Array.isArray(input["edges"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
431
|
+
method: "typia.assert",
|
|
432
|
+
path: _path + ".edges",
|
|
433
|
+
expected: "Array<ITtscGraphDump.IEdge>",
|
|
434
|
+
value: input["edges"]
|
|
435
|
+
}, _errorFactory)) && input["edges"].every((elem, _index20) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
436
|
+
method: "typia.assert",
|
|
437
|
+
path: _path + ".edges[" + _index20 + "]",
|
|
438
|
+
expected: "ITtscGraphDump.IEdge",
|
|
439
|
+
value: elem
|
|
440
|
+
}, _errorFactory)) && _ao15(elem, _path + ".edges[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
441
|
+
method: "typia.assert",
|
|
442
|
+
path: _path + ".edges[" + _index20 + "]",
|
|
443
|
+
expected: "ITtscGraphDump.IEdge",
|
|
444
|
+
value: elem
|
|
445
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
446
|
+
method: "typia.assert",
|
|
447
|
+
path: _path + ".edges",
|
|
448
|
+
expected: "Array<ITtscGraphDump.IEdge>",
|
|
449
|
+
value: input["edges"]
|
|
450
|
+
}, _errorFactory);
|
|
451
|
+
const _ap7 = (input, _path, _exceptionable = true) => "number" === typeof input["schemaVersion"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
452
|
+
method: "typia.assert",
|
|
453
|
+
path: _path + ".schemaVersion",
|
|
454
|
+
expected: "number",
|
|
455
|
+
value: input["schemaVersion"]
|
|
456
|
+
}, _errorFactory);
|
|
457
|
+
const _ap8 = (input, _path, _exceptionable = true) => ("object" === typeof input["producer"] && null !== input["producer"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
458
|
+
method: "typia.assert",
|
|
459
|
+
path: _path + ".producer",
|
|
460
|
+
expected: "ITtscGraphDump.IProducer",
|
|
461
|
+
value: input["producer"]
|
|
462
|
+
}, _errorFactory)) && _ao3(input["producer"], _path + ".producer", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
463
|
+
method: "typia.assert",
|
|
464
|
+
path: _path + ".producer",
|
|
465
|
+
expected: "ITtscGraphDump.IProducer",
|
|
466
|
+
value: input["producer"]
|
|
467
|
+
}, _errorFactory);
|
|
468
|
+
const _ap9 = (input, _path, _exceptionable = true) => ("object" === typeof input["universe"] && null !== input["universe"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
469
|
+
method: "typia.assert",
|
|
470
|
+
path: _path + ".universe",
|
|
471
|
+
expected: "ITtscGraphDump.IUniverse",
|
|
472
|
+
value: input["universe"]
|
|
473
|
+
}, _errorFactory)) && _ao4(input["universe"], _path + ".universe", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
474
|
+
method: "typia.assert",
|
|
475
|
+
path: _path + ".universe",
|
|
476
|
+
expected: "ITtscGraphDump.IUniverse",
|
|
477
|
+
value: input["universe"]
|
|
478
|
+
}, _errorFactory);
|
|
479
|
+
const _ap10 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
316
480
|
method: "typia.assert",
|
|
317
481
|
path: _path + ".file",
|
|
318
482
|
expected: "string",
|
|
319
483
|
value: input["file"]
|
|
320
484
|
}, _errorFactory);
|
|
321
|
-
const
|
|
485
|
+
const _ap11 = (input, _path, _exceptionable = true) => "string" === typeof input["digest"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
322
486
|
method: "typia.assert",
|
|
323
|
-
path: _path + ".
|
|
487
|
+
path: _path + ".digest",
|
|
324
488
|
expected: "string",
|
|
325
|
-
value: input["
|
|
489
|
+
value: input["digest"]
|
|
326
490
|
}, _errorFactory);
|
|
327
|
-
const
|
|
491
|
+
const _ap12 = (input, _path, _exceptionable = true) => "string" === typeof input["id"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
328
492
|
method: "typia.assert",
|
|
329
|
-
path: _path + ".
|
|
330
|
-
expected:
|
|
331
|
-
value: input["
|
|
493
|
+
path: _path + ".id",
|
|
494
|
+
expected: "string",
|
|
495
|
+
value: input["id"]
|
|
332
496
|
}, _errorFactory);
|
|
333
|
-
const
|
|
334
|
-
const _ae0 = "(\"class\" | \"enum\" | \"external_symbol\" | \"file\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"namespace\" | \"package\" | \"parameter\" | \"property\" | \"type\" | \"variable\")";
|
|
335
|
-
const _ap4 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
497
|
+
const _ap13 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
336
498
|
method: "typia.assert",
|
|
337
499
|
path: _path + ".name",
|
|
338
500
|
expected: "string",
|
|
339
501
|
value: input["name"]
|
|
340
502
|
}, _errorFactory);
|
|
341
|
-
const
|
|
503
|
+
const _ap14 = (input, _path, _exceptionable = true) => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
342
504
|
method: "typia.assert",
|
|
343
505
|
path: _path + ".qualifiedName",
|
|
344
506
|
expected: "(string | undefined)",
|
|
345
507
|
value: input["qualifiedName"]
|
|
346
508
|
}, _errorFactory);
|
|
347
|
-
const
|
|
509
|
+
const _ap15 = (input, _path, _exceptionable = true) => "boolean" === typeof input["external"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
348
510
|
method: "typia.assert",
|
|
349
511
|
path: _path + ".external",
|
|
350
512
|
expected: "boolean",
|
|
351
513
|
value: input["external"]
|
|
352
514
|
}, _errorFactory);
|
|
353
|
-
const
|
|
515
|
+
const _ap16 = (input, _path, _exceptionable = true) => undefined === input["ignored"] || "boolean" === typeof input["ignored"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
354
516
|
method: "typia.assert",
|
|
355
517
|
path: _path + ".ignored",
|
|
356
518
|
expected: "(boolean | undefined)",
|
|
357
519
|
value: input["ignored"]
|
|
358
520
|
}, _errorFactory);
|
|
359
|
-
const
|
|
521
|
+
const _ap17 = (input, _path, _exceptionable = true) => undefined === input["exported"] || "boolean" === typeof input["exported"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
360
522
|
method: "typia.assert",
|
|
361
523
|
path: _path + ".exported",
|
|
362
524
|
expected: "(boolean | undefined)",
|
|
363
525
|
value: input["exported"]
|
|
364
526
|
}, _errorFactory);
|
|
365
|
-
const
|
|
527
|
+
const _ap18 = (input, _path, _exceptionable = true) => undefined === input["closure"] || "boolean" === typeof input["closure"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
366
528
|
method: "typia.assert",
|
|
367
529
|
path: _path + ".closure",
|
|
368
530
|
expected: "(boolean | undefined)",
|
|
369
531
|
value: input["closure"]
|
|
370
532
|
}, _errorFactory);
|
|
371
|
-
const
|
|
533
|
+
const _ap19 = (input, _path, _exceptionable = true) => undefined === input["modifiers"] || (Array.isArray(input["modifiers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
372
534
|
method: "typia.assert",
|
|
373
535
|
path: _path + ".modifiers",
|
|
374
536
|
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
375
537
|
value: input["modifiers"]
|
|
376
|
-
}, _errorFactory)) && input["modifiers"].every((elem,
|
|
538
|
+
}, _errorFactory)) && input["modifiers"].every((elem, _index24) => true === _av0.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
377
539
|
method: "typia.assert",
|
|
378
|
-
path: _path + ".modifiers[" +
|
|
379
|
-
expected:
|
|
540
|
+
path: _path + ".modifiers[" + _index24 + "]",
|
|
541
|
+
expected: _ae0,
|
|
380
542
|
value: elem
|
|
381
543
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
382
544
|
method: "typia.assert",
|
|
@@ -384,16 +546,16 @@ class TtscGraphSession {
|
|
|
384
546
|
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
385
547
|
value: input["modifiers"]
|
|
386
548
|
}, _errorFactory);
|
|
387
|
-
const
|
|
388
|
-
const
|
|
389
|
-
const
|
|
549
|
+
const _av0 = new Set(["abstract", "async", "const", "declare", "default", "export", "private", "protected", "public", "readonly", "static"]);
|
|
550
|
+
const _ae0 = "(\"abstract\" | \"async\" | \"const\" | \"declare\" | \"default\" | \"export\" | \"private\" | \"protected\" | \"public\" | \"readonly\" | \"static\")";
|
|
551
|
+
const _ap20 = (input, _path, _exceptionable = true) => undefined === input["literals"] || (Array.isArray(input["literals"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
390
552
|
method: "typia.assert",
|
|
391
553
|
path: _path + ".literals",
|
|
392
554
|
expected: "(Array<string> | undefined)",
|
|
393
555
|
value: input["literals"]
|
|
394
|
-
}, _errorFactory)) && input["literals"].every((elem,
|
|
556
|
+
}, _errorFactory)) && input["literals"].every((elem, _index25) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
395
557
|
method: "typia.assert",
|
|
396
|
-
path: _path + ".literals[" +
|
|
558
|
+
path: _path + ".literals[" + _index25 + "]",
|
|
397
559
|
expected: "string",
|
|
398
560
|
value: elem
|
|
399
561
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -402,19 +564,19 @@ class TtscGraphSession {
|
|
|
402
564
|
expected: "(Array<string> | undefined)",
|
|
403
565
|
value: input["literals"]
|
|
404
566
|
}, _errorFactory);
|
|
405
|
-
const
|
|
567
|
+
const _ap21 = (input, _path, _exceptionable = true) => undefined === input["enumMembers"] || (Array.isArray(input["enumMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
406
568
|
method: "typia.assert",
|
|
407
569
|
path: _path + ".enumMembers",
|
|
408
570
|
expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
|
|
409
571
|
value: input["enumMembers"]
|
|
410
|
-
}, _errorFactory)) && input["enumMembers"].every((elem,
|
|
572
|
+
}, _errorFactory)) && input["enumMembers"].every((elem, _index26) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
411
573
|
method: "typia.assert",
|
|
412
|
-
path: _path + ".enumMembers[" +
|
|
574
|
+
path: _path + ".enumMembers[" + _index26 + "]",
|
|
413
575
|
expected: "ITtscGraphNode.IEnumMember",
|
|
414
576
|
value: elem
|
|
415
|
-
}, _errorFactory)) && _ao10(elem, _path + ".enumMembers[" +
|
|
577
|
+
}, _errorFactory)) && _ao10(elem, _path + ".enumMembers[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
416
578
|
method: "typia.assert",
|
|
417
|
-
path: _path + ".enumMembers[" +
|
|
579
|
+
path: _path + ".enumMembers[" + _index26 + "]",
|
|
418
580
|
expected: "ITtscGraphNode.IEnumMember",
|
|
419
581
|
value: elem
|
|
420
582
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -423,19 +585,19 @@ class TtscGraphSession {
|
|
|
423
585
|
expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
|
|
424
586
|
value: input["enumMembers"]
|
|
425
587
|
}, _errorFactory);
|
|
426
|
-
const
|
|
588
|
+
const _ap22 = (input, _path, _exceptionable = true) => undefined === input["objectMembers"] || (Array.isArray(input["objectMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
427
589
|
method: "typia.assert",
|
|
428
590
|
path: _path + ".objectMembers",
|
|
429
591
|
expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
|
|
430
592
|
value: input["objectMembers"]
|
|
431
|
-
}, _errorFactory)) && input["objectMembers"].every((elem,
|
|
593
|
+
}, _errorFactory)) && input["objectMembers"].every((elem, _index27) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
432
594
|
method: "typia.assert",
|
|
433
|
-
path: _path + ".objectMembers[" +
|
|
595
|
+
path: _path + ".objectMembers[" + _index27 + "]",
|
|
434
596
|
expected: "ITtscGraphNode.IObjectMember",
|
|
435
597
|
value: elem
|
|
436
|
-
}, _errorFactory)) && _ao11(elem, _path + ".objectMembers[" +
|
|
598
|
+
}, _errorFactory)) && _ao11(elem, _path + ".objectMembers[" + _index27 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
437
599
|
method: "typia.assert",
|
|
438
|
-
path: _path + ".objectMembers[" +
|
|
600
|
+
path: _path + ".objectMembers[" + _index27 + "]",
|
|
439
601
|
expected: "ITtscGraphNode.IObjectMember",
|
|
440
602
|
value: elem
|
|
441
603
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -444,19 +606,19 @@ class TtscGraphSession {
|
|
|
444
606
|
expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
|
|
445
607
|
value: input["objectMembers"]
|
|
446
608
|
}, _errorFactory);
|
|
447
|
-
const
|
|
609
|
+
const _ap23 = (input, _path, _exceptionable = true) => undefined === input["decorators"] || (Array.isArray(input["decorators"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
448
610
|
method: "typia.assert",
|
|
449
611
|
path: _path + ".decorators",
|
|
450
612
|
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
451
613
|
value: input["decorators"]
|
|
452
|
-
}, _errorFactory)) && input["decorators"].every((elem,
|
|
614
|
+
}, _errorFactory)) && input["decorators"].every((elem, _index28) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
453
615
|
method: "typia.assert",
|
|
454
|
-
path: _path + ".decorators[" +
|
|
616
|
+
path: _path + ".decorators[" + _index28 + "]",
|
|
455
617
|
expected: "ITtscGraphDecorator",
|
|
456
618
|
value: elem
|
|
457
|
-
}, _errorFactory)) && _ao12(elem, _path + ".decorators[" +
|
|
619
|
+
}, _errorFactory)) && _ao12(elem, _path + ".decorators[" + _index28 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
458
620
|
method: "typia.assert",
|
|
459
|
-
path: _path + ".decorators[" +
|
|
621
|
+
path: _path + ".decorators[" + _index28 + "]",
|
|
460
622
|
expected: "ITtscGraphDecorator",
|
|
461
623
|
value: elem
|
|
462
624
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -465,13 +627,19 @@ class TtscGraphSession {
|
|
|
465
627
|
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
466
628
|
value: input["decorators"]
|
|
467
629
|
}, _errorFactory);
|
|
468
|
-
const
|
|
630
|
+
const _ap24 = (input, _path, _exceptionable = true) => undefined === input["signature"] || "string" === typeof input["signature"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
469
631
|
method: "typia.assert",
|
|
470
632
|
path: _path + ".signature",
|
|
471
633
|
expected: "(string | undefined)",
|
|
472
634
|
value: input["signature"]
|
|
473
635
|
}, _errorFactory);
|
|
474
|
-
const
|
|
636
|
+
const _ap25 = (input, _path, _exceptionable = true) => "class" === input["kind"] || "enum" === input["kind"] || "function" === input["kind"] || "interface" === input["kind"] || "method" === input["kind"] || "module" === input["kind"] || "type" === input["kind"] || "variable" === input["kind"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
637
|
+
method: "typia.assert",
|
|
638
|
+
path: _path + ".kind",
|
|
639
|
+
expected: "(\"class\" | \"enum\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"type\" | \"variable\")",
|
|
640
|
+
value: input["kind"]
|
|
641
|
+
}, _errorFactory);
|
|
642
|
+
const _ap26 = (input, _path, _exceptionable = true) => undefined === input["evidence"] || ("object" === typeof input["evidence"] && null !== input["evidence"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
475
643
|
method: "typia.assert",
|
|
476
644
|
path: _path + ".evidence",
|
|
477
645
|
expected: "(ITtscGraphSpan | undefined)",
|
|
@@ -482,7 +650,7 @@ class TtscGraphSession {
|
|
|
482
650
|
expected: "(ITtscGraphSpan | undefined)",
|
|
483
651
|
value: input["evidence"]
|
|
484
652
|
}, _errorFactory);
|
|
485
|
-
const
|
|
653
|
+
const _ap27 = (input, _path, _exceptionable = true) => undefined === input["implementation"] || ("object" === typeof input["implementation"] && null !== input["implementation"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
486
654
|
method: "typia.assert",
|
|
487
655
|
path: _path + ".implementation",
|
|
488
656
|
expected: "(ITtscGraphSpan | undefined)",
|
|
@@ -493,24 +661,23 @@ class TtscGraphSession {
|
|
|
493
661
|
expected: "(ITtscGraphSpan | undefined)",
|
|
494
662
|
value: input["implementation"]
|
|
495
663
|
}, _errorFactory);
|
|
496
|
-
const
|
|
497
|
-
|
|
664
|
+
const _ap28 = (input, _path, _exceptionable = true) => "string" === typeof input["key"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
665
|
+
method: "typia.assert",
|
|
666
|
+
path: _path + ".key",
|
|
667
|
+
expected: "string",
|
|
668
|
+
value: input["key"]
|
|
669
|
+
}, _errorFactory);
|
|
498
670
|
const _ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.id || _assertGuard_1._assertGuard(_exceptionable, {
|
|
499
671
|
method: "typia.assert",
|
|
500
672
|
path: _path + ".id",
|
|
501
673
|
expected: "number",
|
|
502
674
|
value: input.id
|
|
503
|
-
}, _errorFactory)) && ("
|
|
504
|
-
method: "typia.assert",
|
|
505
|
-
path: _path + ".protocolVersion",
|
|
506
|
-
expected: "number",
|
|
507
|
-
value: input.protocolVersion
|
|
508
|
-
}, _errorFactory)) && ("error" === input.mode || "incremental" === input.mode || "initial" === input.mode || "rebuild" === input.mode || "reload" === input.mode || "unchanged" === input.mode || _assertGuard_1._assertGuard(_exceptionable, {
|
|
675
|
+
}, _errorFactory)) && _ap0(input, _path, true && _exceptionable) && ("error" === input.mode || "incremental" === input.mode || "initial" === input.mode || "rebuild" === input.mode || "reload" === input.mode || "unchanged" === input.mode || _assertGuard_1._assertGuard(_exceptionable, {
|
|
509
676
|
method: "typia.assert",
|
|
510
677
|
path: _path + ".mode",
|
|
511
678
|
expected: "(\"error\" | \"incremental\" | \"initial\" | \"rebuild\" | \"reload\" | \"unchanged\")",
|
|
512
679
|
value: input.mode
|
|
513
|
-
}, _errorFactory)) &&
|
|
680
|
+
}, _errorFactory)) && _ap1(input, _path, true && _exceptionable) && ("boolean" === typeof input.changed || _assertGuard_1._assertGuard(_exceptionable, {
|
|
514
681
|
method: "typia.assert",
|
|
515
682
|
path: _path + ".changed",
|
|
516
683
|
expected: "boolean",
|
|
@@ -525,23 +692,23 @@ class TtscGraphSession {
|
|
|
525
692
|
path: _path + ".dump",
|
|
526
693
|
expected: "(ITtscGraphDump | undefined)",
|
|
527
694
|
value: input.dump
|
|
695
|
+
}, _errorFactory)) && (undefined === input.snapshot || ("object" === typeof input.snapshot && null !== input.snapshot || _assertGuard_1._assertGuard(_exceptionable, {
|
|
696
|
+
method: "typia.assert",
|
|
697
|
+
path: _path + ".snapshot",
|
|
698
|
+
expected: "(ITtscGraphSnapshot.ITransaction | undefined)",
|
|
699
|
+
value: input.snapshot
|
|
700
|
+
}, _errorFactory)) && _ao16(input.snapshot, _path + ".snapshot", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
701
|
+
method: "typia.assert",
|
|
702
|
+
path: _path + ".snapshot",
|
|
703
|
+
expected: "(ITtscGraphSnapshot.ITransaction | undefined)",
|
|
704
|
+
value: input.snapshot
|
|
528
705
|
}, _errorFactory)) && (undefined === input.error || "string" === typeof input.error || _assertGuard_1._assertGuard(_exceptionable, {
|
|
529
706
|
method: "typia.assert",
|
|
530
707
|
path: _path + ".error",
|
|
531
708
|
expected: "(string | undefined)",
|
|
532
709
|
value: input.error
|
|
533
710
|
}, _errorFactory));
|
|
534
|
-
const _ao1 = (input, _path, _exceptionable = true) => ("
|
|
535
|
-
method: "typia.assert",
|
|
536
|
-
path: _path + ".project",
|
|
537
|
-
expected: "string",
|
|
538
|
-
value: input.project
|
|
539
|
-
}, _errorFactory)) && ("string" === typeof input.tsconfig || _assertGuard_1._assertGuard(_exceptionable, {
|
|
540
|
-
method: "typia.assert",
|
|
541
|
-
path: _path + ".tsconfig",
|
|
542
|
-
expected: "string",
|
|
543
|
-
value: input.tsconfig
|
|
544
|
-
}, _errorFactory)) && (("object" === typeof input.provenance && null !== input.provenance || _assertGuard_1._assertGuard(_exceptionable, {
|
|
711
|
+
const _ao1 = (input, _path, _exceptionable = true) => _ap2(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && (("object" === typeof input.provenance && null !== input.provenance || _assertGuard_1._assertGuard(_exceptionable, {
|
|
545
712
|
method: "typia.assert",
|
|
546
713
|
path: _path + ".provenance",
|
|
547
714
|
expected: "ITtscGraphDump.IProvenance",
|
|
@@ -551,74 +718,14 @@ class TtscGraphSession {
|
|
|
551
718
|
path: _path + ".provenance",
|
|
552
719
|
expected: "ITtscGraphDump.IProvenance",
|
|
553
720
|
value: input.provenance
|
|
554
|
-
}, _errorFactory)) && ((
|
|
555
|
-
|
|
556
|
-
path: _path + ".diagnostics",
|
|
557
|
-
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
558
|
-
value: input.diagnostics
|
|
559
|
-
}, _errorFactory)) && input.diagnostics.every((elem, _index15) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
560
|
-
method: "typia.assert",
|
|
561
|
-
path: _path + ".diagnostics[" + _index15 + "]",
|
|
562
|
-
expected: "ITtscGraphDump.IDiagnostic",
|
|
563
|
-
value: elem
|
|
564
|
-
}, _errorFactory)) && _ao8(elem, _path + ".diagnostics[" + _index15 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
565
|
-
method: "typia.assert",
|
|
566
|
-
path: _path + ".diagnostics[" + _index15 + "]",
|
|
567
|
-
expected: "ITtscGraphDump.IDiagnostic",
|
|
568
|
-
value: elem
|
|
569
|
-
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
570
|
-
method: "typia.assert",
|
|
571
|
-
path: _path + ".diagnostics",
|
|
572
|
-
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
573
|
-
value: input.diagnostics
|
|
574
|
-
}, _errorFactory)) && ((Array.isArray(input.nodes) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
575
|
-
method: "typia.assert",
|
|
576
|
-
path: _path + ".nodes",
|
|
577
|
-
expected: "Array<ITtscGraphDump.INode>",
|
|
578
|
-
value: input.nodes
|
|
579
|
-
}, _errorFactory)) && input.nodes.every((elem, _index16) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
580
|
-
method: "typia.assert",
|
|
581
|
-
path: _path + ".nodes[" + _index16 + "]",
|
|
582
|
-
expected: "ITtscGraphDump.INode",
|
|
583
|
-
value: elem
|
|
584
|
-
}, _errorFactory)) && _ao9(elem, _path + ".nodes[" + _index16 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
585
|
-
method: "typia.assert",
|
|
586
|
-
path: _path + ".nodes[" + _index16 + "]",
|
|
587
|
-
expected: "ITtscGraphDump.INode",
|
|
588
|
-
value: elem
|
|
589
|
-
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
590
|
-
method: "typia.assert",
|
|
591
|
-
path: _path + ".nodes",
|
|
592
|
-
expected: "Array<ITtscGraphDump.INode>",
|
|
593
|
-
value: input.nodes
|
|
594
|
-
}, _errorFactory)) && ((Array.isArray(input.edges) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
595
|
-
method: "typia.assert",
|
|
596
|
-
path: _path + ".edges",
|
|
597
|
-
expected: "Array<ITtscGraphDump.IEdge>",
|
|
598
|
-
value: input.edges
|
|
599
|
-
}, _errorFactory)) && input.edges.every((elem, _index17) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
600
|
-
method: "typia.assert",
|
|
601
|
-
path: _path + ".edges[" + _index17 + "]",
|
|
602
|
-
expected: "ITtscGraphDump.IEdge",
|
|
603
|
-
value: elem
|
|
604
|
-
}, _errorFactory)) && _ao15(elem, _path + ".edges[" + _index17 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
605
|
-
method: "typia.assert",
|
|
606
|
-
path: _path + ".edges[" + _index17 + "]",
|
|
607
|
-
expected: "ITtscGraphDump.IEdge",
|
|
608
|
-
value: elem
|
|
609
|
-
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
610
|
-
method: "typia.assert",
|
|
611
|
-
path: _path + ".edges",
|
|
612
|
-
expected: "Array<ITtscGraphDump.IEdge>",
|
|
613
|
-
value: input.edges
|
|
614
|
-
}, _errorFactory));
|
|
615
|
-
const _ao10 = (input, _path, _exceptionable = true) => _ap4(input, _path, true && _exceptionable) && (undefined === input.value || "string" === typeof input.value || _assertGuard_1._assertGuard(_exceptionable, {
|
|
721
|
+
}, _errorFactory)) && _ap4(input, _path, true && _exceptionable) && _ap5(input, _path, true && _exceptionable) && _ap6(input, _path, true && _exceptionable);
|
|
722
|
+
const _ao10 = (input, _path, _exceptionable = true) => _ap13(input, _path, true && _exceptionable) && (undefined === input.value || "string" === typeof input.value || _assertGuard_1._assertGuard(_exceptionable, {
|
|
616
723
|
method: "typia.assert",
|
|
617
724
|
path: _path + ".value",
|
|
618
725
|
expected: "(string | undefined)",
|
|
619
726
|
value: input.value
|
|
620
727
|
}, _errorFactory));
|
|
621
|
-
const _ao11 = (input, _path, _exceptionable = true) =>
|
|
728
|
+
const _ao11 = (input, _path, _exceptionable = true) => _ap13(input, _path, true && _exceptionable) && ("method" === input.kind || "property" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
622
729
|
method: "typia.assert",
|
|
623
730
|
path: _path + ".kind",
|
|
624
731
|
expected: "(\"method\" | \"property\")",
|
|
@@ -628,20 +735,20 @@ class TtscGraphSession {
|
|
|
628
735
|
path: _path + ".line",
|
|
629
736
|
expected: "(number | undefined)",
|
|
630
737
|
value: input.line
|
|
631
|
-
}, _errorFactory)) &&
|
|
632
|
-
const _ao12 = (input, _path, _exceptionable = true) =>
|
|
738
|
+
}, _errorFactory)) && _ap24(input, _path, true && _exceptionable);
|
|
739
|
+
const _ao12 = (input, _path, _exceptionable = true) => _ap13(input, _path, true && _exceptionable) && ((Array.isArray(input.arguments) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
633
740
|
method: "typia.assert",
|
|
634
741
|
path: _path + ".arguments",
|
|
635
742
|
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
636
743
|
value: input.arguments
|
|
637
|
-
}, _errorFactory)) && input.arguments.every((elem,
|
|
744
|
+
}, _errorFactory)) && input.arguments.every((elem, _index29) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
638
745
|
method: "typia.assert",
|
|
639
|
-
path: _path + ".arguments[" +
|
|
746
|
+
path: _path + ".arguments[" + _index29 + "]",
|
|
640
747
|
expected: "ITtscGraphDecorator.IArgument",
|
|
641
748
|
value: elem
|
|
642
|
-
}, _errorFactory)) && _ao13(elem, _path + ".arguments[" +
|
|
749
|
+
}, _errorFactory)) && _ao13(elem, _path + ".arguments[" + _index29 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
643
750
|
method: "typia.assert",
|
|
644
|
-
path: _path + ".arguments[" +
|
|
751
|
+
path: _path + ".arguments[" + _index29 + "]",
|
|
645
752
|
expected: "ITtscGraphDecorator.IArgument",
|
|
646
753
|
value: elem
|
|
647
754
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -692,50 +799,134 @@ class TtscGraphSession {
|
|
|
692
799
|
path: _path + ".to",
|
|
693
800
|
expected: "string",
|
|
694
801
|
value: input.to
|
|
695
|
-
}, _errorFactory)) && (
|
|
802
|
+
}, _errorFactory)) && ("accesses" === input.kind || "calls" === input.kind || "exports" === input.kind || "extends" === input.kind || "implements" === input.kind || "instantiates" === input.kind || "overrides" === input.kind || "renders" === input.kind || "type_ref" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
696
803
|
method: "typia.assert",
|
|
697
804
|
path: _path + ".kind",
|
|
698
|
-
expected:
|
|
805
|
+
expected: "(\"accesses\" | \"calls\" | \"exports\" | \"extends\" | \"implements\" | \"instantiates\" | \"overrides\" | \"renders\" | \"type_ref\")",
|
|
699
806
|
value: input.kind
|
|
700
|
-
}, _errorFactory)) &&
|
|
701
|
-
const
|
|
807
|
+
}, _errorFactory)) && _ap26(input, _path, true && _exceptionable);
|
|
808
|
+
const _ao16 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && _ap7(input, _path, true && _exceptionable) && _ap2(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && _ap8(input, _path, true && _exceptionable) && _ap1(input, _path, true && _exceptionable) && _ap9(input, _path, true && _exceptionable) && ("number" === typeof input.sequence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
702
809
|
method: "typia.assert",
|
|
703
|
-
path: _path + ".
|
|
810
|
+
path: _path + ".sequence",
|
|
704
811
|
expected: "number",
|
|
705
|
-
value: input.
|
|
706
|
-
}, _errorFactory)) &&
|
|
812
|
+
value: input.sequence
|
|
813
|
+
}, _errorFactory)) && ("string" === typeof input.generation || _assertGuard_1._assertGuard(_exceptionable, {
|
|
707
814
|
method: "typia.assert",
|
|
708
|
-
path: _path + ".
|
|
709
|
-
expected: "
|
|
710
|
-
value: input.
|
|
711
|
-
}, _errorFactory)) &&
|
|
815
|
+
path: _path + ".generation",
|
|
816
|
+
expected: "string",
|
|
817
|
+
value: input.generation
|
|
818
|
+
}, _errorFactory)) && (undefined === input.baseSequence || "number" === typeof input.baseSequence || _assertGuard_1._assertGuard(_exceptionable, {
|
|
712
819
|
method: "typia.assert",
|
|
713
|
-
path: _path + ".
|
|
714
|
-
expected: "
|
|
715
|
-
value: input.
|
|
716
|
-
}, _errorFactory)) && (
|
|
820
|
+
path: _path + ".baseSequence",
|
|
821
|
+
expected: "(number | undefined)",
|
|
822
|
+
value: input.baseSequence
|
|
823
|
+
}, _errorFactory)) && (undefined === input.baseGeneration || "string" === typeof input.baseGeneration || _assertGuard_1._assertGuard(_exceptionable, {
|
|
717
824
|
method: "typia.assert",
|
|
718
|
-
path: _path + ".
|
|
719
|
-
expected: "
|
|
720
|
-
value: input.
|
|
721
|
-
}, _errorFactory)) &&
|
|
825
|
+
path: _path + ".baseGeneration",
|
|
826
|
+
expected: "(string | undefined)",
|
|
827
|
+
value: input.baseGeneration
|
|
828
|
+
}, _errorFactory)) && ((Array.isArray(input.upserts) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
722
829
|
method: "typia.assert",
|
|
723
|
-
path: _path + ".
|
|
724
|
-
expected: "
|
|
725
|
-
value: input.
|
|
726
|
-
}, _errorFactory)) && ((
|
|
830
|
+
path: _path + ".upserts",
|
|
831
|
+
expected: "Array<ITtscGraphSnapshot.IShardUpsert>",
|
|
832
|
+
value: input.upserts
|
|
833
|
+
}, _errorFactory)) && input.upserts.every((elem, _index30) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
834
|
+
method: "typia.assert",
|
|
835
|
+
path: _path + ".upserts[" + _index30 + "]",
|
|
836
|
+
expected: "ITtscGraphSnapshot.IShardUpsert",
|
|
837
|
+
value: elem
|
|
838
|
+
}, _errorFactory)) && _ao17(elem, _path + ".upserts[" + _index30 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
839
|
+
method: "typia.assert",
|
|
840
|
+
path: _path + ".upserts[" + _index30 + "]",
|
|
841
|
+
expected: "ITtscGraphSnapshot.IShardUpsert",
|
|
842
|
+
value: elem
|
|
843
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
844
|
+
method: "typia.assert",
|
|
845
|
+
path: _path + ".upserts",
|
|
846
|
+
expected: "Array<ITtscGraphSnapshot.IShardUpsert>",
|
|
847
|
+
value: input.upserts
|
|
848
|
+
}, _errorFactory)) && ((Array.isArray(input.deletes) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
849
|
+
method: "typia.assert",
|
|
850
|
+
path: _path + ".deletes",
|
|
851
|
+
expected: "Array<string>",
|
|
852
|
+
value: input.deletes
|
|
853
|
+
}, _errorFactory)) && input.deletes.every((elem, _index31) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
854
|
+
method: "typia.assert",
|
|
855
|
+
path: _path + ".deletes[" + _index31 + "]",
|
|
856
|
+
expected: "string",
|
|
857
|
+
value: elem
|
|
858
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
859
|
+
method: "typia.assert",
|
|
860
|
+
path: _path + ".deletes",
|
|
861
|
+
expected: "Array<string>",
|
|
862
|
+
value: input.deletes
|
|
863
|
+
}, _errorFactory)) && ((Array.isArray(input.manifest) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
864
|
+
method: "typia.assert",
|
|
865
|
+
path: _path + ".manifest",
|
|
866
|
+
expected: "Array<ITtscGraphSnapshot.IShardReference>",
|
|
867
|
+
value: input.manifest
|
|
868
|
+
}, _errorFactory)) && input.manifest.every((elem, _index32) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
869
|
+
method: "typia.assert",
|
|
870
|
+
path: _path + ".manifest[" + _index32 + "]",
|
|
871
|
+
expected: "ITtscGraphSnapshot.IShardReference",
|
|
872
|
+
value: elem
|
|
873
|
+
}, _errorFactory)) && _ao19(elem, _path + ".manifest[" + _index32 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
874
|
+
method: "typia.assert",
|
|
875
|
+
path: _path + ".manifest[" + _index32 + "]",
|
|
876
|
+
expected: "ITtscGraphSnapshot.IShardReference",
|
|
877
|
+
value: elem
|
|
878
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
879
|
+
method: "typia.assert",
|
|
880
|
+
path: _path + ".manifest",
|
|
881
|
+
expected: "Array<ITtscGraphSnapshot.IShardReference>",
|
|
882
|
+
value: input.manifest
|
|
883
|
+
}, _errorFactory));
|
|
884
|
+
const _ao17 = (input, _path, _exceptionable = true) => _ap11(input, _path, true && _exceptionable) && (("object" === typeof input.shard && null !== input.shard || _assertGuard_1._assertGuard(_exceptionable, {
|
|
885
|
+
method: "typia.assert",
|
|
886
|
+
path: _path + ".shard",
|
|
887
|
+
expected: "ITtscGraphSnapshot.IShard",
|
|
888
|
+
value: input.shard
|
|
889
|
+
}, _errorFactory)) && _ao18(input.shard, _path + ".shard", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
890
|
+
method: "typia.assert",
|
|
891
|
+
path: _path + ".shard",
|
|
892
|
+
expected: "ITtscGraphSnapshot.IShard",
|
|
893
|
+
value: input.shard
|
|
894
|
+
}, _errorFactory));
|
|
895
|
+
const _ao18 = (input, _path, _exceptionable = true) => _ap28(input, _path, true && _exceptionable) && (undefined === input.source || ("object" === typeof input.source && null !== input.source || _assertGuard_1._assertGuard(_exceptionable, {
|
|
896
|
+
method: "typia.assert",
|
|
897
|
+
path: _path + ".source",
|
|
898
|
+
expected: "(ITtscGraphDump.ISourceDigest | undefined)",
|
|
899
|
+
value: input.source
|
|
900
|
+
}, _errorFactory)) && _ao7(input.source, _path + ".source", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
901
|
+
method: "typia.assert",
|
|
902
|
+
path: _path + ".source",
|
|
903
|
+
expected: "(ITtscGraphDump.ISourceDigest | undefined)",
|
|
904
|
+
value: input.source
|
|
905
|
+
}, _errorFactory)) && (undefined === input.config || ("object" === typeof input.config && null !== input.config || _assertGuard_1._assertGuard(_exceptionable, {
|
|
906
|
+
method: "typia.assert",
|
|
907
|
+
path: _path + ".config",
|
|
908
|
+
expected: "(ITtscGraphDump.IFileDigest | undefined)",
|
|
909
|
+
value: input.config
|
|
910
|
+
}, _errorFactory)) && _ao5(input.config, _path + ".config", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
911
|
+
method: "typia.assert",
|
|
912
|
+
path: _path + ".config",
|
|
913
|
+
expected: "(ITtscGraphDump.IFileDigest | undefined)",
|
|
914
|
+
value: input.config
|
|
915
|
+
}, _errorFactory)) && _ap5(input, _path, true && _exceptionable) && _ap6(input, _path, true && _exceptionable) && _ap4(input, _path, true && _exceptionable);
|
|
916
|
+
const _ao19 = (input, _path, _exceptionable = true) => _ap28(input, _path, true && _exceptionable) && _ap11(input, _path, true && _exceptionable);
|
|
917
|
+
const _ao2 = (input, _path, _exceptionable = true) => _ap7(input, _path, true && _exceptionable) && _ap1(input, _path, true && _exceptionable) && _ap8(input, _path, true && _exceptionable) && _ap9(input, _path, true && _exceptionable) && ((Array.isArray(input.sources) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
727
918
|
method: "typia.assert",
|
|
728
919
|
path: _path + ".sources",
|
|
729
920
|
expected: "Array<ITtscGraphDump.ISourceDigest>",
|
|
730
921
|
value: input.sources
|
|
731
|
-
}, _errorFactory)) && input.sources.every((elem,
|
|
922
|
+
}, _errorFactory)) && input.sources.every((elem, _index21) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
732
923
|
method: "typia.assert",
|
|
733
|
-
path: _path + ".sources[" +
|
|
924
|
+
path: _path + ".sources[" + _index21 + "]",
|
|
734
925
|
expected: "ITtscGraphDump.ISourceDigest",
|
|
735
926
|
value: elem
|
|
736
|
-
}, _errorFactory)) && _ao7(elem, _path + ".sources[" +
|
|
927
|
+
}, _errorFactory)) && _ao7(elem, _path + ".sources[" + _index21 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
737
928
|
method: "typia.assert",
|
|
738
|
-
path: _path + ".sources[" +
|
|
929
|
+
path: _path + ".sources[" + _index21 + "]",
|
|
739
930
|
expected: "ITtscGraphDump.ISourceDigest",
|
|
740
931
|
value: elem
|
|
741
932
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -765,14 +956,14 @@ class TtscGraphSession {
|
|
|
765
956
|
path: _path + ".configs",
|
|
766
957
|
expected: "Array<ITtscGraphDump.IFileDigest>",
|
|
767
958
|
value: input.configs
|
|
768
|
-
}, _errorFactory)) && input.configs.every((elem,
|
|
959
|
+
}, _errorFactory)) && input.configs.every((elem, _index22) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
769
960
|
method: "typia.assert",
|
|
770
|
-
path: _path + ".configs[" +
|
|
961
|
+
path: _path + ".configs[" + _index22 + "]",
|
|
771
962
|
expected: "ITtscGraphDump.IFileDigest",
|
|
772
963
|
value: elem
|
|
773
|
-
}, _errorFactory)) && _ao5(elem, _path + ".configs[" +
|
|
964
|
+
}, _errorFactory)) && _ao5(elem, _path + ".configs[" + _index22 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
774
965
|
method: "typia.assert",
|
|
775
|
-
path: _path + ".configs[" +
|
|
966
|
+
path: _path + ".configs[" + _index22 + "]",
|
|
776
967
|
expected: "ITtscGraphDump.IFileDigest",
|
|
777
968
|
value: elem
|
|
778
969
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -785,14 +976,14 @@ class TtscGraphSession {
|
|
|
785
976
|
path: _path + ".roots",
|
|
786
977
|
expected: "Array<ITtscGraphDump.IRootFile>",
|
|
787
978
|
value: input.roots
|
|
788
|
-
}, _errorFactory)) && input.roots.every((elem,
|
|
979
|
+
}, _errorFactory)) && input.roots.every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
789
980
|
method: "typia.assert",
|
|
790
|
-
path: _path + ".roots[" +
|
|
981
|
+
path: _path + ".roots[" + _index23 + "]",
|
|
791
982
|
expected: "ITtscGraphDump.IRootFile",
|
|
792
983
|
value: elem
|
|
793
|
-
}, _errorFactory)) && _ao6(elem, _path + ".roots[" +
|
|
984
|
+
}, _errorFactory)) && _ao6(elem, _path + ".roots[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
794
985
|
method: "typia.assert",
|
|
795
|
-
path: _path + ".roots[" +
|
|
986
|
+
path: _path + ".roots[" + _index23 + "]",
|
|
796
987
|
expected: "ITtscGraphDump.IRootFile",
|
|
797
988
|
value: elem
|
|
798
989
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -801,19 +992,14 @@ class TtscGraphSession {
|
|
|
801
992
|
expected: "Array<ITtscGraphDump.IRootFile>",
|
|
802
993
|
value: input.roots
|
|
803
994
|
}, _errorFactory));
|
|
804
|
-
const _ao5 = (input, _path, _exceptionable = true) =>
|
|
805
|
-
method: "typia.assert",
|
|
806
|
-
path: _path + ".digest",
|
|
807
|
-
expected: "string",
|
|
808
|
-
value: input.digest
|
|
809
|
-
}, _errorFactory));
|
|
995
|
+
const _ao5 = (input, _path, _exceptionable = true) => _ap10(input, _path, true && _exceptionable) && _ap11(input, _path, true && _exceptionable);
|
|
810
996
|
const _ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.config || _assertGuard_1._assertGuard(_exceptionable, {
|
|
811
997
|
method: "typia.assert",
|
|
812
998
|
path: _path + ".config",
|
|
813
999
|
expected: "string",
|
|
814
1000
|
value: input.config
|
|
815
|
-
}, _errorFactory)) &&
|
|
816
|
-
const _ao7 = (input, _path, _exceptionable = true) =>
|
|
1001
|
+
}, _errorFactory)) && _ap10(input, _path, true && _exceptionable);
|
|
1002
|
+
const _ao7 = (input, _path, _exceptionable = true) => _ap10(input, _path, true && _exceptionable) && ("string" === typeof input.checkerDigest || _assertGuard_1._assertGuard(_exceptionable, {
|
|
817
1003
|
method: "typia.assert",
|
|
818
1004
|
path: _path + ".checkerDigest",
|
|
819
1005
|
expected: "string",
|
|
@@ -824,7 +1010,7 @@ class TtscGraphSession {
|
|
|
824
1010
|
expected: "string",
|
|
825
1011
|
value: input.diskDigest
|
|
826
1012
|
}, _errorFactory));
|
|
827
|
-
const _ao8 = (input, _path, _exceptionable = true) =>
|
|
1013
|
+
const _ao8 = (input, _path, _exceptionable = true) => _ap10(input, _path, true && _exceptionable) && ("number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
|
|
828
1014
|
method: "typia.assert",
|
|
829
1015
|
path: _path + ".line",
|
|
830
1016
|
expected: "number",
|
|
@@ -850,23 +1036,27 @@ class TtscGraphSession {
|
|
|
850
1036
|
expected: "string",
|
|
851
1037
|
value: input.message
|
|
852
1038
|
}, _errorFactory));
|
|
853
|
-
const _ao9 = (input, _path, _exceptionable = true) =>
|
|
854
|
-
const _io0 = input => "number" === typeof input.id &&
|
|
855
|
-
const _io1 = input =>
|
|
856
|
-
const _io10 = input =>
|
|
857
|
-
const _io11 = input =>
|
|
858
|
-
const _io12 = input =>
|
|
1039
|
+
const _ao9 = (input, _path, _exceptionable = true) => _ap12(input, _path, true && _exceptionable) && _ap13(input, _path, true && _exceptionable) && _ap14(input, _path, true && _exceptionable) && _ap10(input, _path, true && _exceptionable) && _ap15(input, _path, true && _exceptionable) && _ap16(input, _path, true && _exceptionable) && _ap17(input, _path, true && _exceptionable) && _ap18(input, _path, true && _exceptionable) && _ap19(input, _path, true && _exceptionable) && _ap20(input, _path, true && _exceptionable) && _ap21(input, _path, true && _exceptionable) && _ap22(input, _path, true && _exceptionable) && _ap23(input, _path, true && _exceptionable) && _ap24(input, _path, true && _exceptionable) && _ap25(input, _path, true && _exceptionable) && _ap26(input, _path, true && _exceptionable) && _ap27(input, _path, true && _exceptionable);
|
|
1040
|
+
const _io0 = input => "number" === typeof input.id && _ip0(input) && ("error" === input.mode || "incremental" === input.mode || "initial" === input.mode || "rebuild" === input.mode || "reload" === input.mode || "unchanged" === input.mode) && _ip1(input) && "boolean" === typeof input.changed && (undefined === input.dump || "object" === typeof input.dump && null !== input.dump && _io1(input.dump)) && (undefined === input.snapshot || "object" === typeof input.snapshot && null !== input.snapshot && _io16(input.snapshot)) && (undefined === input.error || "string" === typeof input.error);
|
|
1041
|
+
const _io1 = input => _ip2(input) && _ip3(input) && ("object" === typeof input.provenance && null !== input.provenance && _io2(input.provenance)) && _ip4(input) && _ip5(input) && _ip6(input);
|
|
1042
|
+
const _io10 = input => _ip13(input) && (undefined === input.value || "string" === typeof input.value);
|
|
1043
|
+
const _io11 = input => _ip13(input) && ("method" === input.kind || "property" === input.kind) && (undefined === input.line || "number" === typeof input.line) && _ip24(input);
|
|
1044
|
+
const _io12 = input => _ip13(input) && (Array.isArray(input.arguments) && input.arguments.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io13(elem)));
|
|
859
1045
|
const _io13 = input => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal;
|
|
860
1046
|
const _io14 = 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);
|
|
861
|
-
const _io15 = input => "string" === typeof input.from && "string" === typeof input.to &&
|
|
862
|
-
const
|
|
1047
|
+
const _io15 = input => "string" === typeof input.from && "string" === typeof input.to && ("accesses" === input.kind || "calls" === input.kind || "exports" === input.kind || "extends" === input.kind || "implements" === input.kind || "instantiates" === input.kind || "overrides" === input.kind || "renders" === input.kind || "type_ref" === input.kind) && _ip26(input);
|
|
1048
|
+
const _io16 = input => _ip0(input) && _ip7(input) && _ip2(input) && _ip3(input) && _ip8(input) && _ip1(input) && _ip9(input) && "number" === typeof input.sequence && "string" === typeof input.generation && (undefined === input.baseSequence || "number" === typeof input.baseSequence) && (undefined === input.baseGeneration || "string" === typeof input.baseGeneration) && (Array.isArray(input.upserts) && input.upserts.every(elem => "object" === typeof elem && null !== elem && _io17(elem))) && (Array.isArray(input.deletes) && input.deletes.every(elem => "string" === typeof elem)) && (Array.isArray(input.manifest) && input.manifest.every(elem => "object" === typeof elem && null !== elem && _io19(elem)));
|
|
1049
|
+
const _io17 = input => _ip11(input) && ("object" === typeof input.shard && null !== input.shard && _io18(input.shard));
|
|
1050
|
+
const _io18 = input => _ip28(input) && (undefined === input.source || "object" === typeof input.source && null !== input.source && _io7(input.source)) && (undefined === input.config || "object" === typeof input.config && null !== input.config && _io5(input.config)) && _ip5(input) && _ip6(input) && _ip4(input);
|
|
1051
|
+
const _io19 = input => _ip28(input) && _ip11(input);
|
|
1052
|
+
const _io2 = input => _ip7(input) && _ip1(input) && _ip8(input) && _ip9(input) && (Array.isArray(input.sources) && input.sources.every(elem => "object" === typeof elem && null !== elem && _io7(elem)));
|
|
863
1053
|
const _io3 = input => "string" === typeof input.tool && "string" === typeof input.version && "string" === typeof input.typescript;
|
|
864
1054
|
const _io4 = input => Array.isArray(input.configs) && input.configs.every(elem => "object" === typeof elem && null !== elem && _io5(elem)) && (Array.isArray(input.roots) && input.roots.every(elem => "object" === typeof elem && null !== elem && _io6(elem)));
|
|
865
|
-
const _io5 = input =>
|
|
866
|
-
const _io6 = input => "string" === typeof input.config &&
|
|
867
|
-
const _io7 = input =>
|
|
868
|
-
const _io8 = input =>
|
|
869
|
-
const _io9 = input =>
|
|
1055
|
+
const _io5 = input => _ip10(input) && _ip11(input);
|
|
1056
|
+
const _io6 = input => "string" === typeof input.config && _ip10(input);
|
|
1057
|
+
const _io7 = input => _ip10(input) && "string" === typeof input.checkerDigest && "string" === typeof input.diskDigest;
|
|
1058
|
+
const _io8 = input => _ip10(input) && "number" === typeof input.line && "number" === typeof input.column && "number" === typeof input.code && ("error" === input.category || "warning" === input.category) && "string" === typeof input.message;
|
|
1059
|
+
const _io9 = input => _ip12(input) && _ip13(input) && _ip14(input) && _ip10(input) && _ip15(input) && _ip16(input) && _ip17(input) && _ip18(input) && _ip19(input) && _ip20(input) && _ip21(input) && _ip22(input) && _ip23(input) && _ip24(input) && _ip25(input) && _ip26(input) && _ip27(input);
|
|
870
1060
|
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
871
1061
|
let _errorFactory;
|
|
872
1062
|
return (input, errorFactory) => {
|
|
@@ -900,11 +1090,14 @@ class TtscGraphSession {
|
|
|
900
1090
|
// shape: an older producer resolves no value set, so a union comes back
|
|
901
1091
|
// looking like a type with no members. Hold the body to its own number too,
|
|
902
1092
|
// once the frame is understood.
|
|
903
|
-
if (response.dump !== undefined &&
|
|
904
|
-
response.dump.provenance.schemaVersion !== loadGraph_1.DUMP_SCHEMA_VERSION)
|
|
1093
|
+
if ((response.dump !== undefined &&
|
|
1094
|
+
response.dump.provenance.schemaVersion !== loadGraph_1.DUMP_SCHEMA_VERSION) ||
|
|
1095
|
+
(response.snapshot !== undefined &&
|
|
1096
|
+
response.snapshot.schemaVersion !== loadGraph_1.DUMP_SCHEMA_VERSION)) {
|
|
905
1097
|
// Session-wide, for the same reason the protocol mismatch above is: it is
|
|
906
1098
|
// the wrong binary, not one bad frame.
|
|
907
|
-
this.failChild(child, new Error(`@ttsc/graph: ttscgraph sends dump schema v${String(response.dump
|
|
1099
|
+
this.failChild(child, new Error(`@ttsc/graph: ttscgraph sends dump schema v${String(response.dump?.provenance.schemaVersion ??
|
|
1100
|
+
response.snapshot?.schemaVersion)}, this client reads v${String(loadGraph_1.DUMP_SCHEMA_VERSION)}. ` +
|
|
908
1101
|
"Install a matching `ttsc` (the binary resolves from the target " +
|
|
909
1102
|
"project, or from TTSC_GRAPH_BINARY)."));
|
|
910
1103
|
return;
|
|
@@ -919,6 +1112,7 @@ class TtscGraphSession {
|
|
|
919
1112
|
return;
|
|
920
1113
|
this.child = undefined;
|
|
921
1114
|
this.current = undefined;
|
|
1115
|
+
this.shardStore = new TtscGraphShardStore_1.TtscGraphShardStore();
|
|
922
1116
|
child.lines.close();
|
|
923
1117
|
this.failPending(error, child);
|
|
924
1118
|
if (terminate)
|