Lines Matching refs:cursor
130 fn peek(cursor: Cursor) -> bool; in peek()
157 fn peek(cursor: Cursor) -> bool; in peek()
169 fn peek(cursor: Cursor) -> bool {
170 cursor.$get().is_some()
194 fn peek(cursor: Cursor) -> bool { in peek()
195 <Self as CustomToken>::peek(cursor) in peek()
290 fn peek(cursor: Cursor) -> bool {
291 parsing::peek_keyword(cursor, $token)
429 fn peek(cursor: Cursor) -> bool {
430 parsing::peek_punct(cursor, $token)
539 input.step(|cursor| { in parse()
540 if let Some((ident, rest)) = cursor.ident() { in parse()
545 if let Some((punct, rest)) = cursor.punct() { in parse()
550 Err(cursor.error("expected `_`")) in parse()
557 fn peek(cursor: Cursor) -> bool { in peek()
558 if let Some((ident, _rest)) = cursor.ident() { in peek()
561 if let Some((punct, _rest)) = cursor.punct() { in peek()
652 fn peek(cursor: Cursor) -> bool { in peek()
653 cursor.group(Delimiter::Parenthesis).is_some() in peek()
663 fn peek(cursor: Cursor) -> bool { in peek()
664 cursor.group(Delimiter::Brace).is_some() in peek()
674 fn peek(cursor: Cursor) -> bool { in peek()
675 cursor.group(Delimiter::Bracket).is_some() in peek()
685 fn peek(cursor: Cursor) -> bool { in peek()
686 cursor.group(Delimiter::None).is_some() in peek()
986 input.step(|cursor| { in keyword()
987 if let Some((ident, rest)) = cursor.ident() { in keyword()
992 Err(cursor.error(format!("expected `{}`", token))) in keyword()
996 pub(crate) fn peek_keyword(cursor: Cursor, token: &str) -> bool { in peek_keyword()
997 if let Some((ident, _rest)) = cursor.ident() { in peek_keyword()
1012 input.step(|cursor| { in punct_helper()
1013 let mut cursor = *cursor; in punct_helper() localVariable
1017 match cursor.punct() { in punct_helper()
1027 cursor = rest; in punct_helper()
1038 pub fn peek_punct(mut cursor: Cursor, token: &str) -> bool { in peek_punct()
1040 match cursor.punct() { in peek_punct()
1049 cursor = rest; in peek_punct()