fix(union): complete downstream container handling

This commit is contained in:
ctype_lab
2026-08-06 17:50:25 +09:00
parent e922563e05
commit e2195940fb
10 changed files with 136 additions and 32 deletions
+2
View File
@@ -173,6 +173,7 @@ export class GraphQueryManager {
const allNodes: Node[] = [];
const kinds: Node['kind'][] = [
'class',
'union',
'function',
'method',
'interface',
@@ -347,6 +348,7 @@ export class GraphQueryManager {
'module',
'class',
'struct',
'union',
'interface',
'trait',
'function',
+1 -1
View File
@@ -564,7 +564,7 @@ export class GraphTraverser {
// into their children so that callers of contained methods appear in impact
const focalNode = this.queries.getNodeById(nodeId);
if (focalNode) {
const containerKinds = new Set(['class', 'interface', 'struct', 'trait', 'protocol', 'module', 'enum']);
const containerKinds = new Set(['class', 'interface', 'struct', 'union', 'trait', 'protocol', 'module', 'enum']);
if (containerKinds.has(focalNode.kind)) {
const containsEdges = this.queries.getOutgoingEdges(nodeId, ['contains']);
if (containsEdges.length > 0) {