Python: Rename getAUse -> getAValueReachableFromSource

This commit is contained in:
Asger F
2022-06-13 10:02:14 +02:00
parent 181a53bd03
commit b096f9ec72
25 changed files with 103 additions and 65 deletions

View File

@@ -24,7 +24,7 @@ private DataFlow::Node getNode(API::Node nd, string kind) {
result = nd.asSink()
or
kind = "use" and
result = nd.getAUse()
result = nd.getAValueReachableFromSource()
}
private string getLocStr(Location loc) {

View File

@@ -9,7 +9,7 @@ class ApiUseTest extends InlineExpectationsTest {
override string getARelevantTag() { result = "use" }
private predicate relevant_node(API::Node a, DataFlow::Node n, Location l) {
n = a.getAUse() and l = n.getLocation()
n = a.getAValueReachableFromSource() and l = n.getLocation()
}
override predicate hasActualResult(Location location, string element, string tag, string value) {