mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Added inference of array length
This commit is contained in:
parent
36f5d99756
commit
2d73c909fe
6 changed files with 62 additions and 5 deletions
|
@ -108,6 +108,10 @@ impl ArrayExpr {
|
|||
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
|
||||
super::children(self)
|
||||
}
|
||||
|
||||
pub fn repeat(&self) -> Option<&Expr> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// ArrayType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue