Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions crates/engine/src/impact_analysis.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::graph_builder::{BuiltGraph, BuiltNode};
use std::collections::{HashMap, HashSet, VecDeque};

/// Return all nodes reachable from `start_node_ids` by following `calls` edges
/// in `graph` (forward BFS reachability).
/// Return caller-side impact reachable from `start_node_ids` by following
/// `calls` edges in reverse direction.
///
/// The start nodes themselves are **excluded** from the result — only their
/// transitive dependants are returned.
/// Traversal follows `callee -> caller`, because when a callee changes its
/// callers are impacted.
///
/// Only `calls` edges are traversed; `contains` edges (which express parent/
/// child containment) are intentionally ignored so that structural hierarchy
Expand All @@ -14,7 +14,7 @@ use std::collections::{HashMap, HashSet, VecDeque};
/// # Example
/// ```text
/// A → B → C
/// impacted_nodes(graph, ["A"]) == [B, C]
/// impacted_nodes(graph, ["C"], ["C"]) == [B, A]
/// ```
pub fn impacted_nodes(
graph: &BuiltGraph,
Expand Down
6 changes: 3 additions & 3 deletions editor/vscode/webview/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -1153,9 +1153,9 @@
}

// ── showFileDetail ────────────────────────────────────────────────────────
// Drills into a single file: shows its type nodes as top-level flat cards,
// with a file context card above them. Func nodes start hidden; clicking a
// type expands/collapses its funcs. Press Back/Overview to return.
// Drills into a single file: shows its type nodes as top-level flat cards
// with a file context card above them. Func nodes are visible by default,
// and clicking a type toggles its child funcs. Press Back/Overview to return.
//
// Rebuilt entirely from the raw analysis graph — does NOT depend on whatever
// nodes are currently in the Cytoscape instance (overview virtual nodes etc).
Expand Down