File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1848,6 +1848,11 @@ class AssignExpr extends @assignexpr, Assignment {
1848
1848
override Expr getUnderlyingValue ( ) { result = getRhs ( ) .getUnderlyingValue ( ) }
1849
1849
}
1850
1850
1851
+ private class TCompoundAssignExpr =
1852
+ @assignaddexpr or @assignsubexpr or @assignmulexpr or @assigndivexpr or @assignmodexpr or
1853
+ @assignexpexpr or @assignlshiftexpr or @assignrshiftexpr or @assignurshiftexpr or
1854
+ @assignorexpr or @assignxorexpr or @assignandexpr;
1855
+
1851
1856
/**
1852
1857
* A compound assign expression.
1853
1858
*
@@ -1858,7 +1863,7 @@ class AssignExpr extends @assignexpr, Assignment {
1858
1863
* x /= 2
1859
1864
* ```
1860
1865
*/
1861
- abstract class CompoundAssignExpr extends Assignment { }
1866
+ class CompoundAssignExpr extends TCompoundAssignExpr , Assignment { }
1862
1867
1863
1868
/**
1864
1869
* A compound add-assign expression.
You can’t perform that action at this time.
0 commit comments