Skip to content

Commit f32d77b

Browse files
committed
Swift: Add QLDoc.
1 parent 68cdc3b commit f32d77b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

swift/ql/lib/codeql/swift/controlflow/CfgNodes.qll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,24 @@ class CallExprCfgNode extends ApplyExprCfgNode {
180180
override CallExpr e;
181181
}
182182

183+
/** A control-flow node that wraps a key-path application. */
183184
class KeyPathApplicationExprCfgNode extends ExprCfgNode {
184185
override KeyPathApplicationExpr e;
185186

187+
/**
188+
* Gets the control-flow node that wraps the key-path of
189+
* this control-flow element.
190+
*/
186191
CfgNode getKeyPath() { result.getAst() = e.getKeyPath() }
187192

193+
/**
194+
* Gets the control-flow node that wraps the base of
195+
* this control-flow element.
196+
*/
188197
CfgNode getBase() { result.getAst() = e.getBase() }
189198
}
190199

200+
/** A control-flow node that wraps a key-path expression. */
191201
class KeyPathExprCfgNode extends ExprCfgNode {
192202
override KeyPathExpr e;
193203
}

0 commit comments

Comments
 (0)