677 references to ExceptionUtilities
Microsoft.CodeAnalysis (677)
CodeGen\ArrayMembers.cs (3)
137throw ExceptionUtilities.UnexpectedValue(id); 368throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 374throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
CodeGen\ILBuilder.cs (1)
1155throw ExceptionUtilities.UnexpectedValue(scopeType);
CodeGen\ILBuilderConversions.cs (3)
323throw ExceptionUtilities.UnexpectedValue(fromPredefTypeKind); 348throw ExceptionUtilities.UnexpectedValue(fromPredefTypeKind); 354throw ExceptionUtilities.UnexpectedValue(toPredefTypeKind);
CodeGen\ILBuilderEmit.cs (2)
617throw ExceptionUtilities.UnexpectedValue(discriminator); 716throw ExceptionUtilities.UnexpectedValue(value);
CodeGen\ILOpCodeExtensions.cs (3)
40throw ExceptionUtilities.UnexpectedValue(opcode); 469throw ExceptionUtilities.UnexpectedValue(opcode); 733throw ExceptionUtilities.UnexpectedValue(opcode);
CodeGen\LocalDefinition.cs (2)
109get { throw ExceptionUtilities.Unreachable(); } 117get { throw ExceptionUtilities.Unreachable(); }
CodeGen\LocalScopeManager.cs (2)
229throw ExceptionUtilities.Unreachable(); 806throw ExceptionUtilities.UnexpectedValue(handlerScope.Type);
CodeGen\PrivateImplementationDetails.cs (10)
660get { throw ExceptionUtilities.Unreachable(); } 679throw ExceptionUtilities.Unreachable(); 702get { throw ExceptionUtilities.Unreachable(); } 708throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 714throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 859get { throw ExceptionUtilities.Unreachable(); } 888throw ExceptionUtilities.Unreachable(); 897throw ExceptionUtilities.Unreachable(); 905throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 911throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
CodeGen\SignatureOnlyLocalDefinition.cs (6)
31get { throw ExceptionUtilities.Unreachable(); } 36get { throw ExceptionUtilities.Unreachable(); } 57get { throw ExceptionUtilities.Unreachable(); } 62get { throw ExceptionUtilities.Unreachable(); } 67get { throw ExceptionUtilities.Unreachable(); } 78get { throw ExceptionUtilities.Unreachable(); }
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
510throw ExceptionUtilities.UnexpectedValue(branchCode);
Collections\ImmutableArrayExtensions.cs (2)
649throw ExceptionUtilities.Unreachable(); 659throw ExceptionUtilities.Unreachable();
Collections\Rope.cs (5)
101throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 144throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 155throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 176throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 200throw ExceptionUtilities.UnexpectedValue(v.GetType().Name);
Collections\TemporaryArray`1.cs (3)
314_ => throw ExceptionUtilities.Unreachable(), 376throw ExceptionUtilities.Unreachable(); 429throw ExceptionUtilities.Unreachable();
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
139throw ExceptionUtilities.UnexpectedValue(tokenKind); 305throw ExceptionUtilities.UnexpectedValue(tokenKind); 403throw ExceptionUtilities.UnexpectedValue(lastChar);
Compilation.EmitStreamProvider.cs (1)
68throw ExceptionUtilities.Unreachable();
Compilation\Compilation.cs (3)
2289throw ExceptionUtilities.UnexpectedValue(platform); 2387throw ExceptionUtilities.UnexpectedValue(outputKind); 2408throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
315throw ExceptionUtilities.UnexpectedValue(m); 339throw ExceptionUtilities.UnexpectedValue(reference);
Compilation\OptimizationLevel.cs (1)
60_ => throw ExceptionUtilities.UnexpectedValue(optimization)
ConstantValue.cs (6)
435throw ExceptionUtilities.UnexpectedValue(discriminator); 485ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.UnexpectedValue(Discriminator), 486_ => throw ExceptionUtilities.UnexpectedValue(Discriminator) 540default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 807default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 835_ => throw ExceptionUtilities.UnexpectedValue(Discriminator)
CryptographicHashProvider.cs (4)
60throw ExceptionUtilities.UnexpectedValue(algorithmId); 76throw ExceptionUtilities.UnexpectedValue(algorithmId); 108throw ExceptionUtilities.UnexpectedValue(algorithmId); 270throw ExceptionUtilities.UnexpectedValue(constant.Discriminator);
Diagnostic\Diagnostic.cs (1)
545throw ExceptionUtilities.UnexpectedValue(reportAction);
Diagnostic\DiagnosticDescriptor.cs (2)
262throw ExceptionUtilities.UnexpectedValue(severity); 281throw ExceptionUtilities.UnexpectedValue(severity);
Diagnostic\DiagnosticFormatter.cs (1)
100throw ExceptionUtilities.UnexpectedValue(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (2)
120throw ExceptionUtilities.UnexpectedValue(type); 457throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalysisResultBuilder.cs (2)
123throw ExceptionUtilities.Unreachable(); 143throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1571throw ExceptionUtilities.Unreachable(); 1630throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (3)
809throw ExceptionUtilities.Unreachable(); 1093throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString()); 1289throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228throw ExceptionUtilities.UnexpectedValue(_scope);
DocumentationComments\XmlDocumentationCommentTextReader.XmlStream.cs (2)
147throw ExceptionUtilities.Unreachable(); 153throw ExceptionUtilities.Unreachable();
EmbeddedText.cs (1)
378throw ExceptionUtilities.Unreachable();
Emit\CommonPEModuleBuilder.cs (1)
1096throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (29)
99=> throw ExceptionUtilities.Unreachable(); 102=> throw ExceptionUtilities.Unreachable(); 105=> throw ExceptionUtilities.Unreachable(); 108=> throw ExceptionUtilities.Unreachable(); 111=> throw ExceptionUtilities.Unreachable(); 114=> throw ExceptionUtilities.Unreachable(); 117=> throw ExceptionUtilities.Unreachable(); 120=> throw ExceptionUtilities.Unreachable(); 123=> throw ExceptionUtilities.Unreachable(); 126=> throw ExceptionUtilities.Unreachable(); 129=> throw ExceptionUtilities.Unreachable(); 132=> throw ExceptionUtilities.Unreachable(); 135=> throw ExceptionUtilities.Unreachable(); 138=> throw ExceptionUtilities.Unreachable(); 141=> throw ExceptionUtilities.Unreachable(); 144=> throw ExceptionUtilities.Unreachable(); 147=> throw ExceptionUtilities.Unreachable(); 150=> throw ExceptionUtilities.Unreachable(); 153=> throw ExceptionUtilities.Unreachable(); 156=> throw ExceptionUtilities.Unreachable(); 159=> throw ExceptionUtilities.Unreachable(); 162=> throw ExceptionUtilities.Unreachable(); 165=> throw ExceptionUtilities.Unreachable(); 168=> throw ExceptionUtilities.Unreachable(); 171=> throw ExceptionUtilities.Unreachable(); 174=> throw ExceptionUtilities.Unreachable(); 177=> throw ExceptionUtilities.Unreachable(); 181=> throw ExceptionUtilities.Unreachable(); 185=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
41=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
86=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (6)
33=> throw ExceptionUtilities.Unreachable(); 77public ITypeDefinition ContainingTypeDefinition => throw ExceptionUtilities.Unreachable(); 115=> throw ExceptionUtilities.Unreachable(); 134=> throw ExceptionUtilities.Unreachable(); 144throw ExceptionUtilities.Unreachable(); 150throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (9)
61=> throw ExceptionUtilities.Unreachable(); 108=> throw ExceptionUtilities.Unreachable(); 111=> throw ExceptionUtilities.Unreachable(); 114=> throw ExceptionUtilities.Unreachable(); 117=> throw ExceptionUtilities.Unreachable(); 120=> throw ExceptionUtilities.Unreachable(); 123=> throw ExceptionUtilities.Unreachable(); 126=> throw ExceptionUtilities.Unreachable(); 129=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
537throw ExceptionUtilities.UnexpectedValue(change); 1439throw ExceptionUtilities.UnexpectedValue(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
212throw ExceptionUtilities.UnexpectedValue(generatorChange); 278throw ExceptionUtilities.UnexpectedValue(containerChange); 410throw ExceptionUtilities.UnexpectedValue(edit.Kind);
Emit\EditAndContinue\SymbolMatcher.cs (1)
144value.Name, value.UniqueIndex, (Cci.ITypeDefinition?)MapDefinition(value.Type) ?? throw ExceptionUtilities.UnexpectedValue(value.Type))));
Emit\ErrorType.cs (2)
196throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 202throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedMember.cs (4)
112throw ExceptionUtilities.Unreachable(); 117throw ExceptionUtilities.Unreachable(); 125throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 131throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedParameter.cs (3)
214throw ExceptionUtilities.Unreachable(); 277throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 283throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedType.cs (3)
553throw ExceptionUtilities.Unreachable(); 721throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 727throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (3)
211throw ExceptionUtilities.Unreachable(); 242throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 248throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\VtblGap.cs (2)
262throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 268throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
EnumConstantHelper.cs (1)
111throw ExceptionUtilities.UnexpectedValue(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
185throw ExceptionUtilities.UnexpectedValue(kind);
Generated\Operations.Generated.cs (328)
4013_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4028throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4044throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4068_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4083throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4099throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4132_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4150throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4169throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4226_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4250throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4275throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4314_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4340throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4367throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4418_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4448throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4479throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4529_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4542throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4556throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4576internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4590internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4615_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4628throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4642throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4673_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4689throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4706throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4742_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4763throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4785throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4820_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4836throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4877_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4890throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4904throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4935_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4951throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4968throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4982internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4996internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5025_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5043throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5062throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5080internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5113_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5126throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5140throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5176_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5194throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5213throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5243_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5261throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5280throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5302internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5321internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5359_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5372throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5386throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5415_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5428throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5442throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5474_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5492throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5511throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5538_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5551throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5565throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5601_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5614throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5628throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5673_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5689throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5706throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5744_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5763throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5783throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5817_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5833throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5850throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5876_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5889throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5903throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5936_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5954throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5973throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5998_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6011throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6025throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6055_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6073throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6092throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6111internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6140_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6153throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6167throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6192_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6205throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6219throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6259_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6275throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6292throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6334_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6350throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6367throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6393_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6406throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6420throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6452_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6468throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6485throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6515_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6531throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6548throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6565internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6591_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6606throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6622throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6647_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6662throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6678throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6703_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6718throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6734throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6764_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6780throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6797throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6823_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6836throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6850throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6877_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6892throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6908throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6939_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6952throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6966throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6991_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7004throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7018throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7043_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7056throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7070throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7088internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7107internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7127internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7152_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7165throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7179throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7209_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7225throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7242throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7278_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7291throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7305throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7330_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7343throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7357throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7383_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7399throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7416throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7441_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7454throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7468throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7485internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7520_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7533throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7547throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7567_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7580throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7594throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7618_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7645throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7669_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7682throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7696throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7720_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7735throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7751throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7782_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7800throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7819throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7853_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7876throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7900throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7934_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7947throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7961throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7999_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8018throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8038throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8071_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8091throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8112throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8136internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8166_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8182throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8199throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8228_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8244throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8261throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8287_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8300throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8314throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8338_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8351throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8365throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8394_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8407throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8421throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8455_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8474throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8494throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8529_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8542throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8556throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8578internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8610_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8626throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8643throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8677_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8693throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8710throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8742_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8761throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8781throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8800internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8826_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8839throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8875internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8901_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8914throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8928throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8945internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8964internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8990_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9006throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9023throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9057_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9073throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9090throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9116_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9131throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9147throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9176_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9194throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9213throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9248_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9268throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9289throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9303internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9335_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9353throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9372throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9408_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9427throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9447throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9476_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9492throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9509throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9539_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9555throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9572throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9603_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9619throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9636throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9661_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9674throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9688throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9707internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9736_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9752throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9769throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9797_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9810throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9824throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9848_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9861throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9875throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9906_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9922throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9939throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9957internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9983_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9996throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10010throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10042_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10058throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10075throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10109_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10125throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10142throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10171_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10187throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10204throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10229_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10242throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10256throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10276internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10306_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10324throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10343throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10373_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10388throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10404throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10430_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10443throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10457throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10491_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10507throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10524throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10543internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10567_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10580throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10594throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10624_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10640throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10657throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10684_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10699throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10715throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10744_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10757throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10771throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10790public override IOperation DefaultVisit(IOperation operation, object? argument) => throw ExceptionUtilities.Unreachable();
InternalUtilities\EmptyComparer.cs (1)
24=> throw ExceptionUtilities.Unreachable();
InternalUtilities\FailFast.cs (2)
43throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 53throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
InternalUtilities\FatalError.cs (1)
142if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51=> throw ExceptionUtilities.Unreachable();
InternalUtilities\RoslynParallel.cs (2)
34throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable();
InternalUtilities\SingleInitNullable.cs (2)
76return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 79throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
MemberDescriptor.cs (2)
112throw ExceptionUtilities.UnexpectedValue(memberKind); 205throw ExceptionUtilities.UnexpectedValue(typeCode);
MetadataReader\MetadataDecoder.cs (1)
464throw ExceptionUtilities.UnexpectedValue(handle.Kind);
MetadataReader\MetadataHelpers.cs (2)
256throw ExceptionUtilities.UnexpectedValue(c); 353throw ExceptionUtilities.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73throw ExceptionUtilities.UnexpectedValue(typeCode); 135throw ExceptionUtilities.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (8)
1263_ => throw ExceptionUtilities.UnexpectedValue(kind) 1283throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1776throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1825throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1839throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1872throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1921throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3327throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
134throw ExceptionUtilities.UnexpectedValue(_contentType);
MetadataReference\MetadataImageReference.cs (1)
36throw ExceptionUtilities.Unreachable();
NativePdbWriter\PdbWriter.cs (1)
444throw ExceptionUtilities.Unreachable();
Operations\ControlFlowGraphBuilder.cs (41)
339throw ExceptionUtilities.UnexpectedValue(branch.Kind); 428throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 448throw ExceptionUtilities.Unreachable(); 484throw ExceptionUtilities.UnexpectedValue(@catch.Kind); 604throw ExceptionUtilities.UnexpectedValue(region.Kind); 1312throw ExceptionUtilities.Unreachable(); 2275throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3818throw ExceptionUtilities.Unreachable(); 3843throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5228throw ExceptionUtilities.Unreachable(); 5631throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5651throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 5666throw ExceptionUtilities.Unreachable(); 5671throw ExceptionUtilities.Unreachable(); 5676throw ExceptionUtilities.Unreachable(); 5681throw ExceptionUtilities.Unreachable(); 5686throw ExceptionUtilities.Unreachable(); 5691throw ExceptionUtilities.Unreachable(); 5886throw ExceptionUtilities.Unreachable(); 5892throw ExceptionUtilities.Unreachable(); 5898throw ExceptionUtilities.Unreachable(); 5903throw ExceptionUtilities.Unreachable(); 5908throw ExceptionUtilities.Unreachable(); 5913throw ExceptionUtilities.Unreachable(); 5918throw ExceptionUtilities.Unreachable(); 6268throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6340throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6461throw ExceptionUtilities.Unreachable(); 6571throw ExceptionUtilities.Unreachable(); 6908throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6920throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6950throw ExceptionUtilities.Unreachable(); 6955throw ExceptionUtilities.Unreachable(); 6994throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7068throw ExceptionUtilities.UnexpectedValue(element.Kind); 7082throw ExceptionUtilities.Unreachable(); 7087throw ExceptionUtilities.Unreachable(); 7534throw ExceptionUtilities.Unreachable(); 7868throw ExceptionUtilities.Unreachable(); 7873throw ExceptionUtilities.Unreachable(); 7878throw ExceptionUtilities.Unreachable();
Operations\ControlFlowRegion.cs (1)
142throw ExceptionUtilities.UnexpectedValue(kind);
Operations\OperationCloner.cs (4)
52throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable(); 62throw ExceptionUtilities.Unreachable(); 67throw ExceptionUtilities.Unreachable();
Operations\OperationNodes.cs (22)
33_ => throw ExceptionUtilities.UnexpectedValue((slot, index)) 51throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 61_ => throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)) 104_ => throw ExceptionUtilities.UnexpectedValue((slot, index)) 122throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 132_ => throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)) 163internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 271_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 294throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 318throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 349_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 372throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 396throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 435_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 458throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 482throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 526_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 538_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 563throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 584throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 610throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex));
PEWriter\InheritedTypeParameter.cs (8)
236throw ExceptionUtilities.Unreachable(); 284get { throw ExceptionUtilities.Unreachable(); } 289get { throw ExceptionUtilities.Unreachable(); } 294get { throw ExceptionUtilities.Unreachable(); } 299get { throw ExceptionUtilities.Unreachable(); } 304get { throw ExceptionUtilities.Unreachable(); } 310throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 316throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\MetadataVisitor.cs (1)
214throw ExceptionUtilities.Unreachable();
PEWriter\MetadataWriter.cs (10)
1090_ => throw ExceptionUtilities.Unreachable() 1588throw ExceptionUtilities.Unreachable(); 1679_ => throw ExceptionUtilities.Unreachable() 2262throw ExceptionUtilities.UnexpectedValue(exportedType); 2859throw ExceptionUtilities.UnexpectedValue(typeRef); 3110_ => throw ExceptionUtilities.UnexpectedValue(reference) 3290throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3365throw ExceptionUtilities.UnexpectedValue(operandType); 4001throw ExceptionUtilities.UnexpectedValue(primitiveType); 4107throw ExceptionUtilities.UnexpectedValue(primitiveType);
PEWriter\MetadataWriter.PortablePdb.cs (2)
317throw ExceptionUtilities.Unreachable(); 997_ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind)
PEWriter\ModifiedTypeReference.cs (6)
47get { throw ExceptionUtilities.Unreachable(); } 52get { throw ExceptionUtilities.Unreachable(); } 57throw ExceptionUtilities.Unreachable(); 67get { throw ExceptionUtilities.Unreachable(); } 153throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 159throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\ReturnValueParameter.cs (2)
122throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 128throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\RootModuleStaticConstructor.cs (2)
177throw ExceptionUtilities.Unreachable(); 183throw ExceptionUtilities.Unreachable();
PEWriter\RootModuleType.cs (9)
200get { throw ExceptionUtilities.Unreachable(); } 213get { throw ExceptionUtilities.Unreachable(); } 218throw ExceptionUtilities.Unreachable(); 223get { throw ExceptionUtilities.Unreachable(); } 228get { throw ExceptionUtilities.Unreachable(); } 238get { throw ExceptionUtilities.Unreachable(); } 243get { throw ExceptionUtilities.Unreachable(); } 332throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 338throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\SequencePoint.cs (2)
46throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable();
PEWriter\SourceSpan.cs (2)
39throw ExceptionUtilities.Unreachable(); 44throw ExceptionUtilities.Unreachable();
PrimitiveTypeCodeExtensions.cs (1)
88throw ExceptionUtilities.UnexpectedValue(type);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (3)
76throw ExceptionUtilities.Unreachable(); 107throw ExceptionUtilities.Unreachable(); 114throw ExceptionUtilities.Unreachable();
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
312throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 390throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind); 975throw ExceptionUtilities.Unreachable();
SignatureComparer.cs (1)
228throw ExceptionUtilities.UnexpectedValue(typeCode);
SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
SourceGeneration\IncrementalWrapper.cs (2)
29void ISourceGenerator.Execute(GeneratorExecutionContext context) => throw ExceptionUtilities.Unreachable(); 31void ISourceGenerator.Initialize(GeneratorInitializationContext context) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\HostOutputNode.cs (3)
98IIncrementalGeneratorNode<OutputType> IIncrementalGeneratorNode<OutputType>.WithComparer(IEqualityComparer<OutputType> comparer) => throw ExceptionUtilities.Unreachable(); 100public IIncrementalGeneratorNode<OutputType> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 102void IIncrementalGeneratorNode<OutputType>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\InputNode.cs (1)
40_registerOutput = registerOutput ?? (o => throw ExceptionUtilities.Unreachable());
SourceGeneration\Nodes\NodeStateTable.cs (3)
213_ => throw ExceptionUtilities.Unreachable(), 514_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState)) 662_ => throw ExceptionUtilities.Unreachable()
SourceGeneration\Nodes\SourceOutputNode.cs (3)
92IIncrementalGeneratorNode<TOutput> IIncrementalGeneratorNode<TOutput>.WithComparer(IEqualityComparer<TOutput> comparer) => throw ExceptionUtilities.Unreachable(); 94public IIncrementalGeneratorNode<(IEnumerable<GeneratedSourceText>, IEnumerable<Diagnostic>)> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 96void IIncrementalGeneratorNode<TOutput>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
85catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\Nodes\TransformNode.cs (1)
85catch (Exception e) when (_wrapUserFunc && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\UserFunction.cs (3)
68catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 88catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 103catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token))
SpecialTypeExtensions.cs (2)
270throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(specialType); 389_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
SwitchConstantValueHelper.cs (1)
93throw ExceptionUtilities.UnexpectedValue(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229throw ExceptionUtilities.UnexpectedValue(target);
Symbols\Attributes\CommonAttributeData.cs (2)
268throw ExceptionUtilities.UnexpectedValue(kind); 355private protected virtual bool IsStringProperty(string memberName) => throw ExceptionUtilities.Unreachable();
Symbols\CommonGeneratedNameParser.cs (1)
106throw ExceptionUtilities.Unreachable();
Symbols\PlatformInvokeInformation.cs (1)
82throw ExceptionUtilities.UnexpectedValue(_flags);
Symbols\RefKind.cs (3)
60default: throw ExceptionUtilities.UnexpectedValue(kind); 71default: throw ExceptionUtilities.UnexpectedValue(kind); 84default: throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\SymbolKindExtensions.cs (1)
54throw ExceptionUtilities.UnexpectedValue(kind);
Syntax\GreenNode.cs (1)
181throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxList.cs (4)
148throw ExceptionUtilities.Unreachable(); 156throw ExceptionUtilities.Unreachable(); 162throw ExceptionUtilities.Unreachable(); 167throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxList`1.cs (1)
52throw ExceptionUtilities.Unreachable();
Syntax\SyntaxList.cs (11)
22throw ExceptionUtilities.Unreachable(); 31throw ExceptionUtilities.Unreachable(); 36throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable(); 46throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable(); 56throw ExceptionUtilities.Unreachable(); 61throw ExceptionUtilities.Unreachable(); 66throw ExceptionUtilities.Unreachable(); 71throw ExceptionUtilities.Unreachable(); 76throw ExceptionUtilities.Unreachable();
Syntax\SyntaxNodeOrToken.cs (1)
946throw ExceptionUtilities.Unreachable();
Text\SourceHashAlgorithms.cs (2)
41_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 56_ => throw ExceptionUtilities.UnexpectedValue(algorithm)