fix: add parTraverse semantics back in

This commit is contained in:
2025-03-14 18:28:02 +00:00
parent 8b6e959d11
commit 8dd23f9e5c

View File

@@ -27,7 +27,7 @@ object semantics {
toRename = (main +: chunks).toList toRename = (main +: chunks).toList
res <- toRename res <- toRename
.zip(scope.subscopes(toRename.size)) .zip(scope.subscopes(toRename.size))
.traverse(checkFunc) .parTraverse(checkFunc)
(typedChunks, errors) = res.foldLeft((Chain.empty[microWacc.FuncDecl], Chain.empty[Error])) { (typedChunks, errors) = res.foldLeft((Chain.empty[microWacc.FuncDecl], Chain.empty[Error])) {
case ((acc, err), (funcDecl, errors)) => case ((acc, err), (funcDecl, errors)) =>
(acc :+ funcDecl, err ++ errors) (acc :+ funcDecl, err ++ errors)