use proc_macro::TokenStream;

pub(crate) fn outpoint_trans(input: TokenStream) -> TokenStream {
    match super::parse::parse_trans(input) {
        Ok(url_args) => url_args.expand_outpoint(),
        Err(err) => err,
    }
}

pub(crate) fn outpoint_attr(attr: TokenStream, input: TokenStream) -> TokenStream {
    match super::parse::parse_attr(attr, input) {
        Ok(url_args) => url_args.expand_outpoint(),
        Err(err) => err,
    }
}

pub(crate) fn outpoint_semi_trans(input: TokenStream) -> TokenStream {
    match super::parse::parse_semi_trans(input) {
        Ok(url_args) => url_args.expand_outpoint(),
        Err(err) => err,
    }
}
