Handle generic args for method calls

This commit is contained in:
Florian Diebold 2019-02-16 23:05:57 +01:00
parent 65bd9bc3a8
commit a1bda3fc08
6 changed files with 50 additions and 11 deletions

View file

@ -2095,6 +2095,10 @@ impl MethodCallExpr {
pub fn name_ref(&self) -> Option<&NameRef> {
super::child_opt(self)
}
pub fn type_arg_list(&self) -> Option<&TypeArgList> {
super::child_opt(self)
}
}
// Module

View file

@ -431,7 +431,7 @@ Grammar(
),
"MethodCallExpr": (
traits: ["ArgListOwner"],
options: [ "Expr", "NameRef" ],
options: [ "Expr", "NameRef", "TypeArgList" ],
),
"IndexExpr": (),
"FieldExpr": (options: ["Expr", "NameRef"]),