@@ -22,12 +22,12 @@ TemplateClass getADependentBaseType(TemplateClass t) {
22
22
* base type and the function does not call that function.
23
23
*/
24
24
FunctionCall parentMemberFunctionCall ( TemplateClass t ) {
25
- exists ( TemplateClass dependentBaseType , MemberFunction parentFunction , Function other |
25
+ exists ( TemplateClass dependentBaseType , MemberFunction dependentTypeFunction , Function target |
26
26
dependentBaseType = getADependentBaseType ( t ) and
27
- not other = parentFunction and
28
- dependentBaseType .getAMember ( ) = parentFunction and
29
- other .getName ( ) = parentFunction .getName ( ) and
30
- result = other .getACallToThisFunction ( ) and
27
+ not target = dependentTypeFunction and
28
+ dependentBaseType .getAMember ( ) = dependentTypeFunction and
29
+ target .getName ( ) = dependentTypeFunction .getName ( ) and
30
+ result = target .getACallToThisFunction ( ) and
31
31
result .getEnclosingFunction ( ) = t .getAMemberFunction ( )
32
32
)
33
33
}
@@ -37,12 +37,12 @@ FunctionCall parentMemberFunctionCall(TemplateClass t) {
37
37
* as a `FunctionAccess` that exists in a child `MemberFunction`
38
38
*/
39
39
FunctionAccess parentMemberFunctionAccess ( TemplateClass t ) {
40
- exists ( TemplateClass dependentBaseType , MemberFunction parentFunction , Function other |
40
+ exists ( TemplateClass dependentBaseType , MemberFunction dependentTypeFunction , Function target |
41
41
dependentBaseType = getADependentBaseType ( t ) and
42
- not other = parentFunction and
43
- dependentBaseType .getAMember ( ) = parentFunction and
44
- other .getName ( ) = parentFunction .getName ( ) and
45
- result = other .getAnAccess ( ) and
42
+ not target = dependentTypeFunction and
43
+ dependentBaseType .getAMember ( ) = dependentTypeFunction and
44
+ target .getName ( ) = dependentTypeFunction .getName ( ) and
45
+ result = target .getAnAccess ( ) and
46
46
result .getEnclosingFunction ( ) = t .getAMemberFunction ( )
47
47
)
48
48
}
@@ -52,12 +52,14 @@ FunctionAccess parentMemberFunctionAccess(TemplateClass t) {
52
52
* as a `VariableAccess` that exists in a child `MemberFunction`
53
53
*/
54
54
Access parentMemberAccess ( TemplateClass t ) {
55
- exists ( TemplateClass dependentBaseType , MemberVariable parentMember , Variable other |
55
+ exists (
56
+ TemplateClass dependentBaseType , MemberVariable dependentTypeMemberVariable , Variable target
57
+ |
56
58
dependentBaseType = getADependentBaseType ( t ) and
57
- not other = parentMember and
58
- dependentBaseType .getAMemberVariable ( ) = parentMember and
59
- other .getName ( ) = parentMember .getName ( ) and
60
- result = other .getAnAccess ( ) and
59
+ not target = dependentTypeMemberVariable and
60
+ dependentBaseType .getAMemberVariable ( ) = dependentTypeMemberVariable and
61
+ target .getName ( ) = dependentTypeMemberVariable .getName ( ) and
62
+ result = target .getAnAccess ( ) and
61
63
result .getEnclosingFunction ( ) = t .getAMemberFunction ( )
62
64
)
63
65
}
0 commit comments