From 2d3940d0ab862dbfaed4f4c844faaca6a38e31e9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 11 Jan 2019 19:59:06 +0300 Subject: rename TreePtr -> TreeArc This is much clearer about the semantics --- crates/ra_hir/src/macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src/macros.rs') diff --git a/crates/ra_hir/src/macros.rs b/crates/ra_hir/src/macros.rs index e455b2ad5..220bee94e 100644 --- a/crates/ra_hir/src/macros.rs +++ b/crates/ra_hir/src/macros.rs @@ -11,7 +11,7 @@ use std::sync::Arc; use ra_db::LocalSyntaxPtr; use ra_syntax::{ - TextRange, TextUnit, SourceFile, AstNode, SyntaxNode, TreePtr, + TextRange, TextUnit, SourceFile, AstNode, SyntaxNode, TreeArc, ast::{self, NameOwner}, }; @@ -152,11 +152,11 @@ pub struct MacroExpansion { impl MacroExpansion { // FIXME: does not really make sense, macro expansion is not neccessary a // whole file. See `MacroExpansion::ptr` as well. - pub(crate) fn file(&self) -> TreePtr { + pub(crate) fn file(&self) -> TreeArc { SourceFile::parse(&self.text) } - pub fn syntax(&self) -> TreePtr { + pub fn syntax(&self) -> TreeArc { self.ptr.resolve(&self.file()) } /// Maps range in the source code to the range in the expanded code. -- cgit v1.2.3