File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
csharp/ql/consistency-queries Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import csharp
2
2
import cil
3
3
import semmle.code.csharp.dataflow.internal.DataFlowPrivate
4
4
import semmle.code.csharp.dataflow.internal.DataFlowPublic
5
+ import semmle.code.csharp.dataflow.internal.DataFlowDispatch
5
6
import semmle.code.csharp.dataflow.internal.DataFlowImplConsistency:: Consistency
6
7
7
8
private class MyConsistencyConfiguration extends ConsistencyConfiguration {
@@ -14,6 +15,15 @@ private class MyConsistencyConfiguration extends ConsistencyConfiguration {
14
15
)
15
16
}
16
17
18
+ override predicate uniqueCallEnclosingCallableExclude ( DataFlowCall call ) {
19
+ // TODO: Remove once static initializers are folded into the
20
+ // static constructors
21
+ exists ( ControlFlow:: Node cfn |
22
+ cfn .getElement ( ) = any ( FieldOrProperty f | f .isStatic ( ) ) .getAChild + ( ) and
23
+ cfn = call .getControlFlowNode ( )
24
+ )
25
+ }
26
+
17
27
override predicate uniqueNodeLocationExclude ( Node n ) {
18
28
// Methods with multiple implementations
19
29
n instanceof ParameterNode
You can’t perform that action at this time.
0 commit comments