File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3597,7 +3597,6 @@ class EnumDecl final : public NominalTypeDecl {
3597
3597
3598
3598
friend class EnumRawValuesRequest ;
3599
3599
friend class EnumRawTypeRequest ;
3600
- friend class TypeChecker ;
3601
3600
3602
3601
public:
3603
3602
EnumDecl (SourceLoc EnumLoc, Identifier Name, SourceLoc NameLoc,
@@ -3883,7 +3882,6 @@ class ClassDecl final : public NominalTypeDecl {
3883
3882
friend class EmittedMembersRequest ;
3884
3883
friend class HasMissingDesignatedInitializersRequest ;
3885
3884
friend class InheritsSuperclassInitializersRequest ;
3886
- friend class TypeChecker ;
3887
3885
3888
3886
public:
3889
3887
ClassDecl (SourceLoc ClassLoc, Identifier Name, SourceLoc NameLoc,
@@ -4258,7 +4256,6 @@ class ProtocolDecl final : public NominalTypeDecl {
4258
4256
friend class ProtocolRequiresClassRequest ;
4259
4257
friend class ExistentialConformsToSelfRequest ;
4260
4258
friend class ExistentialTypeSupportedRequest ;
4261
- friend class TypeChecker ;
4262
4259
4263
4260
public:
4264
4261
ProtocolDecl (DeclContext *DC, SourceLoc ProtocolLoc, SourceLoc NameLoc,
Original file line number Diff line number Diff line change @@ -2229,8 +2229,15 @@ class ConstraintSystem {
2229
2229
// / constraint system for further exploration.
2230
2230
void applySolution (const Solution &solution);
2231
2231
2232
- // FIXME: Allows the type checker to apply solutions.
2233
- friend class swift ::TypeChecker;
2232
+ // FIXME: Perhaps these belong on ConstraintSystem itself.
2233
+ friend Optional<BraceStmt *>
2234
+ swift::TypeChecker::applyFunctionBuilderBodyTransform (FuncDecl *func,
2235
+ Type builderType);
2236
+ friend Optional<SolutionApplicationTarget>
2237
+ swift::TypeChecker::typeCheckExpression (SolutionApplicationTarget &target,
2238
+ bool &unresolvedTypeExprs,
2239
+ TypeCheckExprOptions options,
2240
+ ExprTypeCheckListener *listener);
2234
2241
2235
2242
// / Emit the fixes computed as part of the solution, returning true if we were
2236
2243
// / able to emit an error message, or false if none of the fixits worked out.
You can’t perform that action at this time.
0 commit comments