-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…41) * Implement for_each_replace macro logic * Test and export for_each_replace * Make exclude list optional * Use for_each_replace inside define_components * Rename define_compoents to cgp_preset * Fix body expansion inside substitution * Reorganize preset constructs * Reorganize preset AST * Split out tests for delegate_components * Try to capture generic parameters in preset * Remove phantom type inside IsPreset * Do not include preset generics inside IsPreset impl for now * Allow generics inside for_each_replace * Pass replacements as TokenStream * Add list-based replacement proc macro * Use replace_with! instead of for_each_replace! * Use `impl<T> IsPreset<Name> for T` for bulk delegation * Add changelog
- Loading branch information
1 parent
7c680b7
commit 287acd4
Showing
22 changed files
with
809 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 0 additions & 67 deletions
67
crates/cgp-component-macro-lib/src/delegate_components/define.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
crates/cgp-component-macro-lib/src/delegate_components/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
pub mod ast; | ||
pub mod define; | ||
pub mod define_struct; | ||
pub mod delegate; | ||
pub mod delegates_to; | ||
pub mod impl_delegate; | ||
pub mod merge_generics; | ||
pub mod substitution_macro; | ||
|
||
pub use define::define_components; | ||
pub use delegate::delegate_components; |
140 changes: 0 additions & 140 deletions
140
crates/cgp-component-macro-lib/src/delegate_components/substitution_macro.rs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.