From bff8dd094958f1abe2fcfe8fe9f15dc7a7e6b53e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 1 Aug 2020 13:47:19 +0200 Subject: Update grammar --- .../test_data/parser/err/0012_broken_lambda.rast | 6 ++-- .../parser/err/0044_unexpected_for_type.rast | 18 ++++++------ .../err/0003_pointer_type_no_mutability.rast | 2 +- .../parser/inline/ok/0003_where_pred_for.rast | 2 +- .../ok/0004_value_parameters_no_patterns.rast | 4 +-- .../parser/inline/ok/0013_pointer_type_mut.rast | 4 +-- .../parser/inline/ok/0018_arb_self_types.rast | 2 +- .../parser/inline/ok/0032_fn_pointer_type.rast | 8 +++--- .../parser/inline/ok/0033_reference_type;.rast | 6 ++-- .../inline/ok/0045_param_list_opt_patterns.rast | 2 +- .../test_data/parser/inline/ok/0081_for_type.rast | 8 +++--- .../inline/ok/0092_fn_pointer_type_with_ret.rast | 2 +- .../ok/0122_generic_lifetime_type_attribute.rast | 2 +- .../parser/inline/ok/0123_param_list_vararg.rast | 2 +- .../parser/inline/ok/0146_as_precedence.rast | 2 +- .../parser/inline/ok/0150_array_attrs.rast | 2 +- .../ok/0154_fn_pointer_param_ident_path.rast | 4 +-- .../inline/ok/0157_fn_pointer_unnamed_arg.rast | 2 +- .../ra_syntax/test_data/parser/ok/0031_extern.rast | 32 +++++++++++----------- .../test_data/parser/ok/0035_weird_exprs.rast | 4 +-- .../test_data/parser/ok/0051_parameter_attrs.rast | 4 +-- .../parser/ok/0054_qual_path_in_type_arg.rast | 2 +- .../parser/ok/0063_trait_fn_patterns.rast | 4 +-- .../test_data/parser/ok/0063_variadic_fun.rast | 6 ++-- .../test_data/parser/ok/0064_impl_fn_params.rast | 4 +-- .../test_data/parser/ok/0067_where_for_pred.rast | 20 +++++++------- 26 files changed, 77 insertions(+), 77 deletions(-) (limited to 'crates/ra_syntax/test_data') diff --git a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast index c131b79a7..f31c27633 100644 --- a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast +++ b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast @@ -39,7 +39,7 @@ SOURCE_FILE@0..389 IDENT@39..46 "builder" COLON@46..47 WHITESPACE@47..48 - REFERENCE_TYPE@48..54 + REF_TYPE@48..54 AMP@48..49 MUT_KW@49..52 WHITESPACE@52..53 @@ -56,7 +56,7 @@ SOURCE_FILE@0..389 IDENT@56..62 "tokens" COLON@62..63 WHITESPACE@63..64 - REFERENCE_TYPE@64..72 + REF_TYPE@64..72 AMP@64..65 SLICE_TYPE@65..72 L_BRACK@65..66 @@ -126,7 +126,7 @@ SOURCE_FILE@0..389 IDENT@144..147 "idx" COLON@147..148 WHITESPACE@148..149 - REFERENCE_TYPE@149..159 + REF_TYPE@149..159 AMP@149..150 MUT_KW@150..153 WHITESPACE@153..154 diff --git a/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast b/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast index 082625c13..71aa86494 100644 --- a/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast +++ b/crates/ra_syntax/test_data/parser/err/0044_unexpected_for_type.rast @@ -15,7 +15,7 @@ SOURCE_FILE@0..239 LIFETIME@18..20 "\'a" R_ANGLE@20..21 ">" WHITESPACE@21..22 " " - REFERENCE_TYPE@22..29 + REF_TYPE@22..29 AMP@22..23 "&" LIFETIME@23..25 "\'a" WHITESPACE@25..26 " " @@ -44,7 +44,7 @@ SOURCE_FILE@0..239 WHITESPACE@52..53 " " TUPLE_TYPE@53..63 L_PAREN@53..54 "(" - REFERENCE_TYPE@54..61 + REF_TYPE@54..61 AMP@54..55 "&" LIFETIME@55..57 "\'a" WHITESPACE@57..58 " " @@ -107,12 +107,12 @@ SOURCE_FILE@0..239 LIFETIME@124..126 "\'b" R_ANGLE@126..127 ">" WHITESPACE@127..128 " " - FN_POINTER_TYPE@128..148 + FN_PTR_TYPE@128..148 FN_KW@128..130 "fn" PARAM_LIST@130..148 L_PAREN@130..131 "(" PARAM@131..138 - REFERENCE_TYPE@131..138 + REF_TYPE@131..138 AMP@131..132 "&" LIFETIME@132..134 "\'a" WHITESPACE@134..135 " " @@ -124,7 +124,7 @@ SOURCE_FILE@0..239 COMMA@138..139 "," WHITESPACE@139..140 " " PARAM@140..147 - REFERENCE_TYPE@140..147 + REF_TYPE@140..147 AMP@140..141 "&" LIFETIME@141..143 "\'b" WHITESPACE@143..144 " " @@ -178,12 +178,12 @@ SOURCE_FILE@0..239 LIFETIME@200..202 "\'c" R_ANGLE@202..203 ">" WHITESPACE@203..204 " " - FN_POINTER_TYPE@204..227 + FN_PTR_TYPE@204..227 FN_KW@204..206 "fn" PARAM_LIST@206..227 L_PAREN@206..207 "(" PARAM@207..212 - REFERENCE_TYPE@207..212 + REF_TYPE@207..212 AMP@207..208 "&" LIFETIME@208..210 "\'a" WHITESPACE@210..211 " " @@ -195,7 +195,7 @@ SOURCE_FILE@0..239 COMMA@212..213 "," WHITESPACE@213..214 " " PARAM@214..219 - REFERENCE_TYPE@214..219 + REF_TYPE@214..219 AMP@214..215 "&" LIFETIME@215..217 "\'b" WHITESPACE@217..218 " " @@ -207,7 +207,7 @@ SOURCE_FILE@0..239 COMMA@219..220 "," WHITESPACE@220..221 " " PARAM@221..226 - REFERENCE_TYPE@221..226 + REF_TYPE@221..226 AMP@221..222 "&" LIFETIME@222..224 "\'c" WHITESPACE@224..225 " " diff --git a/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast b/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast index 2409eefe7..0d8bf6dd6 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0003_pointer_type_no_mutability.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..14 WHITESPACE@6..7 " " EQ@7..8 "=" WHITESPACE@8..9 " " - POINTER_TYPE@9..12 + PTR_TYPE@9..12 STAR@9..10 "*" TUPLE_TYPE@10..12 L_PAREN@10..11 "(" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rast b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rast index b0f2b5888..62da7b887 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rast @@ -42,7 +42,7 @@ SOURCE_FILE@0..54 PARAM_LIST@40..49 L_PAREN@40..41 "(" PARAM@41..48 - REFERENCE_TYPE@41..48 + REF_TYPE@41..48 AMP@41..42 "&" LIFETIME@42..44 "\'a" WHITESPACE@44..45 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast b/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast index 44d92aedb..b650735ba 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0004_value_parameters_no_patterns.rast @@ -31,7 +31,7 @@ SOURCE_FILE@0..39 COMMA@19..20 "," WHITESPACE@20..21 " " PARAM@21..25 - REFERENCE_TYPE@21..25 + REF_TYPE@21..25 AMP@21..22 "&" PATH_TYPE@22..25 PATH@22..25 @@ -41,7 +41,7 @@ SOURCE_FILE@0..39 COMMA@25..26 "," WHITESPACE@26..27 " " PARAM@27..31 - REFERENCE_TYPE@27..31 + REF_TYPE@27..31 AMP@27..28 "&" PATH_TYPE@28..31 PATH@28..31 diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.rast b/crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.rast index 845b32e6d..d33215b50 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0013_pointer_type_mut.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..36 WHITESPACE@6..7 " " EQ@7..8 "=" WHITESPACE@8..9 " " - POINTER_TYPE@9..16 + PTR_TYPE@9..16 STAR@9..10 "*" MUT_KW@10..13 "mut" WHITESPACE@13..14 " " @@ -24,7 +24,7 @@ SOURCE_FILE@0..36 WHITESPACE@24..25 " " EQ@25..26 "=" WHITESPACE@26..27 " " - POINTER_TYPE@27..34 + PTR_TYPE@27..34 STAR@27..28 "*" MUT_KW@28..31 "mut" WHITESPACE@31..32 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast index 1b31aa95a..ddbd66588 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast @@ -22,7 +22,7 @@ SOURCE_FILE@0..69 SELF_KW@18..22 "self" COLON@22..23 ":" WHITESPACE@23..24 " " - REFERENCE_TYPE@24..29 + REF_TYPE@24..29 AMP@24..25 "&" PATH_TYPE@25..29 PATH@25..29 diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.rast index 79a5ee339..dda6577ed 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0032_fn_pointer_type.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..113 WHITESPACE@6..7 " " EQ@7..8 "=" WHITESPACE@8..9 " " - FN_POINTER_TYPE@9..13 + FN_PTR_TYPE@9..13 FN_KW@9..11 "fn" PARAM_LIST@11..13 L_PAREN@11..12 "(" @@ -22,7 +22,7 @@ SOURCE_FILE@0..113 WHITESPACE@21..22 " " EQ@22..23 "=" WHITESPACE@23..24 " " - FN_POINTER_TYPE@24..35 + FN_PTR_TYPE@24..35 UNSAFE_KW@24..30 "unsafe" WHITESPACE@30..31 " " FN_KW@31..33 "fn" @@ -39,7 +39,7 @@ SOURCE_FILE@0..113 WHITESPACE@43..44 " " EQ@44..45 "=" WHITESPACE@45..46 " " - FN_POINTER_TYPE@46..68 + FN_PTR_TYPE@46..68 UNSAFE_KW@46..52 "unsafe" WHITESPACE@52..53 " " ABI@53..63 @@ -61,7 +61,7 @@ SOURCE_FILE@0..113 WHITESPACE@76..77 " " EQ@77..78 "=" WHITESPACE@78..79 " " - FN_POINTER_TYPE@79..111 + FN_PTR_TYPE@79..111 ABI@79..89 EXTERN_KW@79..85 "extern" WHITESPACE@85..86 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.rast b/crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.rast index c522f76cf..974df9f9a 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0033_reference_type;.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..54 WHITESPACE@6..7 " " EQ@7..8 "=" WHITESPACE@8..9 " " - REFERENCE_TYPE@9..12 + REF_TYPE@9..12 AMP@9..10 "&" TUPLE_TYPE@10..12 L_PAREN@10..11 "(" @@ -22,7 +22,7 @@ SOURCE_FILE@0..54 WHITESPACE@20..21 " " EQ@21..22 "=" WHITESPACE@22..23 " " - REFERENCE_TYPE@23..34 + REF_TYPE@23..34 AMP@23..24 "&" LIFETIME@24..31 "\'static" WHITESPACE@31..32 " " @@ -39,7 +39,7 @@ SOURCE_FILE@0..54 WHITESPACE@42..43 " " EQ@43..44 "=" WHITESPACE@44..45 " " - REFERENCE_TYPE@45..52 + REF_TYPE@45..52 AMP@45..46 "&" MUT_KW@46..49 "mut" WHITESPACE@49..50 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast index c100d1c71..6baea6e3c 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0045_param_list_opt_patterns.rast @@ -21,7 +21,7 @@ SOURCE_FILE@0..35 PARAM_LIST@15..29 L_PAREN@15..16 "(" PARAM@16..28 - REFERENCE_TYPE@16..28 + REF_TYPE@16..28 AMP@16..17 "&" MUT_KW@17..20 "mut" WHITESPACE@20..21 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast index 5f4807522..f319d5141 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.rast @@ -15,7 +15,7 @@ SOURCE_FILE@0..121 LIFETIME@13..15 "\'a" R_ANGLE@15..16 ">" WHITESPACE@16..17 " " - FN_POINTER_TYPE@17..27 + FN_PTR_TYPE@17..27 FN_KW@17..19 "fn" PARAM_LIST@19..21 L_PAREN@19..20 "(" @@ -45,7 +45,7 @@ SOURCE_FILE@0..121 LIFETIME@42..44 "\'a" R_ANGLE@44..45 ">" WHITESPACE@45..46 " " - FN_POINTER_TYPE@46..80 + FN_PTR_TYPE@46..80 UNSAFE_KW@46..52 "unsafe" WHITESPACE@52..53 " " ABI@53..63 @@ -57,7 +57,7 @@ SOURCE_FILE@0..121 PARAM_LIST@66..74 L_PAREN@66..67 "(" PARAM@67..73 - REFERENCE_TYPE@67..73 + REF_TYPE@67..73 AMP@67..68 "&" LIFETIME@68..70 "\'a" WHITESPACE@70..71 " " @@ -98,7 +98,7 @@ SOURCE_FILE@0..121 GENERIC_ARG_LIST@110..119 L_ANGLE@110..111 "<" TYPE_ARG@111..118 - REFERENCE_TYPE@111..118 + REF_TYPE@111..118 AMP@111..112 "&" LIFETIME@112..114 "\'a" WHITESPACE@114..115 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.rast b/crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.rast index 95686977f..f80326465 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0092_fn_pointer_type_with_ret.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..21 WHITESPACE@6..7 " " EQ@7..8 "=" WHITESPACE@8..9 " " - FN_POINTER_TYPE@9..19 + FN_PTR_TYPE@9..19 FN_KW@9..11 "fn" PARAM_LIST@11..13 L_PAREN@11..12 "(" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast b/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast index 8d029b592..570b95205 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast @@ -47,7 +47,7 @@ SOURCE_FILE@0..64 UNDERSCORE@50..51 "_" COLON@51..52 ":" WHITESPACE@52..53 " " - REFERENCE_TYPE@53..58 + REF_TYPE@53..58 AMP@53..54 "&" LIFETIME@54..56 "\'a" WHITESPACE@56..57 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast index 27c4f141f..7cdec6634 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0123_param_list_vararg.rast @@ -21,7 +21,7 @@ SOURCE_FILE@0..57 IDENT@23..29 "format" COLON@29..30 ":" WHITESPACE@30..31 " " - POINTER_TYPE@31..40 + PTR_TYPE@31..40 STAR@31..32 "*" CONST_KW@32..37 "const" WHITESPACE@37..38 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.rast b/crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.rast index ca739825a..a36cc8dab 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0146_as_precedence.rast @@ -27,7 +27,7 @@ SOURCE_FILE@0..43 WHITESPACE@25..26 " " AS_KW@26..28 "as" WHITESPACE@28..29 " " - POINTER_TYPE@29..39 + PTR_TYPE@29..39 STAR@29..30 "*" CONST_KW@30..35 "const" WHITESPACE@35..36 " " diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.rast b/crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.rast index 0c35bf2b7..f284aafcd 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0150_array_attrs.rast @@ -6,7 +6,7 @@ SOURCE_FILE@0..40 IDENT@6..7 "A" COLON@7..8 ":" WHITESPACE@8..9 " " - REFERENCE_TYPE@9..15 + REF_TYPE@9..15 AMP@9..10 "&" SLICE_TYPE@10..15 L_BRACK@10..11 "[" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast b/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast index c48fed03e..e6aff7b37 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0154_fn_pointer_param_ident_path.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..55 WHITESPACE@8..9 " " EQ@9..10 "=" WHITESPACE@10..11 " " - FN_POINTER_TYPE@11..23 + FN_PTR_TYPE@11..23 FN_KW@11..13 "fn" PARAM_LIST@13..23 L_PAREN@13..14 "(" @@ -33,7 +33,7 @@ SOURCE_FILE@0..55 WHITESPACE@33..34 " " EQ@34..35 "=" WHITESPACE@35..36 " " - FN_POINTER_TYPE@36..53 + FN_PTR_TYPE@36..53 FN_KW@36..38 "fn" PARAM_LIST@38..53 L_PAREN@38..39 "(" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.rast index 3079e5bf8..6abb4fe5a 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0157_fn_pointer_unnamed_arg.rast @@ -7,7 +7,7 @@ SOURCE_FILE@0..23 WHITESPACE@8..9 " " EQ@9..10 "=" WHITESPACE@10..11 " " - FN_POINTER_TYPE@11..21 + FN_PTR_TYPE@11..21 FN_KW@11..13 "fn" PARAM_LIST@13..21 L_PAREN@13..14 "(" diff --git a/crates/ra_syntax/test_data/parser/ok/0031_extern.rast b/crates/ra_syntax/test_data/parser/ok/0031_extern.rast index 79ea098a2..8150d445f 100644 --- a/crates/ra_syntax/test_data/parser/ok/0031_extern.rast +++ b/crates/ra_syntax/test_data/parser/ok/0031_extern.rast @@ -99,7 +99,7 @@ SOURCE_FILE@0..1598 IDENT@117..121 "addr" COLON@121..122 ":" WHITESPACE@122..123 " " - POINTER_TYPE@123..138 + PTR_TYPE@123..138 STAR@123..124 "*" CONST_KW@124..129 "const" WHITESPACE@129..130 " " @@ -164,7 +164,7 @@ SOURCE_FILE@0..1598 IDENT@204..211 "address" COLON@211..212 ":" WHITESPACE@212..213 " " - POINTER_TYPE@213..228 + PTR_TYPE@213..228 STAR@213..214 "*" CONST_KW@214..219 "const" WHITESPACE@219..220 " " @@ -278,7 +278,7 @@ SOURCE_FILE@0..1598 IDENT@382..389 "address" COLON@389..390 ":" WHITESPACE@390..391 " " - POINTER_TYPE@391..404 + PTR_TYPE@391..404 STAR@391..392 "*" MUT_KW@392..395 "mut" WHITESPACE@395..396 " " @@ -295,7 +295,7 @@ SOURCE_FILE@0..1598 IDENT@429..440 "address_len" COLON@440..441 ":" WHITESPACE@441..442 " " - POINTER_TYPE@442..456 + PTR_TYPE@442..456 STAR@442..443 "*" MUT_KW@443..446 "mut" WHITESPACE@446..447 " " @@ -375,7 +375,7 @@ SOURCE_FILE@0..1598 IDENT@609..615 "optval" COLON@615..616 ":" WHITESPACE@616..617 " " - POINTER_TYPE@617..630 + PTR_TYPE@617..630 STAR@617..618 "*" MUT_KW@618..621 "mut" WHITESPACE@621..622 " " @@ -393,7 +393,7 @@ SOURCE_FILE@0..1598 IDENT@654..660 "optlen" COLON@660..661 ":" WHITESPACE@661..662 " " - POINTER_TYPE@662..678 + PTR_TYPE@662..678 STAR@662..663 "*" MUT_KW@663..666 "mut" WHITESPACE@666..667 " " @@ -474,7 +474,7 @@ SOURCE_FILE@0..1598 IDENT@784..789 "value" COLON@789..790 ":" WHITESPACE@790..791 " " - POINTER_TYPE@791..806 + PTR_TYPE@791..806 STAR@791..792 "*" CONST_KW@792..797 "const" WHITESPACE@797..798 " " @@ -540,7 +540,7 @@ SOURCE_FILE@0..1598 IDENT@905..912 "address" COLON@912..913 ":" WHITESPACE@913..914 " " - POINTER_TYPE@914..927 + PTR_TYPE@914..927 STAR@914..915 "*" MUT_KW@915..918 "mut" WHITESPACE@918..919 " " @@ -557,7 +557,7 @@ SOURCE_FILE@0..1598 IDENT@952..963 "address_len" COLON@963..964 ":" WHITESPACE@964..965 " " - POINTER_TYPE@965..979 + PTR_TYPE@965..979 STAR@965..966 "*" MUT_KW@966..969 "mut" WHITESPACE@969..970 " " @@ -609,7 +609,7 @@ SOURCE_FILE@0..1598 IDENT@1028..1031 "buf" COLON@1031..1032 ":" WHITESPACE@1032..1033 " " - POINTER_TYPE@1033..1048 + PTR_TYPE@1033..1048 STAR@1033..1034 "*" CONST_KW@1034..1039 "const" WHITESPACE@1039..1040 " " @@ -655,7 +655,7 @@ SOURCE_FILE@0..1598 IDENT@1099..1103 "addr" COLON@1103..1104 ":" WHITESPACE@1104..1105 " " - POINTER_TYPE@1105..1120 + PTR_TYPE@1105..1120 STAR@1105..1106 "*" CONST_KW@1106..1111 "const" WHITESPACE@1111..1112 " " @@ -720,7 +720,7 @@ SOURCE_FILE@0..1598 IDENT@1207..1210 "buf" COLON@1210..1211 ":" WHITESPACE@1211..1212 " " - POINTER_TYPE@1212..1227 + PTR_TYPE@1212..1227 STAR@1212..1213 "*" CONST_KW@1213..1218 "const" WHITESPACE@1218..1219 " " @@ -801,7 +801,7 @@ SOURCE_FILE@0..1598 IDENT@1327..1330 "buf" COLON@1330..1331 ":" WHITESPACE@1331..1332 " " - POINTER_TYPE@1332..1345 + PTR_TYPE@1332..1345 STAR@1332..1333 "*" MUT_KW@1333..1336 "mut" WHITESPACE@1336..1337 " " @@ -847,7 +847,7 @@ SOURCE_FILE@0..1598 IDENT@1398..1402 "addr" COLON@1402..1403 ":" WHITESPACE@1403..1404 " " - POINTER_TYPE@1404..1419 + PTR_TYPE@1404..1419 STAR@1404..1405 "*" MUT_KW@1405..1408 "mut" WHITESPACE@1408..1409 " " @@ -865,7 +865,7 @@ SOURCE_FILE@0..1598 IDENT@1441..1448 "addrlen" COLON@1448..1449 ":" WHITESPACE@1449..1450 " " - POINTER_TYPE@1450..1466 + PTR_TYPE@1450..1466 STAR@1450..1451 "*" MUT_KW@1451..1454 "mut" WHITESPACE@1454..1455 " " @@ -918,7 +918,7 @@ SOURCE_FILE@0..1598 IDENT@1515..1518 "buf" COLON@1518..1519 ":" WHITESPACE@1519..1520 " " - POINTER_TYPE@1520..1533 + PTR_TYPE@1520..1533 STAR@1520..1521 "*" MUT_KW@1521..1524 "mut" WHITESPACE@1524..1525 " " diff --git a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast index 5bb9363a8..7c61b5006 100644 --- a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast +++ b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast @@ -242,7 +242,7 @@ SOURCE_FILE@0..3813 IDENT@649..650 "x" COLON@650..651 ":" WHITESPACE@651..652 " " - REFERENCE_TYPE@652..663 + REF_TYPE@652..663 AMP@652..653 "&" PATH_TYPE@653..663 PATH@653..663 @@ -1579,7 +1579,7 @@ SOURCE_FILE@0..3813 IDENT@2873..2878 "union" COLON@2878..2879 ":" WHITESPACE@2879..2880 " " - REFERENCE_TYPE@2880..2901 + REF_TYPE@2880..2901 AMP@2880..2881 "&" LIFETIME@2881..2887 "\'union" WHITESPACE@2887..2888 " " diff --git a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast index 0303b198f..d4f05f279 100644 --- a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast +++ b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast @@ -96,7 +96,7 @@ SOURCE_FILE@0..519 IDENT@87..93 "format" COLON@93..94 ":" WHITESPACE@94..95 " " - POINTER_TYPE@95..104 + PTR_TYPE@95..104 STAR@95..96 "*" CONST_KW@96..101 "const" WHITESPACE@101..102 " " @@ -163,7 +163,7 @@ SOURCE_FILE@0..519 R_BRACK@152..153 "]" WHITESPACE@153..154 " " PARAM@154..166 - REFERENCE_TYPE@154..166 + REF_TYPE@154..166 AMP@154..155 "&" MUT_KW@155..158 "mut" WHITESPACE@158..159 " " diff --git a/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast b/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast index f71ceecd7..f25c9ac36 100644 --- a/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast +++ b/crates/ra_syntax/test_data/parser/ok/0054_qual_path_in_type_arg.rast @@ -102,7 +102,7 @@ SOURCE_FILE@0..88 PARAM_LIST@76..83 L_PAREN@76..77 "(" PARAM@77..82 - REFERENCE_TYPE@77..82 + REF_TYPE@77..82 AMP@77..78 "&" PATH_TYPE@78..82 PATH@78..82 diff --git a/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast b/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast index 42680b283..8eda59976 100644 --- a/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast +++ b/crates/ra_syntax/test_data/parser/ok/0063_trait_fn_patterns.rast @@ -140,9 +140,9 @@ SOURCE_FILE@0..170 IDENT@121..122 "a" COLON@122..123 ":" WHITESPACE@123..124 " " - REFERENCE_TYPE@124..131 + REF_TYPE@124..131 AMP@124..125 "&" - REFERENCE_TYPE@125..131 + REF_TYPE@125..131 AMP@125..126 "&" PATH_TYPE@126..131 PATH@126..131 diff --git a/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast b/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast index a132591f0..4009b3ff8 100644 --- a/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast +++ b/crates/ra_syntax/test_data/parser/ok/0063_variadic_fun.rast @@ -20,7 +20,7 @@ SOURCE_FILE@0..126 UNDERSCORE@22..23 "_" COLON@23..24 ":" WHITESPACE@24..25 " " - POINTER_TYPE@25..32 + PTR_TYPE@25..32 STAR@25..26 "*" MUT_KW@26..29 "mut" WHITESPACE@29..30 " " @@ -49,7 +49,7 @@ SOURCE_FILE@0..126 UNDERSCORE@50..51 "_" COLON@51..52 ":" WHITESPACE@52..53 " " - POINTER_TYPE@53..60 + PTR_TYPE@53..60 STAR@53..54 "*" MUT_KW@54..57 "mut" WHITESPACE@57..58 " " @@ -81,7 +81,7 @@ SOURCE_FILE@0..126 UNDERSCORE@80..81 "_" COLON@81..82 ":" WHITESPACE@82..83 " " - POINTER_TYPE@83..90 + PTR_TYPE@83..90 STAR@83..84 "*" MUT_KW@84..87 "mut" WHITESPACE@87..88 " " diff --git a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast index 94260db7c..a3c6ed82e 100644 --- a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast +++ b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast @@ -143,9 +143,9 @@ SOURCE_FILE@0..137 IDENT@120..121 "a" COLON@121..122 ":" WHITESPACE@122..123 " " - REFERENCE_TYPE@123..130 + REF_TYPE@123..130 AMP@123..124 "&" - REFERENCE_TYPE@124..130 + REF_TYPE@124..130 AMP@124..125 "&" PATH_TYPE@125..130 PATH@125..130 diff --git a/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast b/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast index fae9467fc..8f8639a37 100644 --- a/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast +++ b/crates/ra_syntax/test_data/parser/ok/0067_where_for_pred.rast @@ -42,7 +42,7 @@ SOURCE_FILE@0..374 PARAM_LIST@41..50 L_PAREN@41..42 "(" PARAM@42..49 - REFERENCE_TYPE@42..49 + REF_TYPE@42..49 AMP@42..43 "&" LIFETIME@43..45 "\'a" WHITESPACE@45..46 " " @@ -85,7 +85,7 @@ SOURCE_FILE@0..374 LIFETIME@86..88 "\'a" R_ANGLE@88..89 ">" WHITESPACE@89..90 " " - REFERENCE_TYPE@90..95 + REF_TYPE@90..95 AMP@90..91 "&" LIFETIME@91..93 "\'a" WHITESPACE@93..94 " " @@ -138,7 +138,7 @@ SOURCE_FILE@0..374 WHITESPACE@144..145 " " PAREN_TYPE@145..152 L_PAREN@145..146 "(" - REFERENCE_TYPE@146..151 + REF_TYPE@146..151 AMP@146..147 "&" LIFETIME@147..149 "\'a" WHITESPACE@149..150 " " @@ -160,7 +160,7 @@ SOURCE_FILE@0..374 PARAM_LIST@156..165 L_PAREN@156..157 "(" PARAM@157..164 - REFERENCE_TYPE@157..164 + REF_TYPE@157..164 AMP@157..158 "&" LIFETIME@158..160 "\'a" WHITESPACE@160..161 " " @@ -205,7 +205,7 @@ SOURCE_FILE@0..374 WHITESPACE@206..207 " " SLICE_TYPE@207..214 L_BRACK@207..208 "[" - REFERENCE_TYPE@208..213 + REF_TYPE@208..213 AMP@208..209 "&" LIFETIME@209..211 "\'a" WHITESPACE@211..212 " " @@ -250,7 +250,7 @@ SOURCE_FILE@0..374 IDENT@240..242 "_t" COLON@242..243 ":" WHITESPACE@243..244 " " - REFERENCE_TYPE@244..246 + REF_TYPE@244..246 AMP@244..245 "&" PATH_TYPE@245..246 PATH@245..246 @@ -275,7 +275,7 @@ SOURCE_FILE@0..374 PATH@266..280 PATH_SEGMENT@266..280 L_ANGLE@266..267 "<" - REFERENCE_TYPE@267..272 + REF_TYPE@267..272 AMP@267..268 "&" LIFETIME@268..270 "\'a" WHITESPACE@270..271 " " @@ -347,12 +347,12 @@ SOURCE_FILE@0..374 LIFETIME@342..344 "\'b" R_ANGLE@344..345 ">" WHITESPACE@345..346 " " - FN_POINTER_TYPE@346..362 + FN_PTR_TYPE@346..362 FN_KW@346..348 "fn" PARAM_LIST@348..362 L_PAREN@348..349 "(" PARAM@349..354 - REFERENCE_TYPE@349..354 + REF_TYPE@349..354 AMP@349..350 "&" LIFETIME@350..352 "\'a" WHITESPACE@352..353 " " @@ -364,7 +364,7 @@ SOURCE_FILE@0..374 COMMA@354..355 "," WHITESPACE@355..356 " " PARAM@356..361 - REFERENCE_TYPE@356..361 + REF_TYPE@356..361 AMP@356..357 "&" LIFETIME@357..359 "\'b" WHITESPACE@359..360 " " -- cgit v1.2.3