18 references to ExceptionUtilities
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (18)
BuildHost.cs (2)
165_ => throw ExceptionUtilities.UnexpectedValue(languageName) 185_ => throw ExceptionUtilities.UnexpectedValue(languageName)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
186throw ExceptionUtilities.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\EmptyComparer.cs (1)
23=> throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51=> throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\RoslynParallel.cs (2)
35throw ExceptionUtilities.Unreachable(); 42throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (2)
77return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 80throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
721throw ExceptionUtilities.Unreachable(); 731throw ExceptionUtilities.Unreachable();
src\Dependencies\Collections\TemporaryArray`1.cs (3)
316_ => throw ExceptionUtilities.Unreachable(), 378throw ExceptionUtilities.Unreachable(); 431throw ExceptionUtilities.Unreachable();
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
45throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 55throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
145if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException) 221if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)