Home
last modified time | relevance | path

Searched refs:peek2 (Results 1 – 12 of 12) sorted by relevance

/third_party/rust/crates/syn/src/
Dstmt.rs163 && (ahead.peek2(token::Brace) in parse_stmt()
165 || ahead.peek2(Ident)) in parse_stmt()
175 || input.peek(Token![crate]) && !input.peek2(Token![::]) in parse_stmt()
179 && (input.peek2(Token![mut]) in parse_stmt()
180 || input.peek2(Ident) in parse_stmt()
181 && !(input.peek2(Token![async]) in parse_stmt()
183 || input.peek(Token![const]) && !input.peek2(token::Brace) in parse_stmt()
184 || input.peek(Token![unsafe]) && !input.peek2(token::Brace) in parse_stmt()
186 && (input.peek2(Token![unsafe]) in parse_stmt()
187 || input.peek2(Token![extern]) in parse_stmt()
[all …]
Dpath.rs228 if input.peek(Lifetime) && !input.peek2(Token![+]) { in parse()
232 if input.peek(Ident) && input.peek2(Token![=]) { in parse()
269 if input.peek(Ident) && input.peek2(Token![:]) && !input.peek2(Token![::]) { in parse()
Dexpr.rs1482 if !group.content.peek(Token![#]) || group.content.peek2(Token![!]) { in expr_attrs()
1510 if input.peek(raw) && (input.peek2(Token![mut]) || input.peek2(Token![const])) { in unary_expr()
1681 } else if input.peek(Token![.]) && !input.peek(Token![..]) && !input.peek2(token::Await) in trailer_expr()
1717 && !input.peek2(Token![::]) in atom_expr()
1718 && !input.peek2(Token![!]) in atom_expr()
1719 && !input.peek2(token::Brace) in atom_expr()
1725 && (input.peek2(token::Brace) || input.peek2(Token![move]) && input.peek3(token::Brace)) in atom_expr()
1728 } else if input.peek(Token![try]) && input.peek2(token::Brace) { in atom_expr()
1731 || input.peek(Token![async]) && (input.peek2(Token![|]) || input.peek2(Token![move])) in atom_expr()
1737 && input.peek2(Token![<]) in atom_expr()
[all …]
Dparse.rs622 pub fn peek2<T: Peek>(&self, token: T) -> bool { in peek2() method
623 fn peek2(buffer: &ParseBuffer, peek: fn(Cursor) -> bool) -> bool { in peek2() function
633 peek2(self, T::Token::peek) in peek2()
Dparse_quote.rs148 if input.peek(Token![#]) && input.peek2(Token![!]) { in parse()
Ditem.rs1084 || lookahead.peek(Token![auto]) && ahead.peek2(Token![trait]) in parse()
1115 } else if lookahead.peek(Token![union]) && ahead.peek2(Ident) { in parse()
1119 } else if lookahead.peek(Token![auto]) && ahead.peek2(Token![trait]) { in parse()
1122 || lookahead.peek(Token![default]) && !ahead.peek2(Token![!]) in parse()
1656 if input.peek(Ident) && input.peek2(Token![<]) { in fn_arg_typed()
2426 && (input.peek2(Token![>]) in parse_impl()
2427 || input.peek2(Token![#]) in parse_impl()
2428 || (input.peek2(Ident) || input.peek2(Lifetime)) in parse_impl()
2433 || input.peek2(Token![const])); in parse_impl()
2441 && (input.peek(Token![const]) || input.peek(Token![?]) && input.peek2(Token![const])); in parse_impl()
[all …]
Dattr.rs504 while input.peek(Token![#]) && input.peek2(Token![!]) { in parse_inner()
584 if input.peek(Lit) && !(input.peek(LitBool) && input.peek2(Token![=])) { in parse()
Dty.rs1041 && input.peek2(Token![:]) in parse_bare_fn_arg()
1042 && !input.peek2(Token![::]) in parse_bare_fn_arg()
1049 && input.peek2(Token![self]) in parse_bare_fn_arg()
1079 } else if allow_mut_self && input.peek(Token![mut]) && input.peek2(Token![self]) { in parse_bare_fn_arg()
Dgenerics.rs773 if input.peek(Token![~]) && input.peek2(Token![const]) { in parse()
860 let tilde_const = if input.peek(Token![~]) && input.peek2(Token![const]) { in parse()
985 if input.peek(Lifetime) && input.peek2(Token![:]) { in parse()
Ddata.rs397 if input.peek2(Token![::]) { in parse_crate()
/third_party/node/deps/icu-small/source/i18n/
Dnumber_patternstring.h129 UChar32 peek2();
Dnumber_patternstring.cpp134 UChar32 ParsedPatternInfo::ParserState::peek2() { in peek2() function in ParsedPatternInfo::ParserState
307 switch (state.peek2()) { in consumeFormat()