mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
visitor
This commit is contained in:
parent
d5119133fc
commit
7afd84febc
11 changed files with 211 additions and 86 deletions
|
@ -28,6 +28,12 @@ impl<R: TreeRoot> Eq for SyntaxNode<R> {}
|
|||
|
||||
pub type SyntaxNodeRef<'a> = SyntaxNode<&'a SyntaxRoot>;
|
||||
|
||||
#[test]
|
||||
fn syntax_node_ref_is_copy() {
|
||||
fn assert_copy<T: Copy>(){}
|
||||
assert_copy::<SyntaxNodeRef>()
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, Ord, PartialOrd)]
|
||||
pub struct SyntaxError {
|
||||
pub msg: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue