Skip to content

Commit 1a8e317

Browse files
committed
Python: fix shared CFG facade CI checks
Document the public expression adapter and apply the canonical QL annotation ordering required by the formatter. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 529363f5-bc7d-4f0b-9f47-e03ba9aa0cdf
1 parent 432c2d3 commit 1a8e317

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • python/ql/lib/semmle/python/controlflow/internal

python/ql/lib/semmle/python/controlflow/internal/Cfg.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class ControlFlowNode extends CfgImpl::ControlFlowNode {
3939
exists(CfgImpl::Ast::AstNode n | this.injects(n) | result = CfgImpl::astNodeToPyNode(n))
4040
}
4141

42+
/** Gets the Python expression corresponding to this flow node, if any. */
4243
Py::Expr asPyExpr() { result = this.getNode() }
4344

4445
/** Gets a predecessor of this flow node. */
@@ -85,14 +86,14 @@ class ControlFlowNode extends CfgImpl::ControlFlowNode {
8586
}
8687

8788
/** Holds if this strictly dominates `other`. */
88-
overlay[caller?]
8989
bindingset[this, other]
90+
overlay[caller?]
9091
pragma[inline_late]
9192
predicate strictlyDominates(ControlFlowNode other) { super.strictlyDominates(other) }
9293

9394
/** Holds if this dominates `other` (reflexively). */
94-
overlay[caller?]
9595
bindingset[this, other]
96+
overlay[caller?]
9697
pragma[inline_late]
9798
predicate dominates(ControlFlowNode other) { super.dominates(other) }
9899

0 commit comments

Comments
 (0)