/external/rust/cxx/syntax/ |
D | tokens.rs | 11 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 21 ident.to_tokens(tokens); in to_tokens() 28 | Type::RustVec(ty) => ty.to_tokens(tokens), in to_tokens() 29 Type::Ref(r) | Type::Str(r) => r.to_tokens(tokens), in to_tokens() 30 Type::Ptr(p) => p.to_tokens(tokens), in to_tokens() 31 Type::Array(a) => a.to_tokens(tokens), in to_tokens() 32 Type::Fn(f) => f.to_tokens(tokens), in to_tokens() 34 Type::SliceRef(r) => r.to_tokens(tokens), in to_tokens() 40 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 48 name.rust.to_tokens(tokens); in to_tokens() [all …]
|
/external/rust/crates/quote/src/ |
D | to_tokens.rs | 55 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() method 63 self.to_tokens(&mut tokens); in to_token_stream() 80 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 81 (**self).to_tokens(tokens); in to_tokens() 86 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 87 (**self).to_tokens(tokens); in to_tokens() 92 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 93 (**self).to_tokens(tokens); in to_tokens() 98 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 99 (**self).to_tokens(tokens); in to_tokens() [all …]
|
D | ext.rs | 75 token.to_tokens(self); in append_all() 87 op.to_tokens(self); in append_separated() 89 token.to_tokens(self); in append_separated() 100 token.to_tokens(self); in append_terminated() 101 term.to_tokens(self); in append_terminated()
|
/external/rust/crates/syn/src/ |
D | op.rs | 190 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 192 BinOp::Add(t) => t.to_tokens(tokens), in to_tokens() 193 BinOp::Sub(t) => t.to_tokens(tokens), in to_tokens() 194 BinOp::Mul(t) => t.to_tokens(tokens), in to_tokens() 195 BinOp::Div(t) => t.to_tokens(tokens), in to_tokens() 196 BinOp::Rem(t) => t.to_tokens(tokens), in to_tokens() 197 BinOp::And(t) => t.to_tokens(tokens), in to_tokens() 198 BinOp::Or(t) => t.to_tokens(tokens), in to_tokens() 199 BinOp::BitXor(t) => t.to_tokens(tokens), in to_tokens() 200 BinOp::BitAnd(t) => t.to_tokens(tokens), in to_tokens() [all …]
|
D | item.rs | 1995 vis.to_tokens(&mut tokens); in item_existential() 1996 existential_token.to_tokens(&mut tokens); in item_existential() 1997 type_token.to_tokens(&mut tokens); in item_existential() 1998 ident.to_tokens(&mut tokens); in item_existential() 1999 generics.to_tokens(&mut tokens); in item_existential() 2000 generics.where_clause.to_tokens(&mut tokens); in item_existential() 2002 colon_token.to_tokens(&mut tokens); in item_existential() 2003 bounds.to_tokens(&mut tokens); in item_existential() 2005 semi_token.to_tokens(&mut tokens); in item_existential() 2802 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method [all …]
|
D | generics.rs | 1011 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 1016 TokensOrDefault(&self.lt_token).to_tokens(tokens); in to_tokens() 1026 param.to_tokens(tokens); in to_tokens() 1034 <Token![,]>::default().to_tokens(tokens); in to_tokens() 1037 param.to_tokens(tokens); in to_tokens() 1043 TokensOrDefault(&self.gt_token).to_tokens(tokens); in to_tokens() 1048 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 1053 TokensOrDefault(&self.0.lt_token).to_tokens(tokens); in to_tokens() 1063 param.to_tokens(tokens); in to_tokens() 1072 <Token![,]>::default().to_tokens(tokens); in to_tokens() [all …]
|
D | path.rs | 653 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 654 self.leading_colon.to_tokens(tokens); in to_tokens() 655 self.segments.to_tokens(tokens); in to_tokens() 661 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 662 self.ident.to_tokens(tokens); in to_tokens() 663 self.arguments.to_tokens(tokens); in to_tokens() 669 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 673 arguments.to_tokens(tokens); in to_tokens() 676 arguments.to_tokens(tokens); in to_tokens() 685 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method [all …]
|
D | derive.rs | 233 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 235 attr.to_tokens(tokens); in to_tokens() 237 self.vis.to_tokens(tokens); in to_tokens() 239 Data::Struct(d) => d.struct_token.to_tokens(tokens), in to_tokens() 240 Data::Enum(d) => d.enum_token.to_tokens(tokens), in to_tokens() 241 Data::Union(d) => d.union_token.to_tokens(tokens), in to_tokens() 243 self.ident.to_tokens(tokens); in to_tokens() 244 self.generics.to_tokens(tokens); in to_tokens() 248 self.generics.where_clause.to_tokens(tokens); in to_tokens() 249 fields.to_tokens(tokens); in to_tokens() [all …]
|
D | expr.rs | 2881 e.to_tokens(tokens); in wrap_bare_struct() 2884 e.to_tokens(tokens); in wrap_bare_struct() 2907 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 2909 self.box_token.to_tokens(tokens); in to_tokens() 2910 self.expr.to_tokens(tokens); in to_tokens() 2917 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 2921 self.elems.to_tokens(tokens); in to_tokens() 2928 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 2930 self.func.to_tokens(tokens); in to_tokens() 2932 self.args.to_tokens(tokens); in to_tokens() [all …]
|
D | pat.rs | 773 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 775 self.underscore_token.to_tokens(tokens); in to_tokens() 781 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 783 self.by_ref.to_tokens(tokens); in to_tokens() 784 self.mutability.to_tokens(tokens); in to_tokens() 785 self.ident.to_tokens(tokens); in to_tokens() 787 at_token.to_tokens(tokens); in to_tokens() 788 subpat.to_tokens(tokens); in to_tokens() 795 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 797 self.path.to_tokens(tokens); in to_tokens() [all …]
|
D | ty.rs | 1070 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 1072 self.elem.to_tokens(tokens); in to_tokens() 1079 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 1081 self.elem.to_tokens(tokens); in to_tokens() 1082 self.semi_token.to_tokens(tokens); in to_tokens() 1083 self.len.to_tokens(tokens); in to_tokens() 1090 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 1091 self.star_token.to_tokens(tokens); in to_tokens() 1093 Some(tok) => tok.to_tokens(tokens), in to_tokens() 1095 TokensOrDefault(&self.const_token).to_tokens(tokens); in to_tokens() [all …]
|
D | data.rs | 422 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 424 self.ident.to_tokens(tokens); in to_tokens() 425 self.fields.to_tokens(tokens); in to_tokens() 427 eq_token.to_tokens(tokens); in to_tokens() 428 disc.to_tokens(tokens); in to_tokens() 435 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 437 self.named.to_tokens(tokens); in to_tokens() 444 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 446 self.unnamed.to_tokens(tokens); in to_tokens() 453 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method [all …]
|
D | stmt.rs | 287 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 296 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 298 Stmt::Local(local) => local.to_tokens(tokens), in to_tokens() 299 Stmt::Item(item) => item.to_tokens(tokens), in to_tokens() 300 Stmt::Expr(expr) => expr.to_tokens(tokens), in to_tokens() 302 expr.to_tokens(tokens); in to_tokens() 303 semi.to_tokens(tokens); in to_tokens() 311 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 313 self.let_token.to_tokens(tokens); in to_tokens() 314 self.pat.to_tokens(tokens); in to_tokens() [all …]
|
D | mac.rs | 203 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 204 self.path.to_tokens(tokens); in to_tokens() 205 self.bang_token.to_tokens(tokens); in to_tokens() 208 paren.surround(tokens, |tokens| self.tokens.to_tokens(tokens)); in to_tokens() 211 brace.surround(tokens, |tokens| self.tokens.to_tokens(tokens)); in to_tokens() 214 bracket.surround(tokens, |tokens| self.tokens.to_tokens(tokens)); in to_tokens()
|
D | attr.rs | 640 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 641 self.pound_token.to_tokens(tokens); in to_tokens() 643 b.to_tokens(tokens); in to_tokens() 646 self.path.to_tokens(tokens); in to_tokens() 647 self.tokens.to_tokens(tokens); in to_tokens() 654 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 655 self.path.to_tokens(tokens); in to_tokens() 657 self.nested.to_tokens(tokens); in to_tokens() 664 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 665 self.path.to_tokens(tokens); in to_tokens() [all …]
|
D | print.rs | 10 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() function 12 Some(t) => t.to_tokens(tokens), in to_tokens() 13 None => T::default().to_tokens(tokens), in to_tokens()
|
D | macros.rs | 16 fn to_tokens(&self, _: &mut ::proc_macro2::TokenStream) { 132 ($($arms)* $name::$variant(_e) => _e.to_tokens($tokens),) 147 fn to_tokens(&self, $tokens: &mut ::proc_macro2::TokenStream) {
|
/external/rust/crates/syn-mid/src/ |
D | pat.rs | 312 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 313 self.underscore_token.to_tokens(tokens); in to_tokens() 318 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 319 self.by_ref.to_tokens(tokens); in to_tokens() 320 self.mutability.to_tokens(tokens); in to_tokens() 321 self.ident.to_tokens(tokens); in to_tokens() 326 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 327 self.path.to_tokens(tokens); in to_tokens() 329 self.fields.to_tokens(tokens); in to_tokens() 332 <Token![,]>::default().to_tokens(tokens); in to_tokens() [all …]
|
D | func.rs | 195 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 222 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 223 self.constness.to_tokens(tokens); in to_tokens() 224 self.asyncness.to_tokens(tokens); in to_tokens() 225 self.unsafety.to_tokens(tokens); in to_tokens() 226 self.abi.to_tokens(tokens); in to_tokens() 227 self.fn_token.to_tokens(tokens); in to_tokens() 228 self.ident.to_tokens(tokens); in to_tokens() 229 self.generics.to_tokens(tokens); in to_tokens() 231 self.inputs.to_tokens(tokens); in to_tokens() [all …]
|
/external/rust/crates/serde_derive/src/ |
D | fragment.rs | 29 fn to_tokens(&self, out: &mut TokenStream) { in to_tokens() method 31 Fragment::Expr(expr) => expr.to_tokens(out), in to_tokens() 33 token::Brace::default().surround(out, |out| block.to_tokens(out)); in to_tokens() 42 fn to_tokens(&self, out: &mut TokenStream) { in to_tokens() method 44 Fragment::Expr(expr) => expr.to_tokens(out), in to_tokens() 45 Fragment::Block(block) => block.to_tokens(out), in to_tokens() 54 fn to_tokens(&self, out: &mut TokenStream) { in to_tokens() method 57 expr.to_tokens(out); in to_tokens() 58 <Token![,]>::default().to_tokens(out); in to_tokens() 61 token::Brace::default().surround(out, |out| block.to_tokens(out)); in to_tokens()
|
/external/rust/cxx/macro/src/ |
D | generics.rs | 37 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 39 imp.impl_generics.to_tokens(tokens); in to_tokens() 41 self.resolve.generics.to_tokens(tokens); in to_tokens() 47 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 49 imp.ty_generics.to_tokens(tokens); in to_tokens() 55 .to_tokens(tokens); in to_tokens() 56 self.resolve.generics.lifetimes.to_tokens(tokens); in to_tokens() 60 .to_tokens(tokens); in to_tokens()
|
D | type_id.rs | 11 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 14 Crate::DollarCrate(krate) => krate.to_tokens(tokens), in to_tokens()
|
/external/rust/crates/remain/src/ |
D | parse.rs | 78 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method 80 Input::Enum(item) => item.to_tokens(tokens), in to_tokens() 81 Input::Struct(item) => item.to_tokens(tokens), in to_tokens() 82 Input::Match(expr) | Input::Let(expr) => expr.to_tokens(tokens), in to_tokens()
|
/external/rust/crates/proc-macro-error-attr/src/ |
D | parse.rs | 85 fn to_tokens(&self, ts: &mut TokenStream) { in to_tokens() method 86 self.shebang.to_tokens(ts); in to_tokens() 87 self.group.to_tokens(ts); in to_tokens()
|
/external/rust/crates/proc-macro-error/tests/ui/ |
D | misuse.stderr | 5 | ----------- doesn't satisfy `Foo: quote::to_tokens::ToTokens` 11 `Foo: quote::to_tokens::ToTokens`
|