diff options
Diffstat (limited to 'crates/ra_analysis/src/db.rs')
-rw-r--r-- | crates/ra_analysis/src/db.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_analysis/src/db.rs b/crates/ra_analysis/src/db.rs index 0901c2bba..11154cc65 100644 --- a/crates/ra_analysis/src/db.rs +++ b/crates/ra_analysis/src/db.rs | |||
@@ -117,7 +117,7 @@ salsa::database_storage! { | |||
117 | fn crate_graph() for crate::input::CrateGraphQuery; | 117 | fn crate_graph() for crate::input::CrateGraphQuery; |
118 | } | 118 | } |
119 | impl SyntaxDatabase { | 119 | impl SyntaxDatabase { |
120 | fn file_syntax() for FileSyntaxQuery; | 120 | fn source_file() for SourceFileQuery; |
121 | fn file_lines() for FileLinesQuery; | 121 | fn file_lines() for FileLinesQuery; |
122 | } | 122 | } |
123 | impl symbol_index::SymbolsDatabase { | 123 | impl symbol_index::SymbolsDatabase { |
@@ -139,8 +139,8 @@ salsa::database_storage! { | |||
139 | 139 | ||
140 | salsa::query_group! { | 140 | salsa::query_group! { |
141 | pub(crate) trait SyntaxDatabase: crate::input::FilesDatabase + BaseDatabase { | 141 | pub(crate) trait SyntaxDatabase: crate::input::FilesDatabase + BaseDatabase { |
142 | fn file_syntax(file_id: FileId) -> SourceFileNode { | 142 | fn source_file(file_id: FileId) -> SourceFileNode { |
143 | type FileSyntaxQuery; | 143 | type SourceFileQuery; |
144 | } | 144 | } |
145 | fn file_lines(file_id: FileId) -> Arc<LineIndex> { | 145 | fn file_lines(file_id: FileId) -> Arc<LineIndex> { |
146 | type FileLinesQuery; | 146 | type FileLinesQuery; |
@@ -148,7 +148,7 @@ salsa::query_group! { | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | fn file_syntax(db: &impl SyntaxDatabase, file_id: FileId) -> SourceFileNode { | 151 | fn source_file(db: &impl SyntaxDatabase, file_id: FileId) -> SourceFileNode { |
152 | let text = db.file_text(file_id); | 152 | let text = db.file_text(file_id); |
153 | SourceFileNode::parse(&*text) | 153 | SourceFileNode::parse(&*text) |
154 | } | 154 | } |