diff options
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r-- | tests/data/parser/inline/0074_expr_binding_power.rs | 4 | ||||
-rw-r--r-- | tests/data/parser/inline/0074_expr_binding_power.txt | 72 | ||||
-rw-r--r-- | tests/data/parser/inline/0079_compound_ops.txt | 72 | ||||
-rw-r--r-- | tests/data/parser/inline/0082_range_binding_power.rs | 5 | ||||
-rw-r--r-- | tests/data/parser/inline/0082_range_binding_power.txt | 72 | ||||
-rw-r--r-- | tests/data/parser/inline/0084_compound_ops.rs | 6 | ||||
-rw-r--r-- | tests/data/parser/inline/0084_compound_ops.txt | 89 | ||||
-rw-r--r-- | tests/data/parser/inline/0085_neg_expr.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/inline/0085_neg_expr.txt | 24 |
9 files changed, 27 insertions, 320 deletions
diff --git a/tests/data/parser/inline/0074_expr_binding_power.rs b/tests/data/parser/inline/0074_expr_binding_power.rs deleted file mode 100644 index 87afb036e..000000000 --- a/tests/data/parser/inline/0074_expr_binding_power.rs +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | fn foo() { | ||
2 | 1 + 2 * 3 == 1 * 2 + 3; | ||
3 | *x = 1 + 1; | ||
4 | } | ||
diff --git a/tests/data/parser/inline/0074_expr_binding_power.txt b/tests/data/parser/inline/0074_expr_binding_power.txt deleted file mode 100644 index fc0831d18..000000000 --- a/tests/data/parser/inline/0074_expr_binding_power.txt +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | FILE@[0; 57) | ||
2 | FN_ITEM@[0; 56) | ||
3 | FN_KW@[0; 2) | ||
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; 56) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 38) | ||
15 | BIN_EXPR@[15; 37) | ||
16 | BIN_EXPR@[15; 24) | ||
17 | LITERAL@[15; 16) | ||
18 | INT_NUMBER@[15; 16) "1" | ||
19 | WHITESPACE@[16; 17) | ||
20 | PLUS@[17; 18) | ||
21 | WHITESPACE@[18; 19) | ||
22 | BIN_EXPR@[19; 24) | ||
23 | LITERAL@[19; 20) | ||
24 | INT_NUMBER@[19; 20) "2" | ||
25 | WHITESPACE@[20; 21) | ||
26 | STAR@[21; 22) | ||
27 | WHITESPACE@[22; 23) | ||
28 | LITERAL@[23; 24) | ||
29 | INT_NUMBER@[23; 24) "3" | ||
30 | WHITESPACE@[24; 25) | ||
31 | EQEQ@[25; 27) | ||
32 | WHITESPACE@[27; 28) | ||
33 | BIN_EXPR@[28; 37) | ||
34 | BIN_EXPR@[28; 33) | ||
35 | LITERAL@[28; 29) | ||
36 | INT_NUMBER@[28; 29) "1" | ||
37 | WHITESPACE@[29; 30) | ||
38 | STAR@[30; 31) | ||
39 | WHITESPACE@[31; 32) | ||
40 | LITERAL@[32; 33) | ||
41 | INT_NUMBER@[32; 33) "2" | ||
42 | WHITESPACE@[33; 34) | ||
43 | PLUS@[34; 35) | ||
44 | WHITESPACE@[35; 36) | ||
45 | LITERAL@[36; 37) | ||
46 | INT_NUMBER@[36; 37) "3" | ||
47 | SEMI@[37; 38) | ||
48 | WHITESPACE@[38; 43) | ||
49 | EXPR_STMT@[43; 54) | ||
50 | BIN_EXPR@[43; 53) | ||
51 | DEREF_EXPR@[43; 45) | ||
52 | STAR@[43; 44) | ||
53 | PATH_EXPR@[44; 45) | ||
54 | PATH@[44; 45) | ||
55 | PATH_SEGMENT@[44; 45) | ||
56 | NAME_REF@[44; 45) | ||
57 | IDENT@[44; 45) "x" | ||
58 | WHITESPACE@[45; 46) | ||
59 | EQ@[46; 47) | ||
60 | WHITESPACE@[47; 48) | ||
61 | BIN_EXPR@[48; 53) | ||
62 | LITERAL@[48; 49) | ||
63 | INT_NUMBER@[48; 49) "1" | ||
64 | WHITESPACE@[49; 50) | ||
65 | PLUS@[50; 51) | ||
66 | WHITESPACE@[51; 52) | ||
67 | LITERAL@[52; 53) | ||
68 | INT_NUMBER@[52; 53) "1" | ||
69 | SEMI@[53; 54) | ||
70 | WHITESPACE@[54; 55) | ||
71 | R_CURLY@[55; 56) | ||
72 | WHITESPACE@[56; 57) | ||
diff --git a/tests/data/parser/inline/0079_compound_ops.txt b/tests/data/parser/inline/0079_compound_ops.txt deleted file mode 100644 index 6eaed8c75..000000000 --- a/tests/data/parser/inline/0079_compound_ops.txt +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | FILE@[0; 62) | ||
2 | FN_ITEM@[0; 62) | ||
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; 62) | ||
12 | L_CURLY@[9; 10) | ||
13 | EXPR_STMT@[10; 27) | ||
14 | BIN_EXPR@[10; 21) | ||
15 | PATH_EXPR@[10; 17) | ||
16 | PATH@[10; 17) | ||
17 | PATH_SEGMENT@[10; 17) | ||
18 | NAME_REF@[10; 17) | ||
19 | WHITESPACE@[10; 15) | ||
20 | IDENT@[15; 16) "x" | ||
21 | WHITESPACE@[16; 17) | ||
22 | PLUSEQ@[17; 19) | ||
23 | LITERAL@[19; 21) | ||
24 | WHITESPACE@[19; 20) | ||
25 | INT_NUMBER@[20; 21) "1" | ||
26 | SEMI@[21; 22) | ||
27 | WHITESPACE@[22; 27) | ||
28 | EXPR_STMT@[27; 47) | ||
29 | BIN_EXPR@[27; 41) | ||
30 | BIN_EXPR@[27; 33) | ||
31 | LITERAL@[27; 29) | ||
32 | INT_NUMBER@[27; 28) "1" | ||
33 | WHITESPACE@[28; 29) | ||
34 | PLUS@[29; 30) | ||
35 | LITERAL@[30; 33) | ||
36 | WHITESPACE@[30; 31) | ||
37 | INT_NUMBER@[31; 32) "1" | ||
38 | WHITESPACE@[32; 33) | ||
39 | LTEQ@[33; 35) | ||
40 | BIN_EXPR@[35; 41) | ||
41 | LITERAL@[35; 38) | ||
42 | WHITESPACE@[35; 36) | ||
43 | INT_NUMBER@[36; 37) "2" | ||
44 | WHITESPACE@[37; 38) | ||
45 | STAR@[38; 39) | ||
46 | LITERAL@[39; 41) | ||
47 | WHITESPACE@[39; 40) | ||
48 | INT_NUMBER@[40; 41) "3" | ||
49 | SEMI@[41; 42) | ||
50 | WHITESPACE@[42; 47) | ||
51 | EXPR_STMT@[47; 60) | ||
52 | BIN_EXPR@[47; 58) | ||
53 | PATH_EXPR@[47; 49) | ||
54 | PATH@[47; 49) | ||
55 | PATH_SEGMENT@[47; 49) | ||
56 | NAME_REF@[47; 49) | ||
57 | IDENT@[47; 48) "z" | ||
58 | WHITESPACE@[48; 49) | ||
59 | MINUSEQ@[49; 51) | ||
60 | BIN_EXPR@[51; 58) | ||
61 | LITERAL@[51; 54) | ||
62 | WHITESPACE@[51; 52) | ||
63 | INT_NUMBER@[52; 53) "3" | ||
64 | WHITESPACE@[53; 54) | ||
65 | GTEQ@[54; 56) | ||
66 | LITERAL@[56; 58) | ||
67 | WHITESPACE@[56; 57) | ||
68 | INT_NUMBER@[57; 58) "0" | ||
69 | SEMI@[58; 59) | ||
70 | WHITESPACE@[59; 60) | ||
71 | R_CURLY@[60; 61) | ||
72 | WHITESPACE@[61; 62) | ||
diff --git a/tests/data/parser/inline/0082_range_binding_power.rs b/tests/data/parser/inline/0082_range_binding_power.rs deleted file mode 100644 index 259ec31e2..000000000 --- a/tests/data/parser/inline/0082_range_binding_power.rs +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | fn foo() { | ||
2 | .. 1 + 1; | ||
3 | .. z = 2; | ||
4 | x = false .. 1 == 1; | ||
5 | } | ||
diff --git a/tests/data/parser/inline/0082_range_binding_power.txt b/tests/data/parser/inline/0082_range_binding_power.txt deleted file mode 100644 index 72666d8f8..000000000 --- a/tests/data/parser/inline/0082_range_binding_power.txt +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | FILE@[0; 66) | ||
2 | FN_ITEM@[0; 65) | ||
3 | FN_KW@[0; 2) | ||
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; 65) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 24) | ||
15 | RANGE_EXPR@[15; 23) | ||
16 | DOTDOT@[15; 17) | ||
17 | WHITESPACE@[17; 18) | ||
18 | BIN_EXPR@[18; 23) | ||
19 | LITERAL@[18; 19) | ||
20 | INT_NUMBER@[18; 19) "1" | ||
21 | WHITESPACE@[19; 20) | ||
22 | PLUS@[20; 21) | ||
23 | WHITESPACE@[21; 22) | ||
24 | LITERAL@[22; 23) | ||
25 | INT_NUMBER@[22; 23) "1" | ||
26 | SEMI@[23; 24) | ||
27 | WHITESPACE@[24; 29) | ||
28 | EXPR_STMT@[29; 38) | ||
29 | BIN_EXPR@[29; 37) | ||
30 | RANGE_EXPR@[29; 33) | ||
31 | DOTDOT@[29; 31) | ||
32 | WHITESPACE@[31; 32) | ||
33 | PATH_EXPR@[32; 33) | ||
34 | PATH@[32; 33) | ||
35 | PATH_SEGMENT@[32; 33) | ||
36 | NAME_REF@[32; 33) | ||
37 | IDENT@[32; 33) "z" | ||
38 | WHITESPACE@[33; 34) | ||
39 | EQ@[34; 35) | ||
40 | WHITESPACE@[35; 36) | ||
41 | LITERAL@[36; 37) | ||
42 | INT_NUMBER@[36; 37) "2" | ||
43 | SEMI@[37; 38) | ||
44 | WHITESPACE@[38; 43) | ||
45 | EXPR_STMT@[43; 63) | ||
46 | BIN_EXPR@[43; 62) | ||
47 | PATH_EXPR@[43; 44) | ||
48 | PATH@[43; 44) | ||
49 | PATH_SEGMENT@[43; 44) | ||
50 | NAME_REF@[43; 44) | ||
51 | IDENT@[43; 44) "x" | ||
52 | WHITESPACE@[44; 45) | ||
53 | EQ@[45; 46) | ||
54 | WHITESPACE@[46; 47) | ||
55 | BIN_EXPR@[47; 62) | ||
56 | LITERAL@[47; 52) | ||
57 | FALSE_KW@[47; 52) | ||
58 | WHITESPACE@[52; 53) | ||
59 | DOTDOT@[53; 55) | ||
60 | WHITESPACE@[55; 56) | ||
61 | BIN_EXPR@[56; 62) | ||
62 | LITERAL@[56; 57) | ||
63 | INT_NUMBER@[56; 57) "1" | ||
64 | WHITESPACE@[57; 58) | ||
65 | EQEQ@[58; 60) | ||
66 | WHITESPACE@[60; 61) | ||
67 | LITERAL@[61; 62) | ||
68 | INT_NUMBER@[61; 62) "1" | ||
69 | SEMI@[62; 63) | ||
70 | WHITESPACE@[63; 64) | ||
71 | R_CURLY@[64; 65) | ||
72 | WHITESPACE@[65; 66) | ||
diff --git a/tests/data/parser/inline/0084_compound_ops.rs b/tests/data/parser/inline/0084_compound_ops.rs deleted file mode 100644 index 04b1764f1..000000000 --- a/tests/data/parser/inline/0084_compound_ops.rs +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | fn foo() { | ||
2 | x += 1; | ||
3 | 1 + 1 <= 2 * 3; | ||
4 | z -= 3 >= 0; | ||
5 | true || true && false; | ||
6 | } | ||
diff --git a/tests/data/parser/inline/0084_compound_ops.txt b/tests/data/parser/inline/0084_compound_ops.txt deleted file mode 100644 index d51f638a2..000000000 --- a/tests/data/parser/inline/0084_compound_ops.txt +++ /dev/null | |||
@@ -1,89 +0,0 @@ | |||
1 | FILE@[0; 89) | ||
2 | FN_ITEM@[0; 88) | ||
3 | FN_KW@[0; 2) | ||
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; 88) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 22) | ||
15 | BIN_EXPR@[15; 21) | ||
16 | PATH_EXPR@[15; 16) | ||
17 | PATH@[15; 16) | ||
18 | PATH_SEGMENT@[15; 16) | ||
19 | NAME_REF@[15; 16) | ||
20 | IDENT@[15; 16) "x" | ||
21 | WHITESPACE@[16; 17) | ||
22 | PLUSEQ@[17; 19) | ||
23 | WHITESPACE@[19; 20) | ||
24 | LITERAL@[20; 21) | ||
25 | INT_NUMBER@[20; 21) "1" | ||
26 | SEMI@[21; 22) | ||
27 | WHITESPACE@[22; 27) | ||
28 | EXPR_STMT@[27; 42) | ||
29 | BIN_EXPR@[27; 41) | ||
30 | BIN_EXPR@[27; 32) | ||
31 | LITERAL@[27; 28) | ||
32 | INT_NUMBER@[27; 28) "1" | ||
33 | WHITESPACE@[28; 29) | ||
34 | PLUS@[29; 30) | ||
35 | WHITESPACE@[30; 31) | ||
36 | LITERAL@[31; 32) | ||
37 | INT_NUMBER@[31; 32) "1" | ||
38 | WHITESPACE@[32; 33) | ||
39 | LTEQ@[33; 35) | ||
40 | WHITESPACE@[35; 36) | ||
41 | BIN_EXPR@[36; 41) | ||
42 | LITERAL@[36; 37) | ||
43 | INT_NUMBER@[36; 37) "2" | ||
44 | WHITESPACE@[37; 38) | ||
45 | STAR@[38; 39) | ||
46 | WHITESPACE@[39; 40) | ||
47 | LITERAL@[40; 41) | ||
48 | INT_NUMBER@[40; 41) "3" | ||
49 | SEMI@[41; 42) | ||
50 | WHITESPACE@[42; 47) | ||
51 | EXPR_STMT@[47; 59) | ||
52 | BIN_EXPR@[47; 58) | ||
53 | PATH_EXPR@[47; 48) | ||
54 | PATH@[47; 48) | ||
55 | PATH_SEGMENT@[47; 48) | ||
56 | NAME_REF@[47; 48) | ||
57 | IDENT@[47; 48) "z" | ||
58 | WHITESPACE@[48; 49) | ||
59 | MINUSEQ@[49; 51) | ||
60 | WHITESPACE@[51; 52) | ||
61 | BIN_EXPR@[52; 58) | ||
62 | LITERAL@[52; 53) | ||
63 | INT_NUMBER@[52; 53) "3" | ||
64 | WHITESPACE@[53; 54) | ||
65 | GTEQ@[54; 56) | ||
66 | WHITESPACE@[56; 57) | ||
67 | LITERAL@[57; 58) | ||
68 | INT_NUMBER@[57; 58) "0" | ||
69 | SEMI@[58; 59) | ||
70 | WHITESPACE@[59; 64) | ||
71 | EXPR_STMT@[64; 86) | ||
72 | BIN_EXPR@[64; 85) | ||
73 | LITERAL@[64; 68) | ||
74 | TRUE_KW@[64; 68) | ||
75 | WHITESPACE@[68; 69) | ||
76 | PIPEPIPE@[69; 71) | ||
77 | WHITESPACE@[71; 72) | ||
78 | BIN_EXPR@[72; 85) | ||
79 | LITERAL@[72; 76) | ||
80 | TRUE_KW@[72; 76) | ||
81 | WHITESPACE@[76; 77) | ||
82 | AMPAMP@[77; 79) | ||
83 | WHITESPACE@[79; 80) | ||
84 | LITERAL@[80; 85) | ||
85 | FALSE_KW@[80; 85) | ||
86 | SEMI@[85; 86) | ||
87 | WHITESPACE@[86; 87) | ||
88 | R_CURLY@[87; 88) | ||
89 | WHITESPACE@[88; 89) | ||
diff --git a/tests/data/parser/inline/0085_neg_expr.rs b/tests/data/parser/inline/0085_neg_expr.rs new file mode 100644 index 000000000..45149d222 --- /dev/null +++ b/tests/data/parser/inline/0085_neg_expr.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | fn foo() { | ||
2 | --1; | ||
3 | } | ||
diff --git a/tests/data/parser/inline/0085_neg_expr.txt b/tests/data/parser/inline/0085_neg_expr.txt new file mode 100644 index 000000000..8eeb0b1e6 --- /dev/null +++ b/tests/data/parser/inline/0085_neg_expr.txt | |||
@@ -0,0 +1,24 @@ | |||
1 | FILE@[0; 22) | ||
2 | FN_ITEM@[0; 21) | ||
3 | FN_KW@[0; 2) | ||
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; 21) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 19) | ||
15 | NEG_EXPR@[15; 18) | ||
16 | MINUS@[15; 16) | ||
17 | NEG_EXPR@[16; 18) | ||
18 | MINUS@[16; 17) | ||
19 | LITERAL@[17; 18) | ||
20 | INT_NUMBER@[17; 18) "1" | ||
21 | SEMI@[18; 19) | ||
22 | WHITESPACE@[19; 20) | ||
23 | R_CURLY@[20; 21) | ||
24 | WHITESPACE@[21; 22) | ||