Trait SyntaxTokenExt

Source
pub trait SyntaxTokenExt {
    // Required method
    fn to_token(&self) -> &SyntaxToken;

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

Required Methods§

Provided Methods§

Source

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

Convert a comment to a more detailed representation.

Source

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

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

Implementors§