678 references to ExceptionUtilities
Microsoft.CodeAnalysis (678)
CodeGen\ArrayMembers.cs (3)
137throw ExceptionUtilities.UnexpectedValue(id); 368throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 374throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
CodeGen\ILBuilder.cs (1)
1153throw 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)
720throw ExceptionUtilities.Unreachable(); 730throw 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)
2304throw ExceptionUtilities.UnexpectedValue(platform); 2402throw ExceptionUtilities.UnexpectedValue(outputKind); 2423throw 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)
433throw ExceptionUtilities.UnexpectedValue(discriminator); 483ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.UnexpectedValue(Discriminator), 484_ => throw ExceptionUtilities.UnexpectedValue(Discriminator) 538default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 805default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 833_ => 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)
1125throw 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)
628throw ExceptionUtilities.UnexpectedValue(change); 1468throw 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\HotReloadExceptionCode.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(code)
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)
4016_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4031throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4047throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4071_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4086throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4102throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4135_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4153throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4172throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4229_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4253throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4278throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4317_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4343throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4370throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4421_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4451throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4482throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4532_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4545throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4559throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4579internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4593internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4618_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4645throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4676_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4692throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4709throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4745_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4766throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4788throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4823_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4839throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4856throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4880_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4893throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4907throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4938_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4954throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4971throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4985internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4999internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5028_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5046throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5065throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5083internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5116_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5129throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5143throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5179_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5197throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5216throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5246_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5264throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5283throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5305internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5324internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5362_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5375throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5389throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5418_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5431throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5445throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5477_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5495throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5514throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5541_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5554throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5568throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5604_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5617throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5676_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5692throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5709throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5747_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5766throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5786throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5820_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5836throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5879_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5892throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5906throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5939_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5957throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5976throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6001_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6014throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6028throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6058_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6076throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6095throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6114internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6143_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6156throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6170throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6195_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6208throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6222throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6262_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6278throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6295throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6337_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6353throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6370throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6396_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6409throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6423throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6455_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6471throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6488throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6518_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6534throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6551throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6568internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6594_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6609throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6625throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6650_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6665throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6681throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6706_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6721throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6737throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6767_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6783throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6800throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6826_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6839throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6880_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6895throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6911throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6942_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6955throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6969throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6994_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7007throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7021throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7046_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7059throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7073throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7091internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7110internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7130internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7155_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7168throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7182throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7212_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7228throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7245throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7281_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7294throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7308throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7333_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7346throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7360throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7386_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7402throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7419throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7444_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7457throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7471throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7488internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7523_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7536throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7550throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7570_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7583throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7597throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7621_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7634throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7648throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7672_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7685throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7699throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7723_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7738throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7754throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7785_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7803throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7822throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7856_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7879throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7903throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7937_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7950throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7964throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8002_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8021throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8041throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8074_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8094throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8115throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8139internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8169_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8185throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8202throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8231_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8247throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8264throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8290_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8303throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8317throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8341_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8354throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8368throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8397_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8410throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8424throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8458_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8477throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8497throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8532_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8545throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8559throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8581internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8613_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8629throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8646throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8680_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8696throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8713throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8745_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8764throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8784throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8803internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8829_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8842throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8856throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8878internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8904_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8917throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8931throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8948internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8967internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8993_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9009throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9026throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9060_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9076throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9093throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9119_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9134throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9150throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9179_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9197throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9216throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9251_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9271throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9292throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9306internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9338_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9356throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9375throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9411_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9430throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9450throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9479_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9495throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9512throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9542_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9558throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9575throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9606_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9622throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9639throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9664_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9677throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9691throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9710internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9739_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9755throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9772throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9800_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9813throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9827throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9851_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9864throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9878throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9909_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9925throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9942throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9960internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9986_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9999throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10013throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10045_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10061throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10078throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10112_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10128throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10145throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10174_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10190throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10207throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10232_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10245throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10259throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10279internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10309_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10327throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10346throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10376_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10391throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10407throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10433_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10446throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10460throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10494_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10510throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10527throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10546internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10570_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10583throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10597throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10627_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10643throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10660throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10687_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10702throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10718throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10747_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10760throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10774throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10793public 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); 1781throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1830throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1844throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1877throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1926throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3332throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
134throw ExceptionUtilities.UnexpectedValue(_contentType);
MetadataReference\MetadataImageReference.cs (1)
36throw ExceptionUtilities.Unreachable();
NativePdbWriter\PdbWriter.cs (1)
456throw 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(); 2281throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3824throw ExceptionUtilities.Unreachable(); 3849throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5234throw ExceptionUtilities.Unreachable(); 5637throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5657throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 5672throw ExceptionUtilities.Unreachable(); 5677throw ExceptionUtilities.Unreachable(); 5682throw ExceptionUtilities.Unreachable(); 5687throw ExceptionUtilities.Unreachable(); 5692throw ExceptionUtilities.Unreachable(); 5697throw ExceptionUtilities.Unreachable(); 5892throw ExceptionUtilities.Unreachable(); 5898throw ExceptionUtilities.Unreachable(); 5904throw ExceptionUtilities.Unreachable(); 5909throw ExceptionUtilities.Unreachable(); 5914throw ExceptionUtilities.Unreachable(); 5919throw ExceptionUtilities.Unreachable(); 5924throw ExceptionUtilities.Unreachable(); 6274throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6346throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6467throw ExceptionUtilities.Unreachable(); 6577throw ExceptionUtilities.Unreachable(); 6914throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6926throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6956throw ExceptionUtilities.Unreachable(); 6961throw ExceptionUtilities.Unreachable(); 7000throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7074throw ExceptionUtilities.UnexpectedValue(element.Kind); 7088throw ExceptionUtilities.Unreachable(); 7093throw ExceptionUtilities.Unreachable(); 7540throw ExceptionUtilities.Unreachable(); 7902throw ExceptionUtilities.Unreachable(); 7907throw ExceptionUtilities.Unreachable(); 7912throw 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)
1094_ => throw ExceptionUtilities.Unreachable() 1592throw ExceptionUtilities.Unreachable(); 1683_ => throw ExceptionUtilities.Unreachable() 2266throw ExceptionUtilities.UnexpectedValue(exportedType); 2863throw ExceptionUtilities.UnexpectedValue(typeRef); 3114_ => throw ExceptionUtilities.UnexpectedValue(reference) 3294throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3369throw ExceptionUtilities.UnexpectedValue(operandType); 4005throw ExceptionUtilities.UnexpectedValue(primitiveType); 4111throw 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); 362private 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)