@@ -163,23 +163,23 @@ class PlusConversion extends NullOrUndefinedConversion {
163
163
PlusConversion ( ) { parent instanceof AddExpr or parent instanceof AssignAddExpr }
164
164
165
165
override string getConversionTarget ( ) {
166
- result = getDefiniteCousinType ( )
166
+ result = getDefiniteSiblingType ( )
167
167
or
168
- not exists ( getDefiniteCousinType ( ) ) and
168
+ not exists ( getDefiniteSiblingType ( ) ) and
169
169
result = "number or string"
170
170
}
171
171
172
172
/**
173
- * Gets the cousin of this implicit conversion.
174
- * E.g. if this is `a` in the expression `a + b`, then the cousin is `b`.
173
+ * Gets the sibling of this implicit conversion.
174
+ * E.g. if this is `a` in the expression `a + b`, then the sibling is `b`.
175
175
*/
176
- private Expr getCousin ( ) { result = parent .getAChild ( ) and not result = this .getEnclosingExpr ( ) }
176
+ private Expr getSibling ( ) { result = parent .getAChild ( ) and not result = this .getEnclosingExpr ( ) }
177
177
178
178
/**
179
- * Gets the unique type of the cousin expression, if that type is `string` or `number`.
179
+ * Gets the unique type of the sibling expression, if that type is `string` or `number`.
180
180
*/
181
- private string getDefiniteCousinType ( ) {
182
- result = unique( InferredType t | t = getCousin ( ) .flow ( ) .analyze ( ) .getAType ( ) ) .getTypeofTag ( ) and
181
+ private string getDefiniteSiblingType ( ) {
182
+ result = unique( InferredType t | t = getSibling ( ) .flow ( ) .analyze ( ) .getAType ( ) ) .getTypeofTag ( ) and
183
183
result = [ "string" , "number" ]
184
184
}
185
185
}
0 commit comments