File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
csharp/ql/src/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2986,7 +2986,7 @@ class PathNode extends TPathNode {
2986
2986
Configuration getConfiguration ( ) { none ( ) }
2987
2987
2988
2988
private predicate isHidden ( ) {
2989
- nodeIsHidden ( this .getNode ( ) ) and
2989
+ hiddenNode ( this .getNode ( ) ) and
2990
2990
not this .isSource ( ) and
2991
2991
not this instanceof PathNodeSink
2992
2992
}
Original file line number Diff line number Diff line change @@ -244,6 +244,14 @@ private DataFlowCallable viableCallableExt(DataFlowCall call) {
244
244
245
245
cached
246
246
private 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
+
247
255
cached
248
256
predicate nodeEnclosingCallable ( Node n , DataFlowCallable c ) { c = n .getEnclosingCallable ( ) }
249
257
@@ -271,6 +279,9 @@ private module Cached {
271
279
n .( PostUpdateNode ) .getPreUpdateNode ( ) instanceof ArgumentNodeExt
272
280
}
273
281
282
+ cached
283
+ predicate hiddenNode ( Node n ) { nodeIsHidden ( n ) }
284
+
274
285
cached
275
286
OutNodeExt getAnOutNodeExt ( DataFlowCall call , ReturnKindExt k ) {
276
287
result = getAnOutNode ( call , k .( ValueReturnKind ) .getKind ( ) )
You can’t perform that action at this time.
0 commit comments