noob question, difference between DataFlow::Node and DataFlow::PathNode #138
-
That basically, Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Have a look at https://help.semmle.com/QL/learn-ql/writing-queries/path-queries.html |
Beta Was this translation helpful? Give feedback.
-
The answer above is a great TL;DR, for the slightly longer explanation, read on: |
Beta Was this translation helpful? Give feedback.
The answer above is a great TL;DR, for the slightly longer explanation, read on:
When building a query, modelling something, thinking about data flow, etc. you'll want to use
DataFlow::Node
. In general these corresponds to all the parts of the code that can carry a value and therefore make up the nodes in a simple data-flow graph. When using data flow you'll e.g. need to specify sources and sinks as certainDataFlow::Node
s.DataFlow::PathNode
s are not themselves directly useable for anything, but rather generated as an output of the data-flow library. When writing a path query the data-flow library will deliver the results in the form of ahasFlowPath(DataFlow::PathNode source, DataFlow::…