pub fn parse(
        crate_name : &str,
        attr_params : TokenStream,
        item : &str,
    ) -> ParseResult<ComInterface>
    {
        // Parse the input code.
        let item : ::syn::Item = ::syn::parse_str( item )
            .map_err( |_| ParseError::ComInterface(
                    "<Unknown>".into(),
                    "Item syntax error".into() ) )?;

        Self::from_ast( crate_name, attr_params, &item )
    }
/// Parses a #[com_interface] attribute and the associated item.
Parses a #[com_interface] attribute and the associated item.
Parses a # [ com_interface ] attribute and the associated item .
pub fn parse(
        crate_name : &str,
        attr_params : TokenStream,
        item : &str,
    ) -> ParseResult<ComInterface>
    {
        // Parse the input code.
        let item : ::syn::Item = ::syn::parse_str( item )
            .map_err( |_| ParseError::ComInterface(
                    "<Unknown>".into(),
                    "Item syntax error".into() ) )?;
        Self::from_ast( crate_name, attr_params, &item )
    }
pub fn parse ( crate_name : & str , attr_params : TokenStream , item : & str , ) -> ParseResult < ComInterface > { // Parse the input code. let item : :: syn :: Item = :: syn :: parse_str ( item ) . map_err ( | _ | ParseError :: ComInterface ( " " . into ( ) , " " . into ( ) ) ) ? ; Self :: from_ast ( crate_name , attr_params , & item ) }
Parses a #[com_interface] attribute and the associated item.
Parses a # [ com_interface ] attribute and the associated item .
crate_name
&str
attr_params
TokenStream
item
&str