File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
csharp/ql/src/utils/model-generator/internal Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -17,34 +17,14 @@ module TaintTracking = CS::TaintTracking;
17
17
18
18
class Type = CS:: Type ;
19
19
20
- /**
21
- * Holds if `api` is an override or an interface implementation that
22
- * is irrelevant to the data flow analysis.
23
- */
24
- private predicate isIrrelevantOverrideOrImplementation ( CS:: Callable api ) {
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 ( ) )
36
- )
37
- }
38
-
39
20
/**
40
21
* Holds if it is relevant to generate models for `api`.
41
22
*/
42
23
private predicate isRelevantForModels ( CS:: Callable api ) {
43
24
[ api .( CS:: Modifiable ) , api .( CS:: Accessor ) .getDeclaration ( ) ] .isEffectivelyPublic ( ) and
44
25
api .getDeclaringType ( ) .getNamespace ( ) .getQualifiedName ( ) != "" and
45
26
not api instanceof CS:: ConversionOperator and
46
- not api instanceof Util:: MainMethod and
47
- not isIrrelevantOverrideOrImplementation ( api )
27
+ not api instanceof Util:: MainMethod
48
28
}
49
29
50
30
/**
You can’t perform that action at this time.
0 commit comments