File tree Expand file tree Collapse file tree
csharp/ql/src/utils/model-generator/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ class PropagateToSinkConfigurationSpecific extends TaintTracking::Configuration
5252
5353 override predicate isSource ( DataFlow:: Node source ) {
5454 ( isRelevantMemberAccess ( source ) or source instanceof DataFlow:: ParameterNode ) and
55- source .getEnclosingCallable ( ) .( Modifiable ) .isEffectivelyPublic ( ) and
5655 isRelevantForModels ( source .getEnclosingCallable ( ) )
5756 }
5857}
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ private import semmle.code.csharp.dataflow.internal.DataFlowDispatch
88/**
99 * Holds if it is relevant to generate models for `api`.
1010 */
11- predicate isRelevantForModels ( Callable api ) { not api instanceof Util:: MainMethod }
11+ predicate isRelevantForModels ( Callable api ) {
12+ [ api .( Modifiable ) , api .( Accessor ) .getDeclaration ( ) ] .isEffectivelyPublic ( ) and
13+ not api instanceof Util:: MainMethod
14+ }
1215
1316/**
1417 * A class of callables that are relevant generating summary, source and sinks models for.
@@ -18,7 +21,6 @@ predicate isRelevantForModels(Callable api) { not api instanceof Util::MainMetho
1821 */
1922class TargetApi extends DataFlowCallable {
2023 TargetApi ( ) {
21- [ this .( Modifiable ) , this .( Accessor ) .getDeclaration ( ) ] .isEffectivelyPublic ( ) and
2224 this .fromSource ( ) and
2325 isRelevantForModels ( this )
2426 }
You can’t perform that action at this time.
0 commit comments