Skip to content

Commit

Permalink
[Sema] Remove TypeChecker::diagnose[WithNotes]
Browse files Browse the repository at this point in the history
This will discourage future uses of the TypeChecker
to emit diagnostics.
  • Loading branch information
hamishknight committed Nov 8, 2019
1 parent 56d07d1 commit 82565e8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/Sema/TypeChecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -708,18 +708,6 @@ class TypeChecker final {
this->InImmediateMode = InImmediateMode;
}

template<typename ...ArgTypes>
InFlightDiagnostic diagnose(ArgTypes &&...Args) {
return Diags.diagnose(std::forward<ArgTypes>(Args)...);
}

void diagnoseWithNotes(InFlightDiagnostic parentDiag,
llvm::function_ref<void(void)> builder) {
CompoundDiagnosticTransaction transaction(Diags);
parentDiag.flush();
builder();
}

static Type getArraySliceType(SourceLoc loc, Type elementType);
static Type getDictionaryType(SourceLoc loc, Type keyType, Type valueType);
static Type getOptionalType(SourceLoc loc, Type elementType);
Expand Down

0 comments on commit 82565e8

Please sign in to comment.