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