diff options
author | Lenard Pratt <[email protected]> | 2019-04-05 11:19:25 +0100 |
---|---|---|
committer | Lenard Pratt <[email protected]> | 2019-04-07 13:23:18 +0100 |
commit | b27fa33a9f459feb442682026670ca8e6001a424 (patch) | |
tree | 141bc3c57c8b1436e188abb6fd73468567a7d411 /crates/ra_syntax/src/ast | |
parent | e175921932615cb97eaa5cfd11d940cbd1473cac (diff) |
updated snapshots
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 |