mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 22:10:48 -05:00
Add a Snapshot abstraction for deferring and restoring visitor context (#4353)
This commit is contained in:
@@ -30,6 +30,7 @@ impl From<NodeId> for usize {
|
||||
}
|
||||
}
|
||||
|
||||
/// A [`Node`] represents a statement in a program, along with a pointer to its parent (if any).
|
||||
#[derive(Debug)]
|
||||
struct Node<'a> {
|
||||
/// The statement this node represents.
|
||||
|
||||
Reference in New Issue
Block a user