Python: move code and harmonize comments

This commit is contained in:
Rasmus Lerchedahl Petersen
2022-09-22 09:18:21 +02:00
parent 69640f3c20
commit 7f610405a0

View File

@@ -746,6 +746,10 @@ module API {
lbl = Label::return() and
ref = pred.getACall()
or
// Awaiting a node that is a use of `base`
lbl = Label::await() and
ref = pred.getAnAwaited()
or
// Subclassing a node
lbl = Label::subclass() and
exists(PY::ClassExpr clsExpr, DataFlow::Node superclass | pred.flowsTo(superclass) |
@@ -759,10 +763,6 @@ module API {
ref.(DataFlow::ExprNode).getNode().getNode() = clsExpr.getADecoratorCall()
)
)
or
// awaiting
lbl = Label::await() and
ref = pred.getAnAwaited()
)
or
exists(DataFlow::Node def, PY::CallableExpr fn |