Home
last modified time | relevance | path

Searched refs:to_tokens (Results 1 – 25 of 46) sorted by relevance

12

/third_party/rust/crates/cxx/syntax/
Dtokens.rs11 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
24 ident.to_tokens(tokens); in to_tokens()
31 | Type::RustVec(ty) => ty.to_tokens(tokens), in to_tokens()
32 Type::Ref(r) | Type::Str(r) => r.to_tokens(tokens), in to_tokens()
33 Type::Ptr(p) => p.to_tokens(tokens), in to_tokens()
34 Type::Array(a) => a.to_tokens(tokens), in to_tokens()
35 Type::Fn(f) => f.to_tokens(tokens), in to_tokens()
37 Type::SliceRef(r) => r.to_tokens(tokens), in to_tokens()
43 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
53 name.rust.to_tokens(tokens); in to_tokens()
[all …]
/third_party/rust/crates/quote/src/
Dto_tokens.rs53 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() method
61 self.to_tokens(&mut tokens); in to_token_stream()
78 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
79 (**self).to_tokens(tokens); in to_tokens()
84 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
85 (**self).to_tokens(tokens); in to_tokens()
90 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
91 (**self).to_tokens(tokens); in to_tokens()
96 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
97 (**self).to_tokens(tokens); in to_tokens()
[all …]
Dext.rs73 token.to_tokens(self); in append_all()
85 op.to_tokens(self); in append_separated()
87 token.to_tokens(self); in append_separated()
98 token.to_tokens(self); in append_terminated()
99 term.to_tokens(self); in append_terminated()
/third_party/rust/crates/syn/src/
Dop.rs190 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 …]
Ditem.rs2773 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
2775 self.vis.to_tokens(tokens); in to_tokens()
2776 self.extern_token.to_tokens(tokens); in to_tokens()
2777 self.crate_token.to_tokens(tokens); in to_tokens()
2778 self.ident.to_tokens(tokens); in to_tokens()
2780 as_token.to_tokens(tokens); in to_tokens()
2781 rename.to_tokens(tokens); in to_tokens()
2783 self.semi_token.to_tokens(tokens); in to_tokens()
2789 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
2791 self.vis.to_tokens(tokens); in to_tokens()
[all …]
Dgenerics.rs1059 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1064 TokensOrDefault(&self.lt_token).to_tokens(tokens); in to_tokens()
1074 param.to_tokens(tokens); in to_tokens()
1082 <Token![,]>::default().to_tokens(tokens); in to_tokens()
1085 param.to_tokens(tokens); in to_tokens()
1091 TokensOrDefault(&self.gt_token).to_tokens(tokens); in to_tokens()
1096 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1101 TokensOrDefault(&self.0.lt_token).to_tokens(tokens); in to_tokens()
1111 param.to_tokens(tokens); in to_tokens()
1120 <Token![,]>::default().to_tokens(tokens); in to_tokens()
[all …]
Dpath.rs695 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
696 self.leading_colon.to_tokens(tokens); in to_tokens()
697 self.segments.to_tokens(tokens); in to_tokens()
703 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
704 self.ident.to_tokens(tokens); in to_tokens()
705 self.arguments.to_tokens(tokens); in to_tokens()
711 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
715 arguments.to_tokens(tokens); in to_tokens()
718 arguments.to_tokens(tokens); in to_tokens()
727 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
[all …]
Dpat.rs771 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
773 self.underscore_token.to_tokens(tokens); in to_tokens()
779 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
781 self.by_ref.to_tokens(tokens); in to_tokens()
782 self.mutability.to_tokens(tokens); in to_tokens()
783 self.ident.to_tokens(tokens); in to_tokens()
785 at_token.to_tokens(tokens); in to_tokens()
786 subpat.to_tokens(tokens); in to_tokens()
793 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
795 self.path.to_tokens(tokens); in to_tokens()
[all …]
Dexpr.rs2967 e.to_tokens(tokens); in wrap_bare_struct()
2970 e.to_tokens(tokens); in wrap_bare_struct()
2990 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
2992 self.box_token.to_tokens(tokens); in to_tokens()
2993 self.expr.to_tokens(tokens); in to_tokens()
3000 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
3003 self.elems.to_tokens(tokens); in to_tokens()
3010 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
3012 self.func.to_tokens(tokens); in to_tokens()
3014 self.args.to_tokens(tokens); in to_tokens()
[all …]
Dderive.rs233 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 …]
Dty.rs1130 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1132 self.elem.to_tokens(tokens); in to_tokens()
1139 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1141 self.elem.to_tokens(tokens); in to_tokens()
1142 self.semi_token.to_tokens(tokens); in to_tokens()
1143 self.len.to_tokens(tokens); in to_tokens()
1150 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1151 self.star_token.to_tokens(tokens); in to_tokens()
1153 Some(tok) => tok.to_tokens(tokens), in to_tokens()
1155 TokensOrDefault(&self.const_token).to_tokens(tokens); in to_tokens()
[all …]
Ddata.rs425 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
427 self.ident.to_tokens(tokens); in to_tokens()
428 self.fields.to_tokens(tokens); in to_tokens()
430 eq_token.to_tokens(tokens); in to_tokens()
431 disc.to_tokens(tokens); in to_tokens()
438 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
440 self.named.to_tokens(tokens); in to_tokens()
447 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
449 self.unnamed.to_tokens(tokens); in to_tokens()
456 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
[all …]
Dstmt.rs314 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
323 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
325 Stmt::Local(local) => local.to_tokens(tokens), in to_tokens()
326 Stmt::Item(item) => item.to_tokens(tokens), in to_tokens()
327 Stmt::Expr(expr) => expr.to_tokens(tokens), in to_tokens()
329 expr.to_tokens(tokens); in to_tokens()
330 semi.to_tokens(tokens); in to_tokens()
338 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
340 self.let_token.to_tokens(tokens); in to_tokens()
341 self.pat.to_tokens(tokens); in to_tokens()
[all …]
Dattr.rs632 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
633 self.pound_token.to_tokens(tokens); in to_tokens()
635 b.to_tokens(tokens); in to_tokens()
638 self.path.to_tokens(tokens); in to_tokens()
639 self.tokens.to_tokens(tokens); in to_tokens()
646 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
647 self.path.to_tokens(tokens); in to_tokens()
649 self.nested.to_tokens(tokens); in to_tokens()
656 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
657 self.path.to_tokens(tokens); in to_tokens()
[all …]
Dmac.rs203 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()
Dprint.rs10 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()
Dmacros.rs20 fn to_tokens(&self, _: &mut ::proc_macro2::TokenStream) {
149 ($($arms)* $(#[cfg $cfg_attr])* $name::$variant(_e) => _e.to_tokens($tokens),)
157 fn to_tokens(&self, $tokens: &mut ::proc_macro2::TokenStream) {
/third_party/rust/crates/cxx/macro/src/
Dtokens.rs22 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
37 langle.to_tokens(tokens); in to_tokens()
39 ampersand.to_tokens(tokens); in to_tokens()
40 lifetime.to_tokens(tokens); in to_tokens()
41 mutability.to_tokens(tokens); in to_tokens()
42 ty.to_tokens(tokens); in to_tokens()
44 rangle.to_tokens(tokens); in to_tokens()
50 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
65 langle.to_tokens(tokens); in to_tokens()
67 ampersand.to_tokens(tokens); in to_tokens()
[all …]
Dgenerics.rs37 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()
76 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
82 lt_token.to_tokens(tokens); in to_tokens()
[all …]
Dtype_id.rs12 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
15 Crate::DollarCrate(krate) => krate.to_tokens(tokens), in to_tokens()
/third_party/rust/crates/serde/serde_derive/src/
Dfragment.rs29 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()
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/
Dparse.rs85 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()
/third_party/rust/crates/clap/clap_derive/src/
Dattr.rs189 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
191 Self::LitStr(t) => t.to_tokens(tokens), in to_tokens()
192 Self::Expr(t) => t.to_tokens(tokens), in to_tokens()
195 t.to_tokens(tokens) in to_tokens()
/third_party/rust/crates/tracing/tracing-attributes/src/
Dattr.rs312 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
313 self.0.to_tokens(tokens) in to_tokens()
346 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
362 self.kind.to_tokens(tokens); in to_tokens()
363 self.name.to_tokens(tokens); in to_tokens()
369 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
/third_party/rust/crates/quote/tests/
Dtest.rs17 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
26 fn to_tokens(&self, tokens: &mut TokenStream) { in test_quote_impl()
27 (**self).to_tokens(tokens) in test_quote_impl()
48 fn to_tokens(&self, tokens: &mut TokenStream) { in test_quote_spanned_impl()
49 (**self).to_tokens(tokens) in test_quote_spanned_impl()

12