diff --git a/src/api.rs b/src/api.rs index a35d001..69e2f07 100644 --- a/src/api.rs +++ b/src/api.rs @@ -472,6 +472,7 @@ impl SyntaxElementChildren { } } +#[derive(Debug, Clone)] pub struct Preorder { raw: cursor::Preorder, _p: PhantomData, @@ -490,6 +491,7 @@ impl Iterator for Preorder { } } +#[derive(Debug, Clone)] pub struct PreorderWithTokens { raw: cursor::PreorderWithTokens, _p: PhantomData, diff --git a/src/cursor.rs b/src/cursor.rs index 1288620..7d63948 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -1474,6 +1474,7 @@ impl bool> Iterator for SyntaxElementChildrenByKind { } } +#[derive(Debug, Clone)] pub struct Preorder { start: SyntaxNode, next: Option>, @@ -1529,6 +1530,7 @@ impl Iterator for Preorder { } } +#[derive(Debug, Clone)] pub struct PreorderWithTokens { start: SyntaxElement, next: Option>,