logo
1
2
3
4
5
6
7
8
9
10
use proc_macro2::TokenStream as TokenStream2;
use quote::quote;

use crate::widgets::gen::Property;

impl Property {
    pub fn args_stream(&self) -> Option<TokenStream2> {
        self.args.as_ref().map(|args| quote! { ,#args })
    }
}