Skip to main content

component_from_ast

Function component_from_ast 

Source
pub(super) fn component_from_ast<const VERSION: u8>(
    name: &Spanned<&str>,
    modifiers: &[Modifier<'_>],
) -> Result<AstComponent, Error>
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

Parse a component from the AST, given its name and modifiers.