mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Align parser names with grammar
This commit is contained in:
parent
1b0c7701cc
commit
6bc2633c90
17 changed files with 124 additions and 223 deletions
|
@ -105,11 +105,11 @@ fn opt_path_type_args(p: &mut Parser, mode: Mode) {
|
|||
// type F = Box<Fn(i32) -> ()>;
|
||||
if p.at(T!['(']) {
|
||||
params::param_list_fn_trait(p);
|
||||
opt_fn_ret_type(p);
|
||||
opt_ret_type(p);
|
||||
} else {
|
||||
type_args::opt_type_arg_list(p, false)
|
||||
type_args::opt_generic_arg_list(p, false)
|
||||
}
|
||||
}
|
||||
Mode::Expr => type_args::opt_type_arg_list(p, true),
|
||||
Mode::Expr => type_args::opt_generic_arg_list(p, true),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue