From b27fa33a9f459feb442682026670ca8e6001a424 Mon Sep 17 00:00:00 2001 From: Lenard Pratt Date: Fri, 5 Apr 2019 11:19:25 +0100 Subject: updated snapshots --- crates/ra_syntax/src/ast/expr_extensions.rs | 2 +- crates/ra_syntax/src/ast/generated.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'crates/ra_syntax/src/ast') 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 { if self.is_repeat() { ArrayExprKind::Repeat { initializer: children(self).nth(0), - repeat: children(self).nth(2), + repeat: children(self).nth(1), } } else { 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 { pub fn exprs(&self) -> impl Iterator { super::children(self) } - - pub fn repeat(&self) -> Option<&Expr> { - super::child_opt(self) - } } // ArrayType -- cgit v1.2.3