mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
Cfg: Support short-circuiting compound assignments.
This commit is contained in:
@@ -185,6 +185,24 @@ private module Ast implements AstSig<Location> {
|
||||
|
||||
class LogicalNotExpr = LogNotExpr;
|
||||
|
||||
class Assignment = J::Assignment;
|
||||
|
||||
class AssignExpr = J::AssignExpr;
|
||||
|
||||
class CompoundAssignment = J::AssignOp;
|
||||
|
||||
class AssignLogicalAndExpr extends CompoundAssignment {
|
||||
AssignLogicalAndExpr() { none() }
|
||||
}
|
||||
|
||||
class AssignLogicalOrExpr extends CompoundAssignment {
|
||||
AssignLogicalOrExpr() { none() }
|
||||
}
|
||||
|
||||
class AssignNullCoalescingExpr extends CompoundAssignment {
|
||||
AssignNullCoalescingExpr() { none() }
|
||||
}
|
||||
|
||||
final private class FinalBooleanLiteral = J::BooleanLiteral;
|
||||
|
||||
class BooleanLiteral extends FinalBooleanLiteral {
|
||||
|
||||
Reference in New Issue
Block a user