Generate only minimal set of ineresting tokens

This commit is contained in:
Aleksey Kladov 2020-04-10 15:53:09 +02:00
parent 8d71a6bf0c
commit 4560fe2abf
8 changed files with 61 additions and 1306 deletions

View file

@ -6,6 +6,7 @@ use stdx::SepBy;
use crate::{
ast::{self, support, AstChildren, AstNode, AstToken},
syntax_node::SyntaxElementChildren,
SyntaxToken, T,
};
pub trait TypeAscriptionOwner: AstNode {
@ -63,8 +64,8 @@ pub trait TypeBoundsOwner: AstNode {
support::child(self.syntax())
}
fn colon(&self) -> Option<ast::Colon> {
support::token(self.syntax())
fn colon_token(&self) -> Option<SyntaxToken> {
support::token2(self.syntax(), T![:])
}
}