@@ -1955,15 +1955,6 @@ class PatternBindingEntry {
19551955 SourceRange getOriginalInitRange () const ;
19561956 void setInit (Expr *E);
19571957
1958- // / Get the required actor isolation for evaluating the initializer
1959- // / expression synchronously (if there is one).
1960- // /
1961- // / If this pattern binding entry is for a stored instance property, the
1962- // / initializer can only be used in an `init` that meets the required
1963- // / isolation; otherwise, the property must be explicitly initialized in
1964- // / the `init`.
1965- ActorIsolation getInitializerIsolation () const ;
1966-
19671958 // / Gets the text of the initializer expression, stripping out inactive
19681959 // / branches of any #ifs inside the expression.
19691960 StringRef getInitStringRepresentation (SmallVectorImpl<char > &scratch) const ;
@@ -2212,10 +2203,6 @@ class PatternBindingDecl final : public Decl,
22122203 getMutablePatternList ()[i].setOriginalInit (E);
22132204 }
22142205
2215- ActorIsolation getInitializerIsolation (unsigned i) const {
2216- return getPatternList ()[i].getInitializerIsolation ();
2217- }
2218-
22192206 Pattern *getPattern (unsigned i) const {
22202207 return getPatternList ()[i].getPattern ();
22212208 }
@@ -5948,6 +5935,19 @@ class VarDecl : public AbstractStorageDecl {
59485935 return getParentExecutableInitializer () != nullptr ;
59495936 }
59505937
5938+ // / Get the required actor isolation for evaluating the initializer
5939+ // / expression synchronously (if there is one).
5940+ // /
5941+ // / If this VarDecl is a stored instance property, the initializer
5942+ // / can only be used in an `init` that meets the required isolation.
5943+ // / Otherwise, the property must be explicitly initialized in the `init`.
5944+ // /
5945+ // / If this is a ParamDecl, the initializer isolation is required at
5946+ // / the call-site in order to use the default argument for this parameter.
5947+ // / If the required isolation is not met, an argument must be written
5948+ // / explicitly at the call-site.
5949+ ActorIsolation getInitializerIsolation () const ;
5950+
59515951 // Return whether this VarDecl has an initial value, either by checking
59525952 // if it has an initializer in its parent pattern binding or if it has
59535953 // the @_hasInitialValue attribute.
@@ -6390,11 +6390,6 @@ class ParamDecl : public VarDecl {
63906390 // / at the call site in order to have the correct context information.
63916391 Expr *getTypeCheckedDefaultExpr () const ;
63926392
6393- // / The actor isolation required of the caller in order to use the
6394- // / default argument for this parameter. If the required isolation is
6395- // / not met, an argument must be written explicitly at the call-site.
6396- ActorIsolation getDefaultArgumentIsolation () const ;
6397-
63986393 // / Retrieve the potentially un-type-checked default argument expression for
63996394 // / this parameter, which can be queried for information such as its source
64006395 // / range and textual representation. Returns \c nullptr if there is no
0 commit comments