@@ -1153,23 +1153,6 @@ class Disjunction extends TDisjunction, AstNode, Formula {
11531153 }
11541154}
11551155
1156- /**
1157- * A comparison operator, such as `<` or `=`.
1158- */
1159- class ComparisonOp extends TComparisonOp , AstNode {
1160- QL:: Compop op ;
1161-
1162- ComparisonOp ( ) { this = TComparisonOp ( op ) }
1163-
1164- /**
1165- * Gets a string representing the operator.
1166- * E.g. "<" or "=".
1167- */
1168- ComparisonSymbol getSymbol ( ) { result = op .getValue ( ) }
1169-
1170- override string getAPrimaryQlClass ( ) { result = "ComparisonOp" }
1171- }
1172-
11731156/**
11741157 * A literal expression, such as `6` or `true` or `"foo"`.
11751158 */
@@ -1266,10 +1249,7 @@ class ComparisonFormula extends TComparisonFormula, Formula {
12661249 Expr getAnOperand ( ) { result in [ this .getLeftOperand ( ) , this .getRightOperand ( ) ] }
12671250
12681251 /** Gets the operator of this comparison. */
1269- ComparisonOp getOperator ( ) { toQL ( result ) = comp .getChild ( ) }
1270-
1271- /** Gets the symbol of this comparison (as a string). */
1272- ComparisonSymbol getSymbol ( ) { result = this .getOperator ( ) .getSymbol ( ) }
1252+ ComparisonSymbol getOperator ( ) { result = comp .getChild ( ) .getValue ( ) }
12731253
12741254 override string getAPrimaryQlClass ( ) { result = "ComparisonFormula" }
12751255
@@ -1279,8 +1259,6 @@ class ComparisonFormula extends TComparisonFormula, Formula {
12791259 pred = directMember ( "getLeftOperand" ) and result = this .getLeftOperand ( )
12801260 or
12811261 pred = directMember ( "getRightOperand" ) and result = this .getRightOperand ( )
1282- or
1283- pred = directMember ( "getOperator" ) and result = this .getOperator ( )
12841262 }
12851263}
12861264
0 commit comments