@@ -14,12 +14,11 @@ import csharp
1414// any use of + that has string type
1515class StringCat extends AddExpr { StringCat ( ) { this .getType ( ) instanceof StringType } }
1616
17- /*
18- * an assignment of the form
19- * v = ... + ... v ...
20- * where v is a simple variable (and not, for example, a property)
17+ /**
18+ * Holds if `e` is an assignment of the form
19+ * ` v = ... + ... v ...`
20+ * where `v` is a simple variable (and not, for example, a property).
2121 */
22-
2322predicate isSelfConcatAssignExpr ( AssignExpr e , Variable v ) {
2423 not e = any ( AssignAddExpr a ) .getExpandedAssignment ( ) and
2524 exists ( VariableAccess use |
@@ -34,12 +33,11 @@ predicate stringCatContains(StringCat expr, Expr child) {
3433 stringCatContains ( expr , child .getParent ( ) )
3534}
3635
37- /*
38- * an assignment of the form
39- * v += ...
40- * where v is a simple variable (and not, for example, a property)
36+ /**
37+ * Holds if `e` is an assignment of the form
38+ * ` v += ...`
39+ * where `v` is a simple variable (and not, for example, a property).
4140 */
42-
4341predicate isConcatExpr ( AssignAddExpr e , Variable v ) {
4442 e .getLValue ( ) .getType ( ) instanceof StringType and
4543 v = e .getTargetVariable ( )
0 commit comments