Update TUPLE_EXPR grammar
This commit is contained in:
@@ -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"]),
|
||||
|
||||
Reference in New Issue
Block a user