diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast b/crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast new file mode 100644 index 000000000..ff380b448 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast | |||
@@ -0,0 +1,146 @@ | |||
1 | SOURCE_FILE@[0; 259) | ||
2 | FN_DEF@[0; 258) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK_EXPR@[9; 258) | ||
12 | BLOCK@[9; 258) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | MATCH_EXPR@[15; 256) | ||
16 | MATCH_KW@[15; 20) "match" | ||
17 | WHITESPACE@[20; 21) " " | ||
18 | TUPLE_EXPR@[21; 23) | ||
19 | L_PAREN@[21; 22) "(" | ||
20 | R_PAREN@[22; 23) ")" | ||
21 | WHITESPACE@[23; 24) " " | ||
22 | MATCH_ARM_LIST@[24; 256) | ||
23 | L_CURLY@[24; 25) "{" | ||
24 | WHITESPACE@[25; 34) "\n " | ||
25 | MATCH_ARM@[34; 74) | ||
26 | ATTR@[34; 58) | ||
27 | POUND@[34; 35) "#" | ||
28 | L_BRACK@[35; 36) "[" | ||
29 | PATH@[36; 39) | ||
30 | PATH_SEGMENT@[36; 39) | ||
31 | NAME_REF@[36; 39) | ||
32 | IDENT@[36; 39) "cfg" | ||
33 | TOKEN_TREE@[39; 57) | ||
34 | L_PAREN@[39; 40) "(" | ||
35 | IDENT@[40; 47) "feature" | ||
36 | WHITESPACE@[47; 48) " " | ||
37 | EQ@[48; 49) "=" | ||
38 | WHITESPACE@[49; 50) " " | ||
39 | STRING@[50; 56) "\"some\"" | ||
40 | R_PAREN@[56; 57) ")" | ||
41 | R_BRACK@[57; 58) "]" | ||
42 | WHITESPACE@[58; 67) "\n " | ||
43 | PLACEHOLDER_PAT@[67; 68) | ||
44 | UNDERSCORE@[67; 68) "_" | ||
45 | WHITESPACE@[68; 69) " " | ||
46 | FAT_ARROW@[69; 71) "=>" | ||
47 | WHITESPACE@[71; 72) " " | ||
48 | TUPLE_EXPR@[72; 74) | ||
49 | L_PAREN@[72; 73) "(" | ||
50 | R_PAREN@[73; 74) ")" | ||
51 | COMMA@[74; 75) "," | ||
52 | WHITESPACE@[75; 84) "\n " | ||
53 | MATCH_ARM@[84; 125) | ||
54 | ATTR@[84; 109) | ||
55 | POUND@[84; 85) "#" | ||
56 | L_BRACK@[85; 86) "[" | ||
57 | PATH@[86; 89) | ||
58 | PATH_SEGMENT@[86; 89) | ||
59 | NAME_REF@[86; 89) | ||
60 | IDENT@[86; 89) "cfg" | ||
61 | TOKEN_TREE@[89; 108) | ||
62 | L_PAREN@[89; 90) "(" | ||
63 | IDENT@[90; 97) "feature" | ||
64 | WHITESPACE@[97; 98) " " | ||
65 | EQ@[98; 99) "=" | ||
66 | WHITESPACE@[99; 100) " " | ||
67 | STRING@[100; 107) "\"other\"" | ||
68 | R_PAREN@[107; 108) ")" | ||
69 | R_BRACK@[108; 109) "]" | ||
70 | WHITESPACE@[109; 118) "\n " | ||
71 | PLACEHOLDER_PAT@[118; 119) | ||
72 | UNDERSCORE@[118; 119) "_" | ||
73 | WHITESPACE@[119; 120) " " | ||
74 | FAT_ARROW@[120; 122) "=>" | ||
75 | WHITESPACE@[122; 123) " " | ||
76 | TUPLE_EXPR@[123; 125) | ||
77 | L_PAREN@[123; 124) "(" | ||
78 | R_PAREN@[124; 125) ")" | ||
79 | COMMA@[125; 126) "," | ||
80 | WHITESPACE@[126; 135) "\n " | ||
81 | MATCH_ARM@[135; 249) | ||
82 | ATTR@[135; 159) | ||
83 | POUND@[135; 136) "#" | ||
84 | L_BRACK@[136; 137) "[" | ||
85 | PATH@[137; 140) | ||
86 | PATH_SEGMENT@[137; 140) | ||
87 | NAME_REF@[137; 140) | ||
88 | IDENT@[137; 140) "cfg" | ||
89 | TOKEN_TREE@[140; 158) | ||
90 | L_PAREN@[140; 141) "(" | ||
91 | IDENT@[141; 148) "feature" | ||
92 | WHITESPACE@[148; 149) " " | ||
93 | EQ@[149; 150) "=" | ||
94 | WHITESPACE@[150; 151) " " | ||
95 | STRING@[151; 157) "\"many\"" | ||
96 | R_PAREN@[157; 158) ")" | ||
97 | R_BRACK@[158; 159) "]" | ||
98 | WHITESPACE@[159; 168) "\n " | ||
99 | ATTR@[168; 198) | ||
100 | POUND@[168; 169) "#" | ||
101 | L_BRACK@[169; 170) "[" | ||
102 | PATH@[170; 173) | ||
103 | PATH_SEGMENT@[170; 173) | ||
104 | NAME_REF@[170; 173) | ||
105 | IDENT@[170; 173) "cfg" | ||
106 | TOKEN_TREE@[173; 197) | ||
107 | L_PAREN@[173; 174) "(" | ||
108 | IDENT@[174; 181) "feature" | ||
109 | WHITESPACE@[181; 182) " " | ||
110 | EQ@[182; 183) "=" | ||
111 | WHITESPACE@[183; 184) " " | ||
112 | STRING@[184; 196) "\"attributes\"" | ||
113 | R_PAREN@[196; 197) ")" | ||
114 | R_BRACK@[197; 198) "]" | ||
115 | WHITESPACE@[198; 207) "\n " | ||
116 | ATTR@[207; 233) | ||
117 | POUND@[207; 208) "#" | ||
118 | L_BRACK@[208; 209) "[" | ||
119 | PATH@[209; 212) | ||
120 | PATH_SEGMENT@[209; 212) | ||
121 | NAME_REF@[209; 212) | ||
122 | IDENT@[209; 212) "cfg" | ||
123 | TOKEN_TREE@[212; 232) | ||
124 | L_PAREN@[212; 213) "(" | ||
125 | IDENT@[213; 220) "feature" | ||
126 | WHITESPACE@[220; 221) " " | ||
127 | EQ@[221; 222) "=" | ||
128 | WHITESPACE@[222; 223) " " | ||
129 | STRING@[223; 231) "\"before\"" | ||
130 | R_PAREN@[231; 232) ")" | ||
131 | R_BRACK@[232; 233) "]" | ||
132 | WHITESPACE@[233; 242) "\n " | ||
133 | PLACEHOLDER_PAT@[242; 243) | ||
134 | UNDERSCORE@[242; 243) "_" | ||
135 | WHITESPACE@[243; 244) " " | ||
136 | FAT_ARROW@[244; 246) "=>" | ||
137 | WHITESPACE@[246; 247) " " | ||
138 | TUPLE_EXPR@[247; 249) | ||
139 | L_PAREN@[247; 248) "(" | ||
140 | R_PAREN@[248; 249) ")" | ||
141 | COMMA@[249; 250) "," | ||
142 | WHITESPACE@[250; 255) "\n " | ||
143 | R_CURLY@[255; 256) "}" | ||
144 | WHITESPACE@[256; 257) "\n" | ||
145 | R_CURLY@[257; 258) "}" | ||
146 | WHITESPACE@[258; 259) "\n" | ||