File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
csharp/ql/src/utils/modeleditor Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,17 @@ private import Telemetry.TestLibrary
9
9
10
10
/** Holds if the given callable is not worth supporting. */
11
11
private predicate isUninteresting ( Callable c ) {
12
- c .getDeclaringType ( ) instanceof TestLibrary or
13
- c .( Constructor ) .isParameterless ( ) or
12
+ c .getDeclaringType ( ) instanceof TestLibrary
13
+ or
14
+ c .( Constructor ) .isParameterless ( )
15
+ or
14
16
c .getDeclaringType ( ) instanceof AnonymousClass
17
+ or
18
+ // The data flow library uses read/store steps for properties, so we don't need to model them,
19
+ // if both a getter and a setter exist.
20
+ exists ( Property p | p = c .( Accessor ) .getDeclaration ( ) |
21
+ exists ( p .getSetter ( ) ) and exists ( p .getGetter ( ) )
22
+ )
15
23
}
16
24
17
25
/**
You can’t perform that action at this time.
0 commit comments