@@ -287,7 +287,7 @@ private predicate elementSpec(
287
287
bindingset [ namespace, type, subtypes]
288
288
private RefType interpretType ( string namespace , string type , boolean subtypes ) {
289
289
exists ( RefType t |
290
- [ t , t . getSourceDeclaration ( ) ] .hasQualifiedName ( namespace , type ) and
290
+ t .hasQualifiedName ( namespace , type ) and
291
291
if subtypes = true then result .getASourceSupertype * ( ) = t else result = t
292
292
)
293
293
}
@@ -409,21 +409,27 @@ private predicate outputNeedsReference(string c) {
409
409
private predicate sourceElementRef ( Top ref , string output , string kind ) {
410
410
exists ( Element e |
411
411
sourceElement ( e , output , kind ) and
412
- if outputNeedsReference ( getLast ( output ) ) then ref .( Call ) .getCallee ( ) = e else ref = e
412
+ if outputNeedsReference ( getLast ( output ) )
413
+ then ref .( Call ) .getCallee ( ) .getSourceDeclaration ( ) = e
414
+ else ref = e
413
415
)
414
416
}
415
417
416
418
private predicate sinkElementRef ( Top ref , string input , string kind ) {
417
419
exists ( Element e |
418
420
sinkElement ( e , input , kind ) and
419
- if inputNeedsReference ( getLast ( input ) ) then ref .( Call ) .getCallee ( ) = e else ref = e
421
+ if inputNeedsReference ( getLast ( input ) )
422
+ then ref .( Call ) .getCallee ( ) .getSourceDeclaration ( ) = e
423
+ else ref = e
420
424
)
421
425
}
422
426
423
427
private predicate summaryElementRef ( Top ref , string input , string output , string kind ) {
424
428
exists ( Element e |
425
429
summaryElement ( e , input , output , kind ) and
426
- if inputNeedsReference ( getLast ( input ) ) then ref .( Call ) .getCallee ( ) = e else ref = e
430
+ if inputNeedsReference ( getLast ( input ) )
431
+ then ref .( Call ) .getCallee ( ) .getSourceDeclaration ( ) = e
432
+ else ref = e
427
433
)
428
434
}
429
435
0 commit comments