Home
last modified time | relevance | path

Searched refs:Delimiter (Results 1 – 25 of 48) sorted by relevance

12

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_split.h231 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/
Dtt.rs1 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()
Dgroup.rs4 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()
Dmac.rs5 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()
Dtoken.rs111 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()
Dparse.rs199 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()
Dverbatim.rs2 use proc_macro2::{Delimiter, TokenStream};
20 if let Some((inside, _span, after)) = cursor.group(Delimiter::None) { in between()
Dbuffer.rs16 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()
Dlookahead.rs6 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/
Dtest_fmt.rs3 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()
Dmarker.rs4 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/
Dtest_expr.rs4 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 …]
Dtest_item.rs4 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()
Dtest_parse_buffer.rs3 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()
Dtest_ty.rs4 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()
Dtest_stmt.rs6 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()
Dtest_visibility.rs4 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()
Dtest_grouping.rs4 use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree};
14 Delimiter::None, in test_grouping()
Dtest_pat.rs4 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/
Dwrapper.rs4 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 …]
Dfallback.rs5 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()
Dparse.rs5 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/
Dissue1235.rs1 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/
Dparse.rs2 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/
Dstr_split_internal.h258 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_;

12