diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast new file mode 100644 index 000000000..0af668056 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0071_match_expr.rast | |||
@@ -0,0 +1,96 @@ | |||
1 | SOURCE_FILE@[0; 97) | ||
2 | FN_DEF@[0; 96) | ||
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; 96) | ||
12 | BLOCK@[9; 96) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 28) | ||
16 | MATCH_EXPR@[15; 27) | ||
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; 27) | ||
24 | L_CURLY@[24; 25) "{" | ||
25 | WHITESPACE@[25; 26) " " | ||
26 | R_CURLY@[26; 27) "}" | ||
27 | SEMI@[27; 28) ";" | ||
28 | WHITESPACE@[28; 33) "\n " | ||
29 | EXPR_STMT@[33; 44) | ||
30 | MATCH_EXPR@[33; 43) | ||
31 | MATCH_KW@[33; 38) "match" | ||
32 | WHITESPACE@[38; 39) " " | ||
33 | PATH_EXPR@[39; 40) | ||
34 | PATH@[39; 40) | ||
35 | PATH_SEGMENT@[39; 40) | ||
36 | NAME_REF@[39; 40) | ||
37 | IDENT@[39; 40) "S" | ||
38 | WHITESPACE@[40; 41) " " | ||
39 | MATCH_ARM_LIST@[41; 43) | ||
40 | L_CURLY@[41; 42) "{" | ||
41 | R_CURLY@[42; 43) "}" | ||
42 | SEMI@[43; 44) ";" | ||
43 | WHITESPACE@[44; 49) "\n " | ||
44 | EXPR_STMT@[49; 71) | ||
45 | MATCH_EXPR@[49; 70) | ||
46 | MATCH_KW@[49; 54) "match" | ||
47 | WHITESPACE@[54; 55) " " | ||
48 | BLOCK_EXPR@[55; 58) | ||
49 | BLOCK@[55; 58) | ||
50 | L_CURLY@[55; 56) "{" | ||
51 | WHITESPACE@[56; 57) " " | ||
52 | R_CURLY@[57; 58) "}" | ||
53 | WHITESPACE@[58; 59) " " | ||
54 | MATCH_ARM_LIST@[59; 70) | ||
55 | L_CURLY@[59; 60) "{" | ||
56 | WHITESPACE@[60; 61) " " | ||
57 | MATCH_ARM@[61; 68) | ||
58 | PLACEHOLDER_PAT@[61; 62) | ||
59 | UNDERSCORE@[61; 62) "_" | ||
60 | WHITESPACE@[62; 63) " " | ||
61 | FAT_ARROW@[63; 65) "=>" | ||
62 | WHITESPACE@[65; 66) " " | ||
63 | TUPLE_EXPR@[66; 68) | ||
64 | L_PAREN@[66; 67) "(" | ||
65 | R_PAREN@[67; 68) ")" | ||
66 | WHITESPACE@[68; 69) " " | ||
67 | R_CURLY@[69; 70) "}" | ||
68 | SEMI@[70; 71) ";" | ||
69 | WHITESPACE@[71; 76) "\n " | ||
70 | EXPR_STMT@[76; 94) | ||
71 | MATCH_EXPR@[76; 93) | ||
72 | MATCH_KW@[76; 81) "match" | ||
73 | WHITESPACE@[81; 82) " " | ||
74 | BLOCK_EXPR@[82; 90) | ||
75 | BLOCK@[82; 90) | ||
76 | L_CURLY@[82; 83) "{" | ||
77 | WHITESPACE@[83; 84) " " | ||
78 | RECORD_LIT@[84; 88) | ||
79 | PATH@[84; 85) | ||
80 | PATH_SEGMENT@[84; 85) | ||
81 | NAME_REF@[84; 85) | ||
82 | IDENT@[84; 85) "S" | ||
83 | WHITESPACE@[85; 86) " " | ||
84 | RECORD_FIELD_LIST@[86; 88) | ||
85 | L_CURLY@[86; 87) "{" | ||
86 | R_CURLY@[87; 88) "}" | ||
87 | WHITESPACE@[88; 89) " " | ||
88 | R_CURLY@[89; 90) "}" | ||
89 | WHITESPACE@[90; 91) " " | ||
90 | MATCH_ARM_LIST@[91; 93) | ||
91 | L_CURLY@[91; 92) "{" | ||
92 | R_CURLY@[92; 93) "}" | ||
93 | SEMI@[93; 94) ";" | ||
94 | WHITESPACE@[94; 95) "\n" | ||
95 | R_CURLY@[95; 96) "}" | ||
96 | WHITESPACE@[96; 97) "\n" | ||