diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast new file mode 100644 index 000000000..48aaeaf07 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0024_slice_pat.rast | |||
@@ -0,0 +1,42 @@ | |||
1 | SOURCE_FILE@[0; 39) | ||
2 | FN_DEF@[0; 38) | ||
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; 38) | ||
12 | BLOCK@[10; 38) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | LET_STMT@[16; 36) | ||
16 | LET_KW@[16; 19) "let" | ||
17 | WHITESPACE@[19; 20) " " | ||
18 | SLICE_PAT@[20; 30) | ||
19 | L_BRACK@[20; 21) "[" | ||
20 | BIND_PAT@[21; 22) | ||
21 | NAME@[21; 22) | ||
22 | IDENT@[21; 22) "a" | ||
23 | COMMA@[22; 23) "," | ||
24 | WHITESPACE@[23; 24) " " | ||
25 | BIND_PAT@[24; 25) | ||
26 | NAME@[24; 25) | ||
27 | IDENT@[24; 25) "b" | ||
28 | COMMA@[25; 26) "," | ||
29 | WHITESPACE@[26; 27) " " | ||
30 | DOT_DOT_PAT@[27; 29) | ||
31 | DOTDOT@[27; 29) ".." | ||
32 | R_BRACK@[29; 30) "]" | ||
33 | WHITESPACE@[30; 31) " " | ||
34 | EQ@[31; 32) "=" | ||
35 | WHITESPACE@[32; 33) " " | ||
36 | ARRAY_EXPR@[33; 35) | ||
37 | L_BRACK@[33; 34) "[" | ||
38 | R_BRACK@[34; 35) "]" | ||
39 | SEMI@[35; 36) ";" | ||
40 | WHITESPACE@[36; 37) "\n" | ||
41 | R_CURLY@[37; 38) "}" | ||
42 | WHITESPACE@[38; 39) "\n" | ||