14 references to ExceptionUtilities
Microsoft.CodeAnalysis.Extensions.Package (14)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
271
throw
ExceptionUtilities
.UnexpectedValue(specialType);
387
_ => throw
ExceptionUtilities
.UnexpectedValue(enumUnderlyingType),
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1096
throw
ExceptionUtilities
.Unreachable();
1106
throw
ExceptionUtilities
.Unreachable();
src\Dependencies\Collections\TemporaryArray`1.cs (3)
317
_ => throw
ExceptionUtilities
.Unreachable(),
379
throw
ExceptionUtilities
.Unreachable();
432
throw
ExceptionUtilities
.Unreachable();
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
45
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
55
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
145
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
221
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
Symbols\ISymbolExtensions_Accessibility.cs (3)
171
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
241
throw
ExceptionUtilities
.UnexpectedValue(declaredAccessibility);
327
throw
ExceptionUtilities
.UnexpectedValue(declaredAccessibility);