Skip to content

Commit 4ef137b

Browse files
committed
Make TypeChecker's Context and Diags fields private
1 parent f92c96a commit 4ef137b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/TypeChecker.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,6 @@ enum class FunctionBuilderClosurePreCheck : uint8_t {
545545
/// type checking, and semantic analysis to produce a type-annotated AST.
546546
class TypeChecker final {
547547
public:
548-
ASTContext &Context;
549-
DiagnosticEngine &Diags;
550-
551548
/// The list of function definitions we've encountered.
552549
std::vector<AbstractFunctionDecl *> definedFunctions;
553550

@@ -556,6 +553,9 @@ class TypeChecker final {
556553
std::vector<AbstractClosureExpr *> ClosuresWithUncomputedCaptures;
557554

558555
private:
556+
ASTContext &Context;
557+
DiagnosticEngine &Diags;
558+
559559
/// The set of expressions currently being analyzed for failures.
560560
llvm::DenseMap<Expr*, Expr*> DiagnosedExprs;
561561

0 commit comments

Comments
 (0)