Home
last modified time | relevance | path

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

12

/linux/rust/quote/
H A Dto_tokens.rs52 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() method
60 self.to_tokens(&mut tokens); in to_token_stream()
77 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
78 (**self).to_tokens(tokens); in to_tokens()
83 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
84 (**self).to_tokens(tokens); in to_tokens()
89 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
90 (**self).to_tokens(tokens); in to_tokens()
95 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
96 (**self).to_tokens(tokens); in to_tokens()
[all …]
H A Dext.rs75 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()
H A Dlib.rs114 mod to_tokens; module
123 pub use crate::to_tokens::ToTokens;
509 $crate::ToTokens::to_tokens(&$var, &mut _s);
659 $crate::ToTokens::to_tokens(&$var, &mut _s);
943 $crate::ToTokens::to_tokens(&$var, &mut $tokens);
998 $crate::ToTokens::to_tokens(&$var, &mut $tokens);
/linux/rust/syn/
H A Dop.rs177 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
179 BinOp::Add(t) => t.to_tokens(tokens), in to_tokens()
180 BinOp::Sub(t) => t.to_tokens(tokens), in to_tokens()
181 BinOp::Mul(t) => t.to_tokens(tokens), in to_tokens()
182 BinOp::Div(t) => t.to_tokens(tokens), in to_tokens()
183 BinOp::Rem(t) => t.to_tokens(tokens), in to_tokens()
184 BinOp::And(t) => t.to_tokens(tokens), in to_tokens()
185 BinOp::Or(t) => t.to_tokens(tokens), in to_tokens()
186 BinOp::BitXor(t) => t.to_tokens(tokens), in to_tokens()
187 BinOp::BitAnd(t) => t.to_tokens(tokens), in to_tokens()
[all …]
H A Dgenerics.rs1163 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1168 TokensOrDefault(&self.lt_token).to_tokens(tokens); in to_tokens()
1175 param.to_tokens(tokens); in to_tokens()
1183 <Token![,]>::default().to_tokens(tokens); in to_tokens()
1186 param.to_tokens(tokens); in to_tokens()
1192 TokensOrDefault(&self.gt_token).to_tokens(tokens); in to_tokens()
1197 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1202 TokensOrDefault(&self.0.lt_token).to_tokens(tokens); in to_tokens()
1209 param.to_tokens(tokens); in to_tokens()
1218 <Token![,]>::default().to_tokens(tokens); in to_tokens()
[all …]
H A Ditem.rs2955 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
2957 self.vis.to_tokens(tokens); in to_tokens()
2958 self.extern_token.to_tokens(tokens); in to_tokens()
2959 self.crate_token.to_tokens(tokens); in to_tokens()
2960 self.ident.to_tokens(tokens); in to_tokens()
2962 as_token.to_tokens(tokens); in to_tokens()
2963 rename.to_tokens(tokens); in to_tokens()
2965 self.semi_token.to_tokens(tokens); in to_tokens()
2971 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
2973 self.vis.to_tokens(tokens); in to_tokens()
[all …]
H A Dpath.rs733 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
739 path.leading_colon.to_tokens(tokens); in print_path()
742 segment.punct().to_tokens(tokens); in print_path()
748 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
754 segment.ident.to_tokens(tokens); in print_path_segment()
760 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
780 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
782 GenericArgument::Lifetime(lt) => lt.to_tokens(tokens), in to_tokens()
783 GenericArgument::Type(ty) => ty.to_tokens(tokens), in to_tokens()
787 GenericArgument::AssocType(assoc) => assoc.to_tokens(tokens), in to_tokens()
[all …]
H A Dderive.rs220 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
222 attr.to_tokens(tokens); in to_tokens()
224 self.vis.to_tokens(tokens); in to_tokens()
226 Data::Struct(d) => d.struct_token.to_tokens(tokens), in to_tokens()
227 Data::Enum(d) => d.enum_token.to_tokens(tokens), in to_tokens()
228 Data::Union(d) => d.union_token.to_tokens(tokens), in to_tokens()
230 self.ident.to_tokens(tokens); in to_tokens()
231 self.generics.to_tokens(tokens); in to_tokens()
235 self.generics.where_clause.to_tokens(tokens); in to_tokens()
236 fields.to_tokens(tokens); in to_tokens()
[all …]
H A Dty.rs1089 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1091 self.elem.to_tokens(tokens); in to_tokens()
1098 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1100 self.elem.to_tokens(tokens); in to_tokens()
1101 self.semi_token.to_tokens(tokens); in to_tokens()
1102 self.len.to_tokens(tokens); in to_tokens()
1109 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1110 self.star_token.to_tokens(tokens); in to_tokens()
1112 Some(tok) => tok.to_tokens(tokens), in to_tokens()
1114 TokensOrDefault(&self.const_token).to_tokens(tokens); in to_tokens()
[all …]
H A Dpat.rs823 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
825 self.by_ref.to_tokens(tokens); in to_tokens()
826 self.mutability.to_tokens(tokens); in to_tokens()
827 self.ident.to_tokens(tokens); in to_tokens()
829 at_token.to_tokens(tokens); in to_tokens()
830 subpat.to_tokens(tokens); in to_tokens()
837 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
839 self.leading_vert.to_tokens(tokens); in to_tokens()
840 self.cases.to_tokens(tokens); in to_tokens()
846 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
[all …]
H A Dexpr.rs3207 Expr::Array(e) => e.to_tokens(tokens), in print_expr()
3211 Expr::Async(e) => e.to_tokens(tokens), in print_expr()
3216 Expr::Block(e) => e.to_tokens(tokens), in print_expr()
3224 Expr::Const(e) => e.to_tokens(tokens), in print_expr()
3226 Expr::Continue(e) => e.to_tokens(tokens), in print_expr()
3229 Expr::ForLoop(e) => e.to_tokens(tokens), in print_expr()
3230 Expr::Group(e) => e.to_tokens(tokens), in print_expr()
3232 Expr::If(e) => e.to_tokens(tokens), in print_expr()
3235 Expr::Infer(e) => e.to_tokens(tokens), in print_expr()
3238 Expr::Lit(e) => e.to_tokens(tokens), in print_expr()
[all …]
H A Ddata.rs385 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
387 self.ident.to_tokens(tokens); in to_tokens()
388 self.fields.to_tokens(tokens); in to_tokens()
390 eq_token.to_tokens(tokens); in to_tokens()
391 disc.to_tokens(tokens); in to_tokens()
398 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
400 self.named.to_tokens(tokens); in to_tokens()
407 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
409 self.unnamed.to_tokens(tokens); in to_tokens()
416 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
[all …]
H A Dstmt.rs428 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
437 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
439 Stmt::Local(local) => local.to_tokens(tokens), in to_tokens()
440 Stmt::Item(item) => item.to_tokens(tokens), in to_tokens()
443 semi.to_tokens(tokens); in to_tokens()
445 Stmt::Macro(mac) => mac.to_tokens(tokens), in to_tokens()
452 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
454 self.let_token.to_tokens(tokens); in to_tokens()
455 self.pat.to_tokens(tokens); in to_tokens()
457 init.eq_token.to_tokens(tokens); in to_tokens()
[all …]
H A Drestriction.rs159 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
161 Visibility::Public(pub_token) => pub_token.to_tokens(tokens), in to_tokens()
162 Visibility::Restricted(vis_restricted) => vis_restricted.to_tokens(tokens), in to_tokens()
170 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
171 self.pub_token.to_tokens(tokens); in to_tokens()
175 self.in_token.to_tokens(tokens); in to_tokens()
H A Dprint.rs12 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() function
14 Some(t) => t.to_tokens(tokens), in to_tokens()
15 None => T::default().to_tokens(tokens), in to_tokens()
H A Dattr.rs800 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
801 self.pound_token.to_tokens(tokens); in to_tokens()
803 b.to_tokens(tokens); in to_tokens()
806 self.meta.to_tokens(tokens); in to_tokens()
813 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
816 Meta::List(meta_list) => meta_list.to_tokens(tokens), in to_tokens()
817 Meta::NameValue(meta_name_value) => meta_name_value.to_tokens(tokens), in to_tokens()
824 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
832 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
834 self.eq_token.to_tokens(tokens); in to_tokens()
[all …]
H A Dmacros.rs25 fn to_tokens(&self, _: &mut ::proc_macro2::TokenStream) {
126 ($($arms)* $(#[cfg $cfg_attr])* $name::$variant(_e) => _e.to_tokens($tokens),)
134 fn to_tokens(&self, $tokens: &mut ::proc_macro2::TokenStream) {
H A Dlit.rs1071 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1072 self.repr.token.to_tokens(tokens); in to_tokens()
1078 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1079 self.repr.token.to_tokens(tokens); in to_tokens()
1085 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1086 self.repr.token.to_tokens(tokens); in to_tokens()
1092 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1093 self.repr.token.to_tokens(tokens); in to_tokens()
1099 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
1100 self.repr.token.to_tokens(tokens); in to_tokens()
[all …]
H A Dlifetime.rs151 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
155 self.ident.to_tokens(tokens); in to_tokens()
H A Dmac.rs221 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
223 self.bang_token.to_tokens(tokens); in to_tokens()
H A Dfile.rs122 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
H A Dpunctuated.rs1136 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() function
1147 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() function
1150 a.to_tokens(tokens); in to_tokens()
1151 b.to_tokens(tokens); in to_tokens()
1153 Pair::End(a) => a.to_tokens(tokens), in to_tokens()
H A Dcustom_keyword.rs182 fn to_tokens(&self, tokens: &mut $crate::__private::TokenStream2) {
H A Dtoken.rs273 fn to_tokens(&self, tokens: &mut TokenStream) {
412 fn to_tokens(&self, tokens: &mut TokenStream) {
530 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() method
/linux/rust/macros/
H A Dquote.rs

12