aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-11 16:59:06 +0000
committerAleksey Kladov <[email protected]>2019-01-11 16:59:06 +0000
commit2d3940d0ab862dbfaed4f4c844faaca6a38e31e9 (patch)
tree0d8412f73a0fa6f9c1e6913e6133d3daf25dcb91 /crates/ra_ide_api/src/lib.rs
parentaad1bf877e4ba5ce9e28e8bde14f790ef8d1551b (diff)
rename TreePtr -> TreeArc
This is much clearer about the semantics
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index 6155d903a..abb50ff95 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -35,7 +35,7 @@ mod parent_module;
35 35
36use std::{fmt, sync::Arc}; 36use std::{fmt, sync::Arc};
37 37
38use ra_syntax::{SourceFile, TreePtr, TextRange, TextUnit}; 38use ra_syntax::{SourceFile, TreeArc, TextRange, TextUnit};
39use ra_text_edit::TextEdit; 39use ra_text_edit::TextEdit;
40use ra_db::{SyntaxDatabase, FilesDatabase, BaseDatabase}; 40use ra_db::{SyntaxDatabase, FilesDatabase, BaseDatabase};
41use rayon::prelude::*; 41use rayon::prelude::*;
@@ -303,7 +303,7 @@ impl Analysis {
303 } 303 }
304 304
305 /// Gets the syntax tree of the file. 305 /// Gets the syntax tree of the file.
306 pub fn file_syntax(&self, file_id: FileId) -> TreePtr<SourceFile> { 306 pub fn file_syntax(&self, file_id: FileId) -> TreeArc<SourceFile> {
307 self.db.source_file(file_id).clone() 307 self.db.source_file(file_id).clone()
308 } 308 }
309 309