diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/expr_extensions.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_syntax/src/ast/expr_extensions.rs b/crates/ra_syntax/src/ast/expr_extensions.rs index d21ec80c3..9484c3b9b 100644 --- a/crates/ra_syntax/src/ast/expr_extensions.rs +++ b/crates/ra_syntax/src/ast/expr_extensions.rs | |||
@@ -203,7 +203,7 @@ impl ast::ArrayExpr { | |||
203 | if self.is_repeat() { | 203 | if self.is_repeat() { |
204 | ArrayExprKind::Repeat { | 204 | ArrayExprKind::Repeat { |
205 | initializer: children(self).nth(0), | 205 | initializer: children(self).nth(0), |
206 | repeat: children(self).nth(2), | 206 | repeat: children(self).nth(1), |
207 | } | 207 | } |
208 | } else { | 208 | } else { |
209 | ArrayExprKind::ElementList(children(self)) | 209 | ArrayExprKind::ElementList(children(self)) |
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 39b760551..0376c91c8 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -108,10 +108,6 @@ 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 | } | ||
115 | } | 111 | } |
116 | 112 | ||
117 | // ArrayType | 113 | // ArrayType |