migrate to untyped rowan

This commit is contained in:
Aleksey Kladov 2019-04-09 01:06:30 +03:00
parent ac6ab07587
commit faf526e021
10 changed files with 192 additions and 158 deletions

View file

@ -15,7 +15,7 @@ use rowan::TransparentNewType;
use crate::{
SyntaxNode, SyntaxKind::*,
syntax_node::{RaTypes, TreeArc},
syntax_node::{TreeArc},
ast::{self, AstNode},
};
{% for node, methods in ast %}
@ -28,7 +28,7 @@ pub struct {{ node }} {
pub(crate) syntax: SyntaxNode,
}
unsafe impl TransparentNewType for {{ node }} {
type Repr = rowan::SyntaxNode<RaTypes>;
type Repr = rowan::SyntaxNode;
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@ -81,7 +81,7 @@ pub struct {{ node }} {
pub(crate) syntax: SyntaxNode,
}
unsafe impl TransparentNewType for {{ node }} {
type Repr = rowan::SyntaxNode<RaTypes>;
type Repr = rowan::SyntaxNode;
}
impl AstNode for {{ node }} {