mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Distributed] Sema: Add a new distributed-thunk attribute
The attribute comes handy during solution application to determine whether the call is using a distributed thunk.
This commit is contained in:
@@ -1290,6 +1290,10 @@ bool AbstractFunctionDecl::isDistributed() const {
|
||||
return getAttrs().hasAttribute<DistributedActorAttr>();
|
||||
}
|
||||
|
||||
bool AbstractFunctionDecl::isDistributedThunk() const {
|
||||
return getAttrs().hasAttribute<DistributedThunkAttr>();
|
||||
}
|
||||
|
||||
ConstructorDecl *
|
||||
NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const {
|
||||
auto mutableThis = const_cast<NominalTypeDecl *>(this);
|
||||
|
||||
Reference in New Issue
Block a user