mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-09 10:36:51 +00:00
Update ARRAY_EXPR grammar
This commit is contained in:
parent
d75a0368f5
commit
4729a1b054
@ -67,7 +67,11 @@ impl AstNode for ArrayExpr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl ArrayExpr {}
|
impl ArrayExpr {
|
||||||
|
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
|
||||||
|
super::children(self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ArrayType
|
// ArrayType
|
||||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||||
|
@ -360,7 +360,9 @@ Grammar(
|
|||||||
"TupleExpr": (
|
"TupleExpr": (
|
||||||
collections: [["exprs", "Expr"]]
|
collections: [["exprs", "Expr"]]
|
||||||
),
|
),
|
||||||
"ArrayExpr": (),
|
"ArrayExpr": (
|
||||||
|
collections: [["exprs", "Expr"]]
|
||||||
|
),
|
||||||
"ParenExpr": (options: ["Expr"]),
|
"ParenExpr": (options: ["Expr"]),
|
||||||
"PathExpr": (options: ["Path"]),
|
"PathExpr": (options: ["Path"]),
|
||||||
"LambdaExpr": (
|
"LambdaExpr": (
|
||||||
|
Loading…
Reference in New Issue
Block a user