@@ -11,7 +11,7 @@ import Expr
1111 * (`UnaryArithmeticOperation`) or a binary arithmetic operation
1212 * (`BinaryArithmeticOperation`).
1313 */
14- class ArithmeticOperation extends Operation , @arith_op_expr {
14+ class ArithmeticOperation extends Operation , @arith_operation {
1515 override string getOperator ( ) { none ( ) }
1616}
1717
@@ -20,7 +20,7 @@ class ArithmeticOperation extends Operation, @arith_op_expr {
2020 * (`UnaryMinusExpr`), a unary plus operation (`UnaryPlusExpr`),
2121 * or a mutator operation (`MutatorOperation`).
2222 */
23- class UnaryArithmeticOperation extends ArithmeticOperation , UnaryOperation , @un_arith_op_expr { }
23+ class UnaryArithmeticOperation extends ArithmeticOperation , UnaryOperation , @un_arith_operation { }
2424
2525/**
2626 * A unary minus operation, for example `-x`.
@@ -44,21 +44,21 @@ class UnaryPlusExpr extends UnaryArithmeticOperation, @plus_expr {
4444 * A mutator operation. Either an increment operation (`IncrementOperation`)
4545 * or a decrement operation (`DecrementOperation`).
4646 */
47- class MutatorOperation extends UnaryArithmeticOperation , @mut_op_expr { }
47+ class MutatorOperation extends UnaryArithmeticOperation , @mut_operation { }
4848
4949/**
5050 * An increment operation. Either a postfix increment operation
5151 * (`PostIncrExpr`) or a prefix increment operation (`PreIncrExpr`).
5252 */
53- class IncrementOperation extends MutatorOperation , @incr_op_expr {
53+ class IncrementOperation extends MutatorOperation , @incr_operation {
5454 override string getOperator ( ) { result = "++" }
5555}
5656
5757/**
5858 * A decrement operation. Either a postfix decrement operation
5959 * (`PostDecrExpr`) or a prefix decrement operation (`PreDecrExpr`).
6060 */
61- class DecrementOperation extends MutatorOperation , @decr_op_expr {
61+ class DecrementOperation extends MutatorOperation , @decr_operation {
6262 override string getOperator ( ) { result = "--" }
6363}
6464
@@ -95,19 +95,17 @@ class PostDecrExpr extends DecrementOperation, @post_decr_expr {
9595}
9696
9797/**
98- * A binary arithmetic operation . Either an addition operation
99- * (`AddExpr`), a subtraction operation (`SubExpr`), a multiplication
100- * operation (`MulExpr`), a division operation (`DivExpr`), or a
101- * remainder operation (`RemExpr`).
98+ * A binary arithmetic expression . Either an addition expression
99+ * (`AddExpr`), a subtraction expression (`SubExpr`), a multiplication
100+ * expression (`MulExpr`), a division expression (`DivExpr`), or a
101+ * remainder expression (`RemExpr`).
102102 */
103- class BinaryArithmeticOperation extends ArithmeticOperation , BinaryOperation , @bin_arith_op_expr {
104- override string getOperator ( ) { none ( ) }
105- }
103+ class BinaryArithmeticExpr extends BinaryArithmeticOperation , @bin_arith_expr { }
106104
107105/**
108106 * An addition operation, for example `x + y`.
109107 */
110- class AddExpr extends BinaryArithmeticOperation , AddOperation , @add_expr {
108+ class AddExpr extends BinaryArithmeticExpr , AddOperation , @add_expr {
111109 override string getOperator ( ) { result = "+" }
112110
113111 override string getAPrimaryQlClass ( ) { result = "AddExpr" }
@@ -116,7 +114,7 @@ class AddExpr extends BinaryArithmeticOperation, AddOperation, @add_expr {
116114/**
117115 * A subtraction operation, for example `x - y`.
118116 */
119- class SubExpr extends BinaryArithmeticOperation , SubOperation , @sub_expr {
117+ class SubExpr extends BinaryArithmeticExpr , SubOperation , @sub_expr {
120118 override string getOperator ( ) { result = "-" }
121119
122120 override string getAPrimaryQlClass ( ) { result = "SubExpr" }
@@ -125,7 +123,7 @@ class SubExpr extends BinaryArithmeticOperation, SubOperation, @sub_expr {
125123/**
126124 * A multiplication operation, for example `x * y`.
127125 */
128- class MulExpr extends BinaryArithmeticOperation , MulOperation , @mul_expr {
126+ class MulExpr extends BinaryArithmeticExpr , MulOperation , @mul_expr {
129127 override string getOperator ( ) { result = "*" }
130128
131129 override string getAPrimaryQlClass ( ) { result = "MulExpr" }
@@ -134,7 +132,7 @@ class MulExpr extends BinaryArithmeticOperation, MulOperation, @mul_expr {
134132/**
135133 * A division operation, for example `x / y`.
136134 */
137- class DivExpr extends BinaryArithmeticOperation , DivOperation , @div_expr {
135+ class DivExpr extends BinaryArithmeticExpr , DivOperation , @div_expr {
138136 override string getOperator ( ) { result = "/" }
139137
140138 override string getAPrimaryQlClass ( ) { result = "DivExpr" }
@@ -143,7 +141,7 @@ class DivExpr extends BinaryArithmeticOperation, DivOperation, @div_expr {
143141/**
144142 * A remainder operation, for example `x % y`.
145143 */
146- class RemExpr extends BinaryArithmeticOperation , RemOperation , @rem_expr {
144+ class RemExpr extends BinaryArithmeticExpr , RemOperation , @rem_expr {
147145 override string getOperator ( ) { result = "%" }
148146
149147 override string getAPrimaryQlClass ( ) { result = "RemExpr" }
0 commit comments