pub fn build(self) -> TokenStream {
        let found_crate = proc_macro_crate::crate_name("kayak_core");
        let kayak_core = if let Ok(found_crate) = found_crate {
            match found_crate {
                proc_macro_crate::FoundCrate::Itself => quote! { crate },
                proc_macro_crate::FoundCrate::Name(name) => {
                    let ident = syn::Ident::new(&name, proc_macro2::Span::call_site());
                    quote!(#ident)
                }
            }
        } else {
            quote!(kayak_ui::core)
        };

        let dep_array = self.create_dep_array();
        let cloned_deps = self.create_clone_deps();
        let closure = self.closure;
        let result = quote! {{
            use #kayak_core::{Bound, MutableBound};
            #cloned_deps;
            context.create_effect(
                #closure,
                #dep_array
            );
        }};
        TokenStream::from(result)
    }
/// Build the output token stream, creating the actual use_effect code
Build the output token stream, creating the actual use_effect code
Build the output token stream creating the actual use_effect code
pub fn build(self) -> TokenStream {
        let found_crate = proc_macro_crate::crate_name("kayak_core");
        let kayak_core = if let Ok(found_crate) = found_crate {
            match found_crate {
                proc_macro_crate::FoundCrate::Itself => quote! { crate },
                proc_macro_crate::FoundCrate::Name(name) => {
                    let ident = syn::Ident::new(&name, proc_macro2::Span::call_site());
                    quote!(#ident)
                }
            }
        } else {
            quote!(kayak_ui::core)
        };
        let dep_array = self.create_dep_array();
        let cloned_deps = self.create_clone_deps();
        let closure = self.closure;
        let result = quote! {{
            use #kayak_core::{Bound, MutableBound};
            #cloned_deps;
            context.create_effect(
                #closure,
                #dep_array
            );
        }};
        TokenStream::from(result)
    }
pub fn build ( self ) -> TokenStream { let found_crate = proc_macro_crate :: crate_name ( " " ) ; let kayak_core = if let Ok ( found_crate ) = found_crate { match found_crate { proc_macro_crate :: FoundCrate :: Itself => quote ! { crate } , proc_macro_crate :: FoundCrate :: Name ( name ) => { let ident = syn :: Ident :: new ( & name , proc_macro2 :: Span :: call_site ( ) ) ; quote ! ( ident ) } } } else { quote ! ( kayak_ui core ) } ; let dep_array = self . create_dep_array ( ) ; let cloned_deps = self . create_clone_deps ( ) ; let closure = self . closure ; let result = quote ! { { use kayak_core { Bound MutableBound } cloned_deps context create_effect ( closure dep_array ) } } ; TokenStream :: from ( result ) }
Build the output token stream, creating the actual use_effect code
Build the output token stream creating the actual use_effect code
self