Lines Matching refs:peek
395 if lookahead.peek(Ident) in parse()
406 ahead.is_empty() || ahead.peek(Token![,]) in parse()
409 || input.peek(Token![self]) && input.peek2(Token![::]) in parse()
410 || lookahead.peek(Token![::]) in parse()
411 || lookahead.peek(Token![<]) in parse()
412 || input.peek(Token![Self]) in parse()
413 || input.peek(Token![super]) in parse()
414 || input.peek(Token![extern]) in parse()
415 || input.peek(Token![crate]) in parse()
418 } else if lookahead.peek(Token![_]) { in parse()
420 } else if input.peek(Token![box]) { in parse()
422 } else if input.peek(Token![-]) || lookahead.peek(Lit) { in parse()
424 } else if lookahead.peek(Token![ref]) in parse()
425 || lookahead.peek(Token![mut]) in parse()
426 || input.peek(Token![self]) in parse()
427 || input.peek(Ident) in parse()
430 } else if lookahead.peek(Token![&]) { in parse()
432 } else if lookahead.peek(token::Paren) { in parse()
434 } else if lookahead.peek(token::Bracket) { in parse()
436 } else if lookahead.peek(Token![..]) && !input.peek(Token![...]) { in parse()
447 if input.peek(Token![..]) { in pat_path_or_macro_or_struct_or_range()
459 if input.peek(Token![!]) && !input.peek(Token![!=]) { in pat_path_or_macro_or_struct_or_range()
485 if input.peek(token::Brace) { in pat_path_or_macro_or_struct_or_range()
487 } else if input.peek(token::Paren) { in pat_path_or_macro_or_struct_or_range()
489 } else if input.peek(Token![..]) { in pat_path_or_macro_or_struct_or_range()
522 if input.peek(Token![@]) { in pat_ident()
546 while !content.is_empty() && !content.peek(Token![..]) { in pat_struct()
549 if !content.peek(Token![,]) { in pat_struct()
556 let dot2_token = if fields.empty_or_trailing() && content.peek(Token![..]) { in pat_struct()
587 if boxed.is_none() && by_ref.is_none() && mutability.is_none() && input.peek(Token![:]) in field_pat()
673 if input.peek(Token![..]) { in pat_lit_or_range()
692 let expr = if lookahead.peek(Lit) { in pat_lit_expr()
694 } else if lookahead.peek(Ident) in pat_lit_expr()
695 || lookahead.peek(Token![::]) in pat_lit_expr()
696 || lookahead.peek(Token![<]) in pat_lit_expr()
697 || lookahead.peek(Token![self]) in pat_lit_expr()
698 || lookahead.peek(Token![Self]) in pat_lit_expr()
699 || lookahead.peek(Token![super]) in pat_lit_expr()
700 || lookahead.peek(Token![extern]) in pat_lit_expr()
701 || lookahead.peek(Token![crate]) in pat_lit_expr()