Skip to content

Commit 91c1ec3

Browse files
Jami Cogswelljcogs33
authored andcommitted
C#: exclude AnonymousFunctionExpr from DataFlowTargetApi
1 parent 1c06378 commit 91c1ec3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp/ql/src/utils/modelgenerator/internal/CaptureModelsSpecific.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ private predicate isRelevantForModels(CS::Callable api) {
3838
api.getDeclaringType().getNamespace().getFullName() != "" and
3939
not api instanceof CS::ConversionOperator and
4040
not api instanceof Util::MainMethod and
41-
not api instanceof CS::Destructor
41+
not api instanceof CS::Destructor and
42+
not api instanceof CS::AnonymousFunctionExpr
4243
}
4344

4445
/**

0 commit comments

Comments
 (0)