Lines Matching refs:it

5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> {  in try_ident()
6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident()
13 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
14 if let Some(TokenTree::Literal(literal)) = it.next() { in try_literal()
21 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
22 try_literal(it).and_then(|string| { in try_string()
37 pub(crate) fn expect_ident(it: &mut token_stream::IntoIter) -> String { in expect_ident()
38 try_ident(it).expect("Expected Ident") in expect_ident()
41 pub(crate) fn expect_punct(it: &mut token_stream::IntoIter) -> char { in expect_punct()
42 if let TokenTree::Punct(punct) = it.next().expect("Reached end of token stream for Punct") { in expect_punct()
49 pub(crate) fn expect_string(it: &mut token_stream::IntoIter) -> String { in expect_string()
50 try_string(it).expect("Expected string") in expect_string()
53 pub(crate) fn expect_string_ascii(it: &mut token_stream::IntoIter) -> String { in expect_string_ascii()
54 let string = try_string(it).expect("Expected string"); in expect_string_ascii()
59 pub(crate) fn expect_group(it: &mut token_stream::IntoIter) -> Group { in expect_group()
60 if let TokenTree::Group(group) = it.next().expect("Reached end of token stream for Group") { in expect_group()
67 pub(crate) fn expect_end(it: &mut token_stream::IntoIter) { in expect_end()
68 if it.next().is_some() { in expect_end()