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 05e6dd8 commit 2f13c65Copy full SHA for 2f13c65
swift/ql/lib/codeql/swift/controlflow/internal/ControlFlowGraphImpl.qll
@@ -100,7 +100,7 @@ module Stmts {
100
101
// Note: If the brace statement is the body of a `TapExpr`, the first element is the variable
102
// declaration (see https://github.com/apple/swift/blob/main/include/swift/AST/Expr.h#L848)
103
- // that's initialized by the `Tapxpr`. In `TapExprTre` we've already visited this declaration,
+ // that's initialized by the `TapExpr`. In `TapExprTree` we've already visited this declaration,
104
// along with its initializer. So we skip the first element here.
105
private AstNode getFirstElement() {
106
if this.isBodyOfTapExpr() then result = ast.getElement(1) else result = ast.getFirstElement()
0 commit comments