Home
last modified time | relevance | path

Searched refs:Bracket (Results 1 – 25 of 76) sorted by relevance

1234

/external/rust/crates/syn/src/
Dmac.rs2 use crate::token::{Brace, Bracket, Paren};
33 Bracket(Bracket),
42 MacroDelimiter::Bracket(_) => Delimiter::Bracket, in delimiter_span_close()
48 MacroDelimiter::Bracket(token) => token.span, in delimiter_span_close()
160 Delimiter::Bracket => MacroDelimiter::Bracket(Bracket(span)), in parse_delimiter()
213 MacroDelimiter::Bracket(bracket) => { in to_tokens()
Dgroup.rs23 pub token: token::Bracket,
56 parse_delimited(input, Delimiter::Bracket).map(|(span, content)| Brackets { in parse_brackets()
57 token: token::Bracket(span), in parse_brackets()
85 Delimiter::Bracket => "expected square brackets", in parse_delimited()
Dtt.rs15 | (Delimiter::Bracket, Delimiter::Bracket) in eq()
58 Delimiter::Bracket => 2u8.hash(h), in hash()
Dtoken.rs631 impl Token for Bracket { implementation
633 lookahead::is_delimiter(cursor, Delimiter::Bracket) in peek()
758 "[" pub struct Bracket /// `[...]`
1002 "[" => Delimiter::Bracket, in delim()
Dattr.rs151 pub bracket_token: token::Bracket,
297 } else if input.peek(token::Bracket) { in enter_args()
/external/skqp/tools/bookmaker/
DincludeParser.cpp629 Bracket bracket = this->topBracket(); in checkForWord()
630 if (Bracket::kParen == bracket) { in checkForWord()
650 if (Bracket::kPound != poundDef->fBracket) { in checkForWord()
677 if (Bracket::kPound != fParent->fBracket) { in checkForWord()
688 if (Bracket::kPound != fParent->fBracket) { in checkForWord()
1737 if (parent->fTokens.end() != wordIter && Bracket::kSlashSlash == wordIter->fBracket in findCommentAfter()
1758 || Bracket::kAngle != testIter->fBracket) in findComments()
1769 && (Bracket::kSlashSlash == testIter->fBracket in findComments()
1770 || Bracket::kSlashStar == testIter->fBracket); in findComments()
1910 Bracket IncludeParser::grandParentBracket() const { in grandParentBracket()
[all …]
DincludeParser.h181 Bracket grandParentBracket() const;
227 Bracket bracket = this->topBracket(); in popBracket()
231 void pushBracket(Bracket bracket) { in pushBracket()
263 void setBracketShortCuts(Bracket bracket) { in setBracketShortCuts()
264 fInComment = Bracket::kSlashSlash == bracket || Bracket::kSlashStar == bracket; in setBracketShortCuts()
265 fInString = Bracket::kString == bracket; in setBracketShortCuts()
266 fInChar = Bracket::kChar == bracket; in setBracketShortCuts()
272 Bracket topBracket() const;
DincludeWriter.cpp606 SkASSERT(Bracket::kBrace == brace->fBracket); in enumMembersOut()
655 if (Bracket::kSlashSlash == token->fBracket) { in enumPreprocessor()
661 if (Bracket::kSlashStar == token->fBracket) { in enumPreprocessor()
667 if (Bracket::kPound == token->fBracket) { // preprocessor wraps member in enumPreprocessor()
690 if (Bracket::kParen == token->fBracket) { in enumPreprocessor()
719 SkASSERT(Bracket::kBrace == brace->fBracket); in enumSizeItems()
831 if (Bracket::kSlashStar == iter->fBracket) { in methodOut()
844 SkASSERT(Bracket::kSlashSlash == iter->fBracket || Bracket::kSlashStar == iter->fBracket); in methodOut()
1138 SkASSERT(Bracket::kBrace == brace->fBracket); in structSizeMembers()
1141 if (Bracket::kSlashSlash == token.fBracket) { in structSizeMembers()
[all …]
Ddefinition.h100 Definition(Bracket bracket, const char* start, int lineCount, Definition* parent, char mc) in Definition()
249 Bracket fBracket = Bracket::kNone;
Dbookmaker.h168 enum class Bracket { enum
/external/rust/crates/proc-macro2/tests/
Dtest_fmt.rs10 let brackets_empty = Group::new(Delimiter::Bracket, TokenStream::new()); in test_fmt_group()
11 let brackets_nonempty = Group::new(Delimiter::Bracket, inner.clone()); in test_fmt_group()
Dcomments.rs33 assert_eq!(group.delimiter(), Delimiter::Bracket); in lit_of_doc_comment()
/external/rust/cxx/syntax/
Dmod.rs39 use syn::token::{Brace, Bracket, Paren};
246 pub bracket: Bracket,
252 pub bracket: Bracket,
/external/rust/crates/proc-macro-hack/src/
Dparse.rs3 use proc_macro::Delimiter::{Brace, Bracket, Parenthesis};
160 Some(TokenTree::Group(group)) if group.delimiter() == Bracket => { in parse_attributes()
247 let ref mut attr = parse_group(tokens, Bracket)?; in parse_fake_call_site()
Dquote.rs54 ::proc_macro::Delimiter::Bracket,
/external/rust/crates/thiserror-impl/src/
Dattr.rs162 } else if input.peek(token::Bracket) { in parse_token_expr()
166 let mut group = Group::new(Delimiter::Bracket, nested); in parse_token_expr()
/external/rust/crates/paste/src/
Dlib.rs211 if delimiter == Delimiter::Bracket && is_paste_operation(&content) { in expand()
225 let is_attribute = delimiter == Delimiter::Bracket in expand()
/external/rust/crates/proc-macro-error-attr/src/
Dparse.rs36 Some(TokenTree::Group(ref group)) if group.delimiter() == Delimiter::Bracket => { in parse_next_attr()
/external/rust/crates/syn/tests/
Dtest_expr.rs148 TokenTree::Group(Group::new(Delimiter::Bracket, quote! { outside })), in test_macro_variable_func()
/external/rust/crates/rustversion/src/
Dlib.rs265 Delimiter::Bracket, in try_attr()
/external/python/cpython2/Lib/lib2to3/pgen2/
Dtokenize.py90 Bracket = '[][(){}]' variable
92 Funny = group(Operator, Bracket, Special)
/external/python/cpython2/Lib/
Dtokenize.py87 Bracket = '[][(){}]' variable
89 Funny = group(Operator, Bracket, Special)
/external/python/cpython3/Lib/lib2to3/pgen2/
Dtokenize.py95 Bracket = '[][(){}]' variable
97 Funny = group(Operator, Bracket, Special)
/external/rust/crates/proc-macro2/src/
Dwrapper.rs579 Delimiter::Bracket => proc_macro::Delimiter::Bracket, in new()
595 proc_macro::Delimiter::Bracket => Delimiter::Bracket, in delimiter()
Dparse.rs185 b'[' => Some(Delimiter::Bracket), in token_stream()
197 b']' => Some(Delimiter::Bracket), in token_stream()
823 let group = Group::new(Delimiter::Bracket, stream.into_iter().collect()); in doc_comment()

1234