Skip to content

Commit 403dee2

Browse files
committed
add Node#getALocalSource predicate
1 parent 56139cc commit 403dee2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ql/src/codeql_ruby/dataflow/internal/DataFlowPublic.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ class Node extends TNode {
3737
) {
3838
getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
3939
}
40+
41+
/**
42+
* Gets a local source node from which data may flow to this node in zero or more local data-flow steps.
43+
*/
44+
LocalSourceNode getALocalSource() { result.flowsTo(this) }
4045
}
4146

4247
/** A data-flow node corresponding to a call in the control-flow graph. */

0 commit comments

Comments
 (0)