aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorHirokazu Hata <[email protected]>2019-01-13 11:52:25 +0000
committerHirokazu Hata <[email protected]>2019-01-13 12:04:03 +0000
commit6efda8f6cefdd69c3bae892eb168971a465d2a8b (patch)
tree4d5759cb9f73dfab13d08870d34133a4fa44027e /crates/ra_syntax/src
parent829f668bd7aeabcc7a44c5c02ef7152790dd297c (diff)
Update TUPLE_EXPR grammar
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs6
-rw-r--r--crates/ra_syntax/src/grammar.ron4
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index f745cb1cb..94842a514 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -2969,7 +2969,11 @@ impl AstNode for TupleExpr {
2969} 2969}
2970 2970
2971 2971
2972impl TupleExpr {} 2972impl TupleExpr {
2973 pub fn exprs(&self) -> impl Iterator<Item = &Expr> {
2974 super::children(self)
2975 }
2976}
2973 2977
2974// TuplePat 2978// TuplePat
2975#[derive(Debug, PartialEq, Eq, Hash)] 2979#[derive(Debug, PartialEq, Eq, Hash)]
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index bac62fa04..dfd88bd10 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -357,7 +357,9 @@ Grammar(
357 enum: ["FnDef", "TypeDef", "ConstDef"] 357 enum: ["FnDef", "TypeDef", "ConstDef"]
358 ), 358 ),
359 359
360 "TupleExpr": (), 360 "TupleExpr": (
361 collections: [["exprs", "Expr"]]
362 ),
361 "ArrayExpr": (), 363 "ArrayExpr": (),
362 "ParenExpr": (options: ["Expr"]), 364 "ParenExpr": (options: ["Expr"]),
363 "PathExpr": (options: ["Path"]), 365 "PathExpr": (options: ["Path"]),