Update TUPLE_EXPR grammar
This commit is contained in:
parent
829f668bd7
commit
6efda8f6ce
@ -2969,7 +2969,11 @@ fn to_owned(&self) -> TreeArc<TupleExpr> { TreeArc::cast(self.syntax.to_owned())
|
||||
}
|
||||
|
||||
|
||||
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
Block a user