pub fn original_file(self, db: &impl InternDatabase) -> FileId {
        match self.0 {
            HirFileIdRepr::File(file_id) => file_id,
            HirFileIdRepr::Macro(macro_file) => {
                let loc = macro_file.macro_call_id.loc(db);
                loc.ast_id.file_id().original_file(db)
            }
        }
    }
/// For macro-expansion files, returns the file original source file the
/// expansion originated from.
For macro-expansion files, returns the file original source file the
expansion originated from.
For macro - expansion files returns the file original source file the expansion originated from .
pub fn original_file(self, db: &impl InternDatabase) -> FileId {
        match self.0 {
            HirFileIdRepr::File(file_id) => file_id,
            HirFileIdRepr::Macro(macro_file) => {
                let loc = macro_file.macro_call_id.loc(db);
                loc.ast_id.file_id().original_file(db)
            }
        }
    }
pub fn original_file ( self , db : & impl InternDatabase ) -> FileId { match self . 0 { HirFileIdRepr :: File ( file_id ) => file_id , HirFileIdRepr :: Macro ( macro_file ) => { let loc = macro_file . macro_call_id . loc ( db ) ; loc . ast_id . file_id ( ) . original_file ( db ) } } }
For macro-expansion files, returns the file original source file the
expansion originated from.
For macro - expansion files returns the file original source file the expansion originated from .
self
db
&impl InternDatabase
self
db
&impl InternDatabase