aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/ast')
-rw-r--r--crates/libsyntax2/src/ast/generated.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs
index 610b5198c..0651da26d 100644
--- a/crates/libsyntax2/src/ast/generated.rs
+++ b/crates/libsyntax2/src/ast/generated.rs
@@ -641,3 +641,21 @@ impl<'a> AstNode<'a> for TypeRef<'a> {
641 641
642impl<'a> TypeRef<'a> {} 642impl<'a> TypeRef<'a> {}
643 643
644// Whitespace
645#[derive(Debug, Clone, Copy)]
646pub struct Whitespace<'a> {
647 syntax: SyntaxNodeRef<'a>,
648}
649
650impl<'a> AstNode<'a> for Whitespace<'a> {
651 fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self> {
652 match syntax.kind() {
653 WHITESPACE => Some(Whitespace { syntax }),
654 _ => None,
655 }
656 }
657 fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax }
658}
659
660impl<'a> Whitespace<'a> {}
661