diff --git a/crates/syntax/src/ast/syntax_factory/constructors.rs b/crates/syntax/src/ast/syntax_factory/constructors.rs index 88e9a93cd2..640d262a3e 100644 --- a/crates/syntax/src/ast/syntax_factory/constructors.rs +++ b/crates/syntax/src/ast/syntax_factory/constructors.rs @@ -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) + } }