47 references to UnreachableException
aspire (1)
Commands\AgentInitCommand.cs (1)
390throw new UnreachableException($"Unexpected PlaywrightInstallStatus: {status}");
Aspire.Hosting.Azure.Network (1)
AzureSubnetResource.cs (1)
116throw new UnreachableException("AddressPrefix must be set either as a string or a ParameterResource.");
dotnet-aot (4)
parent\dotnet\Commands\Test\MTP\IPC\NamedPipeServer.cs (1)
135throw new UnreachableException(CliCommandStrings.DotnetTestPipeOverlapping);
parent\dotnet\Commands\Test\MTP\Terminal\TestProgressState.cs (3)
290throw new UnreachableException($"Unexpected test result for attempt '{currentAttemptNumber}' while the last attempt is '{value.LastAttemptNumber}'"); 429throw new UnreachableException($"Instance id '{instanceId}' was already registered for attempt '{registeredAttemptNumber}', not '{attemptNumber.Value}'."); 465: throw new UnreachableException($"The instanceId '{instanceId}' not found.");
ILAssembler (26)
GrammarVisitor.cs (26)
762public GrammarResult VisitAssemblyDecls(CILParser.AssemblyDeclsContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 784public GrammarResult VisitAssemblyRefDecls(CILParser.AssemblyRefDeclsContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 2422public GrammarResult VisitErrorNode(IErrorNode node) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 2425public GrammarResult VisitEsHead(CILParser.EsHeadContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 2494public GrammarResult VisitExptypeDecl(CILParser.ExptypeDeclContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 2756public GrammarResult VisitFaultClause(CILParser.FaultClauseContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 2931public GrammarResult VisitFieldOrProp(CILParser.FieldOrPropContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 3088public GrammarResult VisitFinallyClause(CILParser.FinallyClauseContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 3184GrammarResult ICILVisitor<GrammarResult>.VisitNativeInt(CILParser.NativeIntContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 3185GrammarResult ICILVisitor<GrammarResult>.VisitNativeUint(CILParser.NativeUintContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 3856public GrammarResult VisitLabels(CILParser.LabelsContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 3905public GrammarResult VisitManifestResDecl(CILParser.ManifestResDeclContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6145GrammarResult ICILVisitor<GrammarResult>.VisitOptionalModifier(CILParser.OptionalModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6146GrammarResult ICILVisitor<GrammarResult>.VisitSZArrayModifier(CILParser.SZArrayModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6147GrammarResult ICILVisitor<GrammarResult>.VisitRequiredModifier(CILParser.RequiredModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6148GrammarResult ICILVisitor<GrammarResult>.VisitPtrModifier(CILParser.PtrModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6149GrammarResult ICILVisitor<GrammarResult>.VisitPinnedModifier(CILParser.PinnedModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6150GrammarResult ICILVisitor<GrammarResult>.VisitGenericArgumentsModifier(CILParser.GenericArgumentsModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6151GrammarResult ICILVisitor<GrammarResult>.VisitByRefModifier(CILParser.ByRefModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6152GrammarResult ICILVisitor<GrammarResult>.VisitArrayModifier(CILParser.ArrayModifierContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6153public GrammarResult VisitNativeTypeArrayPointerInfo(CILParser.NativeTypeArrayPointerInfoContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6154public GrammarResult VisitPointerArrayTypeSize(CILParser.PointerArrayTypeSizeContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6155public GrammarResult VisitPointerArrayTypeParamIndex(CILParser.PointerArrayTypeParamIndexContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6156public GrammarResult VisitPointerNativeType(CILParser.PointerNativeTypeContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6157public GrammarResult VisitPointerArrayTypeSizeParamIndex(CILParser.PointerArrayTypeSizeParamIndexContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited); 6158public GrammarResult VisitPointerArrayTypeNoSizeData(CILParser.PointerArrayTypeNoSizeDataContext context) => throw new UnreachableException(NodeShouldNeverBeDirectlyVisited);
Microsoft.AspNetCore.Antiforgery (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\SSRRenderModeBoundary.cs (1)
221_ => throw new UnreachableException($"Unknown render mode {RenderMode.GetType().FullName}"),
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.DataProtection (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.HttpLogging (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
70throw new UnreachableException("RefPooledArrayBufferWriter does not support GetMemory");
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (3)
TlsEventPump.cs (1)
851throw new UnreachableException($"The DirectTls handshake path reported {nameof(TlsOperationStatus.NeedsCertificateValidation)} for fd={fd}.");
TlsEventPump.UserCallbacks.cs (2)
246throw new UnreachableException($"Pump {_id}: a user callback completed for fd={fd}, but the handshake it was parked on is gone or is parked on a different callback."); 327throw new UnreachableException($"Pump {_id}: unhandled handshake user callback type {callback.GetType()} for fd={fd}.");
Microsoft.Diagnostics.DataContractReader.Legacy (1)
SOSDacImpl.cs (1)
4223_ => throw new UnreachableException($"Unexpected {nameof(StackSourceType)}: {refs[i].SourceType}"),
Microsoft.Extensions.VectorData.Abstractions (4)
ProviderServices\CollectionModelBuilder.cs (1)
549throw new UnreachableException("EmbeddingType cannot be null when the property type is supported.");
ProviderServices\VectorPropertyModel.cs (2)
170null => throw new UnreachableException("This method should only be called when an embedding generator is configured."), 189null => throw new UnreachableException("This method should only be called when an embedding generator is configured."),
ProviderServices\VectorPropertyModel{TInput}.cs (1)
45null => throw new UnreachableException("This method should only be called when an embedding generator is configured."),