Implement slice pattern AST > HIR lowering

This commit is contained in:
Jonas Platte 2020-02-11 22:33:11 +01:00
parent 3e1d97790b
commit a3b104aa6d
No known key found for this signature in database
GPG key ID: 7D261D771D915378
8 changed files with 64 additions and 13 deletions

View file

@ -2063,7 +2063,11 @@ impl AstNode for SlicePat {
&self.syntax
}
}
impl SlicePat {}
impl SlicePat {
pub fn args(&self) -> AstChildren<Pat> {
AstChildren::new(&self.syntax)
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct RangePat {
pub(crate) syntax: SyntaxNode,