From 58480b9190d8851abf7f634820188e33efed286d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 3 Sep 2018 02:01:43 +0300 Subject: method call scope --- crates/libsyntax2/src/grammar.ron | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crates/libsyntax2/src/grammar.ron') diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 798725f7e..683623a5d 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron @@ -388,10 +388,14 @@ Grammar( "NamedFieldList": (), "NamedField": (), "CallExpr": ( - options: [ "Expr", "ArgList" ] + traits: ["ArgListOwner"], + options: [ "Expr" ], + ), + "MethodCallExpr": ( + traits: ["ArgListOwner"], + options: [ "Expr" ], ), "IndexExpr": (), - "MethodCallExpr": (), "FieldExpr": (), "TryExpr": (), "CastExpr": (), -- cgit v1.2.3