aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
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