File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
ruby/ql/lib/codeql/ruby/dataflow/internal Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,14 @@ abstract class Configuration extends string {
170
170
*/
171
171
int explorationLimit ( ) { none ( ) }
172
172
173
+ /**
174
+ * Holds if hidden nodes should be included in the data flow graph.
175
+ *
176
+ * This feature should only be used for debugging or when the data flow graph
177
+ * is not visualized (for example in a `path-problem` query).
178
+ */
179
+ predicate includeHiddenNodes ( ) { none ( ) }
180
+
173
181
/**
174
182
* Holds if there is a partial data flow path from `source` to `node`. The
175
183
* approximate distance between `node` and the closest source is `dist` and
@@ -3815,11 +3823,14 @@ abstract private class PathNodeImpl extends PathNode {
3815
3823
abstract NodeEx getNodeEx ( ) ;
3816
3824
3817
3825
predicate isHidden ( ) {
3818
- hiddenNode ( this .getNodeEx ( ) .asNode ( ) ) and
3819
- not this .isSource ( ) and
3820
- not this instanceof PathNodeSink
3821
- or
3822
- this .getNodeEx ( ) instanceof TNodeImplicitRead
3826
+ not this .getConfiguration ( ) .includeHiddenNodes ( ) and
3827
+ (
3828
+ hiddenNode ( this .getNodeEx ( ) .asNode ( ) ) and
3829
+ not this .isSource ( ) and
3830
+ not this instanceof PathNodeSink
3831
+ or
3832
+ this .getNodeEx ( ) instanceof TNodeImplicitRead
3833
+ )
3823
3834
}
3824
3835
3825
3836
private string ppAp ( ) {
You can’t perform that action at this time.
0 commit comments