Home
last modified time | relevance | path

Searched refs:Brace (Results 1 – 25 of 55) sorted by relevance

123

/external/rust/crates/syn/src/
Dmac.rs2 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()
Dgroup.rs16 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()
Dtt.rs14 | (Delimiter::Brace, Delimiter::Brace) in eq()
57 Delimiter::Brace => 1u8.hash(h), in hash()
Dstmt.rs9 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()
Dderive.rs73 pub brace_token: token::Brace,
189 } else if lookahead.peek(token::Brace) {
204 token::Brace, in data_enum() argument
Ditem.rs131 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 …]
Dexpr.rs566 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 …]
Dtoken.rs620 impl Token for Brace { implementation
622 lookahead::is_delimiter(cursor, Delimiter::Brace) in peek()
757 "{" pub struct Brace /// `{...}`
1003 "{" => Delimiter::Brace, in delim()
Ddata.rs58 pub brace_token: token::Brace,
255 if input.peek(token::Brace) { in parse()
/external/rust/cxx/syntax/
Dfile.rs16 pub brace_token: token::Brace,
33 pub brace_token: token::Brace,
85 && ahead.peek(token::Brace) in parse()
Dmod.rs39 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/
Dtest_fmt.rs12 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/
Dfragment.rs33 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/
Dparse.rs3 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()
Derror.rs28 let mut group = Group::new(Delimiter::Brace, { in compile_error()
Dquote.rs68 ::proc_macro::Delimiter::Brace,
/external/rust/crates/syn/tests/
Dtest_item.rs17 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()
Dtest_expr.rs231 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_macro_variable_struct()
255 Delimiter::Brace, in test_macro_variable_match_arm()
Dtest_stmt.rs58 TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())), in test_none_group()
Dtest_visibility.rs113 Delimiter::Brace, in test_empty_group_vis()
/external/rust/crates/syn-mid/src/
Dpat.rs75 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/
Derror.rs35 let mut group = Group::new(Delimiter::Brace, { in to_compile_error()
/external/rust/crates/thiserror-impl/src/
Dattr.rs155 } 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/
Derror.rs44 let mut group = Group::new(Delimiter::Brace, { in into_compile_error()
/external/rust/crates/proc-macro-error-attr/src/
Dparse.rs63 Some(TokenTree::Group(ref group)) if group.delimiter() == Delimiter::Brace => { in parse_signature()

123