@@ -391,11 +391,11 @@ private Element interpretElement0(
391391 string namespace , string type , boolean subtypes , string name , string signature
392392) {
393393 elementSpec ( namespace , type , subtypes , name , signature , _) and
394- namespace = "" and // TODO: Fill out when we properly extract modules.
395394 (
396395 // Non-member functions
397396 exists ( Function func |
398397 func .getName ( ) = name and
398+ func .getNamespace ( ) .getQualifiedName ( ) = namespace and
399399 type = "" and
400400 matchesSignature ( func , signature ) and
401401 subtypes = false and
@@ -406,6 +406,7 @@ private Element interpretElement0(
406406 // Member functions
407407 exists ( Class namedClass , Class classWithMethod , Function method |
408408 classWithMethod = method .getClassAndName ( name ) and
409+ classWithMethod .getNamespace ( ) .getQualifiedName ( ) = namespace and
409410 namedClass .getName ( ) = type and
410411 matchesSignature ( method , signature ) and
411412 result = method
@@ -424,6 +425,7 @@ private Element interpretElement0(
424425 exists ( Class namedClass , Class classWithMember , MemberVariable member |
425426 member .getName ( ) = name and
426427 member = classWithMember .getAMember ( ) and
428+ classWithMember .getNamespace ( ) .getQualifiedName ( ) = namespace and
427429 namedClass .getName ( ) = type and
428430 result = member
429431 |
0 commit comments