Skip to content

Commit

Permalink
Merge pull request #64449 from CyrusNajmabadi/mergeFixes
Browse files Browse the repository at this point in the history
Update to use new internal API
  • Loading branch information
CyrusNajmabadi committed Oct 3, 2022
2 parents ef7d1cf + 93753ed commit af24e70
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal abstract class AbstractUnitTestingDocumentDifferenceService : IUnitTest
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static void LogIncrementalAnalyzerProcessorStatistics(int correlationId,
}
else
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected override bool TryTakeAnyWork_NoLock(
return true;
}

throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}

private DocumentId GetBestDocumentId_NoLock(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected override bool TryTakeAnyWork_NoLock(
return true;
}

throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}

protected override bool AddOrReplace_NoLock(UnitTestingWorkItem item)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected static ProjectId GetBestProjectId_NoLock<T>(
return pair.Key;
}

throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ await RunAnalyzersAsync(analyzers, document, workItem, (analyzer, document, canc
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
}

Expand All @@ -389,7 +389,7 @@ await RunAnalyzersAsync(analyzers, document, workItem, (analyzer, document, canc
catch (Exception e) when (FatalError.ReportAndPropagate(e))
{
// TODO: manage bad workers like what code actions does now
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}

static bool ReportWithoutCrashUnlessAllCanceledAndPropagate(AggregateException aggregate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected override async Task ExecuteAsync()
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
}

Expand Down Expand Up @@ -184,7 +184,7 @@ await Processor.RunAnalyzersAsync(analyzers, project, workItem,
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
finally
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected override async Task ExecuteAsync()
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
finally
{
Expand Down Expand Up @@ -298,7 +298,7 @@ private async Task<bool> TryProcessOneHigherPriorityDocumentAsync()
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
}

Expand Down Expand Up @@ -383,7 +383,7 @@ private async Task ProcessDocumentAsync(ImmutableArray<IUnitTestingIncrementalAn
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}
finally
{
Expand Down Expand Up @@ -505,7 +505,7 @@ await Processor.RunAnalyzersAsync(reanalyzers, sourceDocument, workItem,
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}

return;
Expand Down Expand Up @@ -577,7 +577,7 @@ await Processor.RunAnalyzersAsync(
}
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
{
throw ExceptionUtilities.Unreachable;
throw ExceptionUtilities.Unreachable();
}

return;
Expand Down

0 comments on commit af24e70

Please sign in to comment.