diff options
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/parser/inline/0081_index_expr.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/inline/0081_index_expr.txt | 33 |
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0081_index_expr.rs b/tests/data/parser/inline/0081_index_expr.rs new file mode 100644 index 000000000..b9ba78a6c --- /dev/null +++ b/tests/data/parser/inline/0081_index_expr.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | fn foo() { | ||
2 | x[1][2]; | ||
3 | } | ||
diff --git a/tests/data/parser/inline/0081_index_expr.txt b/tests/data/parser/inline/0081_index_expr.txt new file mode 100644 index 000000000..b77f54fb6 --- /dev/null +++ b/tests/data/parser/inline/0081_index_expr.txt | |||
@@ -0,0 +1,33 @@ | |||
1 | FILE@[0; 26) | ||
2 | FN_ITEM@[0; 26) | ||
3 | FN_KW@[0; 2) | ||
4 | NAME@[2; 6) | ||
5 | WHITESPACE@[2; 3) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 9) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK_EXPR@[9; 26) | ||
12 | L_CURLY@[9; 10) | ||
13 | EXPR_STMT@[10; 24) | ||
14 | INDEX_EXPR@[10; 22) | ||
15 | INDEX_EXPR@[10; 19) | ||
16 | PATH_EXPR@[10; 16) | ||
17 | PATH@[10; 16) | ||
18 | PATH_SEGMENT@[10; 16) | ||
19 | NAME_REF@[10; 16) | ||
20 | WHITESPACE@[10; 15) | ||
21 | IDENT@[15; 16) "x" | ||
22 | L_BRACK@[16; 17) | ||
23 | LITERAL@[17; 18) | ||
24 | INT_NUMBER@[17; 18) "1" | ||
25 | R_BRACK@[18; 19) | ||
26 | L_BRACK@[19; 20) | ||
27 | LITERAL@[20; 21) | ||
28 | INT_NUMBER@[20; 21) "2" | ||
29 | R_BRACK@[21; 22) | ||
30 | SEMI@[22; 23) | ||
31 | WHITESPACE@[23; 24) | ||
32 | R_CURLY@[24; 25) | ||
33 | WHITESPACE@[25; 26) | ||