File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
csharp/ql/src/utils/model-generator/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ private import semmle.code.csharp.commons.Util as Util
7
7
private import semmle.code.csharp.commons.Collections as Collections
8
8
private import semmle.code.csharp.dataflow.internal.DataFlowDispatch
9
9
private import semmle.code.csharp.frameworks.System as System
10
+ private import semmle.code.csharp.frameworks.system.linq.Expressions
10
11
import semmle.code.csharp.dataflow.ExternalFlow as ExternalFlow
11
12
import semmle.code.csharp.dataflow.internal.DataFlowImplCommon as DataFlowImplCommon
12
13
import semmle.code.csharp.dataflow.internal.DataFlowPrivate as DataFlowPrivate
@@ -22,7 +23,7 @@ class Type = CS::Type;
22
23
*/
23
24
private predicate isHigherOrder ( CS:: Callable api ) {
24
25
exists ( Type t | t = api .getAParameter ( ) .getType ( ) .getUnboundDeclaration ( ) |
25
- t instanceof System :: SystemFuncDelegateType
26
+ t instanceof SystemLinqExpressions :: DelegateExtType
26
27
)
27
28
}
28
29
@@ -55,6 +56,8 @@ predicate asPartialModel = DataFlowPrivate::Csv::asPartialModel/1;
55
56
/**
56
57
* Holds for type `t` for fields that are relevant as an intermediate
57
58
* read or write step in the data flow analysis.
59
+ * That is, flow through any data-flow node that does not have a relevant type
60
+ * will be excluded.
58
61
*/
59
62
predicate isRelevantType ( CS:: Type t ) {
60
63
not t instanceof CS:: SimpleType and
You can’t perform that action at this time.
0 commit comments