diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 10:51:00 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 10:51:00 +0100 |
commit | 66182ed5d5e43962a46492ea41f19f9adeccc9e5 (patch) | |
tree | e27b4a8e46d3e18be7d35fa9ae32b0a7b5e5934b /tests/data/parser/inline | |
parent | ff71cb1f6de07479610fb0f45e740b249e8a01c6 (diff) |
Ref exprs
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0044_ref_expr.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/inline/0044_ref_expr.txt | 54 |
2 files changed, 58 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0044_ref_expr.rs b/tests/data/parser/inline/0044_ref_expr.rs new file mode 100644 index 000000000..2dac6be95 --- /dev/null +++ b/tests/data/parser/inline/0044_ref_expr.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | fn foo() { | ||
2 | let _ = &1; | ||
3 | let _ = &mut &f(); | ||
4 | } | ||
diff --git a/tests/data/parser/inline/0044_ref_expr.txt b/tests/data/parser/inline/0044_ref_expr.txt new file mode 100644 index 000000000..64388df42 --- /dev/null +++ b/tests/data/parser/inline/0044_ref_expr.txt | |||
@@ -0,0 +1,54 @@ | |||
1 | FILE@[0; 52) | ||
2 | FN_ITEM@[0; 52) | ||
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@[9; 52) | ||
12 | L_CURLY@[9; 10) | ||
13 | LET_STMT@[10; 31) | ||
14 | WHITESPACE@[10; 15) | ||
15 | LET_KW@[15; 18) | ||
16 | PLACEHOLDER_PAT@[18; 21) | ||
17 | WHITESPACE@[18; 19) | ||
18 | UNDERSCORE@[19; 20) | ||
19 | WHITESPACE@[20; 21) | ||
20 | EQ@[21; 22) | ||
21 | REF_EXPR@[22; 25) | ||
22 | WHITESPACE@[22; 23) | ||
23 | AMPERSAND@[23; 24) | ||
24 | LITERAL@[24; 25) | ||
25 | INT_NUMBER@[24; 25) | ||
26 | SEMI@[25; 26) | ||
27 | WHITESPACE@[26; 31) | ||
28 | LET_STMT@[31; 50) | ||
29 | LET_KW@[31; 34) | ||
30 | PLACEHOLDER_PAT@[34; 37) | ||
31 | WHITESPACE@[34; 35) | ||
32 | UNDERSCORE@[35; 36) | ||
33 | WHITESPACE@[36; 37) | ||
34 | EQ@[37; 38) | ||
35 | REF_EXPR@[38; 48) | ||
36 | WHITESPACE@[38; 39) | ||
37 | AMPERSAND@[39; 40) | ||
38 | MUT_KW@[40; 43) | ||
39 | REF_EXPR@[43; 48) | ||
40 | WHITESPACE@[43; 44) | ||
41 | AMPERSAND@[44; 45) | ||
42 | CALL_EXPR@[45; 48) | ||
43 | PATH_EXPR@[45; 46) | ||
44 | PATH@[45; 46) | ||
45 | PATH_SEGMENT@[45; 46) | ||
46 | NAME_REF@[45; 46) | ||
47 | IDENT@[45; 46) "f" | ||
48 | ARG_LIST@[46; 48) | ||
49 | L_PAREN@[46; 47) | ||
50 | R_PAREN@[47; 48) | ||
51 | SEMI@[48; 49) | ||
52 | WHITESPACE@[49; 50) | ||
53 | R_CURLY@[50; 51) | ||
54 | WHITESPACE@[51; 52) | ||