diff options
author | Aleksey Kladov <[email protected]> | 2020-08-13 16:58:35 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-13 16:59:27 +0100 |
commit | 6bc2633c90cedad057c5201d1ab7f67b57247004 (patch) | |
tree | 4293492e643f9a604c5f30e051289bcea182694c /crates/parser/src/grammar/type_args.rs | |
parent | 1b0c7701cc97cd7bef8bb9729011d4cf291a60c5 (diff) |
Align parser names with grammar
Diffstat (limited to 'crates/parser/src/grammar/type_args.rs')
-rw-r--r-- | crates/parser/src/grammar/type_args.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/parser/src/grammar/type_args.rs b/crates/parser/src/grammar/type_args.rs index aef7cd6fb..f2d34a749 100644 --- a/crates/parser/src/grammar/type_args.rs +++ b/crates/parser/src/grammar/type_args.rs | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | use super::*; | 3 | use super::*; |
4 | 4 | ||
5 | pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) { | 5 | pub(super) fn opt_generic_arg_list(p: &mut Parser, colon_colon_required: bool) { |
6 | let m; | 6 | let m; |
7 | if p.at(T![::]) && p.nth(2) == T![<] { | 7 | if p.at(T![::]) && p.nth(2) == T![<] { |
8 | m = p.start(); | 8 | m = p.start(); |
@@ -16,7 +16,7 @@ pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) { | |||
16 | } | 16 | } |
17 | 17 | ||
18 | while !p.at(EOF) && !p.at(T![>]) { | 18 | while !p.at(EOF) && !p.at(T![>]) { |
19 | type_arg(p); | 19 | generic_arg(p); |
20 | if !p.at(T![>]) && !p.expect(T![,]) { | 20 | if !p.at(T![>]) && !p.expect(T![,]) { |
21 | break; | 21 | break; |
22 | } | 22 | } |
@@ -27,7 +27,7 @@ pub(super) fn opt_type_arg_list(p: &mut Parser, colon_colon_required: bool) { | |||
27 | 27 | ||
28 | // test type_arg | 28 | // test type_arg |
29 | // type A = B<'static, i32, 1, { 2 }, Item=u64>; | 29 | // type A = B<'static, i32, 1, { 2 }, Item=u64>; |
30 | fn type_arg(p: &mut Parser) { | 30 | fn generic_arg(p: &mut Parser) { |
31 | let m = p.start(); | 31 | let m = p.start(); |
32 | match p.current() { | 32 | match p.current() { |
33 | LIFETIME => { | 33 | LIFETIME => { |