mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Update ARRAY_EXPR grammar
This commit is contained in:
@@ -67,7 +67,11 @@ fn to_owned(&self) -> TreeArc<ArrayExpr> { TreeArc::cast(self.syntax.to_owned())
|
||||
}
|
||||
|
||||
|
||||
impl ArrayExpr {}
|
||||
impl ArrayExpr {
|
||||
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
|
||||
super::children(self)
|
||||
}
|
||||
}
|
||||
|
||||
// ArrayType
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
||||
@@ -360,7 +360,9 @@ Grammar(
|
||||
"TupleExpr": (
|
||||
collections: [["exprs", "Expr"]]
|
||||
),
|
||||
"ArrayExpr": (),
|
||||
"ArrayExpr": (
|
||||
collections: [["exprs", "Expr"]]
|
||||
),
|
||||
"ParenExpr": (options: ["Expr"]),
|
||||
"PathExpr": (options: ["Path"]),
|
||||
"LambdaExpr": (
|
||||
|
||||
Reference in New Issue
Block a user