@cplieger/deadset-ts 5.0.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/analysis.js +145 -39
- package/dist/src/configuration-files.js +108 -4
- package/dist/src/conformance-record.js +3 -9
- package/dist/src/contextual-uses.js +247 -0
- package/dist/src/convention-rows.js +6 -0
- package/dist/src/conventions.js +123 -14
- package/dist/src/dependencies.js +8 -2
- package/dist/src/destructuring.js +6 -6
- package/dist/src/entry-points.js +8 -5
- package/dist/src/exempt-classes.js +6 -1
- package/dist/src/exempt.js +35 -16
- package/dist/src/file-facts.js +23 -20
- package/dist/src/findings/completion.js +27 -3
- package/dist/src/findings/interfaces.js +6 -2
- package/dist/src/findings/reads-and-writes.js +53 -9
- package/dist/src/findings/unused-declarations.js +40 -1
- package/dist/src/generated-file.js +24 -0
- package/dist/src/graph.js +1 -1
- package/dist/src/interface-satisfaction.js +2 -68
- package/dist/src/inventory.js +17 -4
- package/dist/src/kinds.js +4 -3
- package/dist/src/manifest.js +29 -4
- package/dist/src/outside-tests.js +139 -0
- package/dist/src/overrides.js +104 -0
- package/dist/src/paths.js +17 -0
- package/dist/src/query.js +15 -0
- package/dist/src/references.js +229 -11
- package/dist/src/resolve.js +12 -11
- package/dist/src/roots.js +121 -37
- package/dist/src/session.js +4 -3
- package/dist/src/stores.js +3 -0
- package/dist/src/template-field.js +60 -3
- package/dist/src/value-flow.js +74 -0
- package/dist/src/version.js +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/analysis.ts +194 -49
- package/src/configuration-files.ts +137 -2
- package/src/conformance-record.ts +3 -10
- package/src/contextual-uses.ts +358 -0
- package/src/convention-rows.ts +8 -0
- package/src/conventions.ts +161 -13
- package/src/dependencies.ts +14 -1
- package/src/destructuring.ts +16 -6
- package/src/entry-points.ts +16 -3
- package/src/exempt-classes.ts +6 -1
- package/src/exempt.ts +67 -16
- package/src/file-facts.ts +26 -20
- package/src/findings/completion.ts +31 -3
- package/src/findings/interfaces.ts +9 -2
- package/src/findings/reads-and-writes.ts +70 -9
- package/src/findings/unused-declarations.ts +51 -1
- package/src/generated-file.ts +27 -0
- package/src/graph.ts +4 -4
- package/src/interface-satisfaction.ts +1 -92
- package/src/inventory.ts +19 -4
- package/src/kinds.ts +5 -3
- package/src/manifest.ts +40 -4
- package/src/outside-tests.ts +191 -0
- package/src/overrides.ts +136 -0
- package/src/paths.ts +18 -0
- package/src/query.ts +26 -0
- package/src/references.ts +294 -22
- package/src/resolve.ts +14 -13
- package/src/roots.ts +152 -44
- package/src/session.ts +4 -2
- package/src/stores.ts +9 -0
- package/src/template-field.ts +65 -3
- package/src/value-flow.ts +104 -0
- package/src/version.ts +1 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The test files no compiler configuration of a run holds. The runner executes them all
|
|
3
|
+
* the same, so each module one names is a test reference: the own file a relative
|
|
4
|
+
* specifier names, and the declarations that file exports under the names read from it.
|
|
5
|
+
* Such a file is read without a program, so what its body references beyond the modules
|
|
6
|
+
* it names is not known.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
isCallExpression,
|
|
11
|
+
isExportDeclaration,
|
|
12
|
+
isImportDeclaration,
|
|
13
|
+
isNamespaceExport,
|
|
14
|
+
isNamespaceImport,
|
|
15
|
+
isNoSubstitutionTemplateLiteral,
|
|
16
|
+
isStringLiteral,
|
|
17
|
+
SyntaxKind,
|
|
18
|
+
type Node,
|
|
19
|
+
type SourceFile,
|
|
20
|
+
} from "@typescript/native/unstable/ast";
|
|
21
|
+
import { RESOLVED_EXTENSIONS, type ParseFile } from "./configuration-files.ts";
|
|
22
|
+
import { emittedFrom } from "./emit-map.ts";
|
|
23
|
+
import type { Host } from "./host.ts";
|
|
24
|
+
import type { Inventory } from "./inventory.ts";
|
|
25
|
+
import { dirnamePath, joinPath, normalizePath, queriedModulePath } from "./paths.ts";
|
|
26
|
+
import { renderPosition } from "./position.ts";
|
|
27
|
+
import { nameComponent } from "./ref.ts";
|
|
28
|
+
import type { Reference } from "./references.ts";
|
|
29
|
+
|
|
30
|
+
/** The paths below the target root one relative specifier may name, written path first. */
|
|
31
|
+
function candidates(dir: string, specifier: string): readonly string[] {
|
|
32
|
+
if (!specifier.startsWith("./") && !specifier.startsWith("../")) {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
const path = normalizePath(dir === "" ? specifier : `${dir}/${specifier}`);
|
|
36
|
+
return [
|
|
37
|
+
path,
|
|
38
|
+
...emittedFrom(path, { sourceDirs: [] }),
|
|
39
|
+
...RESOLVED_EXTENSIONS.map((extension) => path + extension),
|
|
40
|
+
...RESOLVED_EXTENSIONS.map((extension) => `${path}/index${extension}`),
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** One module a test file names, and the export names it reads from it; `evaluates` reads none. */
|
|
45
|
+
interface NamedModule {
|
|
46
|
+
readonly specifier: Node;
|
|
47
|
+
readonly text: string;
|
|
48
|
+
readonly names: readonly string[];
|
|
49
|
+
readonly evaluates: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** The text of a specifier written as literal text, or undefined for any other expression. */
|
|
53
|
+
function literalText(node: Node | undefined): string | undefined {
|
|
54
|
+
return node !== undefined && (isStringLiteral(node) || isNoSubstitutionTemplateLiteral(node))
|
|
55
|
+
? node.text
|
|
56
|
+
: undefined;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Every module one file names: an import declaration, a re-export, and an `import()` call
|
|
61
|
+
* of literal text anywhere in the file. A namespace form, a star re-export, a bare import
|
|
62
|
+
* and an `import()` evaluate the module.
|
|
63
|
+
*/
|
|
64
|
+
function modulesNamed(file: SourceFile): readonly NamedModule[] {
|
|
65
|
+
const found: NamedModule[] = [];
|
|
66
|
+
const name = (specifier: Node, names: readonly string[], evaluates: boolean): void => {
|
|
67
|
+
const text = literalText(specifier);
|
|
68
|
+
if (text !== undefined) {
|
|
69
|
+
found.push({ specifier, text, names, evaluates });
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
for (const statement of file.statements) {
|
|
73
|
+
if (isImportDeclaration(statement)) {
|
|
74
|
+
const clause = statement.importClause;
|
|
75
|
+
const bindings = clause?.namedBindings;
|
|
76
|
+
name(
|
|
77
|
+
statement.moduleSpecifier,
|
|
78
|
+
[
|
|
79
|
+
...(clause?.name === undefined ? [] : ["default"]),
|
|
80
|
+
...(bindings === undefined || isNamespaceImport(bindings)
|
|
81
|
+
? []
|
|
82
|
+
: bindings.elements.map((one) => (one.propertyName ?? one.name).text)),
|
|
83
|
+
],
|
|
84
|
+
bindings === undefined ? clause?.name === undefined : isNamespaceImport(bindings),
|
|
85
|
+
);
|
|
86
|
+
} else if (isExportDeclaration(statement) && statement.moduleSpecifier !== undefined) {
|
|
87
|
+
const clause = statement.exportClause;
|
|
88
|
+
const star = clause === undefined || isNamespaceExport(clause);
|
|
89
|
+
name(
|
|
90
|
+
statement.moduleSpecifier,
|
|
91
|
+
star ? [] : clause.elements.map((one) => (one.propertyName ?? one.name).text),
|
|
92
|
+
star,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const visit = (node: Node): void => {
|
|
97
|
+
if (isCallExpression(node) && node.expression.kind === SyntaxKind.ImportKeyword) {
|
|
98
|
+
const [argument] = node.arguments;
|
|
99
|
+
if (argument !== undefined) {
|
|
100
|
+
name(argument, [], true);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
node.forEachChild(visit);
|
|
104
|
+
};
|
|
105
|
+
file.forEachChild(visit);
|
|
106
|
+
return found;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** One test file read without a program. */
|
|
110
|
+
export interface OutsideTest {
|
|
111
|
+
/** The path below the target root. */
|
|
112
|
+
readonly path: string;
|
|
113
|
+
readonly file: SourceFile;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Each of the given paths below the target root, parsed; one that cannot be read is skipped. */
|
|
117
|
+
export function testFilesAt(
|
|
118
|
+
host: Host,
|
|
119
|
+
targetRoot: string,
|
|
120
|
+
paths: readonly string[],
|
|
121
|
+
parse: ParseFile,
|
|
122
|
+
): readonly OutsideTest[] {
|
|
123
|
+
return paths.flatMap((path) => {
|
|
124
|
+
const fileName = joinPath(targetRoot, path);
|
|
125
|
+
let text: string;
|
|
126
|
+
try {
|
|
127
|
+
text = host.readFile(fileName);
|
|
128
|
+
} catch {
|
|
129
|
+
return [];
|
|
130
|
+
}
|
|
131
|
+
return [{ path, file: parse(fileName, text) }];
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The references the given test files make to one project's own files through the
|
|
137
|
+
* modules they name ({@link modulesNamed}). A name read from a module references each
|
|
138
|
+
* top-level declaration the file exports under it; an evaluating form references the
|
|
139
|
+
* file. A query after the path names the file as {@link queriedModulePath} reads it.
|
|
140
|
+
*/
|
|
141
|
+
export function outsideTestReferences(
|
|
142
|
+
tests: readonly OutsideTest[],
|
|
143
|
+
held: Inventory,
|
|
144
|
+
targetRoot: string,
|
|
145
|
+
): readonly Reference[] {
|
|
146
|
+
const fileAt = new Map(
|
|
147
|
+
held.symbols
|
|
148
|
+
.filter((symbol) => symbol.kind === "file")
|
|
149
|
+
.map((symbol) => [symbol.position.path, symbol.id]),
|
|
150
|
+
);
|
|
151
|
+
// Keyed on the reference's fragment, which spells the export name where the display
|
|
152
|
+
// name of a default export is its declared name.
|
|
153
|
+
const exported = new Map<string, string[]>();
|
|
154
|
+
for (const symbol of held.symbols) {
|
|
155
|
+
if (symbol.exported) {
|
|
156
|
+
const fragment = symbol.ref.slice(symbol.ref.lastIndexOf("#") + 1).replace(/:alias$/u, "");
|
|
157
|
+
const key = `${symbol.parent}\u0000${fragment}`;
|
|
158
|
+
exported.set(key, [...(exported.get(key) ?? []), symbol.id]);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const found: Reference[] = [];
|
|
162
|
+
for (const { path, file } of tests) {
|
|
163
|
+
const from = `${path}#`;
|
|
164
|
+
const dir = dirnamePath(path) === "." ? "" : dirnamePath(path);
|
|
165
|
+
for (const named of modulesNamed(file)) {
|
|
166
|
+
const written = named.text.includes("?") ? queriedModulePath(named.text) : named.text;
|
|
167
|
+
if (written === undefined) {
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
const fileId = candidates(dir, written)
|
|
171
|
+
.map((one) => fileAt.get(one))
|
|
172
|
+
.find((one) => one !== undefined);
|
|
173
|
+
if (fileId === undefined) {
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
const position = renderPosition(file, targetRoot, named.specifier.getStart());
|
|
177
|
+
const read = (to: string, use: Reference["use"]): void => {
|
|
178
|
+
found.push({ from, to, position, use, resolution: "syntax", test: true, unheld: true });
|
|
179
|
+
};
|
|
180
|
+
if (named.evaluates) {
|
|
181
|
+
read(fileId, "evaluation");
|
|
182
|
+
}
|
|
183
|
+
for (const name of named.names) {
|
|
184
|
+
for (const id of exported.get(`${fileId}\u0000${nameComponent(name)}`) ?? []) {
|
|
185
|
+
read(id, "read");
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return found;
|
|
191
|
+
}
|
package/src/overrides.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The overrides of the target's class members. A call through the base class, `this`
|
|
3
|
+
* in the base's own body or a value typed as the base, names the base's member and
|
|
4
|
+
* runs the override of whichever subclass the value is, so the base member's
|
|
5
|
+
* declaration references every override as a use of it.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
isClassDeclaration,
|
|
10
|
+
isClassExpression,
|
|
11
|
+
isExpressionWithTypeArguments,
|
|
12
|
+
isPropertyAccessExpression,
|
|
13
|
+
isQualifiedName,
|
|
14
|
+
SyntaxKind,
|
|
15
|
+
type HeritageClauseElement,
|
|
16
|
+
type Node,
|
|
17
|
+
} from "@typescript/native/unstable/ast";
|
|
18
|
+
import type { AliasChains } from "./alias-chain.ts";
|
|
19
|
+
import { memberComponent } from "./class-members.ts";
|
|
20
|
+
import { nodeKey, type Inventory, type InventorySymbol } from "./inventory.ts";
|
|
21
|
+
import { UNANSWERED } from "./query.ts";
|
|
22
|
+
import type { Reference } from "./references.ts";
|
|
23
|
+
import type { ProjectView } from "./session.ts";
|
|
24
|
+
|
|
25
|
+
/** The member kinds a subclass overrides. */
|
|
26
|
+
const OVERRIDABLE: ReadonlySet<string> = new Set(["method", "class-member"]);
|
|
27
|
+
|
|
28
|
+
/** The node naming the class one `extends` entry names. */
|
|
29
|
+
function nameOf(entry: HeritageClauseElement): Node {
|
|
30
|
+
if (isExpressionWithTypeArguments(entry)) {
|
|
31
|
+
return isPropertyAccessExpression(entry.expression) ? entry.expression.name : entry.expression;
|
|
32
|
+
}
|
|
33
|
+
return isQualifiedName(entry.typeName) ? entry.typeName.right : entry.typeName;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Each class of the target whose `extends` clause names a class, with the name node. */
|
|
37
|
+
function extending<Brand>(
|
|
38
|
+
project: ProjectView<Brand>,
|
|
39
|
+
held: Inventory,
|
|
40
|
+
): readonly { readonly id: string; readonly base: Node }[] {
|
|
41
|
+
const found: { id: string; base: Node }[] = [];
|
|
42
|
+
for (const file of project.ownSourceFiles()) {
|
|
43
|
+
const visit = (node: Node): void => {
|
|
44
|
+
if (isClassDeclaration(node) || isClassExpression(node)) {
|
|
45
|
+
const id = held.declarations.get(nodeKey(file, node));
|
|
46
|
+
const clause = node.heritageClauses?.find((one) => one.token === SyntaxKind.ExtendsKeyword);
|
|
47
|
+
const base = clause?.types[0];
|
|
48
|
+
if (id !== undefined && base !== undefined) {
|
|
49
|
+
found.push({ id, base: nameOf(base) });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
node.forEachChild(visit);
|
|
53
|
+
};
|
|
54
|
+
file.forEachChild(visit);
|
|
55
|
+
}
|
|
56
|
+
return found;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The references each base class member makes to its overrides, for the classes of one
|
|
61
|
+
* project that extend another class of the target. A member a nearer base already
|
|
62
|
+
* overrides is reached through that override. A private member is not overridden.
|
|
63
|
+
* Each reference is placed at the override and made by its file.
|
|
64
|
+
*/
|
|
65
|
+
export function overrideReferences<Brand>(
|
|
66
|
+
project: ProjectView<Brand>,
|
|
67
|
+
held: Inventory,
|
|
68
|
+
chains: AliasChains,
|
|
69
|
+
testFiles: ReadonlySet<string>,
|
|
70
|
+
): readonly Reference[] {
|
|
71
|
+
const classes = extending(project, held);
|
|
72
|
+
if (classes.length === 0) {
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
const byId = new Map(held.symbols.map((symbol) => [symbol.id, symbol]));
|
|
76
|
+
const members = new Map<string, Map<string, InventorySymbol>>();
|
|
77
|
+
for (const symbol of held.symbols) {
|
|
78
|
+
const component = memberComponent(symbol, byId);
|
|
79
|
+
if (
|
|
80
|
+
component === undefined ||
|
|
81
|
+
!OVERRIDABLE.has(symbol.kind) ||
|
|
82
|
+
symbol.visibility === "private" ||
|
|
83
|
+
symbol.visibility === "private-name"
|
|
84
|
+
) {
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
const own = members.get(symbol.parent) ?? new Map<string, InventorySymbol>();
|
|
88
|
+
own.set(component, symbol);
|
|
89
|
+
members.set(symbol.parent, own);
|
|
90
|
+
}
|
|
91
|
+
const bases = new Map<string, readonly string[]>();
|
|
92
|
+
const symbols = project.symbolsAt(classes.map((one) => project.handle(one.base)));
|
|
93
|
+
classes.forEach(({ id }, index) => {
|
|
94
|
+
const symbol = symbols[index];
|
|
95
|
+
if (symbol !== undefined && symbol !== UNANSWERED) {
|
|
96
|
+
bases.set(
|
|
97
|
+
id,
|
|
98
|
+
chains
|
|
99
|
+
.chainOf(symbol)
|
|
100
|
+
.map((target) => target.id)
|
|
101
|
+
.filter((target) => byId.get(target)?.kind === "class" && target !== id),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
/** The nearest member of one component the class or a class it extends declares. */
|
|
107
|
+
const declaredAbove = (classId: string, component: string, seen: Set<string>): string[] => {
|
|
108
|
+
if (seen.has(classId)) {
|
|
109
|
+
return [];
|
|
110
|
+
}
|
|
111
|
+
seen.add(classId);
|
|
112
|
+
const own = members.get(classId)?.get(component);
|
|
113
|
+
if (own !== undefined) {
|
|
114
|
+
return [own.id];
|
|
115
|
+
}
|
|
116
|
+
return (bases.get(classId) ?? []).flatMap((base) => declaredAbove(base, component, seen));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const found: Reference[] = [];
|
|
120
|
+
for (const [classId, baseIds] of bases) {
|
|
121
|
+
for (const [component, member] of members.get(classId) ?? []) {
|
|
122
|
+
const seen = new Set([classId]);
|
|
123
|
+
for (const base of baseIds.flatMap((one) => declaredAbove(one, component, seen))) {
|
|
124
|
+
found.push({
|
|
125
|
+
from: base,
|
|
126
|
+
to: member.id,
|
|
127
|
+
position: member.position,
|
|
128
|
+
use: "read",
|
|
129
|
+
resolution: "override",
|
|
130
|
+
test: testFiles.has(member.position.path),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return found;
|
|
136
|
+
}
|
package/src/paths.ts
CHANGED
|
@@ -72,6 +72,24 @@ export function resolvePath(against: string, path: string): string {
|
|
|
72
72
|
return isAbsolutePath(path) ? normalizePath(path) : joinPath(against, path);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* The relative path before the query of a relative module specifier such as
|
|
77
|
+
* `./worker.ts?worker`, the module a bundler loads; undefined for a specifier with no
|
|
78
|
+
* query, one that is not relative, and one whose query has a `raw` parameter, which
|
|
79
|
+
* reads the file as text and so evaluates nothing.
|
|
80
|
+
*/
|
|
81
|
+
export function queriedModulePath(specifier: string): string | undefined {
|
|
82
|
+
const query = specifier.indexOf("?");
|
|
83
|
+
if (query < 0 || !(specifier.startsWith("./") || specifier.startsWith("../"))) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
const raw = specifier
|
|
87
|
+
.slice(query + 1)
|
|
88
|
+
.split("&")
|
|
89
|
+
.some((parameter) => parameter.split("=")[0] === "raw");
|
|
90
|
+
return raw ? undefined : specifier.slice(0, query);
|
|
91
|
+
}
|
|
92
|
+
|
|
75
93
|
/**
|
|
76
94
|
* One path as it reads below a root, or undefined when it is not below the root.
|
|
77
95
|
* Both are normalized first, so a root written with a trailing separator or a `.`
|
package/src/query.ts
CHANGED
|
@@ -127,6 +127,32 @@ interface Assignability {
|
|
|
127
127
|
readonly target: Type;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Each type's properties, asked of the checker once per type for every pass that shares
|
|
132
|
+
* the tables: the client keeps a type's properties once fetched, so a second pass asking
|
|
133
|
+
* for the same type makes no request, and only the first ask is counted as one.
|
|
134
|
+
*/
|
|
135
|
+
export interface PropertyTables {
|
|
136
|
+
/** One type's properties, and whether this call was the one that asked for them. */
|
|
137
|
+
of(type: Type): { readonly properties: Answer<readonly TSSymbol[]>; readonly asked: boolean };
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** The property tables over one project's questions. */
|
|
141
|
+
export function propertyTables(queries: Pick<Queries, "propertiesOf">): PropertyTables {
|
|
142
|
+
const held = new Map<number, Answer<readonly TSSymbol[]>>();
|
|
143
|
+
return {
|
|
144
|
+
of: (type) => {
|
|
145
|
+
const known = held.get(type.id);
|
|
146
|
+
if (known !== undefined) {
|
|
147
|
+
return { properties: known, asked: false };
|
|
148
|
+
}
|
|
149
|
+
const properties = queries.propertiesOf(type);
|
|
150
|
+
held.set(type.id, properties);
|
|
151
|
+
return { properties, asked: true };
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
130
156
|
/** The questions one project's analysis asks, each guarded. */
|
|
131
157
|
export interface Queries {
|
|
132
158
|
/** The symbol each node resolves to. */
|