Skip to content

Commit

Permalink
former : cleaning and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed May 7, 2024
1 parent 3e36f42 commit 32966ca
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions module/core/former_meta/src/derive_former.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use iter_tools::{ Itertools, process_results };
use macro_tools::{ attr, diag, generic_params, generic_args, typ, derive, Result };
use proc_macro2::TokenStream;

// zzz : explain concept of Storage
// qqq : implement interfaces for other containers

mod field;
Expand All @@ -14,7 +13,7 @@ use field_attrs::*;
mod struct_attrs;
use struct_attrs::*;

/// xxx : write documentation and example of generated code
/// zzz : write documentation and example of generated code
pub fn mutator
(
Expand Down Expand Up @@ -141,8 +140,6 @@ pub fn former( input : proc_macro::TokenStream ) -> Result< TokenStream >
let stru = &ast.ident;
let former_name = format!( "{}Former", stru );
let former = syn::Ident::new( &former_name, stru.span() );
// let former_namespace_name = format!( "{}FormerSpace", stru );
// let former_namespace = syn::Ident::new( &former_namespace_name, stru.span() );
let former_storage_name = format!( "{}FormerStorage", stru );
let former_storage = syn::Ident::new( &former_storage_name, stru.span() );
let former_definition_name = format!( "{}FormerDefinition", stru );
Expand Down Expand Up @@ -366,12 +363,6 @@ pub fn former( input : proc_macro::TokenStream ) -> Result< TokenStream >
type Types = #former_definition_types < #struct_generics_ty __Context, __Formed >;
}

// #[ allow( non_snake_case ) ]
// pub mod #former_namespace
// {
// pub use super::#stru;
// use super::*;

// = definition types

#[ derive( Debug ) ]
Expand Down Expand Up @@ -750,25 +741,12 @@ pub fn former( input : proc_macro::TokenStream ) -> Result< TokenStream >
{
}

// = container assign callbacks

// #(
// #former_assign_end
// )*
// = etc

#(
#namespace_code
)*

// = container add callbacks

// #(
// #former_add_end
// )*

// } /* end of namespace */
// pub use #former_namespace :: *;

};

if has_debug
Expand Down

0 comments on commit 32966ca

Please sign in to comment.