/external/rust/crates/syn/src/ |
D | mac.rs | 2 use crate::token::{Brace, Bracket, Paren}; 32 Brace(Brace), 41 MacroDelimiter::Brace(_) => Delimiter::Brace, in delimiter_span_close() 47 MacroDelimiter::Brace(token) => token.span, in delimiter_span_close() 159 Delimiter::Brace => MacroDelimiter::Brace(Brace(span)), in parse_delimiter() 210 MacroDelimiter::Brace(brace) => { in to_tokens()
|
D | group.rs | 16 pub token: token::Brace, 47 parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces { in parse_braces() 48 token: token::Brace(span), in parse_braces() 84 Delimiter::Brace => "expected curly braces", in parse_delimited()
|
D | tt.rs | 14 | (Delimiter::Brace, Delimiter::Brace) in eq() 57 Delimiter::Brace => 1u8.hash(h), in hash()
|
D | stmt.rs | 9 pub brace_token: token::Brace, 161 if ahead.peek(Token![!]) && (ahead.peek2(token::Brace) || ahead.peek2(Ident)) { in parse_stmt() 174 || input.peek(Token![const]) && !input.peek2(token::Brace) in parse_stmt() 175 || input.peek(Token![unsafe]) && !input.peek2(token::Brace) in parse_stmt()
|
D | derive.rs | 73 pub brace_token: token::Brace, 189 } else if lookahead.peek(token::Brace) { 204 token::Brace, in data_enum() argument
|
D | item.rs | 131 pub brace_token: token::Brace, 174 pub brace_token: token::Brace, 195 pub brace_token: token::Brace, 238 pub content: Option<(token::Brace, Vec<Item>)>, 293 pub brace_token: token::Brace, 551 pub brace_token: token::Brace, 984 use crate::token::Brace; 1014 } else if lookahead.peek(token::Brace) { in parse() 1019 if lookahead.peek(token::Brace) { in parse() 1273 if lookahead.peek(token::Brace) { in parse() [all …]
|
D | expr.rs | 566 pub brace_token: token::Brace, 679 pub brace_token: token::Brace, 1325 || !allow_struct.0 && input.peek(token::Brace) in parse_expr() 1692 && !input.peek2(token::Brace) in atom_expr() 1698 && (input.peek2(token::Brace) || input.peek2(Token![move]) && input.peek3(token::Brace)) in atom_expr() 1701 } else if input.peek(Token![try]) && input.peek2(token::Brace) { in atom_expr() 1746 } else if input.peek(token::Brace) { in atom_expr() 1762 } else if input.peek(token::Brace) { in atom_expr() 1833 if allow_struct.0 && input.peek(token::Brace) { in path_or_macro_or_struct() 1993 } else if input.peek(Token![try]) && input.peek2(token::Brace) { in expr_early() [all …]
|
D | token.rs | 620 impl Token for Brace { implementation 622 lookahead::is_delimiter(cursor, Delimiter::Brace) in peek() 757 "{" pub struct Brace /// `{...}` 1003 "{" => Delimiter::Brace, in delim()
|
D | data.rs | 58 pub brace_token: token::Brace, 255 if input.peek(token::Brace) { in parse()
|
/external/rust/cxx/syntax/ |
D | file.rs | 16 pub brace_token: token::Brace, 33 pub brace_token: token::Brace, 85 && ahead.peek(token::Brace) in parse()
|
D | mod.rs | 39 use syn::token::{Brace, Bracket, Paren}; 100 pub brace_token: Brace, 112 pub brace_token: Brace, 149 pub brace_token: Brace,
|
/external/rust/crates/proc-macro2/tests/ |
D | test_fmt.rs | 12 let braces_empty = Group::new(Delimiter::Brace, TokenStream::new()); in test_fmt_group() 13 let braces_nonempty = Group::new(Delimiter::Brace, inner.clone()); in test_fmt_group()
|
/external/rust/crates/serde_derive/src/ |
D | fragment.rs | 33 token::Brace::default().surround(out, |out| block.to_tokens(out)); in to_tokens() 61 token::Brace::default().surround(out, |out| block.to_tokens(out)); in to_tokens()
|
/external/rust/crates/proc-macro-hack/src/ |
D | parse.rs | 3 use proc_macro::Delimiter::{Brace, Bracket, Parenthesis}; 31 Some(TokenTree::Group(group)) if group.delimiter() == Brace => { in parse_export() 225 let ref mut braces = parse_group(tokens, Brace)?; in parse_enum_hack() 233 let ref mut inner = parse_group(parens, Brace)?; in parse_enum_hack()
|
D | error.rs | 28 let mut group = Group::new(Delimiter::Brace, { in compile_error()
|
D | quote.rs | 68 ::proc_macro::Delimiter::Brace,
|
/external/rust/crates/syn/tests/ |
D | test_item.rs | 17 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_attr() 130 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_impl()
|
D | test_expr.rs | 231 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_struct() 255 Delimiter::Brace, in test_macro_variable_match_arm()
|
D | test_stmt.rs | 58 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_none_group()
|
D | test_visibility.rs | 113 Delimiter::Brace, in test_empty_group_vis()
|
/external/rust/crates/syn-mid/src/ |
D | pat.rs | 75 pub brace_token: token::Brace, 153 || ahead.peek(token::Brace) in parse() 187 if input.peek(token::Brace) { in pat_path_or_struct()
|
/external/rust/crates/paste/src/ |
D | error.rs | 35 let mut group = Group::new(Delimiter::Brace, { in to_compile_error()
|
/external/rust/crates/thiserror-impl/src/ |
D | attr.rs | 155 } else if input.peek(token::Brace) { in parse_token_expr() 159 let mut group = Group::new(Delimiter::Brace, nested); in parse_token_expr()
|
/external/rust/crates/rustversion/src/ |
D | error.rs | 44 let mut group = Group::new(Delimiter::Brace, { in into_compile_error()
|
/external/rust/crates/proc-macro-error-attr/src/ |
D | parse.rs | 63 Some(TokenTree::Group(ref group)) if group.delimiter() == Delimiter::Brace => { in parse_signature()
|