updated snapshots
This commit is contained in:
@@ -17,7 +17,7 @@ pub use self::{
|
||||
generated::*,
|
||||
traits::*,
|
||||
tokens::*,
|
||||
extensions::{PathSegmentKind, StructKind, SelfParamKind},
|
||||
extensions::{PathSegmentKind, StructKind,FieldKind, SelfParamKind},
|
||||
expr_extensions::{ElseBranch, PrefixOp, BinOp, LiteralKind,ArrayExprKind},
|
||||
};
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -108,10 +108,6 @@ impl ArrayExpr {
|
||||
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
|
||||
super::children(self)
|
||||
}
|
||||
|
||||
pub fn repeat(&self) -> Option<&Expr> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// ArrayType
|
||||
|
||||
@@ -395,8 +395,7 @@ Grammar(
|
||||
collections: [["exprs", "Expr"]]
|
||||
),
|
||||
"ArrayExpr": (
|
||||
collections: [["exprs", "Expr"]],
|
||||
options:[["repeat","Expr"]]
|
||||
collections: [["exprs", "Expr"]]
|
||||
),
|
||||
"ParenExpr": (options: ["Expr"]),
|
||||
"PathExpr": (options: ["Path"]),
|
||||
|
||||
Reference in New Issue
Block a user