Trait ra_ap_hir::MacroFileIdExt

source ·
pub trait MacroFileIdExt {
Show 13 methods // Required methods fn is_env_or_option_env(&self, db: &dyn ExpandDatabase) -> bool; fn is_include_like_macro(&self, db: &dyn ExpandDatabase) -> bool; fn eager_arg(&self, db: &dyn ExpandDatabase) -> Option<MacroCallId>; fn expansion_level(self, db: &dyn ExpandDatabase) -> u32; fn call_node( self, db: &dyn ExpandDatabase ) -> InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>; fn parent(self, db: &dyn ExpandDatabase) -> HirFileId; fn expansion_info(self, db: &dyn ExpandDatabase) -> ExpansionInfo; fn is_builtin_derive(&self, db: &dyn ExpandDatabase) -> bool; fn is_custom_derive(&self, db: &dyn ExpandDatabase) -> bool; fn is_include_macro(&self, db: &dyn ExpandDatabase) -> bool; fn is_eager(&self, db: &dyn ExpandDatabase) -> bool; fn is_attr_macro(&self, db: &dyn ExpandDatabase) -> bool; fn is_derive_attr_pseudo_expansion(&self, db: &dyn ExpandDatabase) -> bool;
}

Required Methods§

source

fn is_env_or_option_env(&self, db: &dyn ExpandDatabase) -> bool

source

fn is_include_like_macro(&self, db: &dyn ExpandDatabase) -> bool

source

fn eager_arg(&self, db: &dyn ExpandDatabase) -> Option<MacroCallId>

source

fn expansion_level(self, db: &dyn ExpandDatabase) -> u32

source

fn call_node( self, db: &dyn ExpandDatabase ) -> InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>

If this is a macro call, returns the syntax node of the call.

source

fn parent(self, db: &dyn ExpandDatabase) -> HirFileId

source

fn expansion_info(self, db: &dyn ExpandDatabase) -> ExpansionInfo

source

fn is_builtin_derive(&self, db: &dyn ExpandDatabase) -> bool

source

fn is_custom_derive(&self, db: &dyn ExpandDatabase) -> bool

source

fn is_include_macro(&self, db: &dyn ExpandDatabase) -> bool

Return whether this file is an include macro

source

fn is_eager(&self, db: &dyn ExpandDatabase) -> bool

source

fn is_attr_macro(&self, db: &dyn ExpandDatabase) -> bool

Return whether this file is an attr macro

source

fn is_derive_attr_pseudo_expansion(&self, db: &dyn ExpandDatabase) -> bool

Return whether this file is the pseudo expansion of the derive attribute. See [crate::builtin_attr_macro::derive_attr_expand].

Implementors§