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