syntax: Add ToTokens impl for Method
This commit is contained in:
parent
a807aa1fca
commit
e4f8cec416
@ -143,6 +143,7 @@ fn to_source(&self) -> String {
|
||||
impl_to_source!(ast::Arg, arg_to_string)
|
||||
impl_to_source!(Generics, generics_to_string)
|
||||
impl_to_source!(Gc<ast::Item>, item_to_string)
|
||||
impl_to_source!(Gc<ast::Method>, method_to_string)
|
||||
impl_to_source!(Gc<ast::Expr>, expr_to_string)
|
||||
impl_to_source!(Gc<ast::Pat>, pat_to_string)
|
||||
impl_to_source_slice!(ast::Ty, ", ")
|
||||
@ -238,6 +239,7 @@ fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> {
|
||||
impl_to_tokens!(ast::Ident)
|
||||
impl_to_tokens!(Gc<ast::Item>)
|
||||
impl_to_tokens!(Gc<ast::Pat>)
|
||||
impl_to_tokens!(Gc<ast::Method>)
|
||||
impl_to_tokens_lifetime!(&'a [Gc<ast::Item>])
|
||||
impl_to_tokens!(ast::Ty)
|
||||
impl_to_tokens_lifetime!(&'a [ast::Ty])
|
||||
|
Loading…
Reference in New Issue
Block a user