mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
implemented parsing and typechecking for @actorIndependent(unsafe)
[broken] first impl of @actorIndependent in the type checker. [broken] fixed mistake in my parsing code wrt invalid source range [broken] found another spot where ActorIndependent needs custom handling [broken] incomplete set of @actorIndependent(unsafe) tests updates to ActorIndependentUnsafe [fixed] add FIXME plus simple handling of IndependentUnsafe context finished @actorIndependent(unsafe) regression tests added wip serialization / deserialization test focus test to just one actor class round-trip serialize/deserialize test for @actorIndependent serialize -> deserialize -> serialize -> compare to original most of doug's comments addressed robert's comments fix printing bug; add module printing to regression test [nfc] update comment for ActorIsolation::IndependentUnsafe
This commit is contained in:
@@ -2294,6 +2294,14 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
return;
|
||||
}
|
||||
|
||||
case DAK_ActorIndependent: {
|
||||
auto *theAttr = cast<ActorIndependentAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[ActorIndependentDeclAttrLayout::Code];
|
||||
ActorIndependentDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord,
|
||||
abbrCode, (unsigned)theAttr->getKind());
|
||||
return;
|
||||
}
|
||||
|
||||
case DAK_Optimize: {
|
||||
auto *theAttr = cast<OptimizeAttr>(DA);
|
||||
auto abbrCode = S.DeclTypeAbbrCodes[OptimizeDeclAttrLayout::Code];
|
||||
|
||||
Reference in New Issue
Block a user