/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | str_split.h | 231 template <typename Delimiter> 233 using type = Delimiter; 258 template <typename Delimiter> 261 MaxSplitsImpl(Delimiter delimiter, int limit) 272 Delimiter delimiter_; 291 template <typename Delimiter> 293 typename strings_internal::SelectDelimiter<Delimiter>::type> 294 MaxSplits(Delimiter delimiter, int limit) { 296 typename strings_internal::SelectDelimiter<Delimiter>::type DelimiterType; 496 template <typename Delimiter> [all …]
|
/third_party/rust/crates/syn/src/ |
D | tt.rs | 1 use proc_macro2::{Delimiter, TokenStream, TokenTree}; 13 (Delimiter::Parenthesis, Delimiter::Parenthesis) in eq() 14 | (Delimiter::Brace, Delimiter::Brace) in eq() 15 | (Delimiter::Bracket, Delimiter::Bracket) in eq() 16 | (Delimiter::None, Delimiter::None) => {} in eq() 56 Delimiter::Parenthesis => 0u8.hash(h), in hash() 57 Delimiter::Brace => 1u8.hash(h), in hash() 58 Delimiter::Bracket => 2u8.hash(h), in hash() 59 Delimiter::None => 3u8.hash(h), in hash()
|
D | group.rs | 4 use proc_macro2::{Delimiter, Span}; 38 parse_delimited(input, Delimiter::Parenthesis).map(|(span, content)| Parens { in parse_parens() 47 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces() 56 parse_delimited(input, Delimiter::Bracket).map(|(span, content)| Brackets { in parse_brackets() 64 parse_delimited(input, Delimiter::None).map(|(span, content)| Group { in parse_group() 72 delimiter: Delimiter, in parse_delimited() argument 83 Delimiter::Parenthesis => "expected parentheses", in parse_delimited() 84 Delimiter::Brace => "expected curly braces", in parse_delimited() 85 Delimiter::Bracket => "expected square brackets", in parse_delimited() 86 Delimiter::None => "expected invisible group", in parse_delimited()
|
D | mac.rs | 5 use proc_macro2::{Delimiter, Group, Span, TokenTree}; 40 MacroDelimiter::Paren(_) => Delimiter::Parenthesis, in delimiter_span_close() 41 MacroDelimiter::Brace(_) => Delimiter::Brace, in delimiter_span_close() 42 MacroDelimiter::Bracket(_) => Delimiter::Bracket, in delimiter_span_close() 158 Delimiter::Parenthesis => MacroDelimiter::Paren(Paren(span)), in parse_delimiter() 159 Delimiter::Brace => MacroDelimiter::Brace(Brace(span)), in parse_delimiter() 160 Delimiter::Bracket => MacroDelimiter::Bracket(Bracket(span)), in parse_delimiter() 161 Delimiter::None => { in parse_delimiter()
|
D | token.rs | 111 use proc_macro2::{Delimiter, Literal, Punct, TokenTree}; 611 lookahead::is_delimiter(cursor, Delimiter::Parenthesis) in peek() 622 lookahead::is_delimiter(cursor, Delimiter::Brace) in peek() 633 lookahead::is_delimiter(cursor, Delimiter::Bracket) in peek() 644 lookahead::is_delimiter(cursor, Delimiter::None) in peek() 971 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream}; 1001 "(" => Delimiter::Parenthesis, in delim() 1002 "[" => Delimiter::Bracket, in delim() 1003 "{" => Delimiter::Brace, in delim() 1004 " " => Delimiter::None, in delim()
|
D | parse.rs | 199 use proc_macro2::{self, Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree}; 451 while let Some((inner, _span, rest)) = cursor.group(Delimiter::None) { in span_of_unexpected_ignoring_nones() 624 if let Some(group) = buffer.cursor().group(Delimiter::None) { in peek2() 639 if let Some(group) = buffer.cursor().group(Delimiter::None) { in peek3() 1104 for delim in &[Delimiter::Parenthesis, Delimiter::Brace, Delimiter::Bracket] { in parse()
|
D | verbatim.rs | 2 use proc_macro2::{Delimiter, TokenStream}; 20 if let Some((inside, _span, after)) = cursor.group(Delimiter::None) { in between()
|
D | buffer.rs | 16 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 185 if group.delimiter() == Delimiter::None { in ignore_none() 202 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group() 206 if delim != Delimiter::None { in group()
|
D | lookahead.rs | 6 use proc_macro2::{Delimiter, Span}; 165 pub fn is_delimiter(cursor: Cursor, delimiter: Delimiter) -> bool { in is_delimiter()
|
/third_party/rust/crates/proc-macro2/tests/ |
D | test_fmt.rs | 3 use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree}; 10 let parens_empty = Group::new(Delimiter::Parenthesis, TokenStream::new()); in test_fmt_group() 11 let parens_nonempty = Group::new(Delimiter::Parenthesis, inner.clone()); in test_fmt_group() 12 let brackets_empty = Group::new(Delimiter::Bracket, TokenStream::new()); in test_fmt_group() 13 let brackets_nonempty = Group::new(Delimiter::Bracket, inner.clone()); in test_fmt_group() 14 let braces_empty = Group::new(Delimiter::Brace, TokenStream::new()); in test_fmt_group() 15 let braces_nonempty = Group::new(Delimiter::Brace, inner.clone()); in test_fmt_group() 16 let none_empty = Group::new(Delimiter::None, TokenStream::new()); in test_fmt_group() 17 let none_nonempty = Group::new(Delimiter::None, inner); in test_fmt_group()
|
D | marker.rs | 4 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 44 assert_impl!(Delimiter is Send and Sync); 68 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 83 Delimiter
|
/third_party/rust/crates/syn/tests/ |
D | test_expr.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 105 TokenTree::Group(Group::new(Delimiter::None, quote! { f })), in test_macro_variable_func() 106 TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), in test_macro_variable_func() 128 TokenTree::Group(Group::new(Delimiter::Bracket, quote! { outside })), in test_macro_variable_func() 129 TokenTree::Group(Group::new(Delimiter::None, quote! { #[inside] f })), in test_macro_variable_func() 130 TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), in test_macro_variable_func() 183 TokenTree::Group(Group::new(Delimiter::None, quote! { m })), in test_macro_variable_macro() 185 TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), in test_macro_variable_macro() 210 TokenTree::Group(Group::new(Delimiter::None, quote! { S })), in test_macro_variable_struct() 211 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_struct() [all …]
|
D | test_item.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree}; 13 TokenTree::Group(Group::new(Delimiter::None, quote! { #[test] })), in test_macro_variable_attr() 16 TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), in test_macro_variable_attr() 17 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_attr() 127 TokenTree::Group(Group::new(Delimiter::None, quote!(Trait))), in test_macro_variable_impl() 129 TokenTree::Group(Group::new(Delimiter::None, quote!(Type))), in test_macro_variable_impl() 130 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_impl()
|
D | test_parse_buffer.rs | 3 use proc_macro2::{Delimiter, Group, Punct, Spacing, TokenStream, TokenTree}; 75 Delimiter::Parenthesis, in trailing_empty_none_group() 78 TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())), in trailing_empty_none_group() 81 TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())), in trailing_empty_none_group() 83 Delimiter::None, in trailing_empty_none_group() 85 Delimiter::None, in trailing_empty_none_group()
|
D | test_ty.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 23 TokenTree::Group(Group::new(Delimiter::None, quote! { ty })), in test_macro_variable_type() 57 TokenTree::Group(Group::new(Delimiter::None, quote! { ty })), in test_macro_variable_type() 99 TokenTree::Group(Group::new(Delimiter::None, quote! { Vec<u8> })), in test_group_angle_brackets() 149 TokenTree::Group(Group::new(Delimiter::None, quote! { Vec<u8> })), in test_group_colons() 186 TokenTree::Group(Group::new(Delimiter::None, quote! { [T] })), in test_group_colons()
|
D | test_stmt.rs | 6 use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree}; 55 Delimiter::None, in test_none_group() 60 TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), in test_none_group() 61 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_none_group()
|
D | test_visibility.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 113 Delimiter::Brace, in test_empty_group_vis() 115 TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())), in test_empty_group_vis() 117 Delimiter::None, in test_empty_group_vis() 124 TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())), in test_empty_group_vis()
|
D | test_grouping.rs | 4 use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree}; 14 Delimiter::None, in test_grouping()
|
D | test_pat.rs | 4 use proc_macro2::{Delimiter, Group, TokenStream, TokenTree}; 47 let group = Group::new(Delimiter::None, quote!(Some(_))); in test_group()
|
/third_party/rust/crates/proc-macro2/src/ |
D | wrapper.rs | 4 use crate::{fallback, Delimiter, Punct, Spacing, TokenTree}; 588 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Self { in new() argument 592 Delimiter::Parenthesis => proc_macro::Delimiter::Parenthesis, in new() 593 Delimiter::Bracket => proc_macro::Delimiter::Bracket, in new() 594 Delimiter::Brace => proc_macro::Delimiter::Brace, in new() 595 Delimiter::None => proc_macro::Delimiter::None, in new() 605 pub fn delimiter(&self) -> Delimiter { in delimiter() argument 608 proc_macro::Delimiter::Parenthesis => Delimiter::Parenthesis, in delimiter() 609 proc_macro::Delimiter::Bracket => Delimiter::Bracket, in delimiter() 610 proc_macro::Delimiter::Brace => Delimiter::Brace, in delimiter() [all …]
|
D | fallback.rs | 5 use crate::{Delimiter, Spacing, TokenTree}; 637 delimiter: Delimiter, 643 pub fn new(delimiter: Delimiter, stream: TokenStream) -> Self { in new() argument 651 pub fn delimiter(&self) -> Delimiter { in delimiter() argument 686 Delimiter::Parenthesis => ("(", ")"), in fmt() 687 Delimiter::Brace => ("{ ", "}"), in fmt() 688 Delimiter::Bracket => ("[", "]"), in fmt() 689 Delimiter::None => ("", ""), in fmt() 694 if self.delimiter == Delimiter::Brace && !self.stream.inner.is_empty() { in fmt()
|
D | parse.rs | 5 use crate::{Delimiter, Punct, Spacing, TokenTree}; 184 b'(' => Some(Delimiter::Parenthesis), in token_stream() 185 b'[' => Some(Delimiter::Bracket), in token_stream() 186 b'{' => Some(Delimiter::Brace), in token_stream() 196 b')' => Some(Delimiter::Parenthesis), in token_stream() 197 b']' => Some(Delimiter::Bracket), in token_stream() 198 b'}' => Some(Delimiter::Brace), in token_stream() 833 let group = Group::new(Delimiter::Bracket, bracketed.build()); in doc_comment()
|
/third_party/rust/crates/syn/tests/regression/ |
D | issue1235.rs | 1 use proc_macro2::{Delimiter, Group}; 17 Delimiter::None, in main() 26 Delimiter::None, in main()
|
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/ |
D | parse.rs | 2 use proc_macro2::{Delimiter, Ident, Span, TokenStream, TokenTree}; 36 Some(TokenTree::Group(ref group)) if group.delimiter() == Delimiter::Bracket => { in parse_next_attr() 63 Some(TokenTree::Group(ref group)) if group.delimiter() == Delimiter::Brace => { in parse_signature()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | str_split_internal.h | 258 template <typename Delimiter, typename Predicate, typename StringType> 261 using DelimiterType = Delimiter; 266 Splitter(StringType input_text, Delimiter d, Predicate p) 272 const Delimiter& delimiter() const { return delimiter_; } 422 Delimiter delimiter_;
|