minor: Add whitespace constructor to SyntaxFactory

This commit is contained in:
Giga Bowser 2024-12-04 19:50:02 -05:00
parent c70bf568bb
commit d7d68310c0

View file

@ -403,4 +403,8 @@ impl SyntaxFactory {
pub fn token(&self, kind: SyntaxKind) -> SyntaxToken {
make::token(kind)
}
pub fn whitespace(&self, text: &str) -> ast::SyntaxToken {
make::tokens::whitespace(text)
}
}