Skip to content

Commit 47ac54b

Browse files
committed
Swift: autoformat DataFlowPrivate
1 parent 8f797c7 commit 47ac54b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ private class KeyPathComponentNodeImpl extends TKeyPathComponentNode, NodeImpl {
5858
KeyPathComponent getComponent() { result = component }
5959
}
6060

61-
private class KeyPathComponentPostUpdateNode extends TKeyPathComponentPostUpdateNode, NodeImpl, PostUpdateNodeImpl {
61+
private class KeyPathComponentPostUpdateNode extends TKeyPathComponentPostUpdateNode, NodeImpl,
62+
PostUpdateNodeImpl
63+
{
6264
KeyPathComponent component;
6365

6466
KeyPathComponentPostUpdateNode() { this = TKeyPathComponentPostUpdateNode(component) }
@@ -256,11 +258,10 @@ private module Cached {
256258
nodeTo.(KeyPathComponentNodeImpl).getComponent() =
257259
nodeFrom.(KeyPathParameterNode).getComponent(0)
258260
or
259-
nodeFrom.(KeyPathComponentPostUpdateNode).getComponent() =
261+
nodeFrom.(KeyPathComponentPostUpdateNode).getComponent() =
260262
nodeTo.(KeyPathParameterPostUpdateNode).getComponent(0)
261263
or
262264
// Flow to the result of a keypath assignment
263-
// TODO: is there a cleaner way to do this?
264265
exists(KeyPathApplicationExpr apply, AssignExpr assign |
265266
apply = assign.getDest() and
266267
nodeTo.asExpr() = apply and

0 commit comments

Comments
 (0)