File tree Expand file tree Collapse file tree
csharp/ql/src/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2986,7 +2986,7 @@ class PathNode extends TPathNode {
29862986 Configuration getConfiguration ( ) { none ( ) }
29872987
29882988 private predicate isHidden ( ) {
2989- nodeIsHidden ( this .getNode ( ) ) and
2989+ hiddenNode ( this .getNode ( ) ) and
29902990 not this .isSource ( ) and
29912991 not this instanceof PathNodeSink
29922992 }
Original file line number Diff line number Diff line change @@ -244,6 +244,14 @@ private DataFlowCallable viableCallableExt(DataFlowCall call) {
244244
245245cached
246246private module Cached {
247+ /**
248+ * If needed, call this predicate from `DataFlowImplSpecific.qll` in order to
249+ * force a stage-dependency on the `DataFlowImplCommon.qll` stage and therby
250+ * collapsing the two stages.
251+ */
252+ cached
253+ predicate forceCachingInSameStage ( ) { any ( ) }
254+
247255 cached
248256 predicate nodeEnclosingCallable ( Node n , DataFlowCallable c ) { c = n .getEnclosingCallable ( ) }
249257
@@ -271,6 +279,9 @@ private module Cached {
271279 n .( PostUpdateNode ) .getPreUpdateNode ( ) instanceof ArgumentNodeExt
272280 }
273281
282+ cached
283+ predicate hiddenNode ( Node n ) { nodeIsHidden ( n ) }
284+
274285 cached
275286 OutNodeExt getAnOutNodeExt ( DataFlowCall call , ReturnKindExt k ) {
276287 result = getAnOutNode ( call , k .( ValueReturnKind ) .getKind ( ) )
You can’t perform that action at this time.
0 commit comments