Align parser names with grammar

This commit is contained in:
Aleksey Kladov 2020-08-13 17:58:35 +02:00
parent 1b0c7701cc
commit 6bc2633c90
17 changed files with 124 additions and 223 deletions

View file

@ -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),
}
}