pub trait Token: Spanned + Sized {
const PUNCT_KINDS: &'static [PunctKind];
const NOT_FOLLOWED_BY: &'static [PunctKind];
fn new(span: Span) -> Self;
fn ident(&self) -> Ident;
}
Expand description
The type is a keyword.
Required Associated Constants
sourceconst PUNCT_KINDS: &'static [PunctKind]
const PUNCT_KINDS: &'static [PunctKind]
The sequence of punctuations that make up the token.
sourceconst NOT_FOLLOWED_BY: &'static [PunctKind]
const NOT_FOLLOWED_BY: &'static [PunctKind]
Punctuations that will not follow the token.