Lines Matching refs:tokens
6 fn lit_of_outer_doc_comment(tokens: &TokenStream) -> Literal { in lit_of_outer_doc_comment()
7 lit_of_doc_comment(tokens, false) in lit_of_outer_doc_comment()
11 fn lit_of_inner_doc_comment(tokens: &TokenStream) -> Literal { in lit_of_inner_doc_comment()
12 lit_of_doc_comment(tokens, true) in lit_of_inner_doc_comment()
15 fn lit_of_doc_comment(tokens: &TokenStream, inner: bool) -> Literal { in lit_of_doc_comment()
16 let mut iter = tokens.clone().into_iter(); in lit_of_doc_comment()
22 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment()
30 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment()
36 assert!(iter.next().is_none(), "unexpected token {:?}", tokens); in lit_of_doc_comment()
39 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment()
43 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment()
50 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment()
54 assert!(iter.next().is_none(), "unexpected token {:?}", tokens); in lit_of_doc_comment()
57 _ => panic!("wrong token {:?}", tokens), in lit_of_doc_comment()
64 let tokens = stream.into_iter().collect::<Vec<_>>(); in closed_immediately() localVariable
65 assert!(tokens.is_empty(), "not empty -- {:?}", tokens); in closed_immediately()