mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[TypeChecker] Split for-in sequence into parsed and type-checked versions
This commit is contained in:
@@ -747,8 +747,8 @@ std::pair<bool, Stmt *> ModelASTWalker::walkToStmtPre(Stmt *S) {
|
||||
charSourceRangeFromSourceRange(SM, ElemRange));
|
||||
}
|
||||
}
|
||||
if (ForEachS->getSequence())
|
||||
addExprElem(SyntaxStructureElementKind::Expr, ForEachS->getSequence(),SN);
|
||||
if (auto *S = ForEachS->getParsedSequence())
|
||||
addExprElem(SyntaxStructureElementKind::Expr, S, SN);
|
||||
pushStructureNode(SN, S);
|
||||
|
||||
} else if (auto *WhileS = dyn_cast<WhileStmt>(S)) {
|
||||
|
||||
Reference in New Issue
Block a user