Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 27, 2024
1 parent 490960e commit affb65e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion module/core/former_meta/src/derive/former.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,18 @@ fn container_setter
let params = typ::type_parameters( &non_optional_ty, .. );

// example : `former::VectorDefinition`
let subformer_definition = &field.attrs.container.as_ref().unwrap().expr;
let mut subformer_definition = &field.attrs.container.as_ref().unwrap().expr;

// xxx
// if subformer_definition.is_none()
// {
// let extra : syn::Type = parse_quote!
// // let code = qt!
// {
//
// }
// subformer_definition = Some( code );
// }

use convert_case::{ Case, Casing };
let former_assign_end_name = format!( "{}FormerAssign{}End", stru, field_ident.to_string().to_case( Case::Pascal ) );
Expand Down

0 comments on commit affb65e

Please sign in to comment.