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/0103_array_expr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt new file mode 100644 index 000000000..e74e231b3 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0103_array_expr.txt | |||
@@ -0,0 +1,54 @@ | |||
1 | SOURCE_FILE@[0; 55) | ||
2 | FN_DEF@[0; 54) | ||
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@[9; 54) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 18) | ||
15 | ARRAY_EXPR@[15; 17) | ||
16 | L_BRACK@[15; 16) "[" | ||
17 | R_BRACK@[16; 17) "]" | ||
18 | SEMI@[17; 18) ";" | ||
19 | WHITESPACE@[18; 23) "\n " | ||
20 | EXPR_STMT@[23; 27) | ||
21 | ARRAY_EXPR@[23; 26) | ||
22 | L_BRACK@[23; 24) "[" | ||
23 | LITERAL@[24; 25) | ||
24 | INT_NUMBER@[24; 25) "1" | ||
25 | R_BRACK@[25; 26) "]" | ||
26 | SEMI@[26; 27) ";" | ||
27 | WHITESPACE@[27; 32) "\n " | ||
28 | EXPR_STMT@[32; 40) | ||
29 | ARRAY_EXPR@[32; 39) | ||
30 | L_BRACK@[32; 33) "[" | ||
31 | LITERAL@[33; 34) | ||
32 | INT_NUMBER@[33; 34) "1" | ||
33 | COMMA@[34; 35) "," | ||
34 | WHITESPACE@[35; 36) " " | ||
35 | LITERAL@[36; 37) | ||
36 | INT_NUMBER@[36; 37) "2" | ||
37 | COMMA@[37; 38) "," | ||
38 | R_BRACK@[38; 39) "]" | ||
39 | SEMI@[39; 40) ";" | ||
40 | WHITESPACE@[40; 45) "\n " | ||
41 | EXPR_STMT@[45; 52) | ||
42 | ARRAY_EXPR@[45; 51) | ||
43 | L_BRACK@[45; 46) "[" | ||
44 | LITERAL@[46; 47) | ||
45 | INT_NUMBER@[46; 47) "1" | ||
46 | SEMI@[47; 48) ";" | ||
47 | WHITESPACE@[48; 49) " " | ||
48 | LITERAL@[49; 50) | ||
49 | INT_NUMBER@[49; 50) "2" | ||
50 | R_BRACK@[50; 51) "]" | ||
51 | SEMI@[51; 52) ";" | ||
52 | WHITESPACE@[52; 53) "\n" | ||
53 | R_CURLY@[53; 54) "}" | ||
54 | WHITESPACE@[54; 55) "\n" | ||