pub trait Terminal: TypedSyntaxNode {
    type TokenType: Token;

    const KIND: SyntaxKind;

    fn new_green(
        db: &dyn SyntaxGroup,
        leading_trivia: TriviaGreen,
        token: <<Self as Terminal>::TokenType as TypedSyntaxNode>::Green,
        trailing_trivia: TriviaGreen
    ) -> <Self as TypedSyntaxNode>::Green; fn text(&self, db: &dyn SyntaxGroup) -> SmolStr; }

Required Associated Types§

Required Associated Constants§

Required Methods§

Returns the text of the token of this terminal (excluding the trivia).

Implementors§