Skip to content

Commit e9fdbfa

Browse files
committed
Swift: extract nextCall from ForEachStmt
1 parent 00c0ebe commit e9fdbfa

File tree

7 files changed

+53
-6
lines changed

7 files changed

+53
-6
lines changed

swift/extractor/translators/StmtTranslator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ codeql::ForEachStmt StmtTranslator::translateForEachStmt(const swift::ForEachStm
7676
entry.sequence = dispatcher.fetchLabel(stmt.getTypeCheckedSequence());
7777
entry.pattern = dispatcher.fetchLabel(stmt.getPattern());
7878
entry.where = dispatcher.fetchOptionalLabel(stmt.getWhere());
79+
entry.nextCall = dispatcher.fetchOptionalLabel(stmt.getNextCall());
7980
return entry;
8081
}
8182

swift/ql/.generated.list

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/generated/ParentChild.qll

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/generated/Raw.qll

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/codeql/swift/generated/stmt/ForEachStmt.qll

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/ql/lib/swift.dbscheme

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swift/schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ class ForEachStmt(LabeledStmt):
988988
pattern: Pattern | child
989989
sequence: Expr | child
990990
where: optional[Expr] | child
991+
nextCall: optional[Expr] | child
991992
body: BraceStmt | child
992993

993994
class LabeledConditionalStmt(LabeledStmt):

0 commit comments

Comments
 (0)