We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5323af3 commit c12c2a5Copy full SHA for c12c2a5
1 file changed
csharp/ql/src/utils/modeleditor/ModelEditor.qll
@@ -9,9 +9,17 @@ private import Telemetry.TestLibrary
9
10
/** Holds if the given callable is not worth supporting. */
11
private predicate isUninteresting(Callable c) {
12
- c.getDeclaringType() instanceof TestLibrary or
13
- c.(Constructor).isParameterless() or
+ c.getDeclaringType() instanceof TestLibrary
+ or
14
+ c.(Constructor).isParameterless()
15
16
c.getDeclaringType() instanceof AnonymousClass
17
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
+ )
23
}
24
25
/**
0 commit comments