Lines Matching refs:punct
183 impl_low_level_token!("punctuation token" Punct punct);
413 printing::punct($token, &self.spans, tokens);
422 spans: parsing::punct(input, $token)?,
545 if let Some((punct, rest)) = cursor.punct() { in parse()
546 if punct.as_char() == '_' { in parse()
547 return Ok((Underscore(punct.span()), rest)); in parse()
561 if let Some((punct, _rest)) = cursor.punct() { in peek()
562 return punct.as_char() == '_'; in peek()
1005 pub fn punct<const N: usize>(input: ParseStream, token: &str) -> Result<[Span; N]> { in punct() function
1017 match cursor.punct() { in punct_helper()
1018 Some((punct, rest)) => { in punct_helper()
1019 spans[i] = punct.span(); in punct_helper()
1020 if punct.as_char() != ch { in punct_helper()
1024 } else if punct.spacing() != Spacing::Joint { in punct_helper()
1040 match cursor.punct() { in peek_punct()
1041 Some((punct, rest)) => { in peek_punct()
1042 if punct.as_char() != ch { in peek_punct()
1046 } else if punct.spacing() != Spacing::Joint { in peek_punct()
1066 pub fn punct(s: &str, spans: &[Span], tokens: &mut TokenStream) { in punct() function