mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
use aliases
This commit is contained in:
parent
7ffc114dab
commit
dccaa5e45e
1 changed files with 2 additions and 2 deletions
|
@ -53,12 +53,12 @@ impl<R: TreeRoot<RaTypes>> Hash for SyntaxNode<R> {
|
|||
}
|
||||
}
|
||||
|
||||
impl SyntaxNode<OwnedRoot> {
|
||||
impl SyntaxNode {
|
||||
pub(crate) fn new(green: GreenNode, errors: Vec<SyntaxError>) -> SyntaxNode {
|
||||
SyntaxNode(::rowan::SyntaxNode::new(green, errors))
|
||||
}
|
||||
}
|
||||
impl<'a> SyntaxNode<RefRoot<'a>> {
|
||||
impl<'a> SyntaxNodeRef<'a> {
|
||||
pub fn leaf_text(self) -> Option<&'a SmolStr> {
|
||||
self.0.leaf_text()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue