diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast new file mode 100644 index 000000000..2f07af4e1 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0066_match_arm.rast | |||
@@ -0,0 +1,152 @@ | |||
1 | SOURCE_FILE@[0; 167) | ||
2 | FN_DEF@[0; 166) | ||
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; 166) | ||
12 | BLOCK@[9; 166) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 164) | ||
16 | MATCH_EXPR@[15; 163) | ||
17 | MATCH_KW@[15; 20) "match" | ||
18 | WHITESPACE@[20; 21) " " | ||
19 | TUPLE_EXPR@[21; 23) | ||
20 | L_PAREN@[21; 22) "(" | ||
21 | R_PAREN@[22; 23) ")" | ||
22 | WHITESPACE@[23; 24) " " | ||
23 | MATCH_ARM_LIST@[24; 163) | ||
24 | L_CURLY@[24; 25) "{" | ||
25 | WHITESPACE@[25; 34) "\n " | ||
26 | MATCH_ARM@[34; 41) | ||
27 | PLACEHOLDER_PAT@[34; 35) | ||
28 | UNDERSCORE@[34; 35) "_" | ||
29 | WHITESPACE@[35; 36) " " | ||
30 | FAT_ARROW@[36; 38) "=>" | ||
31 | WHITESPACE@[38; 39) " " | ||
32 | TUPLE_EXPR@[39; 41) | ||
33 | L_PAREN@[39; 40) "(" | ||
34 | R_PAREN@[40; 41) ")" | ||
35 | COMMA@[41; 42) "," | ||
36 | WHITESPACE@[42; 51) "\n " | ||
37 | MATCH_ARM@[51; 83) | ||
38 | PLACEHOLDER_PAT@[51; 52) | ||
39 | UNDERSCORE@[51; 52) "_" | ||
40 | WHITESPACE@[52; 53) " " | ||
41 | MATCH_GUARD@[53; 77) | ||
42 | IF_KW@[53; 55) "if" | ||
43 | WHITESPACE@[55; 56) " " | ||
44 | BIN_EXPR@[56; 77) | ||
45 | PATH_EXPR@[56; 60) | ||
46 | PATH@[56; 60) | ||
47 | PATH_SEGMENT@[56; 60) | ||
48 | NAME_REF@[56; 60) | ||
49 | IDENT@[56; 60) "Test" | ||
50 | WHITESPACE@[60; 61) " " | ||
51 | R_ANGLE@[61; 62) ">" | ||
52 | WHITESPACE@[62; 63) " " | ||
53 | RECORD_LIT@[63; 77) | ||
54 | PATH@[63; 67) | ||
55 | PATH_SEGMENT@[63; 67) | ||
56 | NAME_REF@[63; 67) | ||
57 | IDENT@[63; 67) "Test" | ||
58 | RECORD_FIELD_LIST@[67; 77) | ||
59 | L_CURLY@[67; 68) "{" | ||
60 | RECORD_FIELD@[68; 76) | ||
61 | NAME_REF@[68; 73) | ||
62 | IDENT@[68; 73) "field" | ||
63 | COLON@[73; 74) ":" | ||
64 | WHITESPACE@[74; 75) " " | ||
65 | LITERAL@[75; 76) | ||
66 | INT_NUMBER@[75; 76) "0" | ||
67 | R_CURLY@[76; 77) "}" | ||
68 | WHITESPACE@[77; 78) " " | ||
69 | FAT_ARROW@[78; 80) "=>" | ||
70 | WHITESPACE@[80; 81) " " | ||
71 | TUPLE_EXPR@[81; 83) | ||
72 | L_PAREN@[81; 82) "(" | ||
73 | R_PAREN@[82; 83) ")" | ||
74 | COMMA@[83; 84) "," | ||
75 | WHITESPACE@[84; 93) "\n " | ||
76 | MATCH_ARM@[93; 109) | ||
77 | OR_PAT@[93; 98) | ||
78 | BIND_PAT@[93; 94) | ||
79 | NAME@[93; 94) | ||
80 | IDENT@[93; 94) "X" | ||
81 | WHITESPACE@[94; 95) " " | ||
82 | PIPE@[95; 96) "|" | ||
83 | WHITESPACE@[96; 97) " " | ||
84 | BIND_PAT@[97; 98) | ||
85 | NAME@[97; 98) | ||
86 | IDENT@[97; 98) "Y" | ||
87 | WHITESPACE@[98; 99) " " | ||
88 | MATCH_GUARD@[99; 103) | ||
89 | IF_KW@[99; 101) "if" | ||
90 | WHITESPACE@[101; 102) " " | ||
91 | PATH_EXPR@[102; 103) | ||
92 | PATH@[102; 103) | ||
93 | PATH_SEGMENT@[102; 103) | ||
94 | NAME_REF@[102; 103) | ||
95 | IDENT@[102; 103) "Z" | ||
96 | WHITESPACE@[103; 104) " " | ||
97 | FAT_ARROW@[104; 106) "=>" | ||
98 | WHITESPACE@[106; 107) " " | ||
99 | TUPLE_EXPR@[107; 109) | ||
100 | L_PAREN@[107; 108) "(" | ||
101 | R_PAREN@[108; 109) ")" | ||
102 | COMMA@[109; 110) "," | ||
103 | WHITESPACE@[110; 119) "\n " | ||
104 | MATCH_ARM@[119; 137) | ||
105 | PIPE@[119; 120) "|" | ||
106 | WHITESPACE@[120; 121) " " | ||
107 | OR_PAT@[121; 126) | ||
108 | BIND_PAT@[121; 122) | ||
109 | NAME@[121; 122) | ||
110 | IDENT@[121; 122) "X" | ||
111 | WHITESPACE@[122; 123) " " | ||
112 | PIPE@[123; 124) "|" | ||
113 | WHITESPACE@[124; 125) " " | ||
114 | BIND_PAT@[125; 126) | ||
115 | NAME@[125; 126) | ||
116 | IDENT@[125; 126) "Y" | ||
117 | WHITESPACE@[126; 127) " " | ||
118 | MATCH_GUARD@[127; 131) | ||
119 | IF_KW@[127; 129) "if" | ||
120 | WHITESPACE@[129; 130) " " | ||
121 | PATH_EXPR@[130; 131) | ||
122 | PATH@[130; 131) | ||
123 | PATH_SEGMENT@[130; 131) | ||
124 | NAME_REF@[130; 131) | ||
125 | IDENT@[130; 131) "Z" | ||
126 | WHITESPACE@[131; 132) " " | ||
127 | FAT_ARROW@[132; 134) "=>" | ||
128 | WHITESPACE@[134; 135) " " | ||
129 | TUPLE_EXPR@[135; 137) | ||
130 | L_PAREN@[135; 136) "(" | ||
131 | R_PAREN@[136; 137) ")" | ||
132 | COMMA@[137; 138) "," | ||
133 | WHITESPACE@[138; 147) "\n " | ||
134 | MATCH_ARM@[147; 156) | ||
135 | PIPE@[147; 148) "|" | ||
136 | WHITESPACE@[148; 149) " " | ||
137 | BIND_PAT@[149; 150) | ||
138 | NAME@[149; 150) | ||
139 | IDENT@[149; 150) "X" | ||
140 | WHITESPACE@[150; 151) " " | ||
141 | FAT_ARROW@[151; 153) "=>" | ||
142 | WHITESPACE@[153; 154) " " | ||
143 | TUPLE_EXPR@[154; 156) | ||
144 | L_PAREN@[154; 155) "(" | ||
145 | R_PAREN@[155; 156) ")" | ||
146 | COMMA@[156; 157) "," | ||
147 | WHITESPACE@[157; 162) "\n " | ||
148 | R_CURLY@[162; 163) "}" | ||
149 | SEMI@[163; 164) ";" | ||
150 | WHITESPACE@[164; 165) "\n" | ||
151 | R_CURLY@[165; 166) "}" | ||
152 | WHITESPACE@[166; 167) "\n" | ||