Trait rslint_parser::ast::AstToken[][src]

pub trait AstToken {
    fn can_cast(token: SyntaxKind) -> bool
    where
        Self: Sized
;
fn cast(syntax: SyntaxToken) -> Option<Self>
    where
        Self: Sized
;
fn syntax(&self) -> &SyntaxToken; fn text(&self) -> &SmolStr { ... } }
Expand description

Like AstNode, but wraps tokens rather than interior nodes.

Required methods

Provided methods

Implementors