Python: Rename getAnImmediateUse -> asSource

This commit is contained in:
Asger F
2022-06-13 09:59:24 +02:00
parent 60fde3c031
commit 181a53bd03
22 changed files with 48 additions and 56 deletions

View File

@@ -38,7 +38,7 @@ class MadSourceTest extends InlineExpectationsTest {
override predicate hasActualResult(Location location, string element, string tag, string value) {
exists(location.getFile().getRelativePath()) and
exists(DataFlow::Node source, string kind |
source = ModelOutput::getASourceNode(kind).getAnImmediateUse() and
source = ModelOutput::getASourceNode(kind).asSource() and
location = source.getLocation() and
element = source.toString() and
value = prettyNodeForInlineTest(source) and