aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-05 15:24:44 +0100
committerAleksey Kladov <[email protected]>2018-08-05 15:24:44 +0100
commit80fa861cd688c8e7c92e27feaf6623ecfaa4901e (patch)
tree5430bed65025d2d12d52a90c8c035d94a96b62d6 /tests/data/parser
parent8cf962f1f56717646af7f67642d2724cb27928d0 (diff)
index expr
Diffstat (limited to 'tests/data/parser')
-rw-r--r--tests/data/parser/inline/0081_index_expr.rs3
-rw-r--r--tests/data/parser/inline/0081_index_expr.txt33
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 @@
1fn 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 @@
1FILE@[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)