Lines Matching refs:it
7 fn expect_string_array(it: &mut token_stream::IntoIter) -> Vec<String> {
8 let group = expect_group(it);
11 let mut it = group.stream().into_iter();
13 while let Some(val) = try_string(&mut it) {
16 match it.next() {
103 fn parse(it: &mut token_stream::IntoIter) -> Self {
112 let key = match it.next() {
125 assert_eq!(expect_punct(it), ':');
128 "type" => info.type_ = expect_ident(it),
129 "name" => info.name = expect_string_ascii(it),
130 "author" => info.author = Some(expect_string(it)),
131 "description" => info.description = Some(expect_string(it)),
132 "license" => info.license = expect_string_ascii(it),
133 "alias" => info.alias = Some(expect_string_array(it)),
140 assert_eq!(expect_punct(it), ',');
145 expect_end(it);
172 let mut it = ts.into_iter();
174 let info = ModuleInfo::parse(&mut it);
205 // key or a new section. For the moment, keep it simple.