Skip to content

Commit 95c8541

Browse files
committed
Rename ForeachStmt to ForEachStmt
1 parent 43dfa1a commit 95c8541

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go/ql/lib/semmle/go/controlflow/ControlFlowGraphImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ module CfgImpl {
215215
AstNode getUpdate(int index) { index = 0 and result = this.(Go::ForStmt).getPost() }
216216
}
217217

218-
class ForeachStmt extends LoopStmt instanceof Go::RangeStmt {
218+
class ForEachStmt extends LoopStmt instanceof Go::RangeStmt {
219219
Expr getVariable() { result = this.(Go::RangeStmt).getPattern() }
220220

221221
Expr getCollection() { result = this.(Go::RangeStmt).getDomain() }
@@ -1489,7 +1489,7 @@ module CfgImpl {
14891489

14901490
private predicate rangeStmtStep(PreControlFlowNode n1, PreControlFlowNode n2) {
14911491
exists(Go::RangeElementExpr p |
1492-
// The shared `ForeachStmt` model owns the loop skeleton (testing the
1492+
// The shared `ForEachStmt` model owns the loop skeleton (testing the
14931493
// domain for emptiness, the `[LoopHeader]` join/branch point, and the
14941494
// loop exit) and routes control flow into `Before(p)` and out of
14951495
// `After(p)`, where `p` is the synthesized "range element" loop

0 commit comments

Comments
 (0)