@@ -19,38 +19,38 @@ fn test_operations(
1919 x >= y; // $ Operation Op=>= Operands=2 BinaryExpr ComparisonOperation RelationalOperation GreaterOrEqualsOperation Greater=x Lesser=y
2020
2121 // arithmetic operations
22- x + y; // $ Operation Op=+ Operands=2 BinaryExpr
23- x - y; // $ Operation Op=- Operands=2 BinaryExpr
24- x * y; // $ Operation Op=* Operands=2 BinaryExpr
25- x / y; // $ Operation Op=/ Operands=2 BinaryExpr
26- x % y; // $ Operation Op=% Operands=2 BinaryExpr
27- x += y; // $ Operation Op=+= Operands=2 AssignmentOperation BinaryExpr
28- x -= y; // $ Operation Op=-= Operands=2 AssignmentOperation BinaryExpr
29- x *= y; // $ Operation Op=*= Operands=2 AssignmentOperation BinaryExpr
30- x /= y; // $ Operation Op=/= Operands=2 AssignmentOperation BinaryExpr
31- x %= y; // $ Operation Op=%= Operands=2 AssignmentOperation BinaryExpr
32- -x; // $ Operation Op=- Operands=1 PrefixExpr
22+ x + y; // $ Operation Op=+ Operands=2 BinaryExpr ArithmeticOperation BinaryArithmeticOperation
23+ x - y; // $ Operation Op=- Operands=2 BinaryExpr ArithmeticOperation BinaryArithmeticOperation
24+ x * y; // $ Operation Op=* Operands=2 BinaryExpr ArithmeticOperation BinaryArithmeticOperation
25+ x / y; // $ Operation Op=/ Operands=2 BinaryExpr ArithmeticOperation BinaryArithmeticOperation
26+ x % y; // $ Operation Op=% Operands=2 BinaryExpr ArithmeticOperation BinaryArithmeticOperation
27+ x += y; // $ Operation Op=+= Operands=2 AssignmentOperation BinaryExpr ArithmeticOperation AssignArithmeticOperation
28+ x -= y; // $ Operation Op=-= Operands=2 AssignmentOperation BinaryExpr ArithmeticOperation AssignArithmeticOperation
29+ x *= y; // $ Operation Op=*= Operands=2 AssignmentOperation BinaryExpr ArithmeticOperation AssignArithmeticOperation
30+ x /= y; // $ Operation Op=/= Operands=2 AssignmentOperation BinaryExpr ArithmeticOperation AssignArithmeticOperation
31+ x %= y; // $ Operation Op=%= Operands=2 AssignmentOperation BinaryExpr ArithmeticOperation AssignArithmeticOperation
32+ -x; // $ Operation Op=- Operands=1 PrefixExpr ArithmeticOperation PrefixArithmeticOperation
3333
3434 // logical operations
3535 a && b; // $ Operation Op=&& Operands=2 BinaryExpr LogicalOperation
3636 a || b; // $ Operation Op=|| Operands=2 BinaryExpr LogicalOperation
3737 !a; // $ Operation Op=! Operands=1 PrefixExpr LogicalOperation
3838
3939 // bitwise operations
40- x & y; // $ Operation Op=& Operands=2 BinaryExpr
41- x | y; // $ Operation Op=| Operands=2 BinaryExpr
42- x ^ y; // $ Operation Op=^ Operands=2 BinaryExpr
43- x << y; // $ Operation Op=<< Operands=2 BinaryExpr
44- x >> y; // $ Operation Op=>> Operands=2 BinaryExpr
45- x &= y; // $ Operation Op=&= Operands=2 AssignmentOperation BinaryExpr
46- x |= y; // $ Operation Op=|= Operands=2 AssignmentOperation BinaryExpr
47- x ^= y; // $ Operation Op=^= Operands=2 AssignmentOperation BinaryExpr
48- x <<= y; // $ Operation Op=<<= Operands=2 AssignmentOperation BinaryExpr
49- x >>= y; // $ Operation Op=>>= Operands=2 AssignmentOperation BinaryExpr
40+ x & y; // $ Operation Op=& Operands=2 BinaryExpr BitwiseOperation BinaryBitwiseOperation
41+ x | y; // $ Operation Op=| Operands=2 BinaryExpr BitwiseOperation BinaryBitwiseOperation
42+ x ^ y; // $ Operation Op=^ Operands=2 BinaryExpr BitwiseOperation BinaryBitwiseOperation
43+ x << y; // $ Operation Op=<< Operands=2 BinaryExpr BitwiseOperation BinaryBitwiseOperation
44+ x >> y; // $ Operation Op=>> Operands=2 BinaryExpr BitwiseOperation BinaryBitwiseOperation
45+ x &= y; // $ Operation Op=&= Operands=2 AssignmentOperation BinaryExpr BitwiseOperation AssignBitwiseOperation
46+ x |= y; // $ Operation Op=|= Operands=2 AssignmentOperation BinaryExpr BitwiseOperation AssignBitwiseOperation
47+ x ^= y; // $ Operation Op=^= Operands=2 AssignmentOperation BinaryExpr BitwiseOperation AssignBitwiseOperation
48+ x <<= y; // $ Operation Op=<<= Operands=2 AssignmentOperation BinaryExpr BitwiseOperation AssignBitwiseOperation
49+ x >>= y; // $ Operation Op=>>= Operands=2 AssignmentOperation BinaryExpr BitwiseOperation AssignBitwiseOperation
5050
5151 // miscellaneous expressions that might be operations
52- * ptr; // $ Operation Op=* Operands=1 PrefixExpr
53- & x; // $ RefExpr
52+ * ptr; // $ Operation Op=* Operands=1 PrefixExpr DerefExpr
53+ & x; // $ Operation Op=& Operands=1 RefExpr MISSING: PrefixExpr
5454 res?;
5555
5656 return Ok ( ( ) ) ;
0 commit comments