Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions unified/ql/lib/codeql/unified/internal/AstExtra.qll
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ private import codeql.unified.internal.NameBindingPlugin

module Public {
/** An assignment, possibly a compound assignment. */
abstract class AssignmentImpl extends BinaryExpr {
abstract private class AssignmentImpl extends BinaryExpr {
/** Gets the target of this assignment. */
abstract Expr getTarget();

Expand All @@ -30,7 +30,10 @@ module Public {
final class CompoundAssignExpr extends BinaryExpr, AssignmentImpl {
CompoundAssignExpr() {
this.getOperator().getValue() =
["+=", "-=", "*=", "/=", "%=", "<<=", ">>=", "&=", "|=", "^=", "&+=", "&-=", "&*="]
[
"+=", "-=", "*=", "/=", "%=", "<<=", ">>=", "&=", "|=", "^=", "&+=", "&-=", "&*=", "&&=",
"||=", "??="
]
}

override Expr getTarget() { result = this.getLeft() }
Expand Down
Loading