mirror of https://github.com/rust-lang/rust.git
Update TUPLE_EXPR grammar
This commit is contained in:
parent
829f668bd7
commit
6efda8f6ce
|
@ -2969,7 +2969,11 @@ impl AstNode for TupleExpr {
|
|||
}
|
||||
|
||||
|
||||
impl TupleExpr {}
|
||||
impl TupleExpr {
|
||||
pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
|
||||
super::children(self)
|
||||
}
|
||||
}
|
||||
|
||||
// TuplePat
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
|
|
@ -357,7 +357,9 @@ Grammar(
|
|||
enum: ["FnDef", "TypeDef", "ConstDef"]
|
||||
),
|
||||
|
||||
"TupleExpr": (),
|
||||
"TupleExpr": (
|
||||
collections: [["exprs", "Expr"]]
|
||||
),
|
||||
"ArrayExpr": (),
|
||||
"ParenExpr": (options: ["Expr"]),
|
||||
"PathExpr": (options: ["Path"]),
|
||||
|
|
Loading…
Reference in New Issue