/third_party/rust/crates/quote/src/ |
D | lib.rs | 800 ($tokens:ident $($tts:tt)*) => { 801 $crate::quote_tokens_with_context!{$tokens 817 ($tokens:ident $span:ident $($tts:tt)*) => { 818 $crate::quote_tokens_with_context_spanned!{$tokens $span 834 ($tokens:ident 840 $crate::quote_token_with_context!{$tokens $b3 $b2 $b1 $curr $a1 $a2 $a3} 849 ($tokens:ident $span:ident 855 $crate::quote_token_with_context_spanned!{$tokens $span $b3 $b2 $b1 $curr $a1 $a2 $a3} 866 ($tokens:ident $b3:tt $b2:tt $b1:tt @ $a1:tt $a2:tt $a3:tt) => {}; 869 ($tokens:ident $b3:tt $b2:tt $b1:tt (#) ( $($inner:tt)* ) * $a3:tt) => {{ [all …]
|
D | to_tokens.rs | 53 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() 60 let mut tokens = TokenStream::new(); in to_token_stream() localVariable 61 self.to_tokens(&mut tokens); in to_token_stream() 62 tokens in to_token_stream() 78 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 79 (**self).to_tokens(tokens); in to_tokens() 84 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 85 (**self).to_tokens(tokens); in to_tokens() 90 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 91 (**self).to_tokens(tokens); in to_tokens() [all …]
|
D | runtime.rs | 162 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 163 self.0.to_tokens(tokens); in to_tokens() 167 pub fn push_group(tokens: &mut TokenStream, delimiter: Delimiter, inner: TokenStream) { in push_group() 168 tokens.append(Group::new(delimiter, inner)); in push_group() 172 tokens: &mut TokenStream, in push_group_spanned() 179 tokens.append(g); in push_group_spanned() 182 pub fn parse(tokens: &mut TokenStream, s: &str) { in parse() 184 tokens.extend(iter::once(s)); in parse() 187 pub fn parse_spanned(tokens: &mut TokenStream, span: Span, s: &str) { in parse_spanned() 189 tokens.extend(s.into_iter().map(|t| respan_token_tree(t, span))); in parse_spanned() [all …]
|
/third_party/rust/crates/cxx/syntax/ |
D | tokens.rs | 11 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 16 tokens.extend(quote_spanned!(span=> ::cxx::private::)); in to_tokens() 19 tokens.extend(quote_spanned!(span=> ::cxx::)); in to_tokens() 22 tokens.extend(quote_spanned!(span=> ::cxx::alloc::string::)); in to_tokens() 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() [all …]
|
/third_party/rust/crates/quote/tests/ |
D | test.rs | 17 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 18 tokens.append(Ident::new("X", Span::call_site())); in to_tokens() 24 let tokens = quote! { in test_quote_impl() localVariable 26 fn to_tokens(&self, tokens: &mut TokenStream) { in test_quote_impl() 27 (**self).to_tokens(tokens) in test_quote_impl() 40 assert_eq!(expected, tokens.to_string()); in test_quote_impl() 46 let tokens = quote_spanned! {span=> in test_quote_spanned_impl() localVariable 48 fn to_tokens(&self, tokens: &mut TokenStream) { in test_quote_spanned_impl() 49 (**self).to_tokens(tokens) in test_quote_spanned_impl() 62 assert_eq!(expected, tokens.to_string()); in test_quote_spanned_impl() [all …]
|
/third_party/rust/crates/syn/tests/ |
D | test_item.rs | 12 let tokens = TokenStream::from_iter(vec![ in test_macro_variable_attr() localVariable 20 snapshot!(tokens as Item, @r###" in test_macro_variable_attr() 53 let tokens = quote! { in test_negative_impl() localVariable 56 snapshot!(tokens as Item, @r###" in test_negative_impl() 66 let tokens = quote! { in test_negative_impl() localVariable 69 snapshot!(tokens as Item, @r###" in test_negative_impl() 78 let tokens = quote! { in test_negative_impl() localVariable 81 snapshot!(tokens as Item, @r###" in test_negative_impl() 111 let tokens = quote! { in test_negative_impl() localVariable 114 snapshot!(tokens as Item, @r###" in test_negative_impl() [all …]
|
D | test_expr.rs | 11 let tokens = quote!(..100u32); in test_expr_parse() localVariable 12 snapshot!(tokens as Expr, @r###" in test_expr_parse() 21 let tokens = quote!(..100u32); in test_expr_parse() localVariable 22 snapshot!(tokens as ExprRange, @r###" in test_expr_parse() 35 let tokens = quote!(fut.await); in test_await() localVariable 37 snapshot!(tokens as Expr, @r###" in test_await() 89 for tokens in vec![ in test_tuple_multi_index() 97 assert_eq!(expected, syn::parse2(tokens).unwrap()); in test_tuple_multi_index() 104 let tokens = TokenStream::from_iter(vec![ in test_macro_variable_func() localVariable 109 snapshot!(tokens as Expr, @r###" in test_macro_variable_func() [all …]
|
D | test_ty.rs | 22 let tokens = TokenStream::from_iter(vec![ in test_macro_variable_type() localVariable 29 snapshot!(tokens as Type, @r###" in test_macro_variable_type() 56 let tokens = TokenStream::from_iter(vec![ in test_macro_variable_type() localVariable 65 snapshot!(tokens as Type, @r###" in test_macro_variable_type() 96 let tokens = TokenStream::from_iter(vec![ in test_group_angle_brackets() localVariable 103 snapshot!(tokens as Type, @r###" in test_group_angle_brackets() 148 let tokens = TokenStream::from_iter(vec![ in test_group_colons() localVariable 155 snapshot!(tokens as Type, @r###" in test_group_colons() 185 let tokens = TokenStream::from_iter(vec![ in test_group_colons() localVariable 192 snapshot!(tokens as Type, @r###" in test_group_colons() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 142 struct src_tokens tokens; in init_rc_normal_src() local 153 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src() 154 tokens.Negate.Length = match_length(matches, 1); in init_rc_normal_src() 155 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src() 156 tokens.Abs.Length = match_length(matches, 2); in init_rc_normal_src() 157 tokens.File.String = src_str + matches[3].rm_so; in init_rc_normal_src() 158 tokens.File.Length = match_length(matches, 3); in init_rc_normal_src() 159 tokens.Index.String = src_str + matches[4].rm_so; in init_rc_normal_src() 160 tokens.Index.Length = match_length(matches, 4); in init_rc_normal_src() 161 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | uncaughtCompilerError1.types | 2 declare var index, lineTokens, token, tokens; 6 >tokens : any 11 …if (lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type =… 12 >lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type === '… 31 >tokens[index - 1].type === 'attribute.name.html' : boolean 32 >tokens[index - 1].type : any 33 >tokens[index - 1] : any 34 >tokens : any 41 if (index === (tokens.length - 1)) { 42 >index === (tokens.length - 1) : boolean [all …]
|
/third_party/rust/crates/syn/src/ |
D | item.rs | 1244 let (delimiter, tokens) = input.call(mac::parse_delimiter)?; in parse() 1257 tokens, in parse() 2643 let tokens = TokenStream::from_iter(vec![TokenTree::Punct(punct)]); in parse() localVariable 2646 stmts: vec![Stmt::Item(Item::Verbatim(tokens))], in parse() 2773 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 2774 tokens.append_all(self.attrs.outer()); in to_tokens() 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() [all …]
|
D | op.rs | 190 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 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 | expr.rs | 1569 if let Expr::Verbatim(tokens) = &mut e { in trailer_expr() 1570 *tokens = verbatim::between(begin, input); in trailer_expr() 1854 let (delimiter, tokens) = mac::parse_delimiter(input)?; in path_or_macro_or_struct() 1861 tokens, in path_or_macro_or_struct() 2964 fn wrap_bare_struct(tokens: &mut TokenStream, e: &Expr) { in wrap_bare_struct() 2966 token::Paren::default().surround(tokens, |tokens| { in wrap_bare_struct() 2967 e.to_tokens(tokens); in wrap_bare_struct() 2970 e.to_tokens(tokens); in wrap_bare_struct() 2975 pub(crate) fn outer_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in outer_attrs_to_tokens() 2976 tokens.append_all(attrs.outer()); in outer_attrs_to_tokens() [all …]
|
D | generics.rs | 1059 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 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() 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 …]
|
D | pat.rs | 389 let (delimiter, tokens) = mac::parse_delimiter(input)?; in pat_path_or_macro_or_struct_or_range() 396 tokens, in pat_path_or_macro_or_struct_or_range() 771 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 772 tokens.append_all(self.attrs.outer()); in to_tokens() 773 self.underscore_token.to_tokens(tokens); in to_tokens() 779 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 780 tokens.append_all(self.attrs.outer()); in to_tokens() 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() [all …]
|
D | mac.rs | 20 pub tokens: TokenStream, 148 crate::parse::parse_scoped(parser, scope, self.tokens.clone()) in parse_body_with() 180 let tokens; in parse() localVariable 186 tokens = content; in parse() 189 tokens, in parse() 203 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 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() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/ |
D | huffman_encode_utils.c | 262 HuffmanTreeToken* tokens, in CodeRepeatedValues() argument 266 tokens->code = value; in CodeRepeatedValues() 267 tokens->extra_bits = 0; in CodeRepeatedValues() 268 ++tokens; in CodeRepeatedValues() 275 tokens->code = value; in CodeRepeatedValues() 276 tokens->extra_bits = 0; in CodeRepeatedValues() 277 ++tokens; in CodeRepeatedValues() 281 tokens->code = 16; in CodeRepeatedValues() 282 tokens->extra_bits = repetitions - 3; in CodeRepeatedValues() 283 ++tokens; in CodeRepeatedValues() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | huffman_encode_utils.c | 262 HuffmanTreeToken* tokens, in CodeRepeatedValues() argument 266 tokens->code = value; in CodeRepeatedValues() 267 tokens->extra_bits = 0; in CodeRepeatedValues() 268 ++tokens; in CodeRepeatedValues() 275 tokens->code = value; in CodeRepeatedValues() 276 tokens->extra_bits = 0; in CodeRepeatedValues() 277 ++tokens; in CodeRepeatedValues() 281 tokens->code = 16; in CodeRepeatedValues() 282 tokens->extra_bits = repetitions - 3; in CodeRepeatedValues() 283 ++tokens; in CodeRepeatedValues() [all …]
|
/third_party/python/Tools/scripts/ |
D | abitype.py | 16 for t,v in tokens: 40 if tokens[pos][1] == 'static': 45 name = tokens[pos][1] 47 while tokens[pos][1] != '{': 51 while tokens[pos][0] in ('ws', 'comment'): 53 if tokens[pos][1] != 'PyVarObject_HEAD_INIT': 55 while tokens[pos][1] != ')': 61 while tokens[pos][0] in ('ws', 'comment'): 64 while tokens[end][1] not in ',}': 65 if tokens[end][1] == '(': [all …]
|
/third_party/rust/crates/cxx/macro/src/ |
D | tokens.rs | 22 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 36 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens() 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() 64 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens() [all …]
|
/third_party/mesa3d/src/gallium/targets/graw-null/ |
D | graw_util.c | 19 struct tgsi_token tokens[1024]; in graw_parse_geometry_shader() local 22 if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) in graw_parse_geometry_shader() 26 state.tokens = tokens; in graw_parse_geometry_shader() 34 struct tgsi_token tokens[1024]; in graw_parse_vertex_shader() local 37 if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) in graw_parse_vertex_shader() 41 state.tokens = tokens; in graw_parse_vertex_shader() 49 struct tgsi_token tokens[1024]; in graw_parse_fragment_shader() local 52 if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) in graw_parse_fragment_shader() 56 state.tokens = tokens; in graw_parse_fragment_shader()
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | token_enc.c | 114 VP8TBuffer* const tokens) { in VP8RecordCoeffTokens() argument 122 if (!AddToken(tokens, last >= 0, base_id + 0, s + 0)) { in VP8RecordCoeffTokens() 130 if (!AddToken(tokens, v != 0, base_id + 1, s + 1)) { in VP8RecordCoeffTokens() 135 if (!AddToken(tokens, v > 1, base_id + 2, s + 2)) { in VP8RecordCoeffTokens() 139 if (!AddToken(tokens, v > 4, base_id + 3, s + 3)) { in VP8RecordCoeffTokens() 140 if (AddToken(tokens, v != 2, base_id + 4, s + 4)) { in VP8RecordCoeffTokens() 141 AddToken(tokens, v == 4, base_id + 5, s + 5); in VP8RecordCoeffTokens() 143 } else if (!AddToken(tokens, v > 10, base_id + 6, s + 6)) { in VP8RecordCoeffTokens() 144 if (!AddToken(tokens, v > 6, base_id + 7, s + 7)) { in VP8RecordCoeffTokens() 145 AddConstantToken(tokens, v == 6, 159); in VP8RecordCoeffTokens() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/ |
D | token_enc.c | 114 VP8TBuffer* const tokens) { in VP8RecordCoeffTokens() argument 122 if (!AddToken(tokens, last >= 0, base_id + 0, s + 0)) { in VP8RecordCoeffTokens() 130 if (!AddToken(tokens, v != 0, base_id + 1, s + 1)) { in VP8RecordCoeffTokens() 135 if (!AddToken(tokens, v > 1, base_id + 2, s + 2)) { in VP8RecordCoeffTokens() 139 if (!AddToken(tokens, v > 4, base_id + 3, s + 3)) { in VP8RecordCoeffTokens() 140 if (AddToken(tokens, v != 2, base_id + 4, s + 4)) { in VP8RecordCoeffTokens() 141 AddToken(tokens, v == 4, base_id + 5, s + 5); in VP8RecordCoeffTokens() 143 } else if (!AddToken(tokens, v > 10, base_id + 6, s + 6)) { in VP8RecordCoeffTokens() 144 if (!AddToken(tokens, v > 6, base_id + 7, s + 7)) { in VP8RecordCoeffTokens() 145 AddConstantToken(tokens, v == 6, 159); in VP8RecordCoeffTokens() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/visualtest/src/ |
D | parsehelper.c | 66 TokenizeHelper(char* str, char** tokens, int num_tokens, int max_token_len) in TokenizeHelper() argument 75 if(!tokens) in TokenizeHelper() 92 tokens[num_tokens] = NULL; in TokenizeHelper() 95 tokens[index] = (char*)SDL_malloc(max_token_len); in TokenizeHelper() 96 if(!tokens[index]) in TokenizeHelper() 101 SDL_free(tokens[i]); in TokenizeHelper() 104 tokens[index][0] = '\0'; in TokenizeHelper() 140 tokens[token_index][i - st_index] = str[i]; in TokenizeHelper() 142 tokens[token_index][i - st_index] = '\0'; in TokenizeHelper() 161 tokens[token_index][i - st_index] = str[i]; in TokenizeHelper() [all …]
|
/third_party/rust/crates/proc-macro2/tests/ |
D | comments.rs | 6 fn lit_of_outer_doc_comment(tokens: &TokenStream) -> Literal { in lit_of_outer_doc_comment() 7 lit_of_doc_comment(tokens, false) in lit_of_outer_doc_comment() 11 fn lit_of_inner_doc_comment(tokens: &TokenStream) -> Literal { in lit_of_inner_doc_comment() 12 lit_of_doc_comment(tokens, true) in lit_of_inner_doc_comment() 15 fn lit_of_doc_comment(tokens: &TokenStream, inner: bool) -> Literal { in lit_of_doc_comment() 16 let mut iter = tokens.clone().into_iter(); in lit_of_doc_comment() 22 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment() 30 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment() 36 assert!(iter.next().is_none(), "unexpected token {:?}", tokens); in lit_of_doc_comment() 39 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment() [all …]
|