1092 references to UnexpectedValue
Microsoft.CodeAnalysis (460)
CodeGen\ArrayMembers.cs (1)
138throw ExceptionUtilities.UnexpectedValue(id);
CodeGen\ILBuilder.cs (1)
1165throw 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)
517throw ExceptionUtilities.UnexpectedValue(branchCode);
Collections\Rope.cs (5)
102throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 145throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 156throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 177throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 201throw 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)
2305throw ExceptionUtilities.UnexpectedValue(platform); 2403throw ExceptionUtilities.UnexpectedValue(outputKind); 2424throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
316throw ExceptionUtilities.UnexpectedValue(m); 340throw 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)
546throw 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)
121throw 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)
1172throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
640throw ExceptionUtilities.UnexpectedValue(change); 1478throw 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)
186throw 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)
80throw 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)
266throw ExceptionUtilities.UnexpectedValue(c); 363throw ExceptionUtilities.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73throw ExceptionUtilities.UnexpectedValue(typeCode); 135throw ExceptionUtilities.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (8)
1285_ => throw ExceptionUtilities.UnexpectedValue(kind) 1305throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1804throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1853throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1867throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1900throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1949throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3342throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135throw 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)
2271throw ExceptionUtilities.UnexpectedValue(exportedType); 2875throw ExceptionUtilities.UnexpectedValue(typeRef); 3126_ => throw ExceptionUtilities.UnexpectedValue(reference) 3306throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3381throw ExceptionUtilities.UnexpectedValue(operandType); 4017throw ExceptionUtilities.UnexpectedValue(primitiveType); 4123throw 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)
313throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 391throw 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)
515_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState))
SpecialTypeExtensions.cs (2)
271throw ExceptionUtilities.UnexpectedValue(specialType); 387_ => 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)
Microsoft.CodeAnalysis.CSharp (556)
Binder\Binder.CapturedParametersFinder.cs (1)
136throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Binder\Binder.cs (2)
266_ => throw ExceptionUtilities.UnexpectedValue(context.AnnotationsState) 295throw ExceptionUtilities.UnexpectedValue(Compilation.Options.NullableContextOptions);
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
422throw ExceptionUtilities.UnexpectedValue(topClause.Kind());
Binder\Binder.ValueChecks.cs (15)
83_ => throw ExceptionUtilities.UnexpectedValue(accessorKind), 163_ => throw ExceptionUtilities.UnexpectedValue(EscapeLevel) 898throw ExceptionUtilities.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind); 1375throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1407throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1422throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 3240throw ExceptionUtilities.UnexpectedValue(kind); 3268throw ExceptionUtilities.UnexpectedValue(kind); 3312throw ExceptionUtilities.UnexpectedValue(kind); 3631throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 3959throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4340throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4715throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); // ref struct collection type with unexpected type kind 5113throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 5830throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Constraints.cs (4)
287throw ExceptionUtilities.UnexpectedValue(keyword); 336throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 467_ => throw ExceptionUtilities.UnexpectedValue(containingSymbol) 628throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Binder\Binder_Conversions.cs (25)
802throw ExceptionUtilities.UnexpectedValue(v); 1101throw ExceptionUtilities.UnexpectedValue(targetType); 1170throw ExceptionUtilities.UnexpectedValue(targetType); 1660throw ExceptionUtilities.UnexpectedValue(element); 1676throw ExceptionUtilities.UnexpectedValue(element); 2262_ => throw ExceptionUtilities.UnexpectedValue(source), 2433throw ExceptionUtilities.UnexpectedValue(conversion.Kind); 2836_ => throw ExceptionUtilities.UnexpectedValue(delegateType), 2976_ => throw ExceptionUtilities.UnexpectedValue(type) 2984_ => throw ExceptionUtilities.UnexpectedValue(type) 3331default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3351default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3371default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3391default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3411default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3430default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3450default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3470default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3490default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3510default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3530default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3554default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3574default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3577throw ExceptionUtilities.UnexpectedValue(value.Discriminator); 3680default: throw ExceptionUtilities.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
41throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 133throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 784throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1004throw ExceptionUtilities.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (2)
383throw ExceptionUtilities.UnexpectedValue(expression.Kind); 848throw ExceptionUtilities.UnexpectedValue(node.Kind());
Binder\Binder_Expressions.cs (14)
998throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1556throw ExceptionUtilities.UnexpectedValue(managedKind); 2240_ => throw ExceptionUtilities.UnexpectedValue(alias.Target.Kind), 2248throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2497throw ExceptionUtilities.UnexpectedValue(symbol); 3187throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 3863throw ExceptionUtilities.UnexpectedValue(argumentIndex); 5232throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5249throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5281_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 7039throw ExceptionUtilities.UnexpectedValue(classCreation.Kind); 8064throw ExceptionUtilities.UnexpectedValue(extensionMember.Kind); 8513throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 9306throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Binder_InterpolatedString.cs (2)
178throw ExceptionUtilities.UnexpectedValue(content.Kind()); 571_ => throw ExceptionUtilities.UnexpectedValue(unconvertedExpression.Kind)
Binder\Binder_Invocation.cs (1)
1097throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (2)
287throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1634throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Binder\Binder_Operators.cs (7)
1234_ => throw ExceptionUtilities.UnexpectedValue(current.Right.Kind) 2529throw ExceptionUtilities.UnexpectedValue(kind); 2550throw ExceptionUtilities.UnexpectedValue(underlyingType); 2613throw ExceptionUtilities.UnexpectedValue(newKind.Operator()); 3104default: throw ExceptionUtilities.UnexpectedValue(kind); 4447default: throw ExceptionUtilities.UnexpectedValue(kind); 5111throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (3)
186_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 923throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 1454throw ExceptionUtilities.UnexpectedValue(node.Kind());
Binder\Binder_Query.cs (3)
146throw ExceptionUtilities.UnexpectedValue(firstClause.Kind()); 160throw ExceptionUtilities.UnexpectedValue(query.Body.SelectOrGroup.Kind()); 354throw ExceptionUtilities.UnexpectedValue(topClause.Kind());
Binder\Binder_QueryErrors.cs (1)
204throw ExceptionUtilities.UnexpectedValue(queryClause.Kind());
Binder\Binder_Statements.cs (6)
550throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1680throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 1731_ => throw ExceptionUtilities.UnexpectedValue(e.Kind) 1752throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3576_ => throw ExceptionUtilities.UnexpectedValue(expressionBody.Parent.Kind()), 3660throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Binder\Binder_Symbols.cs (3)
165throw ExceptionUtilities.UnexpectedValue(keyword); 738throw ExceptionUtilities.UnexpectedValue(typesArray.Length); 1468throw ExceptionUtilities.UnexpectedValue(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
115throw ExceptionUtilities.UnexpectedValue(comparison); 155throw ExceptionUtilities.UnexpectedValue(binaryOperator);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 477throw ExceptionUtilities.UnexpectedValue(baseMethodDeclarationSyntax.Kind()); 502throw ExceptionUtilities.UnexpectedValue(basePropertyDeclarationSyntax.Kind()); 1188throw ExceptionUtilities.UnexpectedValue(elementKind);
Binder\DecisionDagBuilder.cs (6)
263throw ExceptionUtilities.UnexpectedValue(tests); 314throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 962throw ExceptionUtilities.UnexpectedValue(n.Kind); 1061throw ExceptionUtilities.UnexpectedValue(n?.Kind); 1145throw ExceptionUtilities.UnexpectedValue(test); 2289_ => throw ExceptionUtilities.UnexpectedValue(negated),
Binder\ExpressionVariableFinder.cs (3)
259throw ExceptionUtilities.UnexpectedValue(node.Kind()); 439throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 523throw ExceptionUtilities.UnexpectedValue(designation.Kind());
Binder\ForEachLoopBinder.cs (5)
97throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 173throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 356throw ExceptionUtilities.UnexpectedValue(local.RefKind); 426throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 1661throw ExceptionUtilities.UnexpectedValue(enumeratorType.TypeKind);
Binder\LookupResultKind.cs (1)
98throw ExceptionUtilities.UnexpectedValue(resultKind);
Binder\PatternExplainer.cs (2)
164throw ExceptionUtilities.UnexpectedValue(currentNode.Kind); 444throw ExceptionUtilities.UnexpectedValue(v);
Binder\RefSafetyAnalysis.cs (1)
784throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex);
Binder\Semantics\AccessCheck.cs (5)
83throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 103throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 215throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 289throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 408throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
Binder\Semantics\Conversions\Conversion.cs (1)
1071throw ExceptionUtilities.UnexpectedValue(conversionResult.Kind);
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
76throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
933throw ExceptionUtilities.UnexpectedValue(oppositeConversion.Kind); 3221throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.Variance);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
685throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
370throw ExceptionUtilities.UnexpectedValue(kind); 672throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\OperatorFacts.cs (3)
113throw ExceptionUtilities.UnexpectedValue(kind); 246throw ExceptionUtilities.UnexpectedValue(kind & UnaryOperatorKind.OpMask); 272throw ExceptionUtilities.UnexpectedValue(kind & BinaryOperatorKind.OpMask);
Binder\Semantics\Operators\OperatorKindExtensions.cs (4)
161throw ExceptionUtilities.UnexpectedValue(type); 179throw ExceptionUtilities.UnexpectedValue(type); 377throw ExceptionUtilities.UnexpectedValue(kind.Operator()); 399throw ExceptionUtilities.UnexpectedValue(kind.Operator());
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (1)
260throw ExceptionUtilities.UnexpectedValue(argAnalysis.Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1087_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType) 1468_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1466throw ExceptionUtilities.UnexpectedValue(member.Kind); 4389throw ExceptionUtilities.UnexpectedValue(member); 4760throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
457throw ExceptionUtilities.UnexpectedValue(result.Result.Kind); 1530throw ExceptionUtilities.UnexpectedValue(kind);
Binder\SwitchBinder_Patterns.cs (1)
120throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Binder\WhileBinder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(_syntax.Kind());
Binder\WithCrefTypeParametersBinder.cs (2)
72throw ExceptionUtilities.UnexpectedValue(_crefSyntax.Kind()); 99throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (1)
194throw ExceptionUtilities.UnexpectedValue(_declarationSyntax);
BoundTree\BoundDagEvaluation.cs (1)
45_ => throw ExceptionUtilities.UnexpectedValue(this.Kind)
BoundTree\BoundDagTest.cs (1)
40throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundDecisionDag.cs (3)
42throw ExceptionUtilities.UnexpectedValue(node.Kind); 135throw ExceptionUtilities.UnexpectedValue(dag); 197throw ExceptionUtilities.UnexpectedValue(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundExpressionExtensions.cs (1)
73var s => throw ExceptionUtilities.UnexpectedValue(s?.Kind)
BoundTree\BoundNode.cs (4)
250var a => throw ExceptionUtilities.UnexpectedValue(a), 264throw ExceptionUtilities.UnexpectedValue(value.FlowState); 287var mask => throw ExceptionUtilities.UnexpectedValue(mask) 480throw ExceptionUtilities.UnexpectedValue(conversion);
BoundTree\BoundNodeExtensions.cs (5)
131throw ExceptionUtilities.UnexpectedValue(current.Left.Kind); 146throw ExceptionUtilities.UnexpectedValue(current.Right.Kind); 214_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Left.Kind) 225_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Right.Kind) 256_ => throw ExceptionUtilities.UnexpectedValue(e.Kind),
BoundTree\BoundStatementExtensions.cs (2)
23throw ExceptionUtilities.UnexpectedValue(node.Kind); 53throw ExceptionUtilities.UnexpectedValue(node.Kind);
BoundTree\BoundTreeRewriter.cs (1)
151throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
BoundTree\NullabilityRewriter.cs (1)
121_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Kind),
BoundTree\VariablePendingInference.cs (1)
110throw ExceptionUtilities.UnexpectedValue(this.VariableSymbol.Kind);
CodeGen\EmitAddress.cs (2)
87throw ExceptionUtilities.UnexpectedValue(expression.Kind); 282throw ExceptionUtilities.UnexpectedValue(local.RefKind);
CodeGen\EmitConversion.cs (4)
45throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 132throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 174throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller. 178throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind);
CodeGen\EmitExpression.cs (5)
174throw ExceptionUtilities.UnexpectedValue(expression.Kind); 365throw ExceptionUtilities.UnexpectedValue(expression.Kind); 2982throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3003throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3190throw ExceptionUtilities.UnexpectedValue(expression.Kind);
CodeGen\EmitOperators.cs (4)
54throw ExceptionUtilities.UnexpectedValue(operatorKind.Operator()); 245throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator()); 438throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind.OperatorWithLogical()); 736throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator());
CodeGen\EmitStatement.cs (4)
105throw ExceptionUtilities.UnexpectedValue(statement.Kind); 163throw ExceptionUtilities.UnexpectedValue(statement.Flavor); 330throw ExceptionUtilities.UnexpectedValue(op.OperatorKind.Operator()); 1182throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind);
CodeGen\Optimizer.cs (2)
492throw ExceptionUtilities.UnexpectedValue(context); 1102throw ExceptionUtilities.UnexpectedValue(lhs.Kind);
Compilation\BuiltInOperators.cs (2)
279default: throw ExceptionUtilities.UnexpectedValue(kind.OperandTypes()); 849var v => throw ExceptionUtilities.UnexpectedValue(v),
Compilation\CSharpDiagnosticFilter.cs (2)
170_ => throw ExceptionUtilities.UnexpectedValue(warningsState) 288throw ExceptionUtilities.UnexpectedValue(report);
Compilation\CSharpSemanticModel.cs (2)
3790throw ExceptionUtilities.UnexpectedValue(containingMember.Kind); 4018throw ExceptionUtilities.UnexpectedValue(boundNodeForSyntacticParent.Kind);
Compilation\InitializerSemanticModel.cs (3)
105throw ExceptionUtilities.UnexpectedValue(rootSyntax.Kind()); 182throw ExceptionUtilities.UnexpectedValue(this.MemberSymbol.Kind); 286throw ExceptionUtilities.UnexpectedValue(MemberSymbol.Kind);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
173ExceptionUtilities.UnexpectedValue(attributeOrParameter);
Compilation\SyntaxTreeSemanticModel.cs (11)
1116ExceptionUtilities.UnexpectedValue(node.Parent); 1177throw ExceptionUtilities.UnexpectedValue(node.Parent.Kind()); 1193ExceptionUtilities.UnexpectedValue(node.Parent); 1620throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 1644ExceptionUtilities.UnexpectedValue(containingMemberSyntax.Kind()); 1728throw ExceptionUtilities.UnexpectedValue(declaration.Kind()); 1767throw ExceptionUtilities.UnexpectedValue(name.Kind()); 2211throw ExceptionUtilities.UnexpectedValue(typeParameter.Parent.Kind()); 2480ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2518ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2545ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (6)
757throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1008throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1249throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 1284throw ExceptionUtilities.UnexpectedValue(compliance); 1300throw ExceptionUtilities.UnexpectedValue(compliance); 1350throw ExceptionUtilities.UnexpectedValue(x.Kind);
Compiler\DocumentationCommentCompiler.cs (1)
1216throw ExceptionUtilities.UnexpectedValue(elementKind);
Compiler\MethodCompiler.cs (2)
2000throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); 2132throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Declarations\DeclarationKind.cs (1)
48throw ExceptionUtilities.UnexpectedValue(kind);
Declarations\DeclarationTreeBuilder.cs (2)
120_ => throw ExceptionUtilities.UnexpectedValue(typeDeclaration.Kind) 678_ => throw ExceptionUtilities.UnexpectedValue(node.Kind())
Declarations\MergedTypeDeclaration.cs (1)
95throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind());
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
274throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 370throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 452_ => throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind), 780throw ExceptionUtilities.UnexpectedValue(type.Kind);
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(value);
Emitter\Model\PEModuleBuilder.cs (6)
246throw ExceptionUtilities.UnexpectedValue(member.Kind); 288throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 367throw ExceptionUtilities.UnexpectedValue(member.Kind); 427throw ExceptionUtilities.UnexpectedValue(member.Kind); 434throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1164throw ExceptionUtilities.UnexpectedValue(typeSymbol.Kind);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
337throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
520throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
722throw ExceptionUtilities.UnexpectedValue(feature);
FlowAnalysis\AbstractFlowPass.cs (6)
871throw ExceptionUtilities.UnexpectedValue(node.Kind); 1022throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1075throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1566throw ExceptionUtilities.UnexpectedValue(refKind); 2476throw ExceptionUtilities.UnexpectedValue(binary.Kind); 2498throw ExceptionUtilities.UnexpectedValue(binary.Kind);
FlowAnalysis\DefiniteAssignment.cs (1)
2131throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
FlowAnalysis\ExitPointsWalker.cs (1)
148throw ExceptionUtilities.UnexpectedValue(pending.Branch.Kind);
FlowAnalysis\NullableWalker.cs (13)
589throw ExceptionUtilities.UnexpectedValue(placeholder.Kind); 2039throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 4300ExceptionUtilities.UnexpectedValue(node.Kind); 4801_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 4878_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 5907_ => throw ExceptionUtilities.UnexpectedValue(node.OperatorResultKind), 7284throw ExceptionUtilities.UnexpectedValue(member); 7790throw ExceptionUtilities.UnexpectedValue(refKind); 7882throw ExceptionUtilities.UnexpectedValue(refKind); 8034throw ExceptionUtilities.UnexpectedValue(refKind); 11790_ => throw ExceptionUtilities.UnexpectedValue(node.Syntax) 12105throw ExceptionUtilities.UnexpectedValue(binary.Kind); 12120throw ExceptionUtilities.UnexpectedValue(binary.Kind);
FlowAnalysis\NullableWalker_Patterns.cs (5)
244throw ExceptionUtilities.UnexpectedValue(pattern); 585throw ExceptionUtilities.UnexpectedValue(p.Evaluation.Kind); 662throw ExceptionUtilities.UnexpectedValue(test.Kind); 721throw ExceptionUtilities.UnexpectedValue(dagNode.Kind); 860_ => throw ExceptionUtilities.UnexpectedValue(e.Kind)
LanguageVersion.cs (2)
338throw ExceptionUtilities.UnexpectedValue(version); 419throw ExceptionUtilities.UnexpectedValue(version);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336throw ExceptionUtilities.UnexpectedValue(method);
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
89throw ExceptionUtilities.UnexpectedValue(local);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
129throw ExceptionUtilities.UnexpectedValue(node.Kind); 598throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Lowering\ClosureConversion\ClosureConversion.cs (1)
785throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
157throw ExceptionUtilities.UnexpectedValue(stmt.Kind); 249throw ExceptionUtilities.UnexpectedValue(node.Kind); 478throw ExceptionUtilities.UnexpectedValue(opKind.Operator()); 789throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup); 805throw ExceptionUtilities.UnexpectedValue(node.Argument); 920throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 935throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 988throw ExceptionUtilities.UnexpectedValue(elementKind); 1043throw ExceptionUtilities.UnexpectedValue(initializerKind); // no other options at the top level of an initializer 1161throw ExceptionUtilities.UnexpectedValue(op); 1181throw ExceptionUtilities.UnexpectedValue(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107throw ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
74throw ExceptionUtilities.UnexpectedValue(closureKind);
Lowering\InitializerRewriter.cs (1)
128throw ExceptionUtilities.UnexpectedValue(initializer.Kind);
Lowering\Instrumentation\DebugInfoInjector.cs (3)
106throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind()); 154throw ExceptionUtilities.UnexpectedValue(grandparent.Kind()); 329throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind());
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
129throw ExceptionUtilities.UnexpectedValue(declarationSyntax.Parent.Kind());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
391throw ExceptionUtilities.UnexpectedValue(original.Left); 490_ => throw ExceptionUtilities.UnexpectedValue(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81throw ExceptionUtilities.UnexpectedValue(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.cs (1)
1114throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89throw ExceptionUtilities.UnexpectedValue(node.Kind); 640throw ExceptionUtilities.UnexpectedValue(otherwise); 672throw ExceptionUtilities.UnexpectedValue(n); 803throw ExceptionUtilities.UnexpectedValue(input.Type); 818_ => throw ExceptionUtilities.UnexpectedValue(input.Type.SpecialType) 857_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 870_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 929_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 941_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 956_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 964_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 1233throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
307throw ExceptionUtilities.UnexpectedValue(evaluation); 367throw ExceptionUtilities.UnexpectedValue(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
177throw ExceptionUtilities.UnexpectedValue(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
218throw ExceptionUtilities.UnexpectedValue(operatorKind); 266throw ExceptionUtilities.UnexpectedValue(operatorKind); 532throw ExceptionUtilities.UnexpectedValue(operatorKind); 2077throw ExceptionUtilities.UnexpectedValue(operatorKind); 2383throw ExceptionUtilities.UnexpectedValue(numericSpecialType); 2450throw ExceptionUtilities.UnexpectedValue(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
869var u => throw ExceptionUtilities.UnexpectedValue(u.Kind) 890throw ExceptionUtilities.UnexpectedValue(argIndex);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
88throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); 388var e => throw ExceptionUtilities.UnexpectedValue(e) 444var v => throw ExceptionUtilities.UnexpectedValue(v) 727throw ExceptionUtilities.UnexpectedValue(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
515throw ExceptionUtilities.UnexpectedValue(indexerAccess.Argument.Type); 836throw ExceptionUtilities.UnexpectedValue(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (2)
101throw ExceptionUtilities.UnexpectedValue(loweringKind); 196throw ExceptionUtilities.UnexpectedValue(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
31_ => throw ExceptionUtilities.UnexpectedValue(node.Operand.Kind) 200throw ExceptionUtilities.UnexpectedValue(current); 1672throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType); 1692throw ExceptionUtilities.UnexpectedValue(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
159throw ExceptionUtilities.UnexpectedValue(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (4)
151_ => throw ExceptionUtilities.UnexpectedValue(oldNode) 558throw ExceptionUtilities.UnexpectedValue(strategy); 687throw ExceptionUtilities.UnexpectedValue(strategy); 912throw ExceptionUtilities.UnexpectedValue(startStrategy);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
64throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
81throw ExceptionUtilities.UnexpectedValue(node); 299throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
74throw ExceptionUtilities.UnexpectedValue(temps.Length);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (8)
27throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 62throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 81throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 93throw ExceptionUtilities.UnexpectedValue(initializer.Kind); 465throw ExceptionUtilities.UnexpectedValue(rewrittenArrayAccess.Kind); 547throw ExceptionUtilities.UnexpectedValue(left.Kind); 609throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 748throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind);
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (1)
63throw ExceptionUtilities.UnexpectedValue(rewrittenIndex.Type.SpecialType);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
198throw ExceptionUtilities.UnexpectedValue(constructionMethod.MethodKind);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
93throw ExceptionUtilities.UnexpectedValue(type);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
178_ => throw ExceptionUtilities.UnexpectedValue(visitedArguments.Count), 199throw ExceptionUtilities.UnexpectedValue(concatKind);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
84throw ExceptionUtilities.UnexpectedValue(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
262throw ExceptionUtilities.UnexpectedValue(@operator.InfoKind);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
974throw ExceptionUtilities.UnexpectedValue(oper.Operator()); 1119throw ExceptionUtilities.UnexpectedValue(kind); 1209throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType); 1219throw ExceptionUtilities.UnexpectedValue(unaryOperatorKind.OperandTypes()); 1279throw ExceptionUtilities.UnexpectedValue(binaryOperatorKind.OperandTypes());
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
88throw ExceptionUtilities.UnexpectedValue(loop.Kind);
Lowering\MethodToClassRewriter.cs (1)
244_ => throw ExceptionUtilities.UnexpectedValue(proxy)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
180throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
682throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
794throw ExceptionUtilities.UnexpectedValue(input.Type); 1690throw ExceptionUtilities.UnexpectedValue(refKind);
Operations\CSharpOperationFactory.cs (16)
333throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 416throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 548throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 608throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 799throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 815throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 902throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind); 1253throw ExceptionUtilities.UnexpectedValue(expr.CollectionTypeKind); 1475{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2247{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2340throw ExceptionUtilities.UnexpectedValue(part.Kind); 2356_ => throw ExceptionUtilities.UnexpectedValue(value.Kind), 2453_ => throw ExceptionUtilities.UnexpectedValue(part.Kind) 2461_ => throw ExceptionUtilities.UnexpectedValue(methodName) 2476throw ExceptionUtilities.UnexpectedValue(current.Kind); 2499_ => throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
260throw ExceptionUtilities.UnexpectedValue(containingExpression.Kind);
Parser\LanguageParser.cs (6)
1715throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1995throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 7386throw ExceptionUtilities.UnexpectedValue(mode); 11005throw ExceptionUtilities.UnexpectedValue(op); 11588_ => throw ExceptionUtilities.UnexpectedValue(node), 12626throw ExceptionUtilities.UnexpectedValue(type);
Parser\LanguageParser_InterpolatedString.cs (2)
88_ => throw ExceptionUtilities.UnexpectedValue(kind), 249_ => throw ExceptionUtilities.UnexpectedValue(kind),
Parser\Lexer.cs (2)
288throw ExceptionUtilities.UnexpectedValue(ModeOf(_mode)); 386throw ExceptionUtilities.UnexpectedValue(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
119throw ExceptionUtilities.UnexpectedValue(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (1)
73throw ExceptionUtilities.UnexpectedValue(node.KindText);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
413ExceptionUtilities.UnexpectedValue(node.Kind());
SymbolDisplay\SymbolDisplayVisitor.cs (2)
235throw ExceptionUtilities.UnexpectedValue(Format.GlobalNamespaceStyle); 418throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
573throw ExceptionUtilities.UnexpectedValue(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
662throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind);
Symbols\BaseTypeAnalysis.cs (1)
195throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
287throw ExceptionUtilities.UnexpectedValue(descriptor.Flags); 355throw ExceptionUtilities.UnexpectedValue(targetSymbolKind); 663throw ExceptionUtilities.UnexpectedValue(attribute);
Symbols\ConstraintsHelper.cs (4)
287throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1137throw ExceptionUtilities.UnexpectedValue(error); 1508throw ExceptionUtilities.UnexpectedValue(typeArgument.TypeKind); 1651throw ExceptionUtilities.UnexpectedValue(type2.NullableAnnotation);
Symbols\EnumConversions.cs (1)
42throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
232_ => throw ExceptionUtilities.UnexpectedValue(index),
Symbols\MemberSignatureComparer.cs (1)
874throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46throw ExceptionUtilities.UnexpectedValue(member.Kind); 64throw ExceptionUtilities.UnexpectedValue(member.Kind); 78throw ExceptionUtilities.UnexpectedValue(member.Kind); 147throw ExceptionUtilities.UnexpectedValue(member); 177throw ExceptionUtilities.UnexpectedValue(member); 241throw ExceptionUtilities.UnexpectedValue(member); 302throw ExceptionUtilities.UnexpectedValue(member.Kind); 328throw ExceptionUtilities.UnexpectedValue(member.Kind); 344throw ExceptionUtilities.UnexpectedValue(member.Kind); 470throw ExceptionUtilities.UnexpectedValue(m.Kind); 516throw ExceptionUtilities.UnexpectedValue(s.Kind); 570throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 588throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 857throw ExceptionUtilities.UnexpectedValue(member.Kind); 887throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
139throw ExceptionUtilities.UnexpectedValue(memberRefOrMethodDef.Kind);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
268throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1167throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
819throw ExceptionUtilities.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
879throw ExceptionUtilities.UnexpectedValue(_flags & TypeAttributes.VisibilityMask);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1220_ => throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
148_ => throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (1)
624throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\MethodSymbolExtensions.cs (1)
116throw ExceptionUtilities.UnexpectedValue(hidingMember.Kind);
Symbols\NullableAnnotationExtensions.cs (3)
72_ => throw ExceptionUtilities.UnexpectedValue(variance) 142_ => throw ExceptionUtilities.UnexpectedValue(annotation) 154_ => throw ExceptionUtilities.UnexpectedValue(annotation)
Symbols\NullableContextKind.cs (2)
65throw ExceptionUtilities.UnexpectedValue(kind); 82throw ExceptionUtilities.UnexpectedValue(value);
Symbols\NullableFlowStateExtensions.cs (2)
35_ => throw ExceptionUtilities.UnexpectedValue(nullableFlowState) 45_ => throw ExceptionUtilities.UnexpectedValue(flowState)
Symbols\OverriddenOrHiddenMembersHelpers.cs (3)
883throw ExceptionUtilities.UnexpectedValue(member.Kind); 905throw ExceptionUtilities.UnexpectedValue(member.Kind); 923throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\PublicModel\MethodSymbol.cs (1)
74throw ExceptionUtilities.UnexpectedValue(_underlying.MethodKind);
Symbols\RefKindExtensions.cs (2)
34throw ExceptionUtilities.UnexpectedValue(syntaxKind); 50throw ExceptionUtilities.UnexpectedValue(refKind);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
686throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\Source\AttributeLocation.cs (1)
95throw ExceptionUtilities.UnexpectedValue(i);
Symbols\Source\ModifierUtils.cs (2)
354throw ExceptionUtilities.UnexpectedValue(modifier); 407throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Source\ParameterHelpers.cs (1)
800throw ExceptionUtilities.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (2)
1675_ => throw ExceptionUtilities.UnexpectedValue(attribute) 2089throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceCustomEventSymbol.cs (1)
121throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourceEventSymbol.cs (1)
168throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Symbols\Source\SourceLocalSymbol.cs (2)
458throw ExceptionUtilities.UnexpectedValue(_declarationKind); 785throw ExceptionUtilities.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3974throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 4135throw ExceptionUtilities.UnexpectedValue(symbol); 4652throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4663throw ExceptionUtilities.UnexpectedValue(member.Kind); 4707throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4724throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
308throw ExceptionUtilities.UnexpectedValue(matchResult); 525throw ExceptionUtilities.UnexpectedValue(this.TypeKind); 1719throw ExceptionUtilities.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1425throw ExceptionUtilities.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics); 1533var unexpected => throw ExceptionUtilities.UnexpectedValue(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
395throw ExceptionUtilities.UnexpectedValue(member); 403throw ExceptionUtilities.UnexpectedValue(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
178throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 486throw ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
614throw ExceptionUtilities.UnexpectedValue(baseType.TypeKind); 754throw ExceptionUtilities.UnexpectedValue(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
220throw ExceptionUtilities.UnexpectedValue(type); 342_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 493throw ExceptionUtilities.UnexpectedValue(annotation); 526throw ExceptionUtilities.UnexpectedValue(type); 750_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 793_ => throw ExceptionUtilities.UnexpectedValue(refKind) 958throw ExceptionUtilities.UnexpectedValue(argument.Kind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (7)
58throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 137throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 168throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 200throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 232throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 439throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 570throw ExceptionUtilities.UnexpectedValue(declarationSyntax);
Symbols\Source\SourceNamespaceSymbol.cs (2)
398throw ExceptionUtilities.UnexpectedValue(otherSymbol); 425throw ExceptionUtilities.UnexpectedValue(declaration.Kind);
Symbols\Source\SourcePropertySymbol.cs (2)
186_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 289throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourcePropertySymbolBase.cs (1)
351_ => throw ExceptionUtilities.UnexpectedValue(accessorToBlame)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
298throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
430throw ExceptionUtilities.UnexpectedValue(extensionParameter.RefKind);
Symbols\Source\TypeParameterConstraintClause.cs (1)
114ExceptionUtilities.UnexpectedValue(constraints); // This call asserts.
Symbols\Symbol.cs (4)
305throw ExceptionUtilities.UnexpectedValue(DeclaredAccessibility); 703throw ExceptionUtilities.UnexpectedValue(this.Kind); 1749throw ExceptionUtilities.UnexpectedValue(variable); 1752throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 734throw ExceptionUtilities.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
521throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
51throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
248static byte @throw(char c) => throw ExceptionUtilities.UnexpectedValue(c);
Symbols\Synthesized\GeneratedNames.cs (1)
482var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
281var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
203_ => throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\Synthesized\RefKindVector.cs (2)
51var bits => throw ExceptionUtilities.UnexpectedValue(bits) 64_ => throw ExceptionUtilities.UnexpectedValue(value)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
179var binder = getAccessor.TryGetBodyBinder() ?? throw ExceptionUtilities.UnexpectedValue(getAccessor);
Symbols\Tuples\TupleTypeSymbol.cs (2)
699throw ExceptionUtilities.UnexpectedValue(member.Kind); 1090throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\TypeSymbol.cs (3)
1594throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1975throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2038throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind);
Symbols\TypeSymbolExtensions.cs (3)
943throw ExceptionUtilities.UnexpectedValue(current.TypeKind); 1176throw ExceptionUtilities.UnexpectedValue(acc1); 1531throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
163throw ExceptionUtilities.UnexpectedValue(NullableAnnotation);
Symbols\VarianceSafety.cs (3)
86throw ExceptionUtilities.UnexpectedValue(member.TypeKind); 412throw ExceptionUtilities.UnexpectedValue(typeParam.Variance); 461throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.Variance);
Syntax\CSharpLineDirectiveMap.cs (1)
220throw ExceptionUtilities.UnexpectedValue(entry.State);
Syntax\CSharpPragmaWarningStateMap.cs (1)
105var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\CSharpSyntaxTree.cs (1)
285throw ExceptionUtilities.UnexpectedValue(directive.Kind());
Syntax\DirectiveTriviaSyntax.cs (1)
64throw ExceptionUtilities.UnexpectedValue(this.Kind());
Syntax\LambdaUtilities.cs (2)
121throw ExceptionUtilities.UnexpectedValue(newLambda.Kind()); 130_ => throw ExceptionUtilities.UnexpectedValue(nestedFunction),
Syntax\LookupPosition.cs (2)
368throw ExceptionUtilities.UnexpectedValue(statement.Kind()); 449throw ExceptionUtilities.UnexpectedValue(statement.Kind());
Syntax\NullableContextStateMap.cs (2)
159var kind => throw ExceptionUtilities.UnexpectedValue(kind), 167var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\SyntaxExtensions.cs (4)
54ExceptionUtilities.UnexpectedValue(node.Kind()); 152throw ExceptionUtilities.UnexpectedValue(parentKind); 173throw ExceptionUtilities.UnexpectedValue(parentName); 483throw ExceptionUtilities.UnexpectedValue(type.Kind());
Syntax\SyntaxFacts.cs (1)
377throw ExceptionUtilities.UnexpectedValue(accessibility);
Syntax\SyntaxKindExtensions.cs (1)
49throw ExceptionUtilities.UnexpectedValue(kind);
Syntax\TypeDeclarationSyntax.cs (3)
63throw ExceptionUtilities.UnexpectedValue(kind); 81throw ExceptionUtilities.UnexpectedValue(kind); 134throw ExceptionUtilities.UnexpectedValue(kind);
Utilities\TypeSymbolExtensions.cs (2)
206throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 286throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
48_ => throw ExceptionUtilities.UnexpectedValue("random"),
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
88throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
49throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
85throw ExceptionUtilities.UnexpectedValue(relation); 125throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
48throw ExceptionUtilities.UnexpectedValue(relation);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
13434_ => throw ExceptionUtilities.UnexpectedValue(expectedDiagnosticSeverity) 13898throw ExceptionUtilities.UnexpectedValue(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27487throw ExceptionUtilities.UnexpectedValue(expectedValue); 27507throw ExceptionUtilities.UnexpectedValue(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
Diagnostics\GetDiagnosticsTests.cs (2)
1146_ => throw ExceptionUtilities.UnexpectedValue(basePropertyDecl.Kind()), 1157_ => throw ExceptionUtilities.UnexpectedValue(baseMethodDecl.Kind()),
PartialEventsAndConstructorsTests.cs (2)
1006_ => throw ExceptionUtilities.UnexpectedValue(access), 1174_ => throw ExceptionUtilities.UnexpectedValue(access),
RefReadonlyParameterTests.cs (2)
87throw ExceptionUtilities.UnexpectedValue(customModifiers); 7080_ => throw ExceptionUtilities.UnexpectedValue(modifier)
Semantics\ExtensionOperatorsTests.cs (17)
11412public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 11940public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 16071public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 18727public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 18852public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C1 y) => throw null; 18971public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19032public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19080public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(T x, T y) => throw null; 19136public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19183public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19218public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 19370public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19409public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19448public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19492public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19534public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19578public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (5)
5996throw ExceptionUtilities.UnexpectedValue(refKind); 6790throw ExceptionUtilities.UnexpectedValue(refKind); 7529throw ExceptionUtilities.UnexpectedValue(refKind); 8508throw ExceptionUtilities.UnexpectedValue(refKind); 9733throw ExceptionUtilities.UnexpectedValue(refKind);
Semantics\PatternMatchingTestBase.cs (1)
466var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
12245default: throw ExceptionUtilities.UnexpectedValue(op);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NativeIntegerTests.cs (2)
590throw ExceptionUtilities.UnexpectedValue(member.Kind); 624throw ExceptionUtilities.UnexpectedValue(nativeIntegerMember.Kind);
Semantics\OperatorTests.cs (2)
3255_ => throw ExceptionUtilities.UnexpectedValue(node.Text) 8793throw ExceptionUtilities.UnexpectedValue(i);
SourceGeneration\GeneratorDriverFuzzTests.cs (1)
343var num => throw ExceptionUtilities.UnexpectedValue(num)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\ExtendedPartialMethodsTests.cs (2)
2032_ => throw ExceptionUtilities.UnexpectedValue(access), 2184_ => throw ExceptionUtilities.UnexpectedValue(access),
Symbols\PartialPropertiesTests.cs (4)
366throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 403throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 2607_ => throw ExceptionUtilities.UnexpectedValue(access), 2755_ => throw ExceptionUtilities.UnexpectedValue(access),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91_ => throw ExceptionUtilities.UnexpectedValue(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
AttributeValidation.cs (1)
47throw ExceptionUtilities.UnexpectedValue(accessibility);
CompilationTestUtils.cs (1)
284throw ExceptionUtilities.UnexpectedValue(node);
Extensions.cs (3)
762throw ExceptionUtilities.UnexpectedValue(member.Kind); 829throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 855throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
UsesIsNullableVisitor.cs (1)
207throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
335throw ExceptionUtilities.UnexpectedValue(constant.Kind);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (7)
AbstractTypeParameterChecker.cs (3)
147throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 152throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 157throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
DkmUtilities.cs (1)
321throw ExceptionUtilities.UnexpectedValue(accessibility);
EEMetadataReferenceResolver.cs (1)
77throw ExceptionUtilities.UnexpectedValue(compareResult);
MetadataContextId.cs (1)
36_ => throw ExceptionUtilities.UnexpectedValue(kind),
MetadataUtilities.cs (1)
300throw ExceptionUtilities.UnexpectedValue(compareResult);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
114throw ExceptionUtilities.UnexpectedValue(GetPrimitiveSpecialType(type));
Microsoft.CodeAnalysis.Test.Utilities (9)
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
438_ => throw ExceptionUtilities.UnexpectedValue(severity) 2817throw ExceptionUtilities.UnexpectedValue(_actionKind); 3218throw ExceptionUtilities.UnexpectedValue(_analysisKind);
Metadata\ILBuilderVisualizer.cs (1)
500throw ExceptionUtilities.UnexpectedValue(opcode);
Metadata\MetadataReaderUtils.cs (2)
176throw ExceptionUtilities.UnexpectedValue(token.Kind); 229throw ExceptionUtilities.UnexpectedValue(token.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (3)
248throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 341throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 396throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
Microsoft.CodeAnalysis.UnitTests (6)
AnalyzerAssemblyLoaderTests.cs (1)
1664_ => throw ExceptionUtilities.UnexpectedValue(kind)
Collections\ImmutableSetTest.nonnetstandard.cs (2)
73_ => throw ExceptionUtilities.UnexpectedValue(set), 89_ => throw ExceptionUtilities.UnexpectedValue(set),
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
76throw ExceptionUtilities.UnexpectedValue(method);
Collections\TestExtensionsMethods.nonnetstandard.cs (2)
38_ => throw ExceptionUtilities.UnexpectedValue(dictionary), 50_ => throw ExceptionUtilities.UnexpectedValue(dictionary),