rename TreePtr -> TreeArc

This is much clearer about the semantics
This commit is contained in:
Aleksey Kladov 2019-01-11 19:59:06 +03:00
parent aad1bf877e
commit 2d3940d0ab
25 changed files with 197 additions and 197 deletions

View file

@ -6,7 +6,7 @@ use itertools::Itertools;
pub use self::generated::*;
use crate::{
yellow::{SyntaxNode, SyntaxNodeChildren, TreePtr, RaTypes},
yellow::{SyntaxNode, SyntaxNodeChildren, TreeArc, RaTypes},
SmolStr,
SyntaxKind::*,
};
@ -20,7 +20,7 @@ pub trait AstNode: rowan::TransparentNewType<Repr = rowan::SyntaxNode<RaTypes>>
where
Self: Sized;
fn syntax(&self) -> &SyntaxNode;
fn to_owned(&self) -> TreePtr<Self>;
fn to_owned(&self) -> TreeArc<Self>;
}
pub trait AstToken: AstNode {