Handle generic args for method calls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -431,7 +431,7 @@ Grammar(
|
||||
),
|
||||
"MethodCallExpr": (
|
||||
traits: ["ArgListOwner"],
|
||||
options: [ "Expr", "NameRef" ],
|
||||
options: [ "Expr", "NameRef", "TypeArgList" ],
|
||||
),
|
||||
"IndexExpr": (),
|
||||
"FieldExpr": (options: ["Expr", "NameRef"]),
|
||||
|
||||
Reference in New Issue
Block a user