@ttsc/graph 0.19.2 → 0.20.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/TtscGraphApplication.js +5 -1
- package/lib/TtscGraphApplication.js.map +1 -1
- package/lib/bin.js +15 -3
- package/lib/bin.js.map +1 -1
- package/lib/index.d.ts +13 -2
- package/lib/index.js +25 -30
- package/lib/index.js.map +1 -1
- package/lib/launcherArgs.d.ts +24 -0
- package/lib/launcherArgs.js +136 -0
- package/lib/launcherArgs.js.map +1 -0
- package/lib/model/TtscGraphMemory.d.ts +9 -5
- package/lib/model/TtscGraphMemory.js +35 -58
- package/lib/model/TtscGraphMemory.js.map +1 -1
- package/lib/model/TtscGraphNodeId.d.ts +17 -0
- package/lib/model/TtscGraphNodeId.js +69 -0
- package/lib/model/TtscGraphNodeId.js.map +1 -0
- package/lib/model/TtscGraphSession.d.ts +23 -7
- package/lib/model/TtscGraphSession.js +423 -171
- package/lib/model/TtscGraphSession.js.map +1 -1
- package/lib/model/TtscGraphSourceReader.d.ts +27 -0
- package/lib/model/TtscGraphSourceReader.js +97 -0
- package/lib/model/TtscGraphSourceReader.js.map +1 -0
- package/lib/model/loadGraph.d.ts +14 -0
- package/lib/model/loadGraph.js +256 -143
- package/lib/model/loadGraph.js.map +1 -1
- package/lib/reduce.d.ts +4 -1
- package/lib/reduce.js +112 -29
- package/lib/reduce.js.map +1 -1
- package/lib/resolveGraphBinary.d.ts +9 -3
- package/lib/resolveGraphBinary.js +9 -3
- package/lib/resolveGraphBinary.js.map +1 -1
- package/lib/server/createServer.js +22 -11
- package/lib/server/createServer.js.map +1 -1
- package/lib/server/pathPolicy.d.ts +6 -0
- package/lib/server/pathPolicy.js +10 -1
- package/lib/server/pathPolicy.js.map +1 -1
- package/lib/server/resolveHandle.js +22 -18
- package/lib/server/resolveHandle.js.map +1 -1
- package/lib/server/resultAudit.d.ts +56 -14
- package/lib/server/resultAudit.js +90 -24
- package/lib/server/resultAudit.js.map +1 -1
- package/lib/server/resultNext.d.ts +5 -0
- package/lib/server/resultNext.js.map +1 -1
- package/lib/server/runDetails.d.ts +9 -2
- package/lib/server/runDetails.js +132 -157
- package/lib/server/runDetails.js.map +1 -1
- package/lib/server/runEntrypoints.js +1 -1
- 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/runTour.js +113 -30
- package/lib/server/runTour.js.map +1 -1
- package/lib/server/runTrace.d.ts +22 -0
- package/lib/server/runTrace.js +293 -63
- package/lib/server/runTrace.js.map +1 -1
- package/lib/structures/ITtscGraphApplication.d.ts +8 -7
- package/lib/structures/ITtscGraphDetails.d.ts +18 -8
- package/lib/structures/ITtscGraphDump.d.ts +13 -13
- package/lib/structures/ITtscGraphNode.d.ts +71 -0
- package/lib/structures/ITtscGraphTour.d.ts +1 -1
- package/lib/structures/ITtscGraphTrace.d.ts +1 -1
- package/lib/view.js +18 -28
- package/lib/view.js.map +1 -1
- package/package.json +7 -4
- package/src/TtscGraphApplication.ts +8 -1
- package/src/bin.ts +13 -3
- package/src/index.ts +35 -27
- package/src/launcherArgs.ts +168 -0
- package/src/model/TtscGraphMemory.ts +34 -60
- package/src/model/TtscGraphNodeId.ts +77 -0
- package/src/model/TtscGraphSession.ts +253 -53
- package/src/model/TtscGraphSourceReader.ts +117 -0
- package/src/model/loadGraph.ts +6 -1
- package/src/reduce.ts +136 -31
- package/src/resolveGraphBinary.ts +9 -3
- package/src/server/createServer.ts +12 -2
- package/src/server/pathPolicy.ts +10 -1
- package/src/server/resolveHandle.ts +21 -22
- package/src/server/resultAudit.ts +93 -23
- package/src/server/resultNext.ts +6 -0
- package/src/server/runDetails.ts +134 -165
- package/src/server/runEntrypoints.ts +1 -1
- package/src/server/runLookup.ts +1 -1
- package/src/server/runTour.ts +133 -39
- package/src/server/runTrace.ts +401 -65
- package/src/structures/ITtscGraphApplication.ts +8 -7
- package/src/structures/ITtscGraphDetails.ts +18 -8
- package/src/structures/ITtscGraphDump.ts +13 -13
- package/src/structures/ITtscGraphNode.ts +80 -0
- package/src/structures/ITtscGraphTour.ts +1 -1
- package/src/structures/ITtscGraphTrace.ts +1 -1
- package/src/view.ts +25 -23
package/lib/model/loadGraph.js
CHANGED
|
@@ -36,6 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.DUMP_SCHEMA_VERSION = void 0;
|
|
39
40
|
exports.loadGraph = loadGraph;
|
|
40
41
|
const _assertGuard_1 = __importStar(require("typia/lib/internal/_assertGuard"));
|
|
41
42
|
const node_child_process_1 = require("node:child_process");
|
|
@@ -54,8 +55,13 @@ const MAX_DUMP_BYTES = 1024 * 1024 * 1024;
|
|
|
54
55
|
* `packages/ttsc/internal/graph/provenance.go`. The two are hand-synchronized,
|
|
55
56
|
* and `dump_schema_version_matches_the_typescript_client_test.go` reads this
|
|
56
57
|
* constant out of this file and fails if the pair drifts.
|
|
58
|
+
*
|
|
59
|
+
* Exported because the resident session reads the same dump body over the serve
|
|
60
|
+
* protocol and has to hold it to the same number: the envelope's version and
|
|
61
|
+
* the body's are independent, so a producer can speak this protocol and still
|
|
62
|
+
* send a body from another schema.
|
|
57
63
|
*/
|
|
58
|
-
|
|
64
|
+
exports.DUMP_SCHEMA_VERSION = 6;
|
|
59
65
|
/**
|
|
60
66
|
* Build the resident {@link TtscGraphMemory} for a project by running `ttscgraph
|
|
61
67
|
* dump` once and loading its JSON. This is the one-shot path for direct callers
|
|
@@ -114,17 +120,31 @@ function parseDump(json) {
|
|
|
114
120
|
return input => "object" === typeof input && null !== input && _io0(input);
|
|
115
121
|
})()(value) ? value.provenance.schemaVersion
|
|
116
122
|
: undefined;
|
|
117
|
-
if (version !== DUMP_SCHEMA_VERSION) {
|
|
118
|
-
throw new Error(`@ttsc/graph: ttscgraph dump is schema ${version === undefined ? "unknown" : `v${String(version)}`}, this client reads v${String(DUMP_SCHEMA_VERSION)}. ` +
|
|
123
|
+
if (version !== exports.DUMP_SCHEMA_VERSION) {
|
|
124
|
+
throw new Error(`@ttsc/graph: ttscgraph dump is schema ${version === undefined ? "unknown" : `v${String(version)}`}, this client reads v${String(exports.DUMP_SCHEMA_VERSION)}. ` +
|
|
119
125
|
"Install a matching `ttsc` (the binary resolves from the target " +
|
|
120
126
|
"project, or from TTSC_GRAPH_BINARY).");
|
|
121
127
|
}
|
|
122
128
|
return (() => {
|
|
123
129
|
const _ip0 = input => "string" === typeof input["file"];
|
|
130
|
+
const _ip1 = input => "string" === typeof input["id"];
|
|
131
|
+
const _ip2 = input => true === _iv0.has(input["kind"]);
|
|
124
132
|
const _iv0 = new Set(["class", "enum", "external_symbol", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
|
|
125
|
-
const
|
|
133
|
+
const _ip3 = input => "string" === typeof input["name"];
|
|
134
|
+
const _ip4 = input => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"];
|
|
135
|
+
const _ip5 = input => "boolean" === typeof input["external"];
|
|
136
|
+
const _ip6 = input => undefined === input["ignored"] || "boolean" === typeof input["ignored"];
|
|
137
|
+
const _ip7 = input => undefined === input["exported"] || "boolean" === typeof input["exported"];
|
|
138
|
+
const _ip8 = input => undefined === input["closure"] || "boolean" === typeof input["closure"];
|
|
139
|
+
const _ip9 = input => undefined === input["modifiers"] || Array.isArray(input["modifiers"]) && input["modifiers"].every(elem => true === _iv1.has(elem));
|
|
126
140
|
const _iv1 = new Set(["abstract", "async", "const", "declare", "default", "export", "optional", "private", "protected", "public", "readonly", "static"]);
|
|
127
|
-
const
|
|
141
|
+
const _ip10 = input => undefined === input["literals"] || Array.isArray(input["literals"]) && input["literals"].every(elem => "string" === typeof elem);
|
|
142
|
+
const _ip11 = input => undefined === input["enumMembers"] || Array.isArray(input["enumMembers"]) && input["enumMembers"].every(elem => "object" === typeof elem && null !== elem && _io9(elem));
|
|
143
|
+
const _ip12 = input => undefined === input["objectMembers"] || Array.isArray(input["objectMembers"]) && input["objectMembers"].every(elem => "object" === typeof elem && null !== elem && _io10(elem));
|
|
144
|
+
const _ip13 = input => undefined === input["decorators"] || Array.isArray(input["decorators"]) && input["decorators"].every(elem => "object" === typeof elem && null !== elem && _io11(elem));
|
|
145
|
+
const _ip14 = input => undefined === input["signature"] || "string" === typeof input["signature"];
|
|
146
|
+
const _ip15 = input => undefined === input["evidence"] || "object" === typeof input["evidence"] && null !== input["evidence"] && _io13(input["evidence"]);
|
|
147
|
+
const _ip16 = input => undefined === input["implementation"] || "object" === typeof input["implementation"] && null !== input["implementation"] && _io13(input["implementation"]);
|
|
128
148
|
const _iv2 = new Set(["accesses", "calls", "contains", "decorates", "dispatches", "exports", "extends", "implements", "imports", "instantiates", "overrides", "renders", "tests", "type_ref"]);
|
|
129
149
|
const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
130
150
|
method: "typia.assert",
|
|
@@ -132,27 +152,181 @@ function parseDump(json) {
|
|
|
132
152
|
expected: "string",
|
|
133
153
|
value: input["file"]
|
|
134
154
|
}, _errorFactory);
|
|
155
|
+
const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["id"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
156
|
+
method: "typia.assert",
|
|
157
|
+
path: _path + ".id",
|
|
158
|
+
expected: "string",
|
|
159
|
+
value: input["id"]
|
|
160
|
+
}, _errorFactory);
|
|
161
|
+
const _ap2 = (input, _path, _exceptionable = true) => true === _av0.has(input["kind"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
162
|
+
method: "typia.assert",
|
|
163
|
+
path: _path + ".kind",
|
|
164
|
+
expected: _ae0,
|
|
165
|
+
value: input["kind"]
|
|
166
|
+
}, _errorFactory);
|
|
135
167
|
const _av0 = new Set(["class", "enum", "external_symbol", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
|
|
136
168
|
const _ae0 = "(\"class\" | \"enum\" | \"external_symbol\" | \"file\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"namespace\" | \"package\" | \"parameter\" | \"property\" | \"type\" | \"variable\")";
|
|
137
|
-
const
|
|
169
|
+
const _ap3 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
138
170
|
method: "typia.assert",
|
|
139
171
|
path: _path + ".name",
|
|
140
172
|
expected: "string",
|
|
141
173
|
value: input["name"]
|
|
142
174
|
}, _errorFactory);
|
|
175
|
+
const _ap4 = (input, _path, _exceptionable = true) => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
176
|
+
method: "typia.assert",
|
|
177
|
+
path: _path + ".qualifiedName",
|
|
178
|
+
expected: "(string | undefined)",
|
|
179
|
+
value: input["qualifiedName"]
|
|
180
|
+
}, _errorFactory);
|
|
181
|
+
const _ap5 = (input, _path, _exceptionable = true) => "boolean" === typeof input["external"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
182
|
+
method: "typia.assert",
|
|
183
|
+
path: _path + ".external",
|
|
184
|
+
expected: "boolean",
|
|
185
|
+
value: input["external"]
|
|
186
|
+
}, _errorFactory);
|
|
187
|
+
const _ap6 = (input, _path, _exceptionable = true) => undefined === input["ignored"] || "boolean" === typeof input["ignored"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
188
|
+
method: "typia.assert",
|
|
189
|
+
path: _path + ".ignored",
|
|
190
|
+
expected: "(boolean | undefined)",
|
|
191
|
+
value: input["ignored"]
|
|
192
|
+
}, _errorFactory);
|
|
193
|
+
const _ap7 = (input, _path, _exceptionable = true) => undefined === input["exported"] || "boolean" === typeof input["exported"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
194
|
+
method: "typia.assert",
|
|
195
|
+
path: _path + ".exported",
|
|
196
|
+
expected: "(boolean | undefined)",
|
|
197
|
+
value: input["exported"]
|
|
198
|
+
}, _errorFactory);
|
|
199
|
+
const _ap8 = (input, _path, _exceptionable = true) => undefined === input["closure"] || "boolean" === typeof input["closure"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
200
|
+
method: "typia.assert",
|
|
201
|
+
path: _path + ".closure",
|
|
202
|
+
expected: "(boolean | undefined)",
|
|
203
|
+
value: input["closure"]
|
|
204
|
+
}, _errorFactory);
|
|
205
|
+
const _ap9 = (input, _path, _exceptionable = true) => undefined === input["modifiers"] || (Array.isArray(input["modifiers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
206
|
+
method: "typia.assert",
|
|
207
|
+
path: _path + ".modifiers",
|
|
208
|
+
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
209
|
+
value: input["modifiers"]
|
|
210
|
+
}, _errorFactory)) && input["modifiers"].every((elem, _index21) => true === _av1.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
211
|
+
method: "typia.assert",
|
|
212
|
+
path: _path + ".modifiers[" + _index21 + "]",
|
|
213
|
+
expected: _ae1,
|
|
214
|
+
value: elem
|
|
215
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
216
|
+
method: "typia.assert",
|
|
217
|
+
path: _path + ".modifiers",
|
|
218
|
+
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
219
|
+
value: input["modifiers"]
|
|
220
|
+
}, _errorFactory);
|
|
143
221
|
const _av1 = new Set(["abstract", "async", "const", "declare", "default", "export", "optional", "private", "protected", "public", "readonly", "static"]);
|
|
144
222
|
const _ae1 = "(\"abstract\" | \"async\" | \"const\" | \"declare\" | \"default\" | \"export\" | \"optional\" | \"private\" | \"protected\" | \"public\" | \"readonly\" | \"static\")";
|
|
145
|
-
const
|
|
223
|
+
const _ap10 = (input, _path, _exceptionable = true) => undefined === input["literals"] || (Array.isArray(input["literals"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
224
|
+
method: "typia.assert",
|
|
225
|
+
path: _path + ".literals",
|
|
226
|
+
expected: "(Array<string> | undefined)",
|
|
227
|
+
value: input["literals"]
|
|
228
|
+
}, _errorFactory)) && input["literals"].every((elem, _index22) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
229
|
+
method: "typia.assert",
|
|
230
|
+
path: _path + ".literals[" + _index22 + "]",
|
|
231
|
+
expected: "string",
|
|
232
|
+
value: elem
|
|
233
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
234
|
+
method: "typia.assert",
|
|
235
|
+
path: _path + ".literals",
|
|
236
|
+
expected: "(Array<string> | undefined)",
|
|
237
|
+
value: input["literals"]
|
|
238
|
+
}, _errorFactory);
|
|
239
|
+
const _ap11 = (input, _path, _exceptionable = true) => undefined === input["enumMembers"] || (Array.isArray(input["enumMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
240
|
+
method: "typia.assert",
|
|
241
|
+
path: _path + ".enumMembers",
|
|
242
|
+
expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
|
|
243
|
+
value: input["enumMembers"]
|
|
244
|
+
}, _errorFactory)) && input["enumMembers"].every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
245
|
+
method: "typia.assert",
|
|
246
|
+
path: _path + ".enumMembers[" + _index23 + "]",
|
|
247
|
+
expected: "ITtscGraphNode.IEnumMember",
|
|
248
|
+
value: elem
|
|
249
|
+
}, _errorFactory)) && _ao9(elem, _path + ".enumMembers[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
250
|
+
method: "typia.assert",
|
|
251
|
+
path: _path + ".enumMembers[" + _index23 + "]",
|
|
252
|
+
expected: "ITtscGraphNode.IEnumMember",
|
|
253
|
+
value: elem
|
|
254
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
255
|
+
method: "typia.assert",
|
|
256
|
+
path: _path + ".enumMembers",
|
|
257
|
+
expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
|
|
258
|
+
value: input["enumMembers"]
|
|
259
|
+
}, _errorFactory);
|
|
260
|
+
const _ap12 = (input, _path, _exceptionable = true) => undefined === input["objectMembers"] || (Array.isArray(input["objectMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
261
|
+
method: "typia.assert",
|
|
262
|
+
path: _path + ".objectMembers",
|
|
263
|
+
expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
|
|
264
|
+
value: input["objectMembers"]
|
|
265
|
+
}, _errorFactory)) && input["objectMembers"].every((elem, _index24) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
266
|
+
method: "typia.assert",
|
|
267
|
+
path: _path + ".objectMembers[" + _index24 + "]",
|
|
268
|
+
expected: "ITtscGraphNode.IObjectMember",
|
|
269
|
+
value: elem
|
|
270
|
+
}, _errorFactory)) && _ao10(elem, _path + ".objectMembers[" + _index24 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
271
|
+
method: "typia.assert",
|
|
272
|
+
path: _path + ".objectMembers[" + _index24 + "]",
|
|
273
|
+
expected: "ITtscGraphNode.IObjectMember",
|
|
274
|
+
value: elem
|
|
275
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
276
|
+
method: "typia.assert",
|
|
277
|
+
path: _path + ".objectMembers",
|
|
278
|
+
expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
|
|
279
|
+
value: input["objectMembers"]
|
|
280
|
+
}, _errorFactory);
|
|
281
|
+
const _ap13 = (input, _path, _exceptionable = true) => undefined === input["decorators"] || (Array.isArray(input["decorators"]) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
282
|
+
method: "typia.assert",
|
|
283
|
+
path: _path + ".decorators",
|
|
284
|
+
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
285
|
+
value: input["decorators"]
|
|
286
|
+
}, _errorFactory)) && input["decorators"].every((elem, _index25) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
287
|
+
method: "typia.assert",
|
|
288
|
+
path: _path + ".decorators[" + _index25 + "]",
|
|
289
|
+
expected: "ITtscGraphDecorator",
|
|
290
|
+
value: elem
|
|
291
|
+
}, _errorFactory)) && _ao11(elem, _path + ".decorators[" + _index25 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
292
|
+
method: "typia.assert",
|
|
293
|
+
path: _path + ".decorators[" + _index25 + "]",
|
|
294
|
+
expected: "ITtscGraphDecorator",
|
|
295
|
+
value: elem
|
|
296
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
297
|
+
method: "typia.assert",
|
|
298
|
+
path: _path + ".decorators",
|
|
299
|
+
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
300
|
+
value: input["decorators"]
|
|
301
|
+
}, _errorFactory);
|
|
302
|
+
const _ap14 = (input, _path, _exceptionable = true) => undefined === input["signature"] || "string" === typeof input["signature"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
303
|
+
method: "typia.assert",
|
|
304
|
+
path: _path + ".signature",
|
|
305
|
+
expected: "(string | undefined)",
|
|
306
|
+
value: input["signature"]
|
|
307
|
+
}, _errorFactory);
|
|
308
|
+
const _ap15 = (input, _path, _exceptionable = true) => undefined === input["evidence"] || ("object" === typeof input["evidence"] && null !== input["evidence"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
146
309
|
method: "typia.assert",
|
|
147
310
|
path: _path + ".evidence",
|
|
148
311
|
expected: "(ITtscGraphSpan | undefined)",
|
|
149
312
|
value: input["evidence"]
|
|
150
|
-
}, _errorFactory)) &&
|
|
313
|
+
}, _errorFactory)) && _ao13(input["evidence"], _path + ".evidence", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
151
314
|
method: "typia.assert",
|
|
152
315
|
path: _path + ".evidence",
|
|
153
316
|
expected: "(ITtscGraphSpan | undefined)",
|
|
154
317
|
value: input["evidence"]
|
|
155
318
|
}, _errorFactory);
|
|
319
|
+
const _ap16 = (input, _path, _exceptionable = true) => undefined === input["implementation"] || ("object" === typeof input["implementation"] && null !== input["implementation"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
320
|
+
method: "typia.assert",
|
|
321
|
+
path: _path + ".implementation",
|
|
322
|
+
expected: "(ITtscGraphSpan | undefined)",
|
|
323
|
+
value: input["implementation"]
|
|
324
|
+
}, _errorFactory)) && _ao13(input["implementation"], _path + ".implementation", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
325
|
+
method: "typia.assert",
|
|
326
|
+
path: _path + ".implementation",
|
|
327
|
+
expected: "(ITtscGraphSpan | undefined)",
|
|
328
|
+
value: input["implementation"]
|
|
329
|
+
}, _errorFactory);
|
|
156
330
|
const _av2 = new Set(["accesses", "calls", "contains", "decorates", "dispatches", "exports", "extends", "implements", "imports", "instantiates", "overrides", "renders", "tests", "type_ref"]);
|
|
157
331
|
const _ae2 = "(\"accesses\" | \"calls\" | \"contains\" | \"decorates\" | \"dispatches\" | \"exports\" | \"extends\" | \"implements\" | \"imports\" | \"instantiates\" | \"overrides\" | \"renders\" | \"tests\" | \"type_ref\")";
|
|
158
332
|
const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.project || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -180,14 +354,14 @@ function parseDump(json) {
|
|
|
180
354
|
path: _path + ".diagnostics",
|
|
181
355
|
expected: "Array<ITtscGraphDump.IDiagnostic>",
|
|
182
356
|
value: input.diagnostics
|
|
183
|
-
}, _errorFactory)) && input.diagnostics.every((elem,
|
|
357
|
+
}, _errorFactory)) && input.diagnostics.every((elem, _index14) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
184
358
|
method: "typia.assert",
|
|
185
|
-
path: _path + ".diagnostics[" +
|
|
359
|
+
path: _path + ".diagnostics[" + _index14 + "]",
|
|
186
360
|
expected: "ITtscGraphDump.IDiagnostic",
|
|
187
361
|
value: elem
|
|
188
|
-
}, _errorFactory)) && _ao7(elem, _path + ".diagnostics[" +
|
|
362
|
+
}, _errorFactory)) && _ao7(elem, _path + ".diagnostics[" + _index14 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
189
363
|
method: "typia.assert",
|
|
190
|
-
path: _path + ".diagnostics[" +
|
|
364
|
+
path: _path + ".diagnostics[" + _index14 + "]",
|
|
191
365
|
expected: "ITtscGraphDump.IDiagnostic",
|
|
192
366
|
value: elem
|
|
193
367
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -200,14 +374,14 @@ function parseDump(json) {
|
|
|
200
374
|
path: _path + ".nodes",
|
|
201
375
|
expected: "Array<ITtscGraphDump.INode>",
|
|
202
376
|
value: input.nodes
|
|
203
|
-
}, _errorFactory)) && input.nodes.every((elem,
|
|
377
|
+
}, _errorFactory)) && input.nodes.every((elem, _index15) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
204
378
|
method: "typia.assert",
|
|
205
|
-
path: _path + ".nodes[" +
|
|
379
|
+
path: _path + ".nodes[" + _index15 + "]",
|
|
206
380
|
expected: "ITtscGraphDump.INode",
|
|
207
381
|
value: elem
|
|
208
|
-
}, _errorFactory)) && _ao8(elem, _path + ".nodes[" +
|
|
382
|
+
}, _errorFactory)) && _ao8(elem, _path + ".nodes[" + _index15 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
209
383
|
method: "typia.assert",
|
|
210
|
-
path: _path + ".nodes[" +
|
|
384
|
+
path: _path + ".nodes[" + _index15 + "]",
|
|
211
385
|
expected: "ITtscGraphDump.INode",
|
|
212
386
|
value: elem
|
|
213
387
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -220,14 +394,14 @@ function parseDump(json) {
|
|
|
220
394
|
path: _path + ".edges",
|
|
221
395
|
expected: "Array<ITtscGraphDump.IEdge>",
|
|
222
396
|
value: input.edges
|
|
223
|
-
}, _errorFactory)) && input.edges.every((elem,
|
|
397
|
+
}, _errorFactory)) && input.edges.every((elem, _index16) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
224
398
|
method: "typia.assert",
|
|
225
|
-
path: _path + ".edges[" +
|
|
399
|
+
path: _path + ".edges[" + _index16 + "]",
|
|
226
400
|
expected: "ITtscGraphDump.IEdge",
|
|
227
401
|
value: elem
|
|
228
|
-
}, _errorFactory)) &&
|
|
402
|
+
}, _errorFactory)) && _ao14(elem, _path + ".edges[" + _index16 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
229
403
|
method: "typia.assert",
|
|
230
|
-
path: _path + ".edges[" +
|
|
404
|
+
path: _path + ".edges[" + _index16 + "]",
|
|
231
405
|
expected: "ITtscGraphDump.IEdge",
|
|
232
406
|
value: elem
|
|
233
407
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -246,9 +420,9 @@ function parseDump(json) {
|
|
|
246
420
|
path: _path + ".capabilities",
|
|
247
421
|
expected: "Array<string>",
|
|
248
422
|
value: input.capabilities
|
|
249
|
-
}, _errorFactory)) && input.capabilities.every((elem,
|
|
423
|
+
}, _errorFactory)) && input.capabilities.every((elem, _index17) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
250
424
|
method: "typia.assert",
|
|
251
|
-
path: _path + ".capabilities[" +
|
|
425
|
+
path: _path + ".capabilities[" + _index17 + "]",
|
|
252
426
|
expected: "string",
|
|
253
427
|
value: elem
|
|
254
428
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -281,14 +455,14 @@ function parseDump(json) {
|
|
|
281
455
|
path: _path + ".sources",
|
|
282
456
|
expected: "Array<ITtscGraphDump.ISourceDigest>",
|
|
283
457
|
value: input.sources
|
|
284
|
-
}, _errorFactory)) && input.sources.every((elem,
|
|
458
|
+
}, _errorFactory)) && input.sources.every((elem, _index18) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
285
459
|
method: "typia.assert",
|
|
286
|
-
path: _path + ".sources[" +
|
|
460
|
+
path: _path + ".sources[" + _index18 + "]",
|
|
287
461
|
expected: "ITtscGraphDump.ISourceDigest",
|
|
288
462
|
value: elem
|
|
289
|
-
}, _errorFactory)) && _ao6(elem, _path + ".sources[" +
|
|
463
|
+
}, _errorFactory)) && _ao6(elem, _path + ".sources[" + _index18 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
290
464
|
method: "typia.assert",
|
|
291
|
-
path: _path + ".sources[" +
|
|
465
|
+
path: _path + ".sources[" + _index18 + "]",
|
|
292
466
|
expected: "ITtscGraphDump.ISourceDigest",
|
|
293
467
|
value: elem
|
|
294
468
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -297,13 +471,45 @@ function parseDump(json) {
|
|
|
297
471
|
expected: "Array<ITtscGraphDump.ISourceDigest>",
|
|
298
472
|
value: input.sources
|
|
299
473
|
}, _errorFactory));
|
|
300
|
-
const _ao10 = (input, _path, _exceptionable = true) =>
|
|
474
|
+
const _ao10 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && ("method" === input.kind || "property" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
|
|
475
|
+
method: "typia.assert",
|
|
476
|
+
path: _path + ".kind",
|
|
477
|
+
expected: "(\"method\" | \"property\")",
|
|
478
|
+
value: input.kind
|
|
479
|
+
}, _errorFactory)) && (undefined === input.line || "number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
|
|
480
|
+
method: "typia.assert",
|
|
481
|
+
path: _path + ".line",
|
|
482
|
+
expected: "(number | undefined)",
|
|
483
|
+
value: input.line
|
|
484
|
+
}, _errorFactory)) && _ap14(input, _path, true && _exceptionable);
|
|
485
|
+
const _ao11 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && ((Array.isArray(input.arguments) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
486
|
+
method: "typia.assert",
|
|
487
|
+
path: _path + ".arguments",
|
|
488
|
+
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
489
|
+
value: input.arguments
|
|
490
|
+
}, _errorFactory)) && input.arguments.every((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
491
|
+
method: "typia.assert",
|
|
492
|
+
path: _path + ".arguments[" + _index26 + "]",
|
|
493
|
+
expected: "ITtscGraphDecorator.IArgument",
|
|
494
|
+
value: elem
|
|
495
|
+
}, _errorFactory)) && _ao12(elem, _path + ".arguments[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
496
|
+
method: "typia.assert",
|
|
497
|
+
path: _path + ".arguments[" + _index26 + "]",
|
|
498
|
+
expected: "ITtscGraphDecorator.IArgument",
|
|
499
|
+
value: elem
|
|
500
|
+
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
501
|
+
method: "typia.assert",
|
|
502
|
+
path: _path + ".arguments",
|
|
503
|
+
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
504
|
+
value: input.arguments
|
|
505
|
+
}, _errorFactory));
|
|
506
|
+
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, {
|
|
301
507
|
method: "typia.assert",
|
|
302
508
|
path: _path + ".literal",
|
|
303
509
|
expected: "(boolean | number | string | undefined)",
|
|
304
510
|
value: input.literal
|
|
305
511
|
}, _errorFactory);
|
|
306
|
-
const
|
|
512
|
+
const _ao13 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || _assertGuard_1._assertGuard(_exceptionable, {
|
|
307
513
|
method: "typia.assert",
|
|
308
514
|
path: _path + ".file",
|
|
309
515
|
expected: "(string | undefined)",
|
|
@@ -329,7 +535,7 @@ function parseDump(json) {
|
|
|
329
535
|
expected: "(number | undefined)",
|
|
330
536
|
value: input.endCol
|
|
331
537
|
}, _errorFactory));
|
|
332
|
-
const
|
|
538
|
+
const _ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.from || _assertGuard_1._assertGuard(_exceptionable, {
|
|
333
539
|
method: "typia.assert",
|
|
334
540
|
path: _path + ".from",
|
|
335
541
|
expected: "string",
|
|
@@ -344,7 +550,7 @@ function parseDump(json) {
|
|
|
344
550
|
path: _path + ".kind",
|
|
345
551
|
expected: _ae2,
|
|
346
552
|
value: input.kind
|
|
347
|
-
}, _errorFactory)) &&
|
|
553
|
+
}, _errorFactory)) && _ap15(input, _path, true && _exceptionable);
|
|
348
554
|
const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.tool || _assertGuard_1._assertGuard(_exceptionable, {
|
|
349
555
|
method: "typia.assert",
|
|
350
556
|
path: _path + ".tool",
|
|
@@ -366,14 +572,14 @@ function parseDump(json) {
|
|
|
366
572
|
path: _path + ".configs",
|
|
367
573
|
expected: "Array<ITtscGraphDump.IFileDigest>",
|
|
368
574
|
value: input.configs
|
|
369
|
-
}, _errorFactory)) && input.configs.every((elem,
|
|
575
|
+
}, _errorFactory)) && input.configs.every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
370
576
|
method: "typia.assert",
|
|
371
|
-
path: _path + ".configs[" +
|
|
577
|
+
path: _path + ".configs[" + _index19 + "]",
|
|
372
578
|
expected: "ITtscGraphDump.IFileDigest",
|
|
373
579
|
value: elem
|
|
374
|
-
}, _errorFactory)) && _ao4(elem, _path + ".configs[" +
|
|
580
|
+
}, _errorFactory)) && _ao4(elem, _path + ".configs[" + _index19 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
375
581
|
method: "typia.assert",
|
|
376
|
-
path: _path + ".configs[" +
|
|
582
|
+
path: _path + ".configs[" + _index19 + "]",
|
|
377
583
|
expected: "ITtscGraphDump.IFileDigest",
|
|
378
584
|
value: elem
|
|
379
585
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -386,14 +592,14 @@ function parseDump(json) {
|
|
|
386
592
|
path: _path + ".roots",
|
|
387
593
|
expected: "Array<ITtscGraphDump.IRootFile>",
|
|
388
594
|
value: input.roots
|
|
389
|
-
}, _errorFactory)) && input.roots.every((elem,
|
|
595
|
+
}, _errorFactory)) && input.roots.every((elem, _index20) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
390
596
|
method: "typia.assert",
|
|
391
|
-
path: _path + ".roots[" +
|
|
597
|
+
path: _path + ".roots[" + _index20 + "]",
|
|
392
598
|
expected: "ITtscGraphDump.IRootFile",
|
|
393
599
|
value: elem
|
|
394
|
-
}, _errorFactory)) && _ao5(elem, _path + ".roots[" +
|
|
600
|
+
}, _errorFactory)) && _ao5(elem, _path + ".roots[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
395
601
|
method: "typia.assert",
|
|
396
|
-
path: _path + ".roots[" +
|
|
602
|
+
path: _path + ".roots[" + _index20 + "]",
|
|
397
603
|
expected: "ITtscGraphDump.IRootFile",
|
|
398
604
|
value: elem
|
|
399
605
|
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
@@ -451,121 +657,28 @@ function parseDump(json) {
|
|
|
451
657
|
expected: "string",
|
|
452
658
|
value: input.message
|
|
453
659
|
}, _errorFactory));
|
|
454
|
-
const _ao8 = (input, _path, _exceptionable = true) => (
|
|
660
|
+
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);
|
|
661
|
+
const _ao9 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && (undefined === input.value || "string" === typeof input.value || _assertGuard_1._assertGuard(_exceptionable, {
|
|
455
662
|
method: "typia.assert",
|
|
456
|
-
path: _path + ".
|
|
457
|
-
expected: "string",
|
|
458
|
-
value: input.id
|
|
459
|
-
}, _errorFactory)) && (true === _av0.has(input.kind) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
460
|
-
method: "typia.assert",
|
|
461
|
-
path: _path + ".kind",
|
|
462
|
-
expected: _ae0,
|
|
463
|
-
value: input.kind
|
|
464
|
-
}, _errorFactory)) && _ap1(input, _path, true && _exceptionable) && (undefined === input.qualifiedName || "string" === typeof input.qualifiedName || _assertGuard_1._assertGuard(_exceptionable, {
|
|
465
|
-
method: "typia.assert",
|
|
466
|
-
path: _path + ".qualifiedName",
|
|
663
|
+
path: _path + ".value",
|
|
467
664
|
expected: "(string | undefined)",
|
|
468
|
-
value: input.
|
|
469
|
-
}, _errorFactory)) && _ap0(input, _path, true && _exceptionable) && ("boolean" === typeof input.external || _assertGuard_1._assertGuard(_exceptionable, {
|
|
470
|
-
method: "typia.assert",
|
|
471
|
-
path: _path + ".external",
|
|
472
|
-
expected: "boolean",
|
|
473
|
-
value: input.external
|
|
474
|
-
}, _errorFactory)) && (undefined === input.ignored || "boolean" === typeof input.ignored || _assertGuard_1._assertGuard(_exceptionable, {
|
|
475
|
-
method: "typia.assert",
|
|
476
|
-
path: _path + ".ignored",
|
|
477
|
-
expected: "(boolean | undefined)",
|
|
478
|
-
value: input.ignored
|
|
479
|
-
}, _errorFactory)) && (undefined === input.exported || "boolean" === typeof input.exported || _assertGuard_1._assertGuard(_exceptionable, {
|
|
480
|
-
method: "typia.assert",
|
|
481
|
-
path: _path + ".exported",
|
|
482
|
-
expected: "(boolean | undefined)",
|
|
483
|
-
value: input.exported
|
|
484
|
-
}, _errorFactory)) && (undefined === input.closure || "boolean" === typeof input.closure || _assertGuard_1._assertGuard(_exceptionable, {
|
|
485
|
-
method: "typia.assert",
|
|
486
|
-
path: _path + ".closure",
|
|
487
|
-
expected: "(boolean | undefined)",
|
|
488
|
-
value: input.closure
|
|
489
|
-
}, _errorFactory)) && (undefined === input.modifiers || (Array.isArray(input.modifiers) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
490
|
-
method: "typia.assert",
|
|
491
|
-
path: _path + ".modifiers",
|
|
492
|
-
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
493
|
-
value: input.modifiers
|
|
494
|
-
}, _errorFactory)) && input.modifiers.every((elem, _index18) => true === _av1.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
495
|
-
method: "typia.assert",
|
|
496
|
-
path: _path + ".modifiers[" + _index18 + "]",
|
|
497
|
-
expected: _ae1,
|
|
498
|
-
value: elem
|
|
499
|
-
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
500
|
-
method: "typia.assert",
|
|
501
|
-
path: _path + ".modifiers",
|
|
502
|
-
expected: "(Array<TtscGraphNodeModifier> | undefined)",
|
|
503
|
-
value: input.modifiers
|
|
504
|
-
}, _errorFactory)) && (undefined === input.decorators || (Array.isArray(input.decorators) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
505
|
-
method: "typia.assert",
|
|
506
|
-
path: _path + ".decorators",
|
|
507
|
-
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
508
|
-
value: input.decorators
|
|
509
|
-
}, _errorFactory)) && input.decorators.every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
|
|
510
|
-
method: "typia.assert",
|
|
511
|
-
path: _path + ".decorators[" + _index19 + "]",
|
|
512
|
-
expected: "ITtscGraphDecorator",
|
|
513
|
-
value: elem
|
|
514
|
-
}, _errorFactory)) && _ao9(elem, _path + ".decorators[" + _index19 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
515
|
-
method: "typia.assert",
|
|
516
|
-
path: _path + ".decorators[" + _index19 + "]",
|
|
517
|
-
expected: "ITtscGraphDecorator",
|
|
518
|
-
value: elem
|
|
519
|
-
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
520
|
-
method: "typia.assert",
|
|
521
|
-
path: _path + ".decorators",
|
|
522
|
-
expected: "(Array<ITtscGraphDecorator> | undefined)",
|
|
523
|
-
value: input.decorators
|
|
524
|
-
}, _errorFactory)) && _ap2(input, _path, true && _exceptionable) && (undefined === input.implementation || ("object" === typeof input.implementation && null !== input.implementation || _assertGuard_1._assertGuard(_exceptionable, {
|
|
525
|
-
method: "typia.assert",
|
|
526
|
-
path: _path + ".implementation",
|
|
527
|
-
expected: "(ITtscGraphSpan | undefined)",
|
|
528
|
-
value: input.implementation
|
|
529
|
-
}, _errorFactory)) && _ao11(input.implementation, _path + ".implementation", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
530
|
-
method: "typia.assert",
|
|
531
|
-
path: _path + ".implementation",
|
|
532
|
-
expected: "(ITtscGraphSpan | undefined)",
|
|
533
|
-
value: input.implementation
|
|
534
|
-
}, _errorFactory));
|
|
535
|
-
const _ao9 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && ((Array.isArray(input.arguments) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
536
|
-
method: "typia.assert",
|
|
537
|
-
path: _path + ".arguments",
|
|
538
|
-
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
539
|
-
value: input.arguments
|
|
540
|
-
}, _errorFactory)) && input.arguments.every((elem, _index20) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
541
|
-
method: "typia.assert",
|
|
542
|
-
path: _path + ".arguments[" + _index20 + "]",
|
|
543
|
-
expected: "ITtscGraphDecorator.IArgument",
|
|
544
|
-
value: elem
|
|
545
|
-
}, _errorFactory)) && _ao10(elem, _path + ".arguments[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
546
|
-
method: "typia.assert",
|
|
547
|
-
path: _path + ".arguments[" + _index20 + "]",
|
|
548
|
-
expected: "ITtscGraphDecorator.IArgument",
|
|
549
|
-
value: elem
|
|
550
|
-
}, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
|
|
551
|
-
method: "typia.assert",
|
|
552
|
-
path: _path + ".arguments",
|
|
553
|
-
expected: "Array<ITtscGraphDecorator.IArgument>",
|
|
554
|
-
value: input.arguments
|
|
665
|
+
value: input.value
|
|
555
666
|
}, _errorFactory));
|
|
556
|
-
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 &&
|
|
667
|
+
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)));
|
|
557
668
|
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)));
|
|
558
|
-
const _io10 = input =>
|
|
559
|
-
const _io11 = input => (
|
|
560
|
-
const _io12 = input => "string" === typeof input.
|
|
669
|
+
const _io10 = input => _ip3(input) && ("method" === input.kind || "property" === input.kind) && (undefined === input.line || "number" === typeof input.line) && _ip14(input);
|
|
670
|
+
const _io11 = input => _ip3(input) && (Array.isArray(input.arguments) && input.arguments.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem)));
|
|
671
|
+
const _io12 = input => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal;
|
|
672
|
+
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);
|
|
673
|
+
const _io14 = input => "string" === typeof input.from && "string" === typeof input.to && true === _iv2.has(input.kind) && _ip15(input);
|
|
561
674
|
const _io2 = input => "string" === typeof input.tool && "string" === typeof input.version && "string" === typeof input.typescript;
|
|
562
675
|
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)));
|
|
563
676
|
const _io4 = input => _ip0(input) && "string" === typeof input.digest;
|
|
564
677
|
const _io5 = input => "string" === typeof input.config && _ip0(input);
|
|
565
678
|
const _io6 = input => _ip0(input) && "string" === typeof input.checkerDigest && "string" === typeof input.diskDigest;
|
|
566
679
|
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;
|
|
567
|
-
const _io8 = input =>
|
|
568
|
-
const _io9 = input =>
|
|
680
|
+
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);
|
|
681
|
+
const _io9 = input => _ip3(input) && (undefined === input.value || "string" === typeof input.value);
|
|
569
682
|
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
570
683
|
let _errorFactory;
|
|
571
684
|
return (input, errorFactory) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadGraph.js","sourceRoot":"","sources":["../../src/model/loadGraph.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loadGraph.js","sourceRoot":"","sources":["../../src/model/loadGraph.ts"],"names":[],"mappings":"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"}
|