Skip to content

Commit 5dc9919

Browse files
committed
[ConstraintSystem] NFC: Make SemaTest a friend of ConstraintSystem
This is necessary in order to have access to private members of a `ConstraintSystem` for testing purposes, such as logic related to potential binding computation.
1 parent d011bf3 commit 5dc9919

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ class SolutionApplicationTarget;
6666

6767
} // end namespace constraints
6868

69+
namespace unittest {
70+
71+
class SemaTest;
72+
73+
} // end namespace unittest
74+
6975
// Forward declare some TypeChecker related functions
7076
// so they could be made friends of ConstraintSystem.
7177
namespace TypeChecker {
@@ -2018,6 +2024,8 @@ enum class SolutionApplicationToFunctionResult {
20182024
class ConstraintSystem {
20192025
ASTContext &Context;
20202026

2027+
friend class swift::unittest::SemaTest;
2028+
20212029
public:
20222030
DeclContext *DC;
20232031
ConstraintSystemOptions Options;

0 commit comments

Comments
 (0)