C#: exclude AnonymousFunctionExpr from DataFlowTargetApi

This commit is contained in:
Jami Cogswell
2022-12-08 10:22:53 -05:00
committed by Jami
parent 1c06378a53
commit 91c1ec3be6

View File

@@ -38,7 +38,8 @@ private predicate isRelevantForModels(CS::Callable api) {
api.getDeclaringType().getNamespace().getFullName() != "" and
not api instanceof CS::ConversionOperator and
not api instanceof Util::MainMethod and
not api instanceof CS::Destructor
not api instanceof CS::Destructor and
not api instanceof CS::AnonymousFunctionExpr
}
/**