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

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

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

Required methods

fn to_token(&self) -> &SyntaxToken

Loading content...

Provided methods

fn comment(&self) -> Option<Comment>

Convert a comment to a more detailed representation.

fn in_ts(&self, set: TokenSet) -> bool

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

Loading content...

Implementors

impl SyntaxTokenExt for SyntaxToken[src]

Loading content...