@@ -1973,15 +1973,6 @@ class PatternBindingEntry {
19731973 SourceRange getOriginalInitRange () const ;
19741974 void setInit (Expr *E);
19751975
1976- // / Get the required actor isolation for evaluating the initializer
1977- // / expression synchronously (if there is one).
1978- // /
1979- // / If this pattern binding entry is for a stored instance property, the
1980- // / initializer can only be used in an `init` that meets the required
1981- // / isolation; otherwise, the property must be explicitly initialized in
1982- // / the `init`.
1983- ActorIsolation getInitializerIsolation () const ;
1984-
19851976 // / Gets the text of the initializer expression, stripping out inactive
19861977 // / branches of any #ifs inside the expression.
19871978 StringRef getInitStringRepresentation (SmallVectorImpl<char > &scratch) const ;
@@ -2235,10 +2226,6 @@ class PatternBindingDecl final : public Decl,
22352226 getMutablePatternList ()[i].setOriginalInit (E);
22362227 }
22372228
2238- ActorIsolation getInitializerIsolation (unsigned i) const {
2239- return getPatternList ()[i].getInitializerIsolation ();
2240- }
2241-
22422229 Pattern *getPattern (unsigned i) const {
22432230 return getPatternList ()[i].getPattern ();
22442231 }
@@ -5986,6 +5973,19 @@ class VarDecl : public AbstractStorageDecl {
59865973 return getParentExecutableInitializer () != nullptr ;
59875974 }
59885975
5976+ // / Get the required actor isolation for evaluating the initializer
5977+ // / expression synchronously (if there is one).
5978+ // /
5979+ // / If this VarDecl is a stored instance property, the initializer
5980+ // / can only be used in an `init` that meets the required isolation.
5981+ // / Otherwise, the property must be explicitly initialized in the `init`.
5982+ // /
5983+ // / If this is a ParamDecl, the initializer isolation is required at
5984+ // / the call-site in order to use the default argument for this parameter.
5985+ // / If the required isolation is not met, an argument must be written
5986+ // / explicitly at the call-site.
5987+ ActorIsolation getInitializerIsolation () const ;
5988+
59895989 // Return whether this VarDecl has an initial value, either by checking
59905990 // if it has an initializer in its parent pattern binding or if it has
59915991 // the @_hasInitialValue attribute.
@@ -6428,11 +6428,6 @@ class ParamDecl : public VarDecl {
64286428 // / at the call site in order to have the correct context information.
64296429 Expr *getTypeCheckedDefaultExpr () const ;
64306430
6431- // / The actor isolation required of the caller in order to use the
6432- // / default argument for this parameter. If the required isolation is
6433- // / not met, an argument must be written explicitly at the call-site.
6434- ActorIsolation getDefaultArgumentIsolation () const ;
6435-
64366431 // / Retrieve the potentially un-type-checked default argument expression for
64376432 // / this parameter, which can be queried for information such as its source
64386433 // / range and textual representation. Returns \c nullptr if there is no
0 commit comments