@@ -24,17 +24,10 @@ query predicate multiplePathResolutions(Path p, ItemNode i) {
2424 strictcount ( ItemNode i0 | i0 = resolvePath ( p ) and not i0 instanceof Crate ) > 1
2525}
2626
27- // TODO: Take other calls into account
28- abstract private class CallExprBase extends ArgsExpr { }
29-
30- private class CallExprCallExprBase extends CallExpr , CallExprBase { }
31-
32- private class MethodCallExprCallExprBase extends MethodCallExpr , CallExprBase { }
33-
34- /** Holds if `call` has multiple static call targets including `target`. */
35- query predicate multipleCallTargets ( CallExprBase call , Callable target ) {
36- target = call .getResolvedTarget ( ) and
37- strictcount ( call .getResolvedTarget ( ) ) > 1
27+ /** Holds if `ae` has multiple resolved targets including `target`. */
28+ query predicate multipleResolvedTargets ( ArgsExpr ae , Addressable target ) {
29+ target = ae .getResolvedTarget ( ) and
30+ strictcount ( ae .getResolvedTarget ( ) ) > 1
3831}
3932
4033/** Holds if `fe` resolves to multiple record fields including `field`. */
@@ -62,8 +55,8 @@ int getPathResolutionInconsistencyCounts(string type) {
6255 type = "Multiple path resolutions" and
6356 result = count ( Path p | multiplePathResolutions ( p , _) | p )
6457 or
65- type = "Multiple static call targets" and
66- result = count ( CallExprBase call | multipleCallTargets ( call , _) | call )
58+ type = "Multiple resolved targets" and
59+ result = count ( ArgsExpr ae | multipleResolvedTargets ( ae , _) | ae )
6760 or
6861 type = "Multiple record fields" and
6962 result = count ( FieldExpr fe | multipleStructFields ( fe , _) | fe )
0 commit comments