mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-18 17:40:37 +00:00
Add a Snapshot
abstraction for deferring and restoring visitor context (#4353)
This commit is contained in:
parent
fd34797d0f
commit
ea3d3a655d
4 changed files with 81 additions and 84 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue