File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
csharp/ql/src/utils/model-generator/internal Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,18 @@ class Type = CS::Type;
22
22
* is irrelevant to the data flow analysis.
23
23
*/
24
24
private predicate isIrrelevantOverrideOrImplementation ( CS:: Callable api ) {
25
- exists ( System:: SystemObjectClass c |
26
- api = c .getGetHashCodeMethod ( ) .getAnOverrider * ( ) or
27
- api = c .getEqualsMethod ( ) .getAnOverrider * ( )
25
+ exists ( CS:: Callable exclude , CS:: Method m |
26
+ (
27
+ api = m .getAnOverrider * ( ) .getUnboundDeclaration ( )
28
+ or
29
+ api = m .getAnUltimateImplementor ( ) .getUnboundDeclaration ( )
30
+ ) and
31
+ exclude = m .getUnboundDeclaration ( )
32
+ |
33
+ exists ( System:: SystemObjectClass c | exclude = [ c .getGetHashCodeMethod ( ) , c .getEqualsMethod ( ) ] )
34
+ or
35
+ exists ( System:: SystemIEquatableTInterface i | exclude = i .getEqualsMethod ( ) )
28
36
)
29
- or
30
- exists ( System:: IEquatableEqualsMethod equals | equals = api )
31
37
}
32
38
33
39
/**
You can’t perform that action at this time.
0 commit comments