mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user