Skip to content

Commit 16ddea5

Browse files
committed
fix: add file field to ChildNodeRow and remove intersection cast (#558)
1 parent 55b2103 commit 16ddea5

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/domain/analysis/symbol-lookup.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,7 @@ export function childrenData(
255255
debug(`findNodeChildren failed for node ${node.id}: ${(e as Error).message}`);
256256
children = [];
257257
}
258-
if (noTests)
259-
children = children.filter(
260-
(c) => !isTestFile((c as ChildNodeRow & { file?: string }).file || node.file),
261-
);
258+
if (noTests) children = children.filter((c) => !isTestFile(c.file || node.file));
262259
return {
263260
name: node.name,
264261
kind: node.kind,

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export interface ChildNodeRow {
133133
qualified_name: string | null;
134134
scope: string | null;
135135
visibility: 'public' | 'private' | 'protected' | null;
136+
file?: string;
136137
}
137138

138139
/** An edge row as stored in SQLite. */

0 commit comments

Comments
 (0)