mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +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
|
||||
#[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": (
|
||||
|
Loading…
Reference in New Issue
Block a user