File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
rust/ql/src/queries/telemetry Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ private class RelevantFile extends File {
2121module CallTargetStats implements StatsSig {
2222 int getNumberOfOk ( ) {
2323 result =
24- count ( CallExprBase c | c .getFile ( ) instanceof RelevantFile and exists ( c .getStaticTarget ( ) ) )
24+ count ( CallExprBase c |
25+ c .getFile ( ) instanceof RelevantFile and
26+ c .( Resolvable ) .hasResolvedPath ( )
27+ )
2528 }
2629
2730 private predicate isLambdaCall ( CallExpr call ) {
@@ -33,7 +36,7 @@ module CallTargetStats implements StatsSig {
3336
3437 additional predicate isNotOkCall ( CallExprBase c ) {
3538 c .getFile ( ) instanceof RelevantFile and
36- not exists ( c . getStaticTarget ( ) ) and
39+ not c . ( Resolvable ) . hasResolvedPath ( ) and
3740 not isLambdaCall ( c )
3841 }
3942
You can’t perform that action at this time.
0 commit comments