Merge pull request #468 from xiemaisi/js/has{Path,Flow}+

JavaScript: Rename `hasPathFlow` to `hasFlowPath` for consistency with other languages.
This commit is contained in:
Asger F
2018-11-14 16:48:47 +00:00
committed by GitHub
31 changed files with 43 additions and 34 deletions

View File

@@ -189,7 +189,7 @@ abstract class Configuration extends string {
predicate hasFlow(DataFlow::Node source, DataFlow::Node sink) {
isSource(_, this, _) and isSink(_, this, _) and
exists (SourcePathNode flowsource, SinkPathNode flowsink |
hasPathFlow(flowsource, flowsink) and
hasFlowPath(flowsource, flowsink) and
source = flowsource.getNode() and
sink = flowsink.getNode()
)
@@ -198,10 +198,19 @@ abstract class Configuration extends string {
/**
* Holds if data may flow from `source` to `sink` for this configuration.
*/
predicate hasPathFlow(SourcePathNode source, SinkPathNode sink) {
predicate hasFlowPath(SourcePathNode source, SinkPathNode sink) {
flowsTo(source, _, sink, _, this)
}
/**
* DEPRECATED: Use `hasFlowPath` instead.
*
* Holds if data may flow from `source` to `sink` for this configuration.
*/
deprecated predicate hasPathFlow(SourcePathNode source, SinkPathNode sink) {
hasFlowPath(source, sink)
}
/**
* DEPRECATED: Use `hasFlow` instead.
*