Lines Matching refs:cursor

268         if let Some((unexpected_span, delimiter)) = span_of_unexpected_ignoring_nones(self.cursor())  in drop()
280 Display::fmt(&self.cursor().token_stream(), f) in fmt()
286 Debug::fmt(&self.cursor().token_stream(), f) in fmt()
340 cursor: Cursor<'c>, field
356 &self.cursor in deref()
374 error::new_at(self.scope, self.cursor, message) in error()
389 cursor: Cursor, in new_parse_buffer()
395 cell: Cell::new(unsafe { mem::transmute::<Cursor, Cursor<'static>>(cursor) }), in new_parse_buffer()
447 fn span_of_unexpected_ignoring_nones(mut cursor: Cursor) -> Option<(Span, Delimiter)> { in span_of_unexpected_ignoring_nones()
448 if cursor.eof() { in span_of_unexpected_ignoring_nones()
451 while let Some((inner, _span, rest)) = cursor.group(Delimiter::None) { in span_of_unexpected_ignoring_nones()
455 cursor = rest; in span_of_unexpected_ignoring_nones()
457 if cursor.eof() { in span_of_unexpected_ignoring_nones()
460 Some((cursor.span(), cursor.scope_delimiter())) in span_of_unexpected_ignoring_nones()
585 T::Token::peek(self.cursor()) in peek()
624 buffer.cursor().skip().map_or(false, peek) in peek2()
635 .cursor() in peek3()
794 self.cursor().eof() in is_empty()
839 lookahead::new(self.scope, self.cursor()) in lookahead1()
1008 error::new_at(self.scope, self.cursor(), message) in error()
1079 cursor: self.cell.get(), in step()
1090 let cursor = self.cursor(); in span() localVariable
1091 if cursor.eof() { in span()
1094 crate::buffer::open_span_of_group(cursor) in span()
1155 pub fn cursor(&self) -> Cursor<'a> { in cursor() method
1177 if T::peek(input.cursor()) { in parse()
1188 input.step(|cursor| Ok((cursor.token_stream(), Cursor::empty()))) in parse()
1195 input.step(|cursor| match cursor.token_tree() { in parse()
1197 None => Err(cursor.error("expected token tree")), in parse()
1205 input.step(|cursor| { in parse()
1206 if let Some((group, rest)) = cursor.any_group_token() { in parse()
1211 Err(cursor.error("expected group token")) in parse()
1219 input.step(|cursor| match cursor.punct() { in parse()
1221 None => Err(cursor.error("expected punctuation token")), in parse()
1229 input.step(|cursor| match cursor.literal() { in parse()
1231 None => Err(cursor.error("expected literal token")), in parse()
1283 let cursor = tokens.begin(); in tokens_to_parse_buffer() localVariable
1285 new_parse_buffer(scope, cursor, unexpected) in tokens_to_parse_buffer()
1300 span_of_unexpected_ignoring_nones(state.cursor()) in parse2()
1310 let cursor = buf.begin(); in __parse_scoped() localVariable
1312 let state = new_parse_buffer(scope, cursor, unexpected); in __parse_scoped()
1316 span_of_unexpected_ignoring_nones(state.cursor()) in __parse_scoped()