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
2 changes: 2 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ impl<L: Language> SyntaxElementChildren<L> {
}
}

#[derive(Debug, Clone)]
pub struct Preorder<L: Language> {
raw: cursor::Preorder,
_p: PhantomData<L>,
Expand All @@ -490,6 +491,7 @@ impl<L: Language> Iterator for Preorder<L> {
}
}

#[derive(Debug, Clone)]
pub struct PreorderWithTokens<L: Language> {
raw: cursor::PreorderWithTokens,
_p: PhantomData<L>,
Expand Down
2 changes: 2 additions & 0 deletions src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,7 @@ impl<F: Fn(SyntaxKind) -> bool> Iterator for SyntaxElementChildrenByKind<F> {
}
}

#[derive(Debug, Clone)]
pub struct Preorder {
start: SyntaxNode,
next: Option<WalkEvent<SyntaxNode>>,
Expand Down Expand Up @@ -1529,6 +1530,7 @@ impl Iterator for Preorder {
}
}

#[derive(Debug, Clone)]
pub struct PreorderWithTokens {
start: SyntaxElement,
next: Option<WalkEvent<SyntaxElement>>,
Expand Down
Loading