diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast new file mode 100644 index 000000000..3d659ce10 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0058_range_pat.rast | |||
@@ -0,0 +1,83 @@ | |||
1 | SOURCE_FILE@[0; 112) | ||
2 | FN_DEF@[0; 111) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK_EXPR@[10; 111) | ||
12 | BLOCK@[10; 111) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | MATCH_EXPR@[16; 109) | ||
16 | MATCH_KW@[16; 21) "match" | ||
17 | WHITESPACE@[21; 22) " " | ||
18 | LITERAL@[22; 24) | ||
19 | INT_NUMBER@[22; 24) "92" | ||
20 | WHITESPACE@[24; 25) " " | ||
21 | MATCH_ARM_LIST@[25; 109) | ||
22 | L_CURLY@[25; 26) "{" | ||
23 | WHITESPACE@[26; 35) "\n " | ||
24 | MATCH_ARM@[35; 50) | ||
25 | RANGE_PAT@[35; 44) | ||
26 | LITERAL_PAT@[35; 36) | ||
27 | LITERAL@[35; 36) | ||
28 | INT_NUMBER@[35; 36) "0" | ||
29 | WHITESPACE@[36; 37) " " | ||
30 | DOTDOTDOT@[37; 40) "..." | ||
31 | WHITESPACE@[40; 41) " " | ||
32 | LITERAL_PAT@[41; 44) | ||
33 | LITERAL@[41; 44) | ||
34 | INT_NUMBER@[41; 44) "100" | ||
35 | WHITESPACE@[44; 45) " " | ||
36 | FAT_ARROW@[45; 47) "=>" | ||
37 | WHITESPACE@[47; 48) " " | ||
38 | TUPLE_EXPR@[48; 50) | ||
39 | L_PAREN@[48; 49) "(" | ||
40 | R_PAREN@[49; 50) ")" | ||
41 | COMMA@[50; 51) "," | ||
42 | WHITESPACE@[51; 60) "\n " | ||
43 | MATCH_ARM@[60; 77) | ||
44 | RANGE_PAT@[60; 71) | ||
45 | LITERAL_PAT@[60; 63) | ||
46 | LITERAL@[60; 63) | ||
47 | INT_NUMBER@[60; 63) "101" | ||
48 | WHITESPACE@[63; 64) " " | ||
49 | DOTDOTEQ@[64; 67) "..=" | ||
50 | WHITESPACE@[67; 68) " " | ||
51 | LITERAL_PAT@[68; 71) | ||
52 | LITERAL@[68; 71) | ||
53 | INT_NUMBER@[68; 71) "200" | ||
54 | WHITESPACE@[71; 72) " " | ||
55 | FAT_ARROW@[72; 74) "=>" | ||
56 | WHITESPACE@[74; 75) " " | ||
57 | TUPLE_EXPR@[75; 77) | ||
58 | L_PAREN@[75; 76) "(" | ||
59 | R_PAREN@[76; 77) ")" | ||
60 | COMMA@[77; 78) "," | ||
61 | WHITESPACE@[78; 87) "\n " | ||
62 | MATCH_ARM@[87; 102) | ||
63 | RANGE_PAT@[87; 97) | ||
64 | LITERAL_PAT@[87; 90) | ||
65 | LITERAL@[87; 90) | ||
66 | INT_NUMBER@[87; 90) "200" | ||
67 | WHITESPACE@[90; 91) " " | ||
68 | DOTDOT@[91; 93) ".." | ||
69 | WHITESPACE@[93; 94) " " | ||
70 | LITERAL_PAT@[94; 97) | ||
71 | LITERAL@[94; 97) | ||
72 | INT_NUMBER@[94; 97) "301" | ||
73 | FAT_ARROW@[97; 99) "=>" | ||
74 | WHITESPACE@[99; 100) " " | ||
75 | TUPLE_EXPR@[100; 102) | ||
76 | L_PAREN@[100; 101) "(" | ||
77 | R_PAREN@[101; 102) ")" | ||
78 | COMMA@[102; 103) "," | ||
79 | WHITESPACE@[103; 108) "\n " | ||
80 | R_CURLY@[108; 109) "}" | ||
81 | WHITESPACE@[109; 110) "\n" | ||
82 | R_CURLY@[110; 111) "}" | ||
83 | WHITESPACE@[111; 112) "\n" | ||