hir_expand::files

Type Alias InMacroFile

source
pub type InMacroFile<T> = InFileWrapper<MacroFileId, T>;

Aliased Type§

struct InMacroFile<T> {
    pub file_id: MacroFileId,
    pub value: T,
}

Fields§

§file_id: MacroFileId§value: T

Implementations§

source§

impl InMacroFile<SyntaxToken>

source

pub fn upmap_once( self, db: &dyn ExpandDatabase, ) -> InFile<SmallVec<[TextRange; 1]>>

source§

impl InMacroFile<TextSize>

source

pub fn original_file_range( self, db: &dyn ExpandDatabase, ) -> (FileRange, SyntaxContextId)