@@ -854,14 +854,9 @@ private module MethodCalls {
854
854
private predicate directCall_join (
855
855
CallNode call , string functionName , Class cls , AttrRead attr , Node self
856
856
) {
857
- (
858
- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
859
- attr .accesses ( classTracker ( cls ) , functionName )
860
- or
861
- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
862
- attr .accesses ( classInstanceTracker ( cls ) , functionName )
863
- ) and
864
- attr .accesses ( self , functionName )
857
+ call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
858
+ attr .accesses ( self , functionName ) and
859
+ self in [ classTracker ( cls ) , classInstanceTracker ( cls ) ]
865
860
}
866
861
867
862
/**
@@ -886,14 +881,9 @@ private module MethodCalls {
886
881
private predicate callWithinMethodImplicitSelfOrCls_join (
887
882
CallNode call , string functionName , Class classWithMethod , AttrRead attr , Node self
888
883
) {
889
- (
890
- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
891
- attr .accesses ( clsTracker ( classWithMethod ) , functionName )
892
- or
893
- call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
894
- attr .accesses ( selfTracker ( classWithMethod ) , functionName )
895
- ) and
896
- attr .accesses ( self , functionName )
884
+ call .getFunction ( ) = attrReadTracker ( attr ) .asCfgNode ( ) and
885
+ attr .accesses ( self , functionName ) and
886
+ self in [ clsTracker ( classWithMethod ) , selfTracker ( classWithMethod ) ]
897
887
}
898
888
899
889
/**
0 commit comments