Merge pull request #11623 from jcogs33/jcogs33/exclude-funcexpr-from-dataflowtargetapi

Java/C#: exclude `FunctionalExpr`s from `DataFlowTargetApi`
This commit is contained in:
Jami
2022-12-14 12:22:50 -05:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ private predicate isRelevantForModels(CS::Callable api) {
not api instanceof CS::ConversionOperator and
not api instanceof Util::MainMethod and
not api instanceof CS::Destructor and
not api instanceof CS::AnonymousFunctionExpr and
not api.(CS::Constructor).isParameterless()
}