Use dict for AST

This commit is contained in:
Aleksey Kladov 2018-08-11 10:11:58 +03:00
parent e69c70e2a2
commit 2e971cdcbb
3 changed files with 18 additions and 26 deletions

View file

@ -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>,