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§
Sourcefn priv_macro_call_data(
&'db self,
macro_call_id: MacroCallId<'db>,
) -> Maybe<MacroCallData<'db>>
fn priv_macro_call_data( &'db self, macro_call_id: MacroCallId<'db>, ) -> Maybe<MacroCallData<'db>>
Returns the semantic data of a macro call.
Sourcefn macro_call_module_id(
&'db self,
macro_call_id: MacroCallId<'db>,
) -> Maybe<ModuleId<'db>>
fn macro_call_module_id( &'db self, macro_call_id: MacroCallId<'db>, ) -> Maybe<ModuleId<'db>>
Returns the expansion result of a macro call.
Sourcefn macro_call_diagnostics(
&'db self,
macro_call_id: MacroCallId<'db>,
) -> Diagnostics<'db, SemanticDiagnostic<'db>>
fn macro_call_diagnostics( &'db self, macro_call_id: MacroCallId<'db>, ) -> Diagnostics<'db, SemanticDiagnostic<'db>>
Returns the semantic diagnostics of a macro call.