Python: remove control flow nodes

for module entry definitions from the dataflow graph.
This commit is contained in:
Rasmus Lerchedahl Petersen
2023-12-06 21:47:03 +01:00
committed by Rasmus Wriedt Larsen
parent e050f2e998
commit c563c7fbe4

View File

@@ -30,7 +30,7 @@ newtype TNode =
or
node.getNode() instanceof Pattern
or
node = any(ScopeEntryDefinition def).getDefiningNode()
node = any(ScopeEntryDefinition def | not def.getScope() instanceof Module).getDefiningNode()
} or
/**
* A synthetic node representing the value of an object before a state change.