@@ -269,7 +269,7 @@ private predicate elementSpec(
269269 UnboundValueOrRefType t
270270) {
271271 elementSpec ( namespace , type , subtypes , name , signature , ext ) and
272- QN :: hasQualifiedName ( t , namespace , type )
272+ hasQualifiedTypeName ( t , namespace , type )
273273}
274274
275275private class UnboundValueOrRefType extends ValueOrRefType {
@@ -337,7 +337,7 @@ Declaration interpretBaseDeclaration(string namespace, string type, string name,
337337 exists ( UnboundValueOrRefType t | elementSpec ( namespace , type , _, name , signature , _, t ) |
338338 result =
339339 any ( Declaration d |
340- QN :: hasQualifiedName ( d , namespace , type , name ) and
340+ hasQualifiedMethodName ( d , namespace , type , name ) and
341341 (
342342 signature = ""
343343 or
@@ -439,6 +439,19 @@ private module QualifiedNameInput implements QualifiedNameInputSig {
439439
440440private module QN = QualifiedName< QualifiedNameInput > ;
441441
442+ /** Holds if declaration `d` has the qualified name `qualifier`.`name`. */
443+ predicate hasQualifiedTypeName ( Type t , string namespace , string type ) {
444+ QN:: hasQualifiedName ( t , namespace , type )
445+ }
446+
447+ /**
448+ * Holds if declaration `d` has name `name` and is defined in type `type`
449+ * with namespace `namespace`.
450+ */
451+ predicate hasQualifiedMethodName ( Declaration d , string namespace , string type , string name ) {
452+ QN:: hasQualifiedName ( d , namespace , type , name )
453+ }
454+
442455pragma [ nomagic]
443456private string parameterQualifiedType ( Parameter p ) {
444457 exists ( string qualifier , string name |
0 commit comments