File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
python/ql/src/semmle/python Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,16 @@ class AugAssign extends AugAssign_ {
90
90
/* syntax: Expr += Expr */
91
91
override Expr getASubExpression ( ) { result = this .getOperation ( ) }
92
92
93
- /** Gets the target of this augmented assignment statement. */
93
+ /**
94
+ * Gets the target of this augmented assignment statement.
95
+ * That is, the `a` in `a += b`.
96
+ */
94
97
Expr getTarget ( ) { result = this .getOperation ( ) .( BinaryExpr ) .getLeft ( ) }
95
98
96
- /** Gets the value of this augmented assignment statement. */
99
+ /**
100
+ * Gets the value of this augmented assignment statement.
101
+ * That is, the `b` in `a += b`.
102
+ */
97
103
Expr getValue ( ) { result = this .getOperation ( ) .( BinaryExpr ) .getRight ( ) }
98
104
99
105
override Stmt getASubStatement ( ) { none ( ) }
@@ -426,6 +432,6 @@ class StmtList extends StmtList_ {
426
432
exists ( Stmt item | item = this .getAnItem ( ) | item = a or item .contains ( a ) )
427
433
}
428
434
429
- /** Gets the last item in this list of statements. */
435
+ /** Gets the last item in this list of statements, if any . */
430
436
Stmt getLastItem ( ) { result = this .getItem ( max ( int i | exists ( this .getItem ( i ) ) ) ) }
431
437
}
You can’t perform that action at this time.
0 commit comments