Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Expose SyntaxElementKey
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Sep 15, 2022
1 parent 13c08ea commit 889ed8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/rome_rowan/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub use trivia::{
TriviaPieceKind,
};

pub use element::SyntaxElement;
pub use element::{SyntaxElement, SyntaxElementKey};
pub(crate) use node::SyntaxSlots;
pub use node::{
Preorder, PreorderWithTokens, SendNode, SyntaxElementChildren, SyntaxNode, SyntaxNodeChildren,
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_rowan/src/syntax/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<L: Language> From<SyntaxNode<L>> for SyntaxElement<L> {
}
}

#[derive(Copy, Clone, Eq, PartialEq)]
#[derive(Copy, Clone, Eq, PartialEq, Hash)]
pub struct SyntaxElementKey {
node_data: NonNull<()>,
offset: TextSize,
Expand Down

0 comments on commit 889ed8d

Please sign in to comment.