mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Use dict for AST
This commit is contained in:
parent
e69c70e2a2
commit
2e971cdcbb
3 changed files with 18 additions and 26 deletions
|
@ -4,7 +4,6 @@ use {
|
|||
SyntaxKind::*,
|
||||
};
|
||||
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct File<R: TreeRoot = Arc<SyntaxRoot>> {
|
||||
syntax: SyntaxNode<R>,
|
||||
|
@ -28,7 +27,6 @@ impl<R: TreeRoot> File<R> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Function<R: TreeRoot = Arc<SyntaxRoot>> {
|
||||
syntax: SyntaxNode<R>,
|
||||
|
@ -53,7 +51,6 @@ impl<R: TreeRoot> Function<R> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Name<R: TreeRoot = Arc<SyntaxRoot>> {
|
||||
syntax: SyntaxNode<R>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue