1112 references to UnexpectedValue
Microsoft.CodeAnalysis (462)
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)
140throw ExceptionUtilities.UnexpectedValue(tokenKind); 306throw ExceptionUtilities.UnexpectedValue(tokenKind); 404throw ExceptionUtilities.UnexpectedValue(lastChar);
Compilation\Compilation.cs (3)
2314throw ExceptionUtilities.UnexpectedValue(platform); 2412throw ExceptionUtilities.UnexpectedValue(outputKind); 2433throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
371throw ExceptionUtilities.UnexpectedValue(m); 394throw 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); 82throw ExceptionUtilities.UnexpectedValue(algorithmId); 126throw ExceptionUtilities.UnexpectedValue(algorithmId); 288throw 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)
1187throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
578throw ExceptionUtilities.UnexpectedValue(deletedMember); 661throw ExceptionUtilities.UnexpectedValue(change); 1516throw ExceptionUtilities.UnexpectedValue(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
213throw ExceptionUtilities.UnexpectedValue(generatorChange); 279throw ExceptionUtilities.UnexpectedValue(containerChange); 411throw ExceptionUtilities.UnexpectedValue(edit.Kind);
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 (328)
4056_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4071throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4087throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4111_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4126throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4142throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4175_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4193throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4212throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4269_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4293throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4318throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4357_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4383throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4410throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4461_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4491throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4522throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4572_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4585throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4599throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4619internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4633internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4658_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4671throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4685throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4716_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4732throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4749throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4785_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4806throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4828throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4863_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4879throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4896throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4920_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4933throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4947throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4978_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4994throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5011throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5025internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5039internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5068_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5086throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5105throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5123internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5156_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5169throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5183throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5219_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5237throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5256throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5286_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5304throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5323throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5345internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5364internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5402_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5415throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5429throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5458_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5471throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5485throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5517_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5535throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5554throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5581_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5594throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5608throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5644_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5657throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5671throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5716_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5732throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5749throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5787_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5806throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5826throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5860_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5876throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5893throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5919_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5932throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5946throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5979_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5997throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6016throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6041_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6054throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6068throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6098_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6116throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6135throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6154internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6183_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6196throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6210throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6235_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6248throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6262throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6302_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6318throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6335throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6377_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6393throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6410throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6436_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6449throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6463throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6495_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6511throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6528throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6558_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6574throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6591throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6608internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6634_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6649throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6665throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6690_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6705throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6721throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6746_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6761throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6777throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6807_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6823throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6840throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6866_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6879throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6893throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6920_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6935throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6951throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6982_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6995throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7009throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7034_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7047throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7061throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7086_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7099throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7113throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7131internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7150internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7170internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7195_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7208throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7222throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7252_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7268throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7285throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7321_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7334throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7348throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7373_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7386throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7400throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7426_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7442throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7459throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7484_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7497throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7511throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7528internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7563_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7576throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7590throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7610_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7623throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7637throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7661_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7674throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7688throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7712_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7725throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7739throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7763_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7778throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7794throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7825_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7843throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7862throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7896_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7919throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7943throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7977_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7990throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8004throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8042_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8061throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8081throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8114_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8134throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8155throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8179internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8209_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8225throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8242throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8271_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8287throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8304throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8330_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8343throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8357throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8381_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8394throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8408throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8437_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8450throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8464throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8498_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8517throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8537throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8572_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8585throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8599throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8621internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8653_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8669throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8686throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8720_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8736throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8753throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8785_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8804throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8824throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8843internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8869_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8882throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8896throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8918internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8944_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8957throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8971throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8988internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9007internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9033_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9049throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9066throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9100_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9116throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9133throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9159_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9174throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9190throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9219_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9237throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9256throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9291_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9311throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9332throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9346internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9378_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9396throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9415throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9451_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9470throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9490throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9519_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9535throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9552throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9582_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9598throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9615throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9646_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9662throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9679throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9704_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9717throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9731throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9750internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9779_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9795throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9812throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9840_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9867throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9891_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9904throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9918throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9949_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9965throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9982throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10000internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10026_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10039throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10053throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10085_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10101throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10118throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10152_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10168throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10185throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10214_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10230throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10247throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10272_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10285throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10299throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10319internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10349_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10367throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10386throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10416_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10431throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10447throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10473_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10486throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10500throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10534_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10550throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10567throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10586internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10610_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10623throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10637throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10667_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10683throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10700throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10732_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10752throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10773throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10802_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10815throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10829throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10846internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index));
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)
276throw ExceptionUtilities.UnexpectedValue(c); 373throw ExceptionUtilities.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73throw ExceptionUtilities.UnexpectedValue(typeCode); 135throw ExceptionUtilities.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (8)
1311_ => throw ExceptionUtilities.UnexpectedValue(kind) 1331throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1830throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1879throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1893throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1926throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1975throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3368throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135throw ExceptionUtilities.UnexpectedValue(_contentType);
Operations\ControlFlowGraphBuilder.cs (15)
339throw ExceptionUtilities.UnexpectedValue(branch.Kind); 428throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 484throw ExceptionUtilities.UnexpectedValue(@catch.Kind); 604throw ExceptionUtilities.UnexpectedValue(region.Kind); 2283throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3851throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5639throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5659throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 6276throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6348throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6549throw ExceptionUtilities.UnexpectedValue("Mixed argument operations and non-argument operations in ConstructArguments"); 6938throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6950throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 7027throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7101throw 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)
2272throw ExceptionUtilities.UnexpectedValue(exportedType); 2900throw ExceptionUtilities.UnexpectedValue(typeRef); 3151_ => throw ExceptionUtilities.UnexpectedValue(reference) 3331throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3406throw ExceptionUtilities.UnexpectedValue(operandType); 4040throw ExceptionUtilities.UnexpectedValue(primitiveType); 4146throw 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)
47_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 66_ => throw ExceptionUtilities.UnexpectedValue(algorithm)
Microsoft.CodeAnalysis.CSharp (571)
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)
423throw ExceptionUtilities.UnexpectedValue(topClause.Kind());
Binder\Binder.OperatorResolutionForReporting.cs (2)
215throw ExceptionUtilities.UnexpectedValue(result); 310throw ExceptionUtilities.UnexpectedValue(result);
Binder\Binder.ValueChecks.cs (16)
82_ => throw ExceptionUtilities.UnexpectedValue(accessorKind), 385_ => throw ExceptionUtilities.UnexpectedValue(EscapeLevel) 1141throw ExceptionUtilities.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind); 1646throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1678throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1693throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 3524throw ExceptionUtilities.UnexpectedValue(kind); 3552throw ExceptionUtilities.UnexpectedValue(kind); 3596throw ExceptionUtilities.UnexpectedValue(kind); 3890throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4187throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4524throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4834throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); // ref struct collection type with unexpected type kind 5226throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 5868throw ExceptionUtilities.UnexpectedValue(expression.Kind); 5911throw 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 (26)
824throw ExceptionUtilities.UnexpectedValue(v); 961_ => throw ExceptionUtilities.UnexpectedValue(collectionTypeKind), 1059throw ExceptionUtilities.UnexpectedValue(@this._targetType); 1690throw ExceptionUtilities.UnexpectedValue(targetType); 2167throw ExceptionUtilities.UnexpectedValue(element); 2183throw ExceptionUtilities.UnexpectedValue(element); 2735_ => throw ExceptionUtilities.UnexpectedValue(source), 2918throw ExceptionUtilities.UnexpectedValue(conversion.Kind); 3331_ => throw ExceptionUtilities.UnexpectedValue(delegateType), 3471_ => throw ExceptionUtilities.UnexpectedValue(type) 3479_ => throw ExceptionUtilities.UnexpectedValue(type) 3827default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3847default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3867default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3887default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3907default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3926default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3946default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3966default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3986default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4006default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4026default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4050default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4070default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4073throw ExceptionUtilities.UnexpectedValue(value.Discriminator); 4176default: throw ExceptionUtilities.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
42throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 134throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 800throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1022throw ExceptionUtilities.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (2)
385throw ExceptionUtilities.UnexpectedValue(expression.Kind); 850throw ExceptionUtilities.UnexpectedValue(node.Kind());
Binder\Binder_Expressions.cs (13)
1030throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1615throw ExceptionUtilities.UnexpectedValue(managedKind); 2217_ => throw ExceptionUtilities.UnexpectedValue(alias.Target.Kind), 2226throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2571throw ExceptionUtilities.UnexpectedValue(symbol); 3261throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 3940throw ExceptionUtilities.UnexpectedValue(argumentIndex); 5328throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5375_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 7201throw ExceptionUtilities.UnexpectedValue(classCreation.Kind); 8295throw ExceptionUtilities.UnexpectedValue(extensionMember.Kind); 8749throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 9607throw 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)
1120throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (2)
258throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1614throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Binder\Binder_Operators.cs (7)
1269_ => throw ExceptionUtilities.UnexpectedValue(current.Right.Kind) 2652throw ExceptionUtilities.UnexpectedValue(kind); 2673throw ExceptionUtilities.UnexpectedValue(underlyingType); 2736throw ExceptionUtilities.UnexpectedValue(newKind.Operator()); 3227default: throw ExceptionUtilities.UnexpectedValue(kind); 4623default: throw ExceptionUtilities.UnexpectedValue(kind); 5287throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (3)
197_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 934throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 1469throw 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()); 1709throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 1761_ => throw ExceptionUtilities.UnexpectedValue(e.Kind) 1782throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3627_ => throw ExceptionUtilities.UnexpectedValue(expressionBody.Parent.Kind()), 3711throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Binder\Binder_Symbols.cs (3)
167throw ExceptionUtilities.UnexpectedValue(keyword); 742throw ExceptionUtilities.UnexpectedValue(typesArray.Length); 1483throw ExceptionUtilities.UnexpectedValue(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
116throw ExceptionUtilities.UnexpectedValue(comparison); 156throw ExceptionUtilities.UnexpectedValue(binaryOperator);
Binder\Binder_Unsafe.cs (1)
34_ => throw ExceptionUtilities.UnexpectedValue(callerUnsafeMode),
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 477throw ExceptionUtilities.UnexpectedValue(baseMethodDeclarationSyntax.Kind()); 502throw ExceptionUtilities.UnexpectedValue(basePropertyDeclarationSyntax.Kind()); 1190throw ExceptionUtilities.UnexpectedValue(elementKind);
Binder\DecisionDagBuilder.cs (10)
290throw ExceptionUtilities.UnexpectedValue(toAssemble); 294throw ExceptionUtilities.UnexpectedValue(current); 360throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1004throw ExceptionUtilities.UnexpectedValue(n.Kind); 1272throw ExceptionUtilities.UnexpectedValue(n?.Kind); 1356throw ExceptionUtilities.UnexpectedValue(test); 2723throw ExceptionUtilities.UnexpectedValue(e); 2963throw ExceptionUtilities.UnexpectedValue(test); 2983throw ExceptionUtilities.UnexpectedValue(test); 3001_ => throw ExceptionUtilities.UnexpectedValue(negated),
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
743throw ExceptionUtilities.UnexpectedValue(operandOrOperation);
Binder\ExpressionVariableFinder.cs (3)
259throw ExceptionUtilities.UnexpectedValue(node.Kind()); 438throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 524throw 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()); 1652throw ExceptionUtilities.UnexpectedValue(enumeratorType.TypeKind);
Binder\LookupResultKind.cs (1)
98throw ExceptionUtilities.UnexpectedValue(resultKind);
Binder\PatternExplainer.cs (2)
200throw ExceptionUtilities.UnexpectedValue(currentNode.Kind); 484throw ExceptionUtilities.UnexpectedValue(v);
Binder\RefSafetyAnalysis.cs (1)
915throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex + extensionBlockFormOffset);
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)
1089_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType) 1470_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1473throw ExceptionUtilities.UnexpectedValue(member.Kind); 4409throw ExceptionUtilities.UnexpectedValue(member); 4790throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
475throw ExceptionUtilities.UnexpectedValue(result.Result.Kind); 1568throw ExceptionUtilities.UnexpectedValue(kind);
Binder\SwitchBinder_Patterns.cs (1)
130throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Binder\WhileBinder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(_syntax.Kind());
Binder\WithCrefTypeParametersBinder.cs (2)
73throw ExceptionUtilities.UnexpectedValue(_crefSyntax.Kind()); 100throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (1)
194throw ExceptionUtilities.UnexpectedValue(_declarationSyntax);
BoundTree\BoundConversion.cs (1)
145ExceptionUtilities.UnexpectedValue(InConversionGroupFlags);
BoundTree\BoundDagEvaluation.cs (1)
61_ => throw ExceptionUtilities.UnexpectedValue(this.Kind)
BoundTree\BoundDagTest.cs (1)
41throw 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 (5)
45throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 134throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 176throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller. 180throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 207ExceptionUtilities.UnexpectedValue(conversionKind);
CodeGen\EmitExpression.cs (6)
174throw ExceptionUtilities.UnexpectedValue(expression.Kind); 365throw ExceptionUtilities.UnexpectedValue(expression.Kind); 743throw ExceptionUtilities.UnexpectedValue(refKind); 2997throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3018throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3205throw 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()); 1205throw 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)
3796throw ExceptionUtilities.UnexpectedValue(containingMember.Kind); 4024throw 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()); 2492ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2530ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2557ExceptionUtilities.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)
1319throw ExceptionUtilities.UnexpectedValue(elementKind);
Compiler\MethodCompiler.cs (2)
2040throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); 2172throw 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)
282throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 378throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 460_ => throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind), 787throw ExceptionUtilities.UnexpectedValue(type.Kind);
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(value);
Emitter\Model\PEModuleBuilder.cs (7)
250throw ExceptionUtilities.UnexpectedValue(member.Kind); 292throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 371throw ExceptionUtilities.UnexpectedValue(member.Kind); 437throw ExceptionUtilities.UnexpectedValue(member.Kind); 444throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 918throw ExceptionUtilities.UnexpectedValue(type); 1316throw ExceptionUtilities.UnexpectedValue(typeSymbol.Kind);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
337throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
571throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
730throw ExceptionUtilities.UnexpectedValue(feature);
FlowAnalysis\AbstractFlowPass.cs (6)
871throw ExceptionUtilities.UnexpectedValue(node.Kind); 1022throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1075throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1567throw ExceptionUtilities.UnexpectedValue(refKind); 2477throw ExceptionUtilities.UnexpectedValue(binary.Kind); 2499throw ExceptionUtilities.UnexpectedValue(binary.Kind);
FlowAnalysis\DefiniteAssignment.cs (1)
2082throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
FlowAnalysis\ExitPointsWalker.cs (1)
148throw ExceptionUtilities.UnexpectedValue(pending.Branch.Kind);
FlowAnalysis\NullableWalker.cs (13)
608throw ExceptionUtilities.UnexpectedValue(placeholder.Kind); 2058throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 4449ExceptionUtilities.UnexpectedValue(node.Kind); 5010_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 5087_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 6116_ => throw ExceptionUtilities.UnexpectedValue(node.OperatorResultKind), 7534throw ExceptionUtilities.UnexpectedValue(member); 8040throw ExceptionUtilities.UnexpectedValue(refKind); 8132throw ExceptionUtilities.UnexpectedValue(refKind); 8284throw ExceptionUtilities.UnexpectedValue(refKind); 12106_ => throw ExceptionUtilities.UnexpectedValue(node.Syntax) 12428throw ExceptionUtilities.UnexpectedValue(binary.Kind); 12443throw ExceptionUtilities.UnexpectedValue(binary.Kind);
FlowAnalysis\NullableWalker_Patterns.cs (6)
244throw ExceptionUtilities.UnexpectedValue(pattern); 530throw ExceptionUtilities.UnexpectedValue(p.Evaluation.Kind); 607throw ExceptionUtilities.UnexpectedValue(test.Kind); 666throw ExceptionUtilities.UnexpectedValue(dagNode.Kind); 819throw ExceptionUtilities.UnexpectedValue(evaluation.Kind); 958_ => throw ExceptionUtilities.UnexpectedValue(e.Kind)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
159throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
LanguageVersion.cs (2)
360throw ExceptionUtilities.UnexpectedValue(version); 443throw 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)
158throw ExceptionUtilities.UnexpectedValue(stmt.Kind); 256throw ExceptionUtilities.UnexpectedValue(node.Kind); 485throw ExceptionUtilities.UnexpectedValue(opKind.Operator()); 807throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup); 823throw ExceptionUtilities.UnexpectedValue(node.Argument); 952throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 979throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1032throw ExceptionUtilities.UnexpectedValue(elementKind); 1087throw ExceptionUtilities.UnexpectedValue(initializerKind); // no other options at the top level of an initializer 1211throw ExceptionUtilities.UnexpectedValue(op); 1231throw ExceptionUtilities.UnexpectedValue(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107throw ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
76throw 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)
397throw ExceptionUtilities.UnexpectedValue(original.Left); 499_ => throw ExceptionUtilities.UnexpectedValue(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81throw ExceptionUtilities.UnexpectedValue(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.cs (1)
1128throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89throw ExceptionUtilities.UnexpectedValue(node.Kind); 640throw ExceptionUtilities.UnexpectedValue(otherwise); 672throw ExceptionUtilities.UnexpectedValue(n); 811throw ExceptionUtilities.UnexpectedValue(input.Type); 826_ => throw ExceptionUtilities.UnexpectedValue(input.Type.SpecialType) 865_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 878_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 937_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 949_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 964_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 972_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 1241throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
312throw ExceptionUtilities.UnexpectedValue(evaluation); 372throw ExceptionUtilities.UnexpectedValue(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
187throw ExceptionUtilities.UnexpectedValue(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
218throw ExceptionUtilities.UnexpectedValue(operatorKind); 266throw ExceptionUtilities.UnexpectedValue(operatorKind); 532throw ExceptionUtilities.UnexpectedValue(operatorKind); 2078throw ExceptionUtilities.UnexpectedValue(operatorKind); 2384throw ExceptionUtilities.UnexpectedValue(numericSpecialType); 2451throw ExceptionUtilities.UnexpectedValue(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
891var u => throw ExceptionUtilities.UnexpectedValue(u.Kind) 912throw ExceptionUtilities.UnexpectedValue(argIndex);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
98throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); 476var e => throw ExceptionUtilities.UnexpectedValue(e) 536var v => throw ExceptionUtilities.UnexpectedValue(v) 834throw ExceptionUtilities.UnexpectedValue(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
551throw ExceptionUtilities.UnexpectedValue(indexerAccess.Argument.Type); 872throw 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); 1689throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType); 1709throw ExceptionUtilities.UnexpectedValue(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
159throw ExceptionUtilities.UnexpectedValue(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (4)
153_ => throw ExceptionUtilities.UnexpectedValue(oldNode) 597throw ExceptionUtilities.UnexpectedValue(strategy); 727throw ExceptionUtilities.UnexpectedValue(strategy); 952throw 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)
267throw 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)
245_ => throw ExceptionUtilities.UnexpectedValue(proxy)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
187throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
299throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
810throw ExceptionUtilities.UnexpectedValue(input.Type); 1686throw ExceptionUtilities.UnexpectedValue(refKind);
Operations\CSharpOperationFactory.cs (16)
340throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 423throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 555throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 615throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 814throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 830throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 917throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind); 1264throw ExceptionUtilities.UnexpectedValue(expr.CollectionTypeKind); 1525{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2288{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2381throw ExceptionUtilities.UnexpectedValue(part.Kind); 2397_ => throw ExceptionUtilities.UnexpectedValue(value.Kind), 2494_ => throw ExceptionUtilities.UnexpectedValue(part.Kind) 2502_ => throw ExceptionUtilities.UnexpectedValue(methodName) 2517throw ExceptionUtilities.UnexpectedValue(current.Kind); 2540_ => throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
260throw ExceptionUtilities.UnexpectedValue(containingExpression.Kind);
Parser\LanguageParser.cs (6)
1723throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1997throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 7577throw ExceptionUtilities.UnexpectedValue(mode); 11298throw ExceptionUtilities.UnexpectedValue(op); 11884_ => throw ExceptionUtilities.UnexpectedValue(node), 12952throw ExceptionUtilities.UnexpectedValue(type);
Parser\LanguageParser_InterpolatedString.cs (2)
185_ => throw ExceptionUtilities.UnexpectedValue(kind), 357_ => throw ExceptionUtilities.UnexpectedValue(kind),
Parser\Lexer.cs (2)
288throw ExceptionUtilities.UnexpectedValue(ModeOf(_mode)); 371throw ExceptionUtilities.UnexpectedValue(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
88throw ExceptionUtilities.UnexpectedValue(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (1)
89throw ExceptionUtilities.UnexpectedValue(node.KindText);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
464ExceptionUtilities.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)
291throw ExceptionUtilities.UnexpectedValue(descriptor.Flags); 359throw ExceptionUtilities.UnexpectedValue(targetSymbolKind); 691throw ExceptionUtilities.UnexpectedValue(attribute);
Symbols\ConstraintsHelper.cs (4)
287throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1135throw ExceptionUtilities.UnexpectedValue(error); 1506throw ExceptionUtilities.UnexpectedValue(typeArgument.TypeKind); 1649throw 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)
850throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46throw ExceptionUtilities.UnexpectedValue(member.Kind); 64throw ExceptionUtilities.UnexpectedValue(member.Kind); 78throw ExceptionUtilities.UnexpectedValue(member.Kind); 148throw ExceptionUtilities.UnexpectedValue(member); 178throw ExceptionUtilities.UnexpectedValue(member); 242throw ExceptionUtilities.UnexpectedValue(member); 308throw ExceptionUtilities.UnexpectedValue(member.Kind); 334throw ExceptionUtilities.UnexpectedValue(member.Kind); 350throw ExceptionUtilities.UnexpectedValue(member.Kind); 482throw ExceptionUtilities.UnexpectedValue(m.Kind); 528throw ExceptionUtilities.UnexpectedValue(s.Kind); 582throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 600throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 869throw ExceptionUtilities.UnexpectedValue(member.Kind); 899throw 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)
1187throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
708throw ExceptionUtilities.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
902throw ExceptionUtilities.UnexpectedValue(_flags & TypeAttributes.VisibilityMask);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1268_ => 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)
628throw 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)
75throw 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)
97throw ExceptionUtilities.UnexpectedValue(i);
Symbols\Source\ModifierUtils.cs (2)
354throw ExceptionUtilities.UnexpectedValue(modifier); 407throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Source\ParameterHelpers.cs (1)
826throw ExceptionUtilities.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (2)
1675_ => throw ExceptionUtilities.UnexpectedValue(attribute) 2091throw 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)
556throw ExceptionUtilities.UnexpectedValue(_declarationKind); 855throw ExceptionUtilities.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3920throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 4087throw ExceptionUtilities.UnexpectedValue(symbol); 4604throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4615throw ExceptionUtilities.UnexpectedValue(member.Kind); 4659throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4676throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
308throw ExceptionUtilities.UnexpectedValue(matchResult); 531throw ExceptionUtilities.UnexpectedValue(this.TypeKind); 1772throw ExceptionUtilities.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1457throw ExceptionUtilities.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics); 1565var unexpected => throw ExceptionUtilities.UnexpectedValue(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
415throw ExceptionUtilities.UnexpectedValue(member); 423throw ExceptionUtilities.UnexpectedValue(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
179throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 487throw ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
622throw ExceptionUtilities.UnexpectedValue(baseType.TypeKind); 774throw ExceptionUtilities.UnexpectedValue(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
187throw ExceptionUtilities.UnexpectedValue(type); 309_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 460throw ExceptionUtilities.UnexpectedValue(annotation); 493throw ExceptionUtilities.UnexpectedValue(type); 715_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 758_ => throw ExceptionUtilities.UnexpectedValue(refKind) 926throw 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)
185_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 288throw 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)
304throw ExceptionUtilities.UnexpectedValue(DeclaredAccessibility); 709throw ExceptionUtilities.UnexpectedValue(this.Kind); 1762throw ExceptionUtilities.UnexpectedValue(variable); 1765throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 746throw ExceptionUtilities.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
522throw 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)
187var 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)
1584throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1982throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2045throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind);
Symbols\TypeSymbolExtensions.cs (3)
971throw ExceptionUtilities.UnexpectedValue(current.TypeKind); 1204throw ExceptionUtilities.UnexpectedValue(acc1); 1559throw 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)
13513_ => throw ExceptionUtilities.UnexpectedValue(expectedDiagnosticSeverity) 13977throw ExceptionUtilities.UnexpectedValue(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (1)
UnsafeEvolutionTests.cs (1)
298_ => throw ExceptionUtilities.UnexpectedValue(symbolGetter),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27487throw ExceptionUtilities.UnexpectedValue(expectedValue); 27507throw ExceptionUtilities.UnexpectedValue(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (32)
Diagnostics\GetDiagnosticsTests.cs (2)
1146_ => throw ExceptionUtilities.UnexpectedValue(basePropertyDecl.Kind()), 1157_ => throw ExceptionUtilities.UnexpectedValue(baseMethodDecl.Kind()),
PartialEventsAndConstructorsTests.cs (2)
1064_ => throw ExceptionUtilities.UnexpectedValue(access), 1232_ => throw ExceptionUtilities.UnexpectedValue(access),
RefReadonlyParameterTests.cs (2)
87throw ExceptionUtilities.UnexpectedValue(customModifiers); 7089_ => throw ExceptionUtilities.UnexpectedValue(modifier)
Semantics\CollectionExpressionTests_WithElement_Extra.cs (1)
1002throw ExceptionUtilities.UnexpectedValue(typeName);
Semantics\ExtensionOperatorsTests.cs (17)
11469public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 11996public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 16126public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 18824public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 18949public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C1 y) => throw null; 19068public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19129public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19177public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(T x, T y) => throw null; 19233public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19280public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19315public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 19503public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19571public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19603public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19647public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19689public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19733public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (6)
9038throw ExceptionUtilities.UnexpectedValue(refKind); 10428throw ExceptionUtilities.UnexpectedValue(refKind); 11786throw ExceptionUtilities.UnexpectedValue(refKind); 12525throw ExceptionUtilities.UnexpectedValue(refKind); 13504throw ExceptionUtilities.UnexpectedValue(refKind); 15097throw 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)
2022_ => throw ExceptionUtilities.UnexpectedValue(access), 2174_ => throw ExceptionUtilities.UnexpectedValue(access),
Symbols\PartialPropertiesTests.cs (4)
393throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 430throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 2634_ => throw ExceptionUtilities.UnexpectedValue(access), 2782_ => 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)
766throw ExceptionUtilities.UnexpectedValue(member.Kind); 833throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 859throw 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) 2820throw ExceptionUtilities.UnexpectedValue(_actionKind); 3221throw ExceptionUtilities.UnexpectedValue(_analysisKind);
Metadata\ILBuilderVisualizer.cs (1)
509throw ExceptionUtilities.UnexpectedValue(opcode);
Metadata\MetadataReaderUtils.cs (2)
177throw ExceptionUtilities.UnexpectedValue(token.Kind); 230throw 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)
1662_ => 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),