mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-08 03:20:37 +00:00
Handle generic args for method calls
This commit is contained in:
parent
65bd9bc3a8
commit
a1bda3fc08
6 changed files with 50 additions and 11 deletions
|
@ -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"]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue