diff options
author | Lenard Pratt <[email protected]> | 2019-04-03 23:23:58 +0100 |
---|---|---|
committer | Lenard Pratt <[email protected]> | 2019-04-07 13:23:12 +0100 |
commit | 2d73c909fe03c799b488aa0f97a588e13bbd7006 (patch) | |
tree | b96bf7ccc6cc6e0ebb86e52ffad104f44f53d556 /crates/ra_syntax/src/ast | |
parent | 36f5d997565b6390a4b524e7e1d0d805f0f26bdb (diff) |
Added inference of array length
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 0376c91c8..39b760551 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -108,6 +108,10 @@ impl ArrayExpr { | |||
108 | pub fn exprs(&self) -> impl Iterator<Item = &Expr> { | 108 | pub fn exprs(&self) -> impl Iterator<Item = &Expr> { |
109 | super::children(self) | 109 | super::children(self) |
110 | } | 110 | } |
111 | |||
112 | pub fn repeat(&self) -> Option<&Expr> { | ||
113 | super::child_opt(self) | ||
114 | } | ||
111 | } | 115 | } |
112 | 116 | ||
113 | // ArrayType | 117 | // ArrayType |