File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -639,7 +639,10 @@ module API {
639
639
isUse ( src ) and
640
640
t .start ( )
641
641
or
642
- exists ( TypeTracker t2 | result = trackUseNode ( src , t2 ) .track ( t2 , t ) )
642
+ exists ( TypeTracker t2 |
643
+ result = trackUseNode ( src , t2 ) .track ( t2 , t ) and
644
+ not result instanceof DataFlowPrivate:: SelfParameterNode
645
+ )
643
646
}
644
647
645
648
/**
@@ -658,7 +661,11 @@ module API {
658
661
isDef ( rhs ) and
659
662
result = rhs .getALocalSource ( )
660
663
or
661
- exists ( TypeBackTracker t2 | result = trackDefNode ( rhs , t2 ) .backtrack ( t2 , t ) )
664
+ exists ( TypeBackTracker t2 , DataFlow:: LocalSourceNode mid |
665
+ mid = trackDefNode ( rhs , t2 ) and
666
+ not mid instanceof DataFlowPrivate:: SelfParameterNode and
667
+ result = mid .backtrack ( t2 , t )
668
+ )
662
669
}
663
670
664
671
/** Gets a data flow node reaching the RHS of the given def node. */
You can’t perform that action at this time.
0 commit comments