Python: format ql

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-08-05 14:16:50 +02:00
parent 9312b42e79
commit 2639e68a0d

View File

@@ -268,12 +268,11 @@ predicate readStep(Node nodeFrom, Content c, Node nodeTo) {
// Seems to need extractor changes to write this part properly
nodeFrom.(CfgNode).getNode().(SequenceNode).getNode().getParentNode() = comp and
colocated(f.getIter(), comp) and
nodeTo.(EssaNode).getVar().getDefinition().(AssignmentDefinition).getDefiningNode().getNode() = f.getTarget()
nodeTo.(EssaNode).getVar().getDefinition().(AssignmentDefinition).getDefiningNode().getNode() =
f.getTarget()
)
}
/** This should not be necessary */
predicate colocated(AstNode n1, AstNode n2) {
n1.getLocation().getFile() = n2.getLocation().getFile() and