diff options
author | Aleksey Kladov <[email protected]> | 2019-01-11 16:59:06 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-11 16:59:06 +0000 |
commit | 2d3940d0ab862dbfaed4f4c844faaca6a38e31e9 (patch) | |
tree | 0d8412f73a0fa6f9c1e6913e6133d3daf25dcb91 /crates/ra_ide_api/src/lib.rs | |
parent | aad1bf877e4ba5ce9e28e8bde14f790ef8d1551b (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.rs | 4 |
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 | ||
36 | use std::{fmt, sync::Arc}; | 36 | use std::{fmt, sync::Arc}; |
37 | 37 | ||
38 | use ra_syntax::{SourceFile, TreePtr, TextRange, TextUnit}; | 38 | use ra_syntax::{SourceFile, TreeArc, TextRange, TextUnit}; |
39 | use ra_text_edit::TextEdit; | 39 | use ra_text_edit::TextEdit; |
40 | use ra_db::{SyntaxDatabase, FilesDatabase, BaseDatabase}; | 40 | use ra_db::{SyntaxDatabase, FilesDatabase, BaseDatabase}; |
41 | use rayon::prelude::*; | 41 | use 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 | ||