feat(rome_rowan): Expose `SyntaxElementKey`
MODIFY
crates/rome_rowan/src/syntax.rs
crates/rome_rowan/src/syntax.rs
@@ -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,

MODIFY
crates/rome_rowan/src/syntax/element.rs
crates/rome_rowan/src/syntax/element.rs
@@ -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,

feat(rome_rowan): Expose `SyntaxElementKey` (#3229)