@@ -8,48 +8,48 @@ fn test_operations(
88 let mut x: i32 ;
99
1010 // simple assignment
11- x = y; // $ Operation AssignmentOperation BinaryExpr
11+ x = y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
1212
1313 // comparison operations
14- x == y; // $ Operation BinaryExpr
15- x != y; // $ Operation BinaryExpr
16- x < y; // $ Operation BinaryExpr
17- x <= y; // $ Operation BinaryExpr
18- x > y; // $ Operation BinaryExpr
19- x >= y; // $ Operation BinaryExpr
14+ x == y; // $ Operation Operands=2 BinaryExpr
15+ x != y; // $ Operation Operands=2 BinaryExpr
16+ x < y; // $ Operation Operands=2 BinaryExpr
17+ x <= y; // $ Operation Operands=2 BinaryExpr
18+ x > y; // $ Operation Operands=2 BinaryExpr
19+ x >= y; // $ Operation Operands=2 BinaryExpr
2020
2121 // arithmetic operations
22- x + y; // $ Operation BinaryExpr
23- x - y; // $ Operation BinaryExpr
24- x * y; // $ Operation BinaryExpr
25- x / y; // $ Operation BinaryExpr
26- x % y; // $ Operation BinaryExpr
27- x += y; // $ Operation AssignmentOperation BinaryExpr
28- x -= y; // $ Operation AssignmentOperation BinaryExpr
29- x *= y; // $ Operation AssignmentOperation BinaryExpr
30- x /= y; // $ Operation AssignmentOperation BinaryExpr
31- x %= y; // $ Operation AssignmentOperation BinaryExpr
32- -x; // $ Operation PrefixExpr
22+ x + y; // $ Operation Operands=2 BinaryExpr
23+ x - y; // $ Operation Operands=2 BinaryExpr
24+ x * y; // $ Operation Operands=2 BinaryExpr
25+ x / y; // $ Operation Operands=2 BinaryExpr
26+ x % y; // $ Operation Operands=2 BinaryExpr
27+ x += y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
28+ x -= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
29+ x *= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
30+ x /= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
31+ x %= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
32+ -x; // $ Operation Operands=1 PrefixExpr
3333
3434 // logical operations
35- a && b; // $ Operation BinaryExpr LogicalOperation
36- a || b; // $ Operation BinaryExpr LogicalOperation
37- !a; // $ Operation PrefixExpr LogicalOperation
35+ a && b; // $ Operation Operands=2 BinaryExpr LogicalOperation
36+ a || b; // $ Operation Operands=2 BinaryExpr LogicalOperation
37+ !a; // $ Operation Operands=1 PrefixExpr LogicalOperation
3838
3939 // bitwise operations
40- x & y; // $ Operation BinaryExpr
41- x | y; // $ Operation BinaryExpr
42- x ^ y; // $ Operation BinaryExpr
43- x << y; // $ Operation BinaryExpr
44- x >> y; // $ Operation BinaryExpr
45- x &= y; // $ Operation AssignmentOperation BinaryExpr
46- x |= y; // $ Operation AssignmentOperation BinaryExpr
47- x ^= y; // $ Operation AssignmentOperation BinaryExpr
48- x <<= y; // $ Operation AssignmentOperation BinaryExpr
49- x >>= y; // $ Operation AssignmentOperation BinaryExpr
40+ x & y; // $ Operation Operands=2 BinaryExpr
41+ x | y; // $ Operation Operands=2 BinaryExpr
42+ x ^ y; // $ Operation Operands=2 BinaryExpr
43+ x << y; // $ Operation Operands=2 BinaryExpr
44+ x >> y; // $ Operation Operands=2 BinaryExpr
45+ x &= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
46+ x |= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
47+ x ^= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
48+ x <<= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
49+ x >>= y; // $ Operation Operands=2 AssignmentOperation BinaryExpr
5050
5151 // miscellaneous expressions that might be operations
52- * ptr; // $ Operation PrefixExpr
52+ * ptr; // $ Operation Operands=1 PrefixExpr
5353 & x; // $ RefExpr
5454 res?;
5555
0 commit comments