We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffff10a commit aac6cf6Copy full SHA for aac6cf6
swift/ql/lib/codeql/swift/elements/expr/CaptureListExpr.qll
@@ -6,6 +6,7 @@ class CaptureListExpr extends Generated::CaptureListExpr {
6
override string toString() { result = this.getClosureBody().toString() }
7
8
override VarDecl getVariable(int index) {
9
+ // all capture binding declarations consist of a single named pattern
10
result = this.getBindingDecl(index).getPattern(0).(NamedPattern).getVarDecl()
11
}
12
0 commit comments