mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Swift: add explicative comment
This commit is contained in:
@@ -6,6 +6,7 @@ class CaptureListExpr extends Generated::CaptureListExpr {
|
||||
override string toString() { result = this.getClosureBody().toString() }
|
||||
|
||||
override VarDecl getVariable(int index) {
|
||||
// all capture binding declarations consist of a single named pattern
|
||||
result = this.getBindingDecl(index).getPattern(0).(NamedPattern).getVarDecl()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user