rename
This commit is contained in:
parent
db8d293208
commit
4fe0ec5497
@ -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 @@ impl HirFileId {
|
||||
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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user