diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 22:30:17 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 22:30:17 +0100 |
commit | b9189ed2db8cb1934e677a17fcc6282c66306df1 (patch) | |
tree | 1456403c6eac7820c6b6760ccc6900326aedc792 /tests/data/parser | |
parent | 2bbd4c510d2da5c78f566b28e90548102bb107dc (diff) |
move lambdas
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/inline/0066_lambda_expr.rs (renamed from tests/data/parser/inline/0063_lambda_expr.rs) | 2 | ||||
-rw-r--r-- | tests/data/parser/inline/0066_lambda_expr.txt | 93 |
2 files changed, 94 insertions, 1 deletions
diff --git a/tests/data/parser/inline/0063_lambda_expr.rs b/tests/data/parser/inline/0066_lambda_expr.rs index 3c30a9209..c20d29751 100644 --- a/tests/data/parser/inline/0063_lambda_expr.rs +++ b/tests/data/parser/inline/0066_lambda_expr.rs | |||
@@ -2,5 +2,5 @@ fn foo() { | |||
2 | || (); | 2 | || (); |
3 | || -> i32 { 92 }; | 3 | || -> i32 { 92 }; |
4 | |x| x; | 4 | |x| x; |
5 | |x: i32,| x; | 5 | move |x: i32,| x; |
6 | } | 6 | } |
diff --git a/tests/data/parser/inline/0066_lambda_expr.txt b/tests/data/parser/inline/0066_lambda_expr.txt new file mode 100644 index 000000000..8c6bc7522 --- /dev/null +++ b/tests/data/parser/inline/0066_lambda_expr.txt | |||
@@ -0,0 +1,93 @@ | |||
1 | FILE@[0; 79) | ||
2 | FN_ITEM@[0; 79) | ||
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; 79) | ||
12 | L_CURLY@[9; 10) | ||
13 | EXPR_STMT@[10; 26) | ||
14 | LAMBDA_EXPR@[10; 20) | ||
15 | PARAM_LIST@[10; 18) | ||
16 | WHITESPACE@[10; 15) | ||
17 | PIPE@[15; 16) | ||
18 | PIPE@[16; 17) | ||
19 | WHITESPACE@[17; 18) | ||
20 | TUPLE_EXPR@[18; 20) | ||
21 | L_PAREN@[18; 19) | ||
22 | R_PAREN@[19; 20) | ||
23 | SEMI@[20; 21) | ||
24 | WHITESPACE@[21; 26) | ||
25 | EXPR_STMT@[26; 48) | ||
26 | LAMBDA_EXPR@[26; 42) | ||
27 | PARAM_LIST@[26; 29) | ||
28 | PIPE@[26; 27) | ||
29 | PIPE@[27; 28) | ||
30 | WHITESPACE@[28; 29) | ||
31 | THIN_ARROW@[29; 31) | ||
32 | PATH_TYPE@[31; 36) | ||
33 | PATH@[31; 36) | ||
34 | PATH_SEGMENT@[31; 36) | ||
35 | NAME_REF@[31; 36) | ||
36 | WHITESPACE@[31; 32) | ||
37 | IDENT@[32; 35) "i32" | ||
38 | WHITESPACE@[35; 36) | ||
39 | BLOCK@[36; 42) | ||
40 | L_CURLY@[36; 37) | ||
41 | LITERAL@[37; 41) | ||
42 | WHITESPACE@[37; 38) | ||
43 | INT_NUMBER@[38; 40) "92" | ||
44 | WHITESPACE@[40; 41) | ||
45 | R_CURLY@[41; 42) | ||
46 | SEMI@[42; 43) | ||
47 | WHITESPACE@[43; 48) | ||
48 | EXPR_STMT@[48; 59) | ||
49 | LAMBDA_EXPR@[48; 53) | ||
50 | PARAM_LIST@[48; 52) | ||
51 | PIPE@[48; 49) | ||
52 | PARAM@[49; 50) | ||
53 | BIND_PAT@[49; 50) | ||
54 | NAME@[49; 50) | ||
55 | IDENT@[49; 50) "x" | ||
56 | PIPE@[50; 51) | ||
57 | WHITESPACE@[51; 52) | ||
58 | PATH_EXPR@[52; 53) | ||
59 | PATH@[52; 53) | ||
60 | PATH_SEGMENT@[52; 53) | ||
61 | NAME_REF@[52; 53) | ||
62 | IDENT@[52; 53) "x" | ||
63 | SEMI@[53; 54) | ||
64 | WHITESPACE@[54; 59) | ||
65 | EXPR_STMT@[59; 77) | ||
66 | LAMBDA_EXPR@[59; 75) | ||
67 | MOVE_KW@[59; 63) | ||
68 | PARAM_LIST@[63; 74) | ||
69 | WHITESPACE@[63; 64) | ||
70 | PIPE@[64; 65) | ||
71 | PARAM@[65; 71) | ||
72 | BIND_PAT@[65; 66) | ||
73 | NAME@[65; 66) | ||
74 | IDENT@[65; 66) "x" | ||
75 | COLON@[66; 67) | ||
76 | PATH_TYPE@[67; 71) | ||
77 | PATH@[67; 71) | ||
78 | PATH_SEGMENT@[67; 71) | ||
79 | NAME_REF@[67; 71) | ||
80 | WHITESPACE@[67; 68) | ||
81 | IDENT@[68; 71) "i32" | ||
82 | COMMA@[71; 72) | ||
83 | PIPE@[72; 73) | ||
84 | WHITESPACE@[73; 74) | ||
85 | PATH_EXPR@[74; 75) | ||
86 | PATH@[74; 75) | ||
87 | PATH_SEGMENT@[74; 75) | ||
88 | NAME_REF@[74; 75) | ||
89 | IDENT@[74; 75) "x" | ||
90 | SEMI@[75; 76) | ||
91 | WHITESPACE@[76; 77) | ||
92 | R_CURLY@[77; 78) | ||
93 | WHITESPACE@[78; 79) | ||