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 d72e2091a..c2a22c8fc 100644
--- a/crates/libsyntax2/src/ast/generated.rs
+++ b/crates/libsyntax2/src/ast/generated.rs
@@ -1278,6 +1278,24 @@ impl<'a> AstNode<'a> for Pat<'a> {
1278 1278
1279impl<'a> Pat<'a> {} 1279impl<'a> Pat<'a> {}
1280 1280
1281// Path
1282#[derive(Debug, Clone, Copy)]
1283pub struct Path<'a> {
1284 syntax: SyntaxNodeRef<'a>,
1285}
1286
1287impl<'a> AstNode<'a> for Path<'a> {
1288 fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self> {
1289 match syntax.kind() {
1290 PATH => Some(Path { syntax }),
1291 _ => None,
1292 }
1293 }
1294 fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax }
1295}
1296
1297impl<'a> Path<'a> {}
1298
1281// PathExpr 1299// PathExpr
1282#[derive(Debug, Clone, Copy)] 1300#[derive(Debug, Clone, Copy)]
1283pub struct PathExpr<'a> { 1301pub struct PathExpr<'a> {