From 022a0f061e887bd27f54c028f9a23018b8eb2b8b Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 17 Mar 2021 18:20:32 +0100 Subject: Correctly parse attributes on fn parameters --- .../test_data/parser/ok/0051_parameter_attrs.rast | 78 +++++++++++----------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'crates/syntax/test_data/parser/ok') 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 @@ SOURCE_FILE@0..519 IDENT@3..5 "g1" PARAM_LIST@5..34 L_PAREN@5..6 "(" - ATTR@6..14 - POUND@6..7 "#" - L_BRACK@7..8 "[" - PATH@8..13 - PATH_SEGMENT@8..13 - NAME_REF@8..13 - IDENT@8..13 "attr1" - R_BRACK@13..14 "]" - WHITESPACE@14..15 " " - ATTR@15..23 - POUND@15..16 "#" - L_BRACK@16..17 "[" - PATH@17..22 - PATH_SEGMENT@17..22 - NAME_REF@17..22 - IDENT@17..22 "attr2" - R_BRACK@22..23 "]" - WHITESPACE@23..24 " " - PARAM@24..33 + PARAM@6..33 + ATTR@6..14 + POUND@6..7 "#" + L_BRACK@7..8 "[" + PATH@8..13 + PATH_SEGMENT@8..13 + NAME_REF@8..13 + IDENT@8..13 "attr1" + R_BRACK@13..14 "]" + WHITESPACE@14..15 " " + ATTR@15..23 + POUND@15..16 "#" + L_BRACK@16..17 "[" + PATH@17..22 + PATH_SEGMENT@17..22 + NAME_REF@17..22 + IDENT@17..22 "attr2" + R_BRACK@22..23 "]" + WHITESPACE@23..24 " " IDENT_PAT@24..27 NAME@24..27 IDENT@24..27 "pat" @@ -48,16 +48,16 @@ SOURCE_FILE@0..519 IDENT@41..43 "g2" PARAM_LIST@43..59 L_PAREN@43..44 "(" - ATTR@44..52 - POUND@44..45 "#" - L_BRACK@45..46 "[" - PATH@46..51 - PATH_SEGMENT@46..51 - NAME_REF@46..51 - IDENT@46..51 "attr1" - R_BRACK@51..52 "]" - WHITESPACE@52..53 " " - PARAM@53..58 + PARAM@44..58 + ATTR@44..52 + POUND@44..45 "#" + L_BRACK@45..46 "[" + PATH@46..51 + PATH_SEGMENT@46..51 + NAME_REF@46..51 + IDENT@46..51 "attr1" + R_BRACK@51..52 "]" + WHITESPACE@52..53 " " IDENT_PAT@53..54 NAME@53..54 IDENT@53..54 "x" @@ -203,16 +203,16 @@ SOURCE_FILE@0..519 IDENT@193..196 "bar" PARAM_LIST@196..233 L_PAREN@196..197 "(" - ATTR@197..204 - POUND@197..198 "#" - L_BRACK@198..199 "[" - PATH@199..203 - PATH_SEGMENT@199..203 - NAME_REF@199..203 - IDENT@199..203 "attr" - R_BRACK@203..204 "]" - WHITESPACE@204..205 " " - PARAM@205..211 + PARAM@197..211 + ATTR@197..204 + POUND@197..198 "#" + L_BRACK@198..199 "[" + PATH@199..203 + PATH_SEGMENT@199..203 + NAME_REF@199..203 + IDENT@199..203 "attr" + R_BRACK@203..204 "]" + WHITESPACE@204..205 " " WILDCARD_PAT@205..206 UNDERSCORE@205..206 "_" COLON@206..207 ":" -- cgit v1.2.3