17 references to ExceptionUtilities
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (17)
BuildHost.cs (1)
182
_ => throw
ExceptionUtilities
.UnexpectedValue(languageName)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
649
throw
ExceptionUtilities
.Unreachable();
659
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (3)
314
_ => throw
ExceptionUtilities
.Unreachable(),
376
throw
ExceptionUtilities
.Unreachable();
429
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
185
throw
ExceptionUtilities
.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\EmptyComparer.cs (1)
24
=> throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
43
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
53
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
142
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
218
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51
=> throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\RoslynParallel.cs (2)
34
throw
ExceptionUtilities
.Unreachable();
41
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (2)
76
return ReadIfInitialized() ?? throw
ExceptionUtilities
.Unreachable();
79
throw
ExceptionUtilities
.UnexpectedValue(unexpectedValue);