mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
remove old declarative macros
This commit is contained in:
parent
bcbcc387a2
commit
b7bb6119aa
9 changed files with 33 additions and 408 deletions
|
|
@ -227,8 +227,6 @@ impl ToTokens for CommandArm {
|
|||
out.append(Group::new(Delimiter::Parenthesis, {
|
||||
let mut out = TokenStream2::new();
|
||||
out.append(self.to_enum_variant_ident());
|
||||
for arg in args.iter() {
|
||||
}
|
||||
out
|
||||
}));
|
||||
out.append(Punct::new('=', Joint));
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ impl ToTokens for ExposeImpl {
|
|||
};
|
||||
let values = variants.iter().map(ExposeArm::from);
|
||||
write_quote_to(out, quote! {
|
||||
/// Generated by [tengri_proc].
|
||||
impl ::tengri::dsl::Context<#t> for #target {
|
||||
fn get (&self, dsl: &::tengri::dsl::Value) -> Option<#t> {
|
||||
Some(match dsl {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue