Ruby: Inline getAValueReachableFromSource

This commit is contained in:
Tom Hvitved
2022-09-07 20:28:38 +02:00
parent 95a9faf1f9
commit 0070662072

View File

@@ -97,6 +97,7 @@ module API {
* This is similar to `asSource()` but additionally includes nodes that are transitively reachable by data flow.
* See `asSource()` for examples.
*/
pragma[inline]
DataFlow::Node getAValueReachableFromSource() {
exists(DataFlow::LocalSourceNode src | Impl::use(this, src) |
Impl::trackUseNode(src).flowsTo(result)