mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
minor: Add whitespace
constructor to SyntaxFactory
This commit is contained in:
parent
c70bf568bb
commit
d7d68310c0
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue