Rename Comparison to ComparisonExpr.

This commit is contained in:
Max Schaefer
2020-02-07 16:24:35 +00:00
parent ad7dfa258c
commit 5571f1eac7
4 changed files with 7 additions and 7 deletions

View File

@@ -51,10 +51,10 @@ class AssocNestedExpr extends BinaryExpr {
class HarmlessNestedExpr extends BinaryExpr {
HarmlessNestedExpr() {
exists(BinaryExpr parent | this = parent.getAChildExpr() |
parent instanceof Comparison and
parent instanceof ComparisonExpr and
(this instanceof ArithmeticExpr or this instanceof ShiftExpr)
or
parent instanceof LogicalExpr and this instanceof Comparison
parent instanceof LogicalExpr and this instanceof ComparisonExpr
)
}
}