MacroCallSemantic

Trait MacroCallSemantic 

Source
pub trait MacroCallSemantic<'db>: Database {
    // Provided methods
    fn priv_macro_call_data(
        &'db self,
        macro_call_id: MacroCallId<'db>,
    ) -> Maybe<MacroCallData<'db>> { ... }
    fn macro_call_module_id(
        &'db self,
        macro_call_id: MacroCallId<'db>,
    ) -> Maybe<ModuleId<'db>> { ... }
    fn macro_call_diagnostics(
        &'db self,
        macro_call_id: MacroCallId<'db>,
    ) -> Diagnostics<'db, SemanticDiagnostic<'db>> { ... }
}
Expand description

Trait for macro call-related semantic queries.

Provided Methods§

Source

fn priv_macro_call_data( &'db self, macro_call_id: MacroCallId<'db>, ) -> Maybe<MacroCallData<'db>>

Returns the semantic data of a macro call.

Source

fn macro_call_module_id( &'db self, macro_call_id: MacroCallId<'db>, ) -> Maybe<ModuleId<'db>>

Returns the expansion result of a macro call.

Source

fn macro_call_diagnostics( &'db self, macro_call_id: MacroCallId<'db>, ) -> Diagnostics<'db, SemanticDiagnostic<'db>>

Returns the semantic diagnostics of a macro call.

Implementors§

Source§

impl<'db, T: Database + ?Sized> MacroCallSemantic<'db> for T