Trait rslint_parser::util::SyntaxTokenExt[][src]

pub trait SyntaxTokenExt {
    fn to_token(&self) -> &SyntaxToken;

    fn comment(&self) -> Option<Comment> { ... }
fn in_ts(&self, set: TokenSet) -> bool { ... } }

Required methods

Provided methods

Convert a comment to a more detailed representation.

Check whether this token’s kind is contained in a token set.

Implementors