mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
rename
This commit is contained in:
@@ -23,7 +23,7 @@ pub trait HirDatabase: SyntaxDatabase
|
||||
{
|
||||
fn hir_source_file(file_id: HirFileId) -> SourceFileNode {
|
||||
type HirSourceFileQuery;
|
||||
use fn HirFileId::source_file_query;
|
||||
use fn HirFileId::hir_source_file;
|
||||
}
|
||||
fn expand_macro_invocation(invoc: MacroCallId) -> Option<Arc<MacroExpansion>> {
|
||||
type ExpandMacroCallQuery;
|
||||
|
||||
@@ -45,7 +45,7 @@ pub(crate) fn as_original_file(self) -> FileId {
|
||||
HirFileIdRepr::Macro(_r) => panic!("macro generated file: {:?}", self),
|
||||
}
|
||||
}
|
||||
pub(crate) fn source_file_query(db: &impl HirDatabase, file_id: HirFileId) -> SourceFileNode {
|
||||
pub(crate) fn hir_source_file(db: &impl HirDatabase, file_id: HirFileId) -> SourceFileNode {
|
||||
match file_id.0 {
|
||||
HirFileIdRepr::File(file_id) => db.source_file(file_id),
|
||||
HirFileIdRepr::Macro(m) => {
|
||||
|
||||
Reference in New Issue
Block a user