aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs4
-rw-r--r--crates/ra_syntax/src/grammar.ron2
2 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index 4e0550487..6b2800a0e 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -2030,6 +2030,10 @@ impl<'a> MethodCallExpr<'a> {
2030 pub fn expr(self) -> Option<Expr<'a>> { 2030 pub fn expr(self) -> Option<Expr<'a>> {
2031 super::child_opt(self) 2031 super::child_opt(self)
2032 } 2032 }
2033
2034 pub fn name_ref(self) -> Option<NameRef<'a>> {
2035 super::child_opt(self)
2036 }
2033} 2037}
2034 2038
2035// Module 2039// Module
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index 923da0324..dcde32923 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -403,7 +403,7 @@ Grammar(
403 ), 403 ),
404 "MethodCallExpr": ( 404 "MethodCallExpr": (
405 traits: ["ArgListOwner"], 405 traits: ["ArgListOwner"],
406 options: [ "Expr" ], 406 options: [ "Expr", "NameRef" ],
407 ), 407 ),
408 "IndexExpr": (), 408 "IndexExpr": (),
409 "FieldExpr": (options: ["Expr", "NameRef"]), 409 "FieldExpr": (options: ["Expr", "NameRef"]),