Skip to content

Commit 41bb349

Browse files
committed
C#: Improve the downgrade script.
1 parent a5f27b8 commit 41bb349

File tree

1 file changed

+3
-4
lines changed
  • csharp/downgrades/19b8cc3e2dc768d4cbc03d6e3773b709bbebd036

1 file changed

+3
-4
lines changed

csharp/downgrades/19b8cc3e2dc768d4cbc03d6e3773b709bbebd036/assignments.ql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class Location extends @location {
77
}
88

99
newtype TAddedElement =
10-
TAssignment(Expr e) or
11-
TLhs(Expr e) or
12-
TRhs(Expr e)
10+
TAssignment(CompoundAssignmentExpr e) or
11+
TLhs(CompoundAssignmentExpr e) or
12+
TRhs(CompoundAssignmentExpr e)
1313

1414
module Fresh = QlBuiltins::NewEntity<TAddedElement>;
1515

@@ -103,7 +103,6 @@ query predicate new_expressions(NewExpr e, int kind, TypeOrRef t) {
103103
// Introduce expanded expression nodes.
104104
exists(CompoundAssignmentExpr compound, int kind0, Expr e1, int kind1 |
105105
expressions(compound, kind0, t) and
106-
compoundAssignmentKind(kind0) and
107106
expressions(e1, kind1, _) and
108107
expr_parent(e1, 0, compound)
109108
|

0 commit comments

Comments
 (0)