mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
FromDsl -> Namespace
This commit is contained in:
parent
455d6d00d5
commit
f714302f21
8 changed files with 33 additions and 32 deletions
|
|
@ -84,7 +84,7 @@ impl ToTokens for CommandDef {
|
|||
let mut out = TokenStream2::new();
|
||||
for (arg, ty) in arm.args() {
|
||||
write_quote_to(&mut out, quote! {
|
||||
#arg: FromDsl::take_from_or_fail(self, words)?,
|
||||
#arg: Namespace::take_from_or_fail(self, words)?,
|
||||
});
|
||||
}
|
||||
out
|
||||
|
|
@ -149,7 +149,7 @@ impl ToTokens for CommandDef {
|
|||
}
|
||||
}
|
||||
/// Generated by [tengri_proc::command].
|
||||
impl<'source> ::tengri::dsl::FromDsl<'source, #state> for #command_enum {
|
||||
impl<'source> ::tengri::dsl::Namespace<'source, #state> for #command_enum {
|
||||
fn take_from <'state> (
|
||||
state: &'state #state,
|
||||
words: &mut ::tengri::dsl::TokenIter<'source>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue