Python: Use ImportExp instead of SSA nodes

This also reverts the previous commit.
It should be squashed with that one, but for now we keep the history,
so we can track the performance tests.
This commit is contained in:
Rasmus Lerchedahl Petersen
2020-12-18 13:30:24 +01:00
parent 638fcab12d
commit 712765c185
2 changed files with 2 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ class TypeTracker extends TTypeTracker {
* heap and/or inter-procedural step from `nodeFrom` to `nodeTo`.
*/
pragma[inline]
TypeTracker step(Node nodeFrom, Node nodeTo) {
TypeTracker step(LocalSourceNode nodeFrom, Node nodeTo) {
exists(StepSummary summary |
StepSummary::step(nodeFrom, nodeTo, summary) and
result = this.append(summary)

View File

@@ -46,7 +46,7 @@ Node importNode(string name) {
or
name = alias.getValue().(ImportExpr).getImportedModuleName()
) and
result.(EssaNode).getVar().(AssignmentDefinition).getSourceVariable() = var
result.asExpr() = alias.getValue()
)
or
// Although it may seem superfluous to consider the `foo` part of `from foo import bar as baz` to