mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Implement slice pattern AST > HIR lowering
This commit is contained in:
parent
3e1d97790b
commit
a3b104aa6d
8 changed files with 64 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue