mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a function for querying the isolation of an Initializer.
This commit is contained in:
@@ -28,6 +28,7 @@ class raw_ostream;
|
||||
|
||||
namespace swift {
|
||||
class DeclContext;
|
||||
class Initializer;
|
||||
class ModuleDecl;
|
||||
class VarDecl;
|
||||
class NominalTypeDecl;
|
||||
@@ -434,6 +435,10 @@ InferredActorIsolation getInferredActorIsolation(ValueDecl *value);
|
||||
ActorIsolation
|
||||
__AbstractClosureExpr_getActorIsolation(AbstractClosureExpr *CE);
|
||||
|
||||
/// Determine how the given initialization context is isolated.
|
||||
ActorIsolation getActorIsolation(Initializer *init,
|
||||
bool ignoreDefaultArguments = false);
|
||||
|
||||
/// Determine how the given declaration context is isolated.
|
||||
/// \p getClosureActorIsolation allows the specification of actor isolation for
|
||||
/// closures that haven't been saved been saved to the AST yet. This is useful
|
||||
|
||||
Reference in New Issue
Block a user