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