460 references to UnexpectedValue
Microsoft.CodeAnalysis (460)
CodeGen\ArrayMembers.cs (1)
137throw ExceptionUtilities.UnexpectedValue(id);
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\LocalScopeManager.cs (1)
806throw ExceptionUtilities.UnexpectedValue(handlerScope.Type);
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
510throw ExceptionUtilities.UnexpectedValue(branchCode);
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);
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
139throw ExceptionUtilities.UnexpectedValue(tokenKind); 305throw ExceptionUtilities.UnexpectedValue(tokenKind); 403throw ExceptionUtilities.UnexpectedValue(lastChar);
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 (1)
120throw ExceptionUtilities.UnexpectedValue(type);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1093throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString());
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228throw ExceptionUtilities.UnexpectedValue(_scope);
Emit\CommonPEModuleBuilder.cs (1)
1125throw ExceptionUtilities.UnexpectedValue(platformType);
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\HotReloadExceptionCode.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(code)
EnumConstantHelper.cs (1)
111throw ExceptionUtilities.UnexpectedValue(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
185throw ExceptionUtilities.UnexpectedValue(kind);
Generated\Operations.Generated.cs (327)
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));
InternalUtilities\SingleInitNullable.cs (1)
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);
Operations\ControlFlowGraphBuilder.cs (14)
339throw ExceptionUtilities.UnexpectedValue(branch.Kind); 428throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 484throw ExceptionUtilities.UnexpectedValue(@catch.Kind); 604throw ExceptionUtilities.UnexpectedValue(region.Kind); 2281throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3849throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5637throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5657throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 6274throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6346throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6914throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6926throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 7000throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7074throw ExceptionUtilities.UnexpectedValue(element.Kind);
Operations\ControlFlowRegion.cs (1)
142throw ExceptionUtilities.UnexpectedValue(kind);
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\MetadataWriter.cs (7)
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 (1)
997_ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind)
PrimitiveTypeCodeExtensions.cs (1)
88throw ExceptionUtilities.UnexpectedValue(type);
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
312throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 390throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind);
SignatureComparer.cs (1)
228throw ExceptionUtilities.UnexpectedValue(typeCode);
SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
SourceGeneration\Nodes\NodeStateTable.cs (1)
514_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState))
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 (1)
268throw ExceptionUtilities.UnexpectedValue(kind);
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);
Text\SourceHashAlgorithms.cs (2)
41_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 56_ => throw ExceptionUtilities.UnexpectedValue(algorithm)