diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast b/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast new file mode 100644 index 000000000..852e4e489 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.rast | |||
@@ -0,0 +1,48 @@ | |||
1 | SOURCE_FILE@[0; 58) | ||
2 | FN_DEF@[0; 57) | ||
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; 57) | ||
12 | BLOCK@[9; 57) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | MATCH_EXPR@[15; 55) | ||
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; 55) | ||
23 | L_CURLY@[24; 25) "{" | ||
24 | WHITESPACE@[25; 34) "\n " | ||
25 | MATCH_ARM@[34; 48) | ||
26 | PLACEHOLDER_PAT@[34; 35) | ||
27 | UNDERSCORE@[34; 35) "_" | ||
28 | WHITESPACE@[35; 36) " " | ||
29 | MATCH_GUARD@[36; 42) | ||
30 | IF_KW@[36; 38) "if" | ||
31 | WHITESPACE@[38; 39) " " | ||
32 | PATH_EXPR@[39; 42) | ||
33 | PATH@[39; 42) | ||
34 | PATH_SEGMENT@[39; 42) | ||
35 | NAME_REF@[39; 42) | ||
36 | IDENT@[39; 42) "foo" | ||
37 | WHITESPACE@[42; 43) " " | ||
38 | FAT_ARROW@[43; 45) "=>" | ||
39 | WHITESPACE@[45; 46) " " | ||
40 | TUPLE_EXPR@[46; 48) | ||
41 | L_PAREN@[46; 47) "(" | ||
42 | R_PAREN@[47; 48) ")" | ||
43 | COMMA@[48; 49) "," | ||
44 | WHITESPACE@[49; 54) "\n " | ||
45 | R_CURLY@[54; 55) "}" | ||
46 | WHITESPACE@[55; 56) "\n" | ||
47 | R_CURLY@[56; 57) "}" | ||
48 | WHITESPACE@[57; 58) "\n" | ||