pub trait AsLegacyInlineMacro {
type LegacyType;
// Required method
fn as_legacy_inline_macro(
&self,
db: &dyn SyntaxGroup,
) -> Option<Self::LegacyType>;
}
Expand description
Trait for converting inline macros with token tree syntax as the argument to legacy inline which must have a wrapped argument list syntax node.
Required Associated Types§
Sourcetype LegacyType
type LegacyType
The corresponding legacy inline macro type.
Required Methods§
Sourcefn as_legacy_inline_macro(
&self,
db: &dyn SyntaxGroup,
) -> Option<Self::LegacyType>
fn as_legacy_inline_macro( &self, db: &dyn SyntaxGroup, ) -> Option<Self::LegacyType>
Converts the inline macro to the legacy inline macro.