diff options
author | Jonas Schievink <[email protected]> | 2021-03-17 17:20:32 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-03-17 17:28:27 +0000 |
commit | 022a0f061e887bd27f54c028f9a23018b8eb2b8b (patch) | |
tree | 6f1f7c1c7ba6300c87350946f0033d73c02f9546 /crates/syntax | |
parent | 0a6471384529bd8861c628756695c52be4c6837f (diff) |
Correctly parse attributes on fn parameters
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast | 20 | ||||
-rw-r--r-- | crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast | 78 |
2 files changed, 49 insertions, 49 deletions
diff --git a/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast b/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast index 495e4c51b..a84088bf3 100644 --- a/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast +++ b/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast | |||
@@ -6,16 +6,16 @@ [email protected] | |||
6 | [email protected] "f" | 6 | [email protected] "f" |
7 | [email protected] | 7 | [email protected] |
8 | [email protected] "(" | 8 | [email protected] "(" |
9 | ATTR@5..13 | 9 | PARAM@5..23 |
10 | POUND@5..6 "#" | 10 | ATTR@5..13 |
11 | L_BRACK@6..7 "[" | 11 | POUND@5..6 "#" |
12 | PATH@7..12 | 12 | L_BRACK@6..7 "[" |
13 | PATH_SEGMENT@7..12 | 13 | [email protected] |
14 | NAME_REF@7..12 | 14 | PATH_SEGMENT@7..12 |
15 | IDENT@7..12 "attr1" | 15 | NAME_REF@7..12 |
16 | R_BRACK@12..13 "]" | 16 | IDENT@7..12 "attr1" |
17 | WHITESPACE@13..14 " " | 17 | R_BRACK@12..13 "]" |
18 | PARAM@14..23 | 18 | WHITESPACE@13..14 " " |
19 | [email protected] | 19 | [email protected] |
20 | [email protected] | 20 | [email protected] |
21 | [email protected] "pat" | 21 | [email protected] "pat" |
diff --git a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast index e10521d85..88470c41c 100644 --- a/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast +++ b/crates/syntax/test_data/parser/ok/0051_parameter_attrs.rast | |||
@@ -6,25 +6,25 @@ [email protected] | |||
6 | [email protected] "g1" | 6 | [email protected] "g1" |
7 | [email protected] | 7 | [email protected] |
8 | [email protected] "(" | 8 | [email protected] "(" |
9 | ATTR@6..14 | 9 | PARAM@6..33 |
10 | POUND@6..7 "#" | 10 | ATTR@6..14 |
11 | L_BRACK@7..8 "[" | 11 | POUND@6..7 "#" |
12 | PATH@8..13 | 12 | L_BRACK@7..8 "[" |
13 | PATH_SEGMENT@8..13 | 13 | [email protected] |
14 | NAME_REF@8..13 | 14 | PATH_SEGMENT@8..13 |
15 | IDENT@8..13 "attr1" | 15 | NAME_REF@8..13 |
16 | R_BRACK@13..14 "]" | 16 | IDENT@8..13 "attr1" |
17 | WHITESPACE@14..15 " " | 17 | R_BRACK@13..14 "]" |
18 | ATTR@15..23 | 18 | WHITESPACE@14..15 " " |
19 | POUND@15..16 "#" | 19 | ATTR@15..23 |
20 | L_BRACK@16..17 "[" | 20 | POUND@15..16 "#" |
21 | PATH@17..22 | 21 | L_BRACK@16..17 "[" |
22 | PATH_SEGMENT@17..22 | 22 | [email protected] |
23 | NAME_REF@17..22 | 23 | PATH_SEGMENT@17..22 |
24 | IDENT@17..22 "attr2" | 24 | NAME_REF@17..22 |
25 | R_BRACK@22..23 "]" | 25 | IDENT@17..22 "attr2" |
26 | WHITESPACE@23..24 " " | 26 | R_BRACK@22..23 "]" |
27 | PARAM@24..33 | 27 | WHITESPACE@23..24 " " |
28 | [email protected] | 28 | [email protected] |
29 | [email protected] | 29 | [email protected] |
30 | [email protected] "pat" | 30 | [email protected] "pat" |
@@ -48,16 +48,16 @@ [email protected] | |||
48 | [email protected] "g2" | 48 | [email protected] "g2" |
49 | [email protected] | 49 | [email protected] |
50 | [email protected] "(" | 50 | [email protected] "(" |
51 | ATT[email protected]2 | 51 | PARAM@44..58 |
52 | POUND@44..45 "#" | 52 | ATTR@44..52 |
53 | L_BRACK@45..46 "[" | 53 | POUND@44..45 "#" |
54 | PATH@46..51 | 54 | L_BRACK@45..46 "[" |
55 | PATH_SEGMENT@46..51 | 55 | [email protected] |
56 | NAME_REF@46..51 | 56 | PATH_SEGMENT@46..51 |
57 | IDENT@46..51 "attr1" | 57 | NAME_REF@46..51 |
58 | R_BRACK@51..52 "]" | 58 | IDENT@46..51 "attr1" |
59 | WHITESPACE@52..53 " " | 59 | R_BRACK@51..52 "]" |
60 | PARAM@53..58 | 60 | WHITESPACE@52..53 " " |
61 | [email protected] | 61 | [email protected] |
62 | [email protected] | 62 | [email protected] |
63 | [email protected] "x" | 63 | [email protected] "x" |
@@ -203,16 +203,16 @@ [email protected] | |||
203 | [email protected] "bar" | 203 | [email protected] "bar" |
204 | [email protected] | 204 | [email protected] |
205 | [email protected] "(" | 205 | [email protected] "(" |
206 | ATT[email protected]04 | 206 | PARAM@197..211 |
207 | POUND@197..198 "#" | 207 | ATTR@197..204 |
208 | L_BRACK@198..199 "[" | 208 | POUND@197..198 "#" |
209 | PATH@199..203 | 209 | L_BRACK@198..199 "[" |
210 | PATH_SEGMENT@199..203 | 210 | [email protected] |
211 | NAME_REF@199..203 | 211 | PATH_SEGMENT@199..203 |
212 | IDENT@199..203 "attr" | 212 | NAME_REF@199..203 |
213 | R_BRACK@203..204 "]" | 213 | IDENT@199..203 "attr" |
214 | WHITESPACE@204..205 " " | 214 | R_BRACK@203..204 "]" |
215 | PARAM@205..211 | 215 | WHITESPACE@204..205 " " |
216 | [email protected] | 216 | [email protected] |
217 | [email protected] "_" | 217 | [email protected] "_" |
218 | [email protected] ":" | 218 | [email protected] ":" |