diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast new file mode 100644 index 000000000..1a979e597 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0093_index_expr.rast | |||
@@ -0,0 +1,34 @@ | |||
1 | SOURCE_FILE@[0; 26) | ||
2 | FN_DEF@[0; 25) | ||
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; 25) | ||
12 | BLOCK@[9; 25) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 23) | ||
16 | INDEX_EXPR@[15; 22) | ||
17 | INDEX_EXPR@[15; 19) | ||
18 | PATH_EXPR@[15; 16) | ||
19 | PATH@[15; 16) | ||
20 | PATH_SEGMENT@[15; 16) | ||
21 | NAME_REF@[15; 16) | ||
22 | IDENT@[15; 16) "x" | ||
23 | L_BRACK@[16; 17) "[" | ||
24 | LITERAL@[17; 18) | ||
25 | INT_NUMBER@[17; 18) "1" | ||
26 | R_BRACK@[18; 19) "]" | ||
27 | L_BRACK@[19; 20) "[" | ||
28 | LITERAL@[20; 21) | ||
29 | INT_NUMBER@[20; 21) "2" | ||
30 | R_BRACK@[21; 22) "]" | ||
31 | SEMI@[22; 23) ";" | ||
32 | WHITESPACE@[23; 24) "\n" | ||
33 | R_CURLY@[24; 25) "}" | ||
34 | WHITESPACE@[25; 26) "\n" | ||