ast: Add Visitor interface

Questions: do we need this?
This commit is contained in:
2025-10-28 04:21:52 -04:00
parent 588606e0c4
commit 0d7b89da96
2 changed files with 265 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
pub mod macro_matcher;
pub mod visit;
/// A value with an annotation.
#[derive(Clone, PartialEq, Eq)]
pub struct Anno<T: Annotation, A: Annotation = Span>(pub T, pub A);