|
@@ -308,13 +308,13 @@ static auto ResolveNames(Statement& statement, StaticScope& enclosing_scope)
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
case StatementKind::Continuation: {
|
|
case StatementKind::Continuation: {
|
|
|
|
|
+ StaticScope continuation_scope;
|
|
|
|
|
+ continuation_scope.AddParent(&enclosing_scope);
|
|
|
auto& continuation = cast<Continuation>(statement);
|
|
auto& continuation = cast<Continuation>(statement);
|
|
|
|
|
+ CARBON_RETURN_IF_ERROR(
|
|
|
|
|
+ ResolveNames(continuation.body(), continuation_scope));
|
|
|
CARBON_RETURN_IF_ERROR(
|
|
CARBON_RETURN_IF_ERROR(
|
|
|
enclosing_scope.Add(continuation.name(), &continuation));
|
|
enclosing_scope.Add(continuation.name(), &continuation));
|
|
|
- StaticScope continuation_scope;
|
|
|
|
|
- continuation_scope.AddParent(&enclosing_scope);
|
|
|
|
|
- CARBON_RETURN_IF_ERROR(ResolveNames(cast<Continuation>(statement).body(),
|
|
|
|
|
- continuation_scope));
|
|
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
case StatementKind::Run:
|
|
case StatementKind::Run:
|