[TypeChecker] Split for-in sequence into parsed and type-checked versions

This commit is contained in:
Pavel Yaskevich
2022-05-20 13:55:19 -07:00
parent 5f0dcb572b
commit b7860ea055
17 changed files with 64 additions and 49 deletions

View File

@@ -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)) {