mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
minor: Add whitespace constructor to SyntaxFactory
This commit is contained in:
@@ -403,4 +403,8 @@ fn only_nodes(element: NodeOrToken<ast::TokenTree, SyntaxToken>) -> Option<Synta
|
||||
pub fn token(&self, kind: SyntaxKind) -> SyntaxToken {
|
||||
make::token(kind)
|
||||
}
|
||||
|
||||
pub fn whitespace(&self, text: &str) -> ast::SyntaxToken {
|
||||
make::tokens::whitespace(text)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user