Implement slice pattern AST > HIR lowering
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user