@@ -284,7 +284,7 @@ private predicate elementSpec(
284284 UnboundValueOrRefType t
285285) {
286286 elementSpec ( namespace , type , subtypes , name , signature , ext ) and
287- QN :: hasQualifiedName ( t , namespace , type )
287+ hasQualifiedTypeName ( t , namespace , type )
288288}
289289
290290private class UnboundValueOrRefType extends ValueOrRefType {
@@ -352,7 +352,7 @@ Declaration interpretBaseDeclaration(string namespace, string type, string name,
352352 exists ( UnboundValueOrRefType t | elementSpec ( namespace , type , _, name , signature , _, t ) |
353353 result =
354354 any ( Declaration d |
355- QN :: hasQualifiedName ( d , namespace , type , name ) and
355+ hasQualifiedMethodName ( d , namespace , type , name ) and
356356 (
357357 signature = ""
358358 or
@@ -458,6 +458,19 @@ private module QualifiedNameInput implements QualifiedNameInputSig {
458458
459459private module QN = QualifiedName< QualifiedNameInput > ;
460460
461+ /** Holds if declaration `d` has the qualified name `qualifier`.`name`. */
462+ predicate hasQualifiedTypeName ( Type t , string namespace , string type ) {
463+ QN:: hasQualifiedName ( t , namespace , type )
464+ }
465+
466+ /**
467+ * Holds if declaration `d` has name `name` and is defined in type `type`
468+ * with namespace `namespace`.
469+ */
470+ predicate hasQualifiedMethodName ( Declaration d , string namespace , string type , string name ) {
471+ QN:: hasQualifiedName ( d , namespace , type , name )
472+ }
473+
461474pragma [ nomagic]
462475private string parameterQualifiedType ( Parameter p ) {
463476 exists ( string qualifier , string name |
0 commit comments