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/test_data/parser/inline/ok/0071_match_expr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt new file mode 100644 index 000000000..658948c66 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | SOURCE_FILE@[0; 47) | ||
2 | FN_DEF@[0; 46) | ||
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; 46) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 28) | ||
15 | MATCH_EXPR@[15; 27) | ||
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; 27) | ||
23 | L_CURLY@[24; 25) "{" | ||
24 | WHITESPACE@[25; 26) " " | ||
25 | R_CURLY@[26; 27) "}" | ||
26 | SEMI@[27; 28) ";" | ||
27 | WHITESPACE@[28; 33) "\n " | ||
28 | EXPR_STMT@[33; 44) | ||
29 | MATCH_EXPR@[33; 43) | ||
30 | MATCH_KW@[33; 38) "match" | ||
31 | WHITESPACE@[38; 39) " " | ||
32 | PATH_EXPR@[39; 40) | ||
33 | PATH@[39; 40) | ||
34 | PATH_SEGMENT@[39; 40) | ||
35 | NAME_REF@[39; 40) | ||
36 | IDENT@[39; 40) "S" | ||
37 | WHITESPACE@[40; 41) " " | ||
38 | MATCH_ARM_LIST@[41; 43) | ||
39 | L_CURLY@[41; 42) "{" | ||
40 | R_CURLY@[42; 43) "}" | ||
41 | SEMI@[43; 44) ";" | ||
42 | WHITESPACE@[44; 45) "\n" | ||
43 | R_CURLY@[45; 46) "}" | ||
44 | WHITESPACE@[46; 47) "\n" | ||