1944 references to ExceptionUtilities
Microsoft.CodeAnalysis (692)
CodeGen\ArrayMembers.cs (3)
138throw ExceptionUtilities.UnexpectedValue(id); 369throw ExceptionUtilities.Unreachable(); 375throw ExceptionUtilities.Unreachable();
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\LocalDefinition.cs (2)
109get { throw ExceptionUtilities.Unreachable(); } 117get { throw ExceptionUtilities.Unreachable(); }
CodeGen\LocalScopeManager.cs (2)
229throw ExceptionUtilities.Unreachable(); 806throw ExceptionUtilities.UnexpectedValue(handlerScope.Type);
CodeGen\PrivateImplementationDetails.cs (8)
830get { throw ExceptionUtilities.Unreachable(); } 849throw ExceptionUtilities.Unreachable(); 870get { throw ExceptionUtilities.Unreachable(); } 876throw ExceptionUtilities.Unreachable(); 882throw ExceptionUtilities.Unreachable(); 1052get { throw ExceptionUtilities.Unreachable(); } 1092throw ExceptionUtilities.Unreachable(); 1098throw ExceptionUtilities.Unreachable();
CodeGen\SignatureOnlyLocalDefinition.cs (6)
31get { throw ExceptionUtilities.Unreachable(); } 36get { throw ExceptionUtilities.Unreachable(); } 57get { throw ExceptionUtilities.Unreachable(); } 62get { throw ExceptionUtilities.Unreachable(); } 67get { throw ExceptionUtilities.Unreachable(); } 78get { throw ExceptionUtilities.Unreachable(); }
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
517throw ExceptionUtilities.UnexpectedValue(branchCode);
Collections\Rope.cs (5)
75throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 159throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 202throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 213throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 234throw ExceptionUtilities.UnexpectedValue(v.GetType().Name);
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
140throw ExceptionUtilities.UnexpectedValue(tokenKind); 306throw ExceptionUtilities.UnexpectedValue(tokenKind); 404throw ExceptionUtilities.UnexpectedValue(lastChar);
Compilation.EmitStreamProvider.cs (1)
68throw ExceptionUtilities.Unreachable();
Compilation\Compilation.cs (3)
2325throw ExceptionUtilities.UnexpectedValue(platform); 2423throw ExceptionUtilities.UnexpectedValue(outputKind); 2444throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
392throw ExceptionUtilities.UnexpectedValue(m); 415throw 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 (2)
121throw ExceptionUtilities.UnexpectedValue(type); 458throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalysisResultBuilder.cs (2)
124throw ExceptionUtilities.Unreachable(); 144throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1586throw ExceptionUtilities.Unreachable(); 1645throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (3)
811throw ExceptionUtilities.Unreachable(); 1095throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString()); 1291throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228throw ExceptionUtilities.UnexpectedValue(_scope);
DocumentationComments\XmlDocumentationCommentTextReader.XmlStream.cs (2)
147throw ExceptionUtilities.Unreachable(); 153throw ExceptionUtilities.Unreachable();
EmbeddedText.cs (1)
378throw ExceptionUtilities.Unreachable();
Emit\CommonPEModuleBuilder.cs (1)
1192throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (28)
103=> throw ExceptionUtilities.Unreachable(); 106=> throw ExceptionUtilities.Unreachable(); 109=> throw ExceptionUtilities.Unreachable(); 112=> throw ExceptionUtilities.Unreachable(); 115=> throw ExceptionUtilities.Unreachable(); 118=> throw ExceptionUtilities.Unreachable(); 121=> throw ExceptionUtilities.Unreachable(); 124=> throw ExceptionUtilities.Unreachable(); 127=> throw ExceptionUtilities.Unreachable(); 130=> throw ExceptionUtilities.Unreachable(); 133=> throw ExceptionUtilities.Unreachable(); 136=> throw ExceptionUtilities.Unreachable(); 139=> throw ExceptionUtilities.Unreachable(); 142=> throw ExceptionUtilities.Unreachable(); 145=> throw ExceptionUtilities.Unreachable(); 148=> throw ExceptionUtilities.Unreachable(); 151=> throw ExceptionUtilities.Unreachable(); 154=> throw ExceptionUtilities.Unreachable(); 157=> throw ExceptionUtilities.Unreachable(); 160=> throw ExceptionUtilities.Unreachable(); 163=> throw ExceptionUtilities.Unreachable(); 166=> throw ExceptionUtilities.Unreachable(); 169=> throw ExceptionUtilities.Unreachable(); 172=> throw ExceptionUtilities.Unreachable(); 175=> throw ExceptionUtilities.Unreachable(); 178=> throw ExceptionUtilities.Unreachable(); 182=> throw ExceptionUtilities.Unreachable(); 186=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceEventDefinition.cs (8)
34public ITypeDefinition ContainingTypeDefinition => throw ExceptionUtilities.Unreachable(); 47public IMethodReference Adder => throw ExceptionUtilities.Unreachable(); 48public IMethodReference? Caller => throw ExceptionUtilities.Unreachable(); 49public IMethodReference Remover => throw ExceptionUtilities.Unreachable(); 52=> throw ExceptionUtilities.Unreachable(); 55=> throw ExceptionUtilities.Unreachable(); 60throw ExceptionUtilities.Unreachable(); 66throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
86=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (6)
32=> throw ExceptionUtilities.Unreachable(); 76public ITypeDefinition ContainingTypeDefinition => throw ExceptionUtilities.Unreachable(); 114=> throw ExceptionUtilities.Unreachable(); 133=> throw ExceptionUtilities.Unreachable(); 143throw ExceptionUtilities.Unreachable(); 149throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourcePropertyDefinition.cs (7)
53public ITypeDefinition ContainingTypeDefinition => throw ExceptionUtilities.Unreachable(); 67=> throw ExceptionUtilities.Unreachable(); 70=> throw ExceptionUtilities.Unreachable(); 73=> throw ExceptionUtilities.Unreachable(); 79=> throw ExceptionUtilities.Unreachable(); 84throw ExceptionUtilities.Unreachable(); 90throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (9)
60=> throw ExceptionUtilities.Unreachable(); 107=> throw ExceptionUtilities.Unreachable(); 110=> throw ExceptionUtilities.Unreachable(); 113=> throw ExceptionUtilities.Unreachable(); 116=> throw ExceptionUtilities.Unreachable(); 119=> throw ExceptionUtilities.Unreachable(); 122=> throw ExceptionUtilities.Unreachable(); 125=> throw ExceptionUtilities.Unreachable(); 128=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeltaMetadataWriter.cs (5)
55private ArrayBuilder<int> CustomAttributeRowIds => _customAttributeRowIds ?? throw ExceptionUtilities.Unreachable(); 592throw ExceptionUtilities.UnexpectedValue(deletedMember); 675throw ExceptionUtilities.UnexpectedValue(change); 725throw ExceptionUtilities.Unreachable(); 1530throw ExceptionUtilities.UnexpectedValue(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
213throw ExceptionUtilities.UnexpectedValue(generatorChange); 279throw ExceptionUtilities.UnexpectedValue(containerChange); 411throw ExceptionUtilities.UnexpectedValue(edit.Kind);
Emit\ErrorType.cs (2)
197throw ExceptionUtilities.Unreachable(); 203throw ExceptionUtilities.Unreachable();
Emit\HotReloadExceptionCode.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(code)
Emit\NoPia\CommonEmbeddedMember.cs (4)
112throw ExceptionUtilities.Unreachable(); 117throw ExceptionUtilities.Unreachable(); 125throw ExceptionUtilities.Unreachable(); 131throw ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedParameter.cs (3)
214throw ExceptionUtilities.Unreachable(); 277throw ExceptionUtilities.Unreachable(); 283throw ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedType.cs (3)
561throw ExceptionUtilities.Unreachable(); 729throw ExceptionUtilities.Unreachable(); 735throw ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (3)
212throw ExceptionUtilities.Unreachable(); 243throw ExceptionUtilities.Unreachable(); 249throw ExceptionUtilities.Unreachable();
Emit\NoPia\VtblGap.cs (2)
263throw ExceptionUtilities.Unreachable(); 269throw ExceptionUtilities.Unreachable();
EnumConstantHelper.cs (1)
111throw ExceptionUtilities.UnexpectedValue(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
186throw ExceptionUtilities.UnexpectedValue(kind);
Generated\Operations.Generated.cs (329)
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)); 10865public override IOperation DefaultVisit(IOperation operation, object? argument) => throw ExceptionUtilities.Unreachable();
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51=> throw ExceptionUtilities.Unreachable();
InternalUtilities\RoslynParallel.cs (2)
35throw ExceptionUtilities.Unreachable(); 42throw ExceptionUtilities.Unreachable();
InternalUtilities\SingleInitNullable.cs (2)
77return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 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); 1831throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1880throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1894throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1927throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1976throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3369throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135throw ExceptionUtilities.UnexpectedValue(_contentType);
MetadataReference\MetadataImageReference.cs (1)
36throw ExceptionUtilities.Unreachable();
NativePdbWriter\PdbWriter.cs (1)
455throw ExceptionUtilities.Unreachable();
Operations\ControlFlowGraphBuilder.cs (42)
347throw ExceptionUtilities.UnexpectedValue(branch.Kind); 436throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 456throw ExceptionUtilities.Unreachable(); 492throw ExceptionUtilities.UnexpectedValue(@catch.Kind); 612throw ExceptionUtilities.UnexpectedValue(region.Kind); 1321throw ExceptionUtilities.Unreachable(); 2291throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3834throw ExceptionUtilities.Unreachable(); 3859throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5245throw ExceptionUtilities.Unreachable(); 5648throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5668throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 5683throw ExceptionUtilities.Unreachable(); 5688throw ExceptionUtilities.Unreachable(); 5693throw ExceptionUtilities.Unreachable(); 5698throw ExceptionUtilities.Unreachable(); 5703throw ExceptionUtilities.Unreachable(); 5708throw ExceptionUtilities.Unreachable(); 5903throw ExceptionUtilities.Unreachable(); 5909throw ExceptionUtilities.Unreachable(); 5915throw ExceptionUtilities.Unreachable(); 5920throw ExceptionUtilities.Unreachable(); 5925throw ExceptionUtilities.Unreachable(); 5930throw ExceptionUtilities.Unreachable(); 5935throw ExceptionUtilities.Unreachable(); 6285throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6357throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6478throw ExceptionUtilities.Unreachable(); 6558throw ExceptionUtilities.UnexpectedValue("Mixed argument operations and non-argument operations in ConstructArguments"); 6610throw ExceptionUtilities.Unreachable(); 6947throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6959throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6989throw ExceptionUtilities.Unreachable(); 6994throw ExceptionUtilities.Unreachable(); 7036throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7110throw ExceptionUtilities.UnexpectedValue(element.Kind); 7124throw ExceptionUtilities.Unreachable(); 7129throw ExceptionUtilities.Unreachable(); 7582throw ExceptionUtilities.Unreachable(); 7944throw ExceptionUtilities.Unreachable(); 7949throw ExceptionUtilities.Unreachable(); 7954throw ExceptionUtilities.Unreachable();
Operations\ControlFlowRegion.cs (1)
142throw ExceptionUtilities.UnexpectedValue(kind);
Operations\OperationCloner.cs (4)
52throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable(); 62throw ExceptionUtilities.Unreachable(); 67throw ExceptionUtilities.Unreachable();
Operations\OperationNodes.cs (22)
33_ => throw ExceptionUtilities.UnexpectedValue((slot, index)) 51throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 61_ => throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)) 104_ => throw ExceptionUtilities.UnexpectedValue((slot, index)) 122throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 132_ => throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)) 163internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 271_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 294throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 318throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 349_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 372throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 396throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 435_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 458throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 482throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 526_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 538_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 563throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 584throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 610throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex));
PEWriter\InheritedTypeParameter.cs (8)
235throw ExceptionUtilities.Unreachable(); 283get { throw ExceptionUtilities.Unreachable(); } 288get { throw ExceptionUtilities.Unreachable(); } 293get { throw ExceptionUtilities.Unreachable(); } 298get { throw ExceptionUtilities.Unreachable(); } 303get { throw ExceptionUtilities.Unreachable(); } 309throw ExceptionUtilities.Unreachable(); 315throw ExceptionUtilities.Unreachable();
PEWriter\MetadataVisitor.cs (1)
214throw ExceptionUtilities.Unreachable();
PEWriter\MetadataWriter.cs (10)
1093_ => throw ExceptionUtilities.Unreachable() 1598throw ExceptionUtilities.Unreachable(); 1689_ => throw ExceptionUtilities.Unreachable() 2276throw ExceptionUtilities.UnexpectedValue(exportedType); 2915throw ExceptionUtilities.UnexpectedValue(typeRef); 3166_ => throw ExceptionUtilities.UnexpectedValue(reference) 3346throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3421throw ExceptionUtilities.UnexpectedValue(operandType); 4050throw ExceptionUtilities.UnexpectedValue(primitiveType); 4156throw ExceptionUtilities.UnexpectedValue(primitiveType);
PEWriter\MetadataWriter.PortablePdb.cs (2)
317throw ExceptionUtilities.Unreachable(); 997_ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind)
PEWriter\MethodDefinitionBase.cs (2)
176throw ExceptionUtilities.Unreachable(); 182throw ExceptionUtilities.Unreachable();
PEWriter\ModifiedTypeReference.cs (6)
49get { throw ExceptionUtilities.Unreachable(); } 54get { throw ExceptionUtilities.Unreachable(); } 59throw ExceptionUtilities.Unreachable(); 69get { throw ExceptionUtilities.Unreachable(); } 155throw ExceptionUtilities.Unreachable(); 161throw ExceptionUtilities.Unreachable();
PEWriter\ParameterDefinitionBase.cs (2)
40throw ExceptionUtilities.Unreachable(); 46throw ExceptionUtilities.Unreachable();
PEWriter\RootModuleType.cs (9)
202get { throw ExceptionUtilities.Unreachable(); } 215get { throw ExceptionUtilities.Unreachable(); } 220throw ExceptionUtilities.Unreachable(); 225get { throw ExceptionUtilities.Unreachable(); } 230get { throw ExceptionUtilities.Unreachable(); } 240get { throw ExceptionUtilities.Unreachable(); } 245get { throw ExceptionUtilities.Unreachable(); } 334throw ExceptionUtilities.Unreachable(); 340throw ExceptionUtilities.Unreachable();
PEWriter\SequencePoint.cs (2)
47throw ExceptionUtilities.Unreachable(); 52throw ExceptionUtilities.Unreachable();
PEWriter\SourceSpan.cs (2)
39throw ExceptionUtilities.Unreachable(); 44throw ExceptionUtilities.Unreachable();
PrimitiveTypeCodeExtensions.cs (1)
88throw ExceptionUtilities.UnexpectedValue(type);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (3)
77throw ExceptionUtilities.Unreachable(); 108throw ExceptionUtilities.Unreachable(); 115throw ExceptionUtilities.Unreachable();
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
313throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 391throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind); 976throw ExceptionUtilities.Unreachable();
SignatureComparer.cs (1)
228throw ExceptionUtilities.UnexpectedValue(typeCode);
SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
SourceGeneration\IncrementalWrapper.cs (2)
29void ISourceGenerator.Execute(GeneratorExecutionContext context) => throw ExceptionUtilities.Unreachable(); 31void ISourceGenerator.Initialize(GeneratorInitializationContext context) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\AbstractSourceOutputNode.cs (3)
94IIncrementalGeneratorNode<TOutput> IIncrementalGeneratorNode<TOutput>.WithComparer(IEqualityComparer<TOutput> comparer) => throw ExceptionUtilities.Unreachable(); 96public IIncrementalGeneratorNode<(IEnumerable<GeneratedSourceText>, IEnumerable<Diagnostic>)> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 98void IIncrementalGeneratorNode<TOutput>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\HostOutputNode.cs (3)
98IIncrementalGeneratorNode<OutputType> IIncrementalGeneratorNode<OutputType>.WithComparer(IEqualityComparer<OutputType> comparer) => throw ExceptionUtilities.Unreachable(); 100public IIncrementalGeneratorNode<OutputType> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 102void IIncrementalGeneratorNode<OutputType>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\InputNode.cs (1)
44_registerOutput = registerOutput ?? (o => throw ExceptionUtilities.Unreachable());
SourceGeneration\Nodes\NodeStateTable.cs (3)
214_ => throw ExceptionUtilities.Unreachable(), 515_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState)) 669_ => throw ExceptionUtilities.Unreachable()
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
90catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\Nodes\TransformNode.cs (1)
87catch (Exception e) when (_wrapUserFunc && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\UserFunction.cs (3)
71catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 91catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 106catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token))
SpecialTypeExtensions.cs (2)
271throw ExceptionUtilities.UnexpectedValue(specialType); 387_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1016throw ExceptionUtilities.Unreachable(); 1026throw ExceptionUtilities.Unreachable();
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (3)
317_ => throw ExceptionUtilities.Unreachable(), 379throw ExceptionUtilities.Unreachable(); 432throw ExceptionUtilities.Unreachable();
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
45throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 55throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
148if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
SwitchConstantValueHelper.cs (1)
93throw ExceptionUtilities.UnexpectedValue(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229throw ExceptionUtilities.UnexpectedValue(target);
Symbols\Attributes\CommonAttributeData.cs (2)
267throw ExceptionUtilities.UnexpectedValue(kind); 361private protected virtual bool IsStringProperty(string memberName) => throw ExceptionUtilities.Unreachable();
Symbols\PlatformInvokeInformation.cs (1)
82throw ExceptionUtilities.UnexpectedValue(_flags);
Symbols\RefKind.cs (3)
60default: throw ExceptionUtilities.UnexpectedValue(kind); 71default: throw ExceptionUtilities.UnexpectedValue(kind); 84default: throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\SymbolKindExtensions.cs (1)
54throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\WellKnownGeneratedNameParser.cs (1)
106throw ExceptionUtilities.Unreachable();
Syntax\GreenNode.cs (1)
187throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxList.cs (4)
148throw ExceptionUtilities.Unreachable(); 156throw ExceptionUtilities.Unreachable(); 162throw ExceptionUtilities.Unreachable(); 167throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxList`1.cs (1)
52throw ExceptionUtilities.Unreachable();
Syntax\SyntaxList.cs (11)
22throw ExceptionUtilities.Unreachable(); 31throw ExceptionUtilities.Unreachable(); 36throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable(); 46throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable(); 56throw ExceptionUtilities.Unreachable(); 61throw ExceptionUtilities.Unreachable(); 66throw ExceptionUtilities.Unreachable(); 71throw ExceptionUtilities.Unreachable(); 76throw ExceptionUtilities.Unreachable();
Syntax\SyntaxNodeOrToken.cs (1)
947throw ExceptionUtilities.Unreachable();
Text\SourceHashAlgorithms.cs (2)
47_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 66_ => throw ExceptionUtilities.UnexpectedValue(algorithm)
Microsoft.CodeAnalysis.CSharp (1249)
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 (27)
880throw ExceptionUtilities.UnexpectedValue(v); 1017_ => throw ExceptionUtilities.UnexpectedValue(collectionTypeKind), 1125throw ExceptionUtilities.UnexpectedValue(@this._targetType); 1763throw ExceptionUtilities.UnexpectedValue(targetType); 2217throw ExceptionUtilities.Unreachable(); 2240throw ExceptionUtilities.UnexpectedValue(element); 2256throw ExceptionUtilities.UnexpectedValue(element); 2937_ => throw ExceptionUtilities.UnexpectedValue(source), 3113throw ExceptionUtilities.UnexpectedValue(conversion.Kind); 3526_ => throw ExceptionUtilities.UnexpectedValue(delegateType), 3666_ => throw ExceptionUtilities.UnexpectedValue(type) 3674_ => throw ExceptionUtilities.UnexpectedValue(type) 4022default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4042default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4062default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4082default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4102default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4121default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4141default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4161default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4181default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4201default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4221default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4245default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4265default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4268throw ExceptionUtilities.UnexpectedValue(value.Discriminator); 4371default: throw ExceptionUtilities.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
42throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 134throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 806throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1028throw ExceptionUtilities.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (3)
385throw ExceptionUtilities.UnexpectedValue(expression.Kind); 850throw ExceptionUtilities.UnexpectedValue(node.Kind()); 928throw ExceptionUtilities.Unreachable();
Binder\Binder_Expressions.cs (16)
1033throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1618throw ExceptionUtilities.UnexpectedValue(managedKind); 2220_ => throw ExceptionUtilities.UnexpectedValue(alias.Target.Kind), 2229throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2574throw ExceptionUtilities.UnexpectedValue(symbol); 3264throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 3330throw ExceptionUtilities.Unreachable(); 3943throw ExceptionUtilities.UnexpectedValue(argumentIndex); 4703_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 5343throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5390_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 5821throw ExceptionUtilities.Unreachable(); 7200throw ExceptionUtilities.UnexpectedValue(classCreation.Kind); 8308throw ExceptionUtilities.UnexpectedValue(extensionMember.Kind); 8751throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 10288throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Binder_Initializers.cs (1)
138throw ExceptionUtilities.Unreachable();
Binder\Binder_InterpolatedString.cs (2)
178throw ExceptionUtilities.UnexpectedValue(content.Kind()); 571_ => throw ExceptionUtilities.UnexpectedValue(unconvertedExpression.Kind)
Binder\Binder_Invocation.cs (1)
1145throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (4)
314throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1476return lastBinder.AssociatedFileIdentifier ?? throw ExceptionUtilities.Unreachable(); 1480throw ExceptionUtilities.Unreachable(); 1670throw 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()); 3250default: throw ExceptionUtilities.UnexpectedValue(kind); 4648default: throw ExceptionUtilities.UnexpectedValue(kind); 5387throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (5)
607throw ExceptionUtilities.Unreachable(); 728_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 1465throw ExceptionUtilities.Unreachable(); 1619throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 2097throw 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 (7)
550throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1710throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 1762_ => throw ExceptionUtilities.UnexpectedValue(e.Kind) 1783throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3652_ => throw ExceptionUtilities.UnexpectedValue(expressionBody.Parent.Kind()), 3736throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 4013throw ExceptionUtilities.Unreachable();
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)
123_ => throw ExceptionUtilities.UnexpectedValue(callerUnsafeMode),
Binder\Binder.CapturedParametersFinder.cs (1)
136throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Binder\Binder.cs (2)
297_ => throw ExceptionUtilities.UnexpectedValue(context.AnnotationsState) 326throw ExceptionUtilities.UnexpectedValue(Compilation.Options.NullableContextOptions);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
430throw ExceptionUtilities.UnexpectedValue(topClause.Kind()); 551(LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => throw ExceptionUtilities.Unreachable()),
Binder\Binder.OperatorResolutionForReporting.cs (2)
215throw ExceptionUtilities.UnexpectedValue(result); 310throw ExceptionUtilities.UnexpectedValue(result);
Binder\Binder.QueryUnboundLambdaState.cs (1)
81throw ExceptionUtilities.Unreachable();
Binder\Binder.ValueChecks.cs (17)
371_ => throw ExceptionUtilities.UnexpectedValue(EscapeLevel) 1135throw ExceptionUtilities.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind); 1643throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1675throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1690throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 3400internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable(); 3503throw ExceptionUtilities.UnexpectedValue(kind); 3532throw ExceptionUtilities.UnexpectedValue(kind); 3577throw ExceptionUtilities.UnexpectedValue(kind); 3875throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4176throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4518throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4828throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); // ref struct collection type with unexpected type kind 5261throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 5734throw ExceptionUtilities.Unreachable(); 5903throw ExceptionUtilities.UnexpectedValue(expression.Kind); 5946throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 477throw ExceptionUtilities.UnexpectedValue(baseMethodDeclarationSyntax.Kind()); 502throw ExceptionUtilities.UnexpectedValue(basePropertyDeclarationSyntax.Kind()); 1195throw ExceptionUtilities.UnexpectedValue(elementKind);
Binder\BlockBinder.cs (2)
73throw ExceptionUtilities.Unreachable(); 91throw ExceptionUtilities.Unreachable();
Binder\BuckStopsHereBinder.cs (14)
143throw ExceptionUtilities.Unreachable(); 166throw ExceptionUtilities.Unreachable(); 171throw ExceptionUtilities.Unreachable(); 177throw ExceptionUtilities.Unreachable(); 183throw ExceptionUtilities.Unreachable(); 189throw ExceptionUtilities.Unreachable(); 195throw ExceptionUtilities.Unreachable(); 201throw ExceptionUtilities.Unreachable(); 207throw ExceptionUtilities.Unreachable(); 213throw ExceptionUtilities.Unreachable(); 219throw ExceptionUtilities.Unreachable(); 225throw ExceptionUtilities.Unreachable(); 231throw ExceptionUtilities.Unreachable(); 237throw ExceptionUtilities.Unreachable();
Binder\CatchClauseBinder.cs (2)
52throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable();
Binder\DecisionDagBuilder_CheckOrReachability.cs (4)
751throw ExceptionUtilities.UnexpectedValue(operandOrOperation); 1215throw ExceptionUtilities.Unreachable(); 1220throw ExceptionUtilities.Unreachable(); 1403throw ExceptionUtilities.Unreachable();
Binder\DecisionDagBuilder.cs (27)
298throw ExceptionUtilities.UnexpectedValue(toAssemble); 302throw ExceptionUtilities.UnexpectedValue(current); 311throw ExceptionUtilities.Unreachable(); 344throw ExceptionUtilities.Unreachable(); 408throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1419throw ExceptionUtilities.UnexpectedValue(n.Kind); 1687throw ExceptionUtilities.UnexpectedValue(n?.Kind); 1774throw ExceptionUtilities.UnexpectedValue(test); 2247throw ExceptionUtilities.UnexpectedValue(otherKind); 2269throw ExceptionUtilities.UnexpectedValue(otherKind); 2294throw ExceptionUtilities.UnexpectedValue(otherKind); 2298throw ExceptionUtilities.UnexpectedValue(testKind); 2459throw ExceptionUtilities.Unreachable(); 2476throw ExceptionUtilities.Unreachable(); 2493throw ExceptionUtilities.Unreachable(); 2650throw ExceptionUtilities.Unreachable(); 3197throw ExceptionUtilities.Unreachable(); 3246public virtual BoundDagTest ComputeSelectedTest(DecisionDagBuilder builder) => throw ExceptionUtilities.Unreachable(); 3670throw ExceptionUtilities.UnexpectedValue(e); 3724throw ExceptionUtilities.Unreachable(); 3975throw ExceptionUtilities.UnexpectedValue(test); 3995throw ExceptionUtilities.UnexpectedValue(test); 4013_ => throw ExceptionUtilities.UnexpectedValue(negated), 4117throw ExceptionUtilities.Unreachable(); 4235throw ExceptionUtilities.Unreachable(); 4412throw ExceptionUtilities.Unreachable(); 4473throw ExceptionUtilities.Unreachable();
Binder\EmbeddedStatementBinder.cs (2)
76throw ExceptionUtilities.Unreachable(); 94throw ExceptionUtilities.Unreachable();
Binder\ExpressionListVariableBinder.cs (2)
48throw ExceptionUtilities.Unreachable(); 53throw ExceptionUtilities.Unreachable();
Binder\ExpressionVariableBinder.cs (2)
41throw ExceptionUtilities.Unreachable(); 46throw ExceptionUtilities.Unreachable();
Binder\ExpressionVariableFinder.cs (3)
259throw ExceptionUtilities.UnexpectedValue(node.Kind()); 438throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 524throw ExceptionUtilities.UnexpectedValue(designation.Kind());
Binder\FixedStatementBinder.cs (2)
67throw ExceptionUtilities.Unreachable(); 72throw ExceptionUtilities.Unreachable();
Binder\ForEachLoopBinder.cs (7)
54throw ExceptionUtilities.Unreachable(); 59throw ExceptionUtilities.Unreachable(); 97throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 173throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 356throw ExceptionUtilities.UnexpectedValue(local.RefKind); 426throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 1659throw ExceptionUtilities.UnexpectedValue(enumeratorType.TypeKind);
Binder\ForLoopBinder.cs (2)
147throw ExceptionUtilities.Unreachable(); 152throw ExceptionUtilities.Unreachable();
Binder\LookupResultKind.cs (1)
98throw ExceptionUtilities.UnexpectedValue(resultKind);
Binder\PatternExplainer.cs (6)
115throw ExceptionUtilities.Unreachable(); 222throw ExceptionUtilities.UnexpectedValue(currentNode.Kind); 307throw ExceptionUtilities.Unreachable(); 527throw ExceptionUtilities.UnexpectedValue(v); 635throw ExceptionUtilities.UnexpectedValue(test); 852throw ExceptionUtilities.Unreachable();
Binder\RefSafetyAnalysis.cs (5)
366throw ExceptionUtilities.Unreachable(); 854throw ExceptionUtilities.Unreachable(); 867throw ExceptionUtilities.Unreachable(); 932throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex + extensionBlockFormOffset); 1283throw ExceptionUtilities.Unreachable();
Binder\ScriptLocalScopeBinder.cs (2)
44throw ExceptionUtilities.Unreachable(); 49throw ExceptionUtilities.Unreachable();
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)
1123throw ExceptionUtilities.UnexpectedValue(conversionResult.Kind);
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
77throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
947throw ExceptionUtilities.UnexpectedValue(oppositeConversion.Kind); 3243throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.Variance);
Binder\Semantics\Conversions\TypeConversions.cs (5)
39throw ExceptionUtilities.Unreachable(); 45throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable(); 63throw ExceptionUtilities.Unreachable();
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
687throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (2)
46throw ExceptionUtilities.Unreachable(); 52throw ExceptionUtilities.Unreachable();
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 (3)
146throw ExceptionUtilities.Unreachable(); 151throw ExceptionUtilities.Unreachable(); 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 (4)
1475throw ExceptionUtilities.UnexpectedValue(member.Kind); 3435throw ExceptionUtilities.Unreachable(); 4411throw ExceptionUtilities.UnexpectedValue(member); 4792throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
475throw ExceptionUtilities.UnexpectedValue(result.Result.Kind); 1568throw ExceptionUtilities.UnexpectedValue(kind);
Binder\SimpleLocalScopeBinder.cs (2)
32throw ExceptionUtilities.Unreachable(); 37throw ExceptionUtilities.Unreachable();
Binder\SimpleProgramBinder.cs (2)
94throw ExceptionUtilities.Unreachable(); 112throw ExceptionUtilities.Unreachable();
Binder\SwitchBinder_Patterns.cs (2)
130throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 297throw ExceptionUtilities.UnexpectedValue(node);
Binder\SwitchBinder.cs (2)
358throw ExceptionUtilities.Unreachable(); 368throw ExceptionUtilities.Unreachable();
Binder\UnionMatchingRewriter.cs (1)
497throw ExceptionUtilities.Unreachable();
Binder\UsingStatementBinder.cs (2)
325throw ExceptionUtilities.Unreachable(); 330throw ExceptionUtilities.Unreachable();
Binder\WhileBinder.cs (3)
62throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 76throw ExceptionUtilities.Unreachable(); 81throw ExceptionUtilities.Unreachable();
Binder\WithCrefTypeParametersBinder.cs (2)
73throw ExceptionUtilities.UnexpectedValue(_crefSyntax.Kind()); 100throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (2)
95throw ExceptionUtilities.Unreachable(); 194throw ExceptionUtilities.UnexpectedValue(_declarationSyntax);
Binder\WithLambdaParametersBinder.cs (2)
172throw ExceptionUtilities.Unreachable(); 177throw ExceptionUtilities.Unreachable();
BoundTree\BoundConversion.cs (2)
137ExceptionUtilities.UnexpectedValue(InConversionGroupFlags); 213ExceptionUtilities.UnexpectedValue(InConversionGroupFlags);
BoundTree\BoundDagEvaluation.cs (3)
61_ => throw ExceptionUtilities.UnexpectedValue(this.Kind) 306throw ExceptionUtilities.Unreachable(); 351throw ExceptionUtilities.Unreachable();
BoundTree\BoundDagTest.cs (1)
42throw 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\BoundExpression.cs (6)
162public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 167public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 187public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 207public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 217public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 227public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable();
BoundTree\BoundExpressionExtensions.cs (1)
73var s => throw ExceptionUtilities.UnexpectedValue(s?.Kind)
BoundTree\BoundInterpolatedStringArgumentPlaceholder.cs (1)
14public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable();
BoundTree\BoundNode.cs (6)
250var a => throw ExceptionUtilities.UnexpectedValue(a), 264throw ExceptionUtilities.UnexpectedValue(value.FlowState); 287var mask => throw ExceptionUtilities.UnexpectedValue(mask) 482throw ExceptionUtilities.UnexpectedValue(conversion); 509throw ExceptionUtilities.UnexpectedValue(conversion); 536throw ExceptionUtilities.UnexpectedValue(conversion);
BoundTree\BoundNodeExtensions.cs (6)
132throw ExceptionUtilities.UnexpectedValue(current.Left.Kind); 148throw ExceptionUtilities.UnexpectedValue(current.Right.Kind); 216_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Left.Kind) 227_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Right.Kind) 257BoundBinaryOperator or BoundInterpolatedString => throw ExceptionUtilities.Unreachable(), 258_ => throw ExceptionUtilities.UnexpectedValue(e.Kind),
BoundTree\BoundPatternWithUnionMatching.cs (1)
35throw ExceptionUtilities.Unreachable();
BoundTree\BoundStatementExtensions.cs (3)
23throw ExceptionUtilities.UnexpectedValue(node.Kind); 50throw ExceptionUtilities.Unreachable(); 53throw ExceptionUtilities.UnexpectedValue(node.Kind);
BoundTree\BoundTreeRewriter.cs (1)
151throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
BoundTree\Formatting.cs (2)
108get { throw ExceptionUtilities.Unreachable(); } 140get { throw ExceptionUtilities.Unreachable(); }
BoundTree\NullabilityRewriter.cs (1)
121_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Kind),
BoundTree\UnboundLambda.cs (1)
380throw ExceptionUtilities.Unreachable();
BoundTree\VariablePendingInference.cs (2)
110throw ExceptionUtilities.UnexpectedValue(this.VariableSymbol.Kind); 131throw ExceptionUtilities.Unreachable();
CodeGen\EmitAddress.cs (2)
87throw ExceptionUtilities.UnexpectedValue(expression.Kind); 282throw ExceptionUtilities.UnexpectedValue(local.RefKind);
CodeGen\EmitArrayInitializer.cs (1)
438throw ExceptionUtilities.Unreachable();
CodeGen\EmitConversion.cs (6)
45throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 135throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 177throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller. 181throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 208ExceptionUtilities.UnexpectedValue(conversionKind); 364throw ExceptionUtilities.Unreachable();
CodeGen\EmitExpression.cs (9)
171throw ExceptionUtilities.UnexpectedValue(expression.Kind); 362throw ExceptionUtilities.UnexpectedValue(expression.Kind); 740throw ExceptionUtilities.UnexpectedValue(refKind); 1119throw ExceptionUtilities.Unreachable(); 1698throw ExceptionUtilities.Unreachable(); 3015throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3036throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3223throw ExceptionUtilities.UnexpectedValue(expression.Kind); 4175throw ExceptionUtilities.Unreachable();
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 (6)
105throw ExceptionUtilities.UnexpectedValue(statement.Kind); 163throw ExceptionUtilities.UnexpectedValue(statement.Flavor); 330throw ExceptionUtilities.UnexpectedValue(op.OperatorKind.Operator()); 496throw ExceptionUtilities.Unreachable(); 1205throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind); 2024throw ExceptionUtilities.Unreachable();
CodeGen\Optimizer.cs (4)
492throw ExceptionUtilities.UnexpectedValue(context); 536throw ExceptionUtilities.Unreachable(); 1104throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 2331throw ExceptionUtilities.Unreachable();
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)
3803throw ExceptionUtilities.UnexpectedValue(containingMember.Kind); 4031throw 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\MemberSemanticModel.cs (4)
124throw ExceptionUtilities.Unreachable(); 134throw ExceptionUtilities.Unreachable(); 2414throw ExceptionUtilities.Unreachable(); 2419throw ExceptionUtilities.Unreachable();
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
311throw ExceptionUtilities.Unreachable();
Compilation\MemberSemanticModel.SpeculativeMemberSemanticModel.cs (7)
67throw ExceptionUtilities.Unreachable(); 72throw ExceptionUtilities.Unreachable(); 77throw ExceptionUtilities.Unreachable(); 82throw ExceptionUtilities.Unreachable(); 87throw ExceptionUtilities.Unreachable(); 92throw ExceptionUtilities.Unreachable(); 97throw ExceptionUtilities.Unreachable();
Compilation\SpeculativeSemanticModelWithMemberModel.cs (12)
173ExceptionUtilities.UnexpectedValue(attributeOrParameter); 517throw ExceptionUtilities.Unreachable(); 522throw ExceptionUtilities.Unreachable(); 532throw ExceptionUtilities.Unreachable(); 537throw ExceptionUtilities.Unreachable(); 542throw ExceptionUtilities.Unreachable(); 547throw ExceptionUtilities.Unreachable(); 552throw ExceptionUtilities.Unreachable(); 557throw ExceptionUtilities.Unreachable(); 562throw ExceptionUtilities.Unreachable(); 567throw ExceptionUtilities.Unreachable(); 572throw ExceptionUtilities.Unreachable();
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()); 1729throw ExceptionUtilities.UnexpectedValue(declaration.Kind()); 1768throw ExceptionUtilities.UnexpectedValue(name.Kind()); 2212throw ExceptionUtilities.UnexpectedValue(typeParameter.Parent.Kind()); 2493ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2531ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2558ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (7)
222throw ExceptionUtilities.Unreachable(); 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)
1323throw ExceptionUtilities.UnexpectedValue(elementKind);
Compiler\MethodBodySynthesizer.Lowered.cs (2)
294protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 311internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Compiler\MethodCompiler.cs (8)
404throw ExceptionUtilities.Unreachable(); 450throw ExceptionUtilities.Unreachable(); 909throw ExceptionUtilities.Unreachable(); 914throw ExceptionUtilities.Unreachable(); 919throw ExceptionUtilities.Unreachable(); 924throw ExceptionUtilities.Unreachable(); 2045throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); 2177throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Compiler\SynthesizedMetadataCompiler.cs (1)
119throw ExceptionUtilities.Unreachable();
Compiler\TypeCompilationState.cs (1)
212throw ExceptionUtilities.Unreachable();
Declarations\DeclarationKind.cs (1)
50throw ExceptionUtilities.UnexpectedValue(kind);
Declarations\DeclarationTreeBuilder.cs (5)
104DeclarationKind.Namespace => throw ExceptionUtilities.Unreachable(), 121_ => throw ExceptionUtilities.UnexpectedValue(typeDeclaration.Kind) 668_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()) 679_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()) 696_ => throw ExceptionUtilities.UnexpectedValue(node.Kind())
Declarations\MergedTypeDeclaration.cs (1)
96throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind());
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (7)
150throw ExceptionUtilities.Unreachable(); 282throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 378throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 385throw ExceptionUtilities.Unreachable(); 460_ => throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind), 787throw ExceptionUtilities.UnexpectedValue(type.Kind); 865throw ExceptionUtilities.Unreachable();
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
288throw ExceptionUtilities.Unreachable();
Emitter\Model\ExpandedVarargsMethodReference.cs (2)
228throw ExceptionUtilities.Unreachable(); 234throw ExceptionUtilities.Unreachable();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (2)
86throw ExceptionUtilities.Unreachable(); 90public override int GetHashCode() => throw ExceptionUtilities.Unreachable();
Emitter\Model\MethodSymbolAdapter.cs (1)
731throw ExceptionUtilities.Unreachable();
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(value);
Emitter\Model\NamedTypeReference.cs (2)
172throw ExceptionUtilities.Unreachable(); 178throw ExceptionUtilities.Unreachable();
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
223throw ExceptionUtilities.Unreachable(); 800throw ExceptionUtilities.Unreachable(); 1079throw ExceptionUtilities.Unreachable();
Emitter\Model\ParameterSymbolAdapter.cs (2)
168throw ExceptionUtilities.Unreachable(); 278throw ExceptionUtilities.Unreachable();
Emitter\Model\ParameterTypeInformation.cs (4)
72throw ExceptionUtilities.Unreachable(); 78throw ExceptionUtilities.Unreachable(); 123throw ExceptionUtilities.Unreachable(); 129throw ExceptionUtilities.Unreachable();
Emitter\Model\PEAssemblyBuilder.cs (1)
774=> throw ExceptionUtilities.Unreachable();
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\PENetModuleBuilder.cs (3)
31throw ExceptionUtilities.Unreachable(); 36throw ExceptionUtilities.Unreachable(); 49=> throw ExceptionUtilities.Unreachable();
Emitter\Model\PropertySymbolAdapter.cs (1)
349throw ExceptionUtilities.Unreachable();
Emitter\Model\SymbolAdapter.cs (5)
32throw ExceptionUtilities.Unreachable(); 39throw ExceptionUtilities.Unreachable(); 52protected virtual SymbolAdapter GetCciAdapterImpl() => throw ExceptionUtilities.Unreachable(); 189throw ExceptionUtilities.Unreachable(); 195throw ExceptionUtilities.Unreachable();
Emitter\Model\TypeMemberReference.cs (2)
57throw ExceptionUtilities.Unreachable(); 63throw ExceptionUtilities.Unreachable();
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
156throw ExceptionUtilities.Unreachable(); 337throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
573throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
741throw ExceptionUtilities.UnexpectedValue(feature);
FlowAnalysis\AbstractFlowPass.cs (12)
872throw ExceptionUtilities.UnexpectedValue(node.Kind); 1023throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1076throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1111throw ExceptionUtilities.Unreachable(); 1117throw ExceptionUtilities.Unreachable(); 1568throw ExceptionUtilities.UnexpectedValue(refKind); 2184throw ExceptionUtilities.Unreachable(); 2478throw ExceptionUtilities.UnexpectedValue(binary.Kind); 2500throw ExceptionUtilities.UnexpectedValue(binary.Kind); 3491throw ExceptionUtilities.Unreachable(); 3719throw ExceptionUtilities.Unreachable(); 3724throw ExceptionUtilities.Unreachable();
FlowAnalysis\DefiniteAssignment.cs (1)
2083throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (3)
90throw ExceptionUtilities.Unreachable(); 96throw ExceptionUtilities.Unreachable(); 102throw ExceptionUtilities.Unreachable();
FlowAnalysis\ExitPointsWalker.cs (1)
148throw ExceptionUtilities.UnexpectedValue(pending.Branch.Kind);
FlowAnalysis\NullableWalker_Patterns.cs (8)
247throw ExceptionUtilities.UnexpectedValue(pattern); 442(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable(); 534throw ExceptionUtilities.UnexpectedValue(p.Evaluation.Kind); 611throw ExceptionUtilities.UnexpectedValue(test.Kind); 670throw ExceptionUtilities.UnexpectedValue(dagNode.Kind); 690(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable(); 823throw ExceptionUtilities.UnexpectedValue(evaluation.Kind); 1026throw ExceptionUtilities.UnexpectedValue(e.Kind);
FlowAnalysis\NullableWalker.cs (23)
626throw ExceptionUtilities.UnexpectedValue(placeholder.Kind); 996=> throw ExceptionUtilities.Unreachable(), 2096throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 3582throw ExceptionUtilities.Unreachable(); 4569ExceptionUtilities.UnexpectedValue(node.Kind); 4838throw ExceptionUtilities.Unreachable(); 5120_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 5197_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 6226_ => throw ExceptionUtilities.UnexpectedValue(node.OperatorResultKind), 7536throw ExceptionUtilities.Unreachable(); 7681throw ExceptionUtilities.UnexpectedValue(member); 8208throw ExceptionUtilities.UnexpectedValue(refKind); 8300throw ExceptionUtilities.UnexpectedValue(refKind); 8453throw ExceptionUtilities.UnexpectedValue(refKind); 11726throw ExceptionUtilities.Unreachable(); 12645_ => throw ExceptionUtilities.UnexpectedValue(node.Syntax) 12739throw ExceptionUtilities.Unreachable(); 12967throw ExceptionUtilities.UnexpectedValue(binary.Kind); 12982throw ExceptionUtilities.UnexpectedValue(binary.Kind); 13099throw ExceptionUtilities.Unreachable(); 13423throw ExceptionUtilities.Unreachable(); 13736ExceptionUtilities.UnexpectedValue(node); 14214_ => throw ExceptionUtilities.Unreachable()
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (4)
54internal override SyntaxToken IdentifierToken => throw ExceptionUtilities.Unreachable(); 60internal override SynthesizedLocalKind SynthesizedKind => throw ExceptionUtilities.Unreachable(); 63internal override SyntaxNode GetDeclaratorSyntax() => throw ExceptionUtilities.Unreachable(); 72) => throw ExceptionUtilities.Unreachable();
FlowAnalysis\VariablesDeclaredWalker.cs (1)
159throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
LanguageVersion.cs (2)
360throw ExceptionUtilities.UnexpectedValue(version); 443throw ExceptionUtilities.UnexpectedValue(version);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
583throw ExceptionUtilities.Unreachable();
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336throw ExceptionUtilities.UnexpectedValue(method);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
335throw ExceptionUtilities.Unreachable();
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
398throw ExceptionUtilities.Unreachable();
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (3)
89throw ExceptionUtilities.UnexpectedValue(local); 220throw ExceptionUtilities.Unreachable(); 275throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (7)
129throw ExceptionUtilities.UnexpectedValue(node.Kind); 193throw ExceptionUtilities.Unreachable(); 407throw ExceptionUtilities.Unreachable(); 598throw ExceptionUtilities.UnexpectedValue(variable.Kind); 621return Helper(treeRoot) ?? throw ExceptionUtilities.Unreachable(); 663throw ExceptionUtilities.Unreachable(); 671return helper(treeRoot) ?? throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
414=> throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.cs (2)
795throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1805throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (12)
158throw ExceptionUtilities.UnexpectedValue(stmt.Kind); 256throw ExceptionUtilities.UnexpectedValue(node.Kind); 485throw ExceptionUtilities.UnexpectedValue(opKind.Operator()); 704throw ExceptionUtilities.UnexpectedValue(node.ConversionKind); 809throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup); 825throw ExceptionUtilities.UnexpectedValue(node.Argument); 954throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 981throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1034throw ExceptionUtilities.UnexpectedValue(elementKind); 1089throw ExceptionUtilities.UnexpectedValue(initializerKind); // no other options at the top level of an initializer 1213throw ExceptionUtilities.UnexpectedValue(op); 1233throw ExceptionUtilities.UnexpectedValue(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
126throw ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
76throw ExceptionUtilities.UnexpectedValue(closureKind); 243throw ExceptionUtilities.Unreachable();
Lowering\ExtensionMethodBodyRewriter.cs (1)
84throw ExceptionUtilities.Unreachable();
Lowering\InitializerRewriter.cs (1)
128throw ExceptionUtilities.UnexpectedValue(initializer.Kind);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
139=> throw ExceptionUtilities.Unreachable(); // we don't currently need this
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
130throw ExceptionUtilities.UnexpectedValue(declarationSyntax.Parent.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\LocalStateTracingInstrumenter.cs (2)
397throw ExceptionUtilities.UnexpectedValue(original.Left); 499_ => throw ExceptionUtilities.UnexpectedValue(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (2)
107throw ExceptionUtilities.Unreachable(); 259protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81throw ExceptionUtilities.UnexpectedValue(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
48public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\DynamicSiteContainer.cs (1)
47get { throw ExceptionUtilities.Unreachable(); }
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
59throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
143throw ExceptionUtilities.Unreachable(); 190throw 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 (4)
159throw ExceptionUtilities.Unreachable(); 893var u => throw ExceptionUtilities.UnexpectedValue(u.Kind) 914throw ExceptionUtilities.UnexpectedValue(argIndex); 1395throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (6)
21throw ExceptionUtilities.Unreachable(); 26throw ExceptionUtilities.Unreachable(); 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)
550throw ExceptionUtilities.UnexpectedValue(indexerAccess.Argument.Type); 874throw ExceptionUtilities.UnexpectedValue(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (3)
21throw ExceptionUtilities.Unreachable(); 101throw ExceptionUtilities.UnexpectedValue(loweringKind); 196throw ExceptionUtilities.UnexpectedValue(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (12)
31_ => throw ExceptionUtilities.UnexpectedValue(node.Operand.Kind) 200throw ExceptionUtilities.UnexpectedValue(current); 636throw ExceptionUtilities.Unreachable(); 665throw ExceptionUtilities.Unreachable(); 677throw ExceptionUtilities.Unreachable(); 698throw ExceptionUtilities.Unreachable(); 716throw ExceptionUtilities.Unreachable(); 724throw ExceptionUtilities.Unreachable(); 1761throw ExceptionUtilities.Unreachable(); 1784throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType); 1804throw ExceptionUtilities.UnexpectedValue(typeFrom.SpecialType); 1910throw ExceptionUtilities.UnexpectedValue(conversion.Kind);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
326throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
191throw ExceptionUtilities.Unreachable(); //Should be handled by VisitFixedStatement
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
159throw ExceptionUtilities.UnexpectedValue(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (8)
156_ => throw ExceptionUtilities.UnexpectedValue(oldNode) 465throw ExceptionUtilities.Unreachable(); 470throw ExceptionUtilities.Unreachable(); 475throw ExceptionUtilities.Unreachable(); 480throw ExceptionUtilities.Unreachable(); 637throw ExceptionUtilities.UnexpectedValue(strategy); 763throw ExceptionUtilities.UnexpectedValue(strategy); 1041throw ExceptionUtilities.UnexpectedValue(startStrategy);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
66throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
81throw ExceptionUtilities.UnexpectedValue(node); 299throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
88throw ExceptionUtilities.Unreachable();
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); 548throw ExceptionUtilities.UnexpectedValue(left.Kind); 610throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 750throw 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 (5)
135throw ExceptionUtilities.Unreachable(); 150_ => throw ExceptionUtilities.Unreachable(), 178_ => throw ExceptionUtilities.UnexpectedValue(visitedArguments.Count), 199throw ExceptionUtilities.UnexpectedValue(concatKind); 648throw ExceptionUtilities.Unreachable();
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_TupleCreationExpression.cs (1)
17throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (6)
427throw ExceptionUtilities.Unreachable(); 976throw ExceptionUtilities.UnexpectedValue(oper.Operator()); 1121throw ExceptionUtilities.UnexpectedValue(kind); 1211throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType); 1221throw ExceptionUtilities.UnexpectedValue(unaryOperatorKind.OperandTypes()); 1281throw ExceptionUtilities.UnexpectedValue(binaryOperatorKind.OperandTypes());
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
88throw ExceptionUtilities.UnexpectedValue(loop.Kind);
Lowering\LocalRewriter\LocalRewriter.cs (5)
462throw ExceptionUtilities.Unreachable(); 467throw ExceptionUtilities.Unreachable(); 569throw ExceptionUtilities.Unreachable(); 575throw ExceptionUtilities.Unreachable(); 1126throw 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)
332throw ExceptionUtilities.UnexpectedValue(evaluation); 392throw ExceptionUtilities.UnexpectedValue(test);
Lowering\MethodToClassRewriter.cs (7)
71throw ExceptionUtilities.Unreachable(); 76throw ExceptionUtilities.Unreachable(); 81throw ExceptionUtilities.Unreachable(); 86throw ExceptionUtilities.Unreachable(); 247_ => throw ExceptionUtilities.UnexpectedValue(proxy) 277throw ExceptionUtilities.Unreachable(); 284throw ExceptionUtilities.Unreachable();
Lowering\SpillSequenceSpiller.cs (2)
989throw ExceptionUtilities.Unreachable(); 1216throw ExceptionUtilities.Unreachable();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
187throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
602throw ExceptionUtilities.Unreachable(); // for statements have been lowered away by now 607throw ExceptionUtilities.Unreachable(); // using statements have been lowered away by now
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
299throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
815throw ExceptionUtilities.UnexpectedValue(input.Type); 1691throw ExceptionUtilities.UnexpectedValue(refKind);
Operations\CSharpOperationFactory_Methods.cs (1)
260throw ExceptionUtilities.UnexpectedValue(containingExpression.Kind);
Operations\CSharpOperationFactory.cs (17)
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); 1052ExceptionUtilities.UnexpectedValue(boundConversion); // Unexpected tree shape 1289throw ExceptionUtilities.UnexpectedValue(expr.CollectionTypeKind); 1550{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2313{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2406throw ExceptionUtilities.UnexpectedValue(part.Kind); 2422_ => throw ExceptionUtilities.UnexpectedValue(value.Kind), 2519_ => throw ExceptionUtilities.UnexpectedValue(part.Kind) 2527_ => throw ExceptionUtilities.UnexpectedValue(methodName) 2542throw ExceptionUtilities.UnexpectedValue(current.Kind); 2565_ => throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex)
Parser\Blender.Cursor.cs (1)
127throw ExceptionUtilities.Unreachable();
Parser\LanguageParser_InterpolatedString.cs (2)
185_ => throw ExceptionUtilities.UnexpectedValue(kind), 357_ => throw ExceptionUtilities.UnexpectedValue(kind),
Parser\LanguageParser.cs (9)
1780throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 2071throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 7155throw ExceptionUtilities.Unreachable(); 7671throw ExceptionUtilities.UnexpectedValue(mode); 9849throw ExceptionUtilities.UnexpectedValue(decl.designation.Kind); 11416throw ExceptionUtilities.UnexpectedValue(op); 11697throw ExceptionUtilities.Unreachable(); 12002_ => throw ExceptionUtilities.UnexpectedValue(node), 13081throw ExceptionUtilities.UnexpectedValue(type);
Parser\Lexer_RawStringLiteral.cs (1)
88throw ExceptionUtilities.UnexpectedValue(info.Kind);
Parser\Lexer.cs (2)
288throw ExceptionUtilities.UnexpectedValue(ModeOf(_mode)); 371throw ExceptionUtilities.UnexpectedValue(info.ValueKind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
89throw ExceptionUtilities.UnexpectedValue(node.KindText); 123_ => throw ExceptionUtilities.UnexpectedValue(name.KindText),
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
453ExceptionUtilities.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\AbstractTypeMap.cs (1)
210throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
743throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (6)
37=> throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable(); 174throw ExceptionUtilities.Unreachable(); 248get { throw ExceptionUtilities.Unreachable(); } 258throw ExceptionUtilities.Unreachable(); 281internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (3)
207throw ExceptionUtilities.Unreachable(); 232throw ExceptionUtilities.Unreachable(); 235protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (3)
56=> throw ExceptionUtilities.Unreachable(); 313throw ExceptionUtilities.Unreachable(); 326internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\AssemblySymbol.cs (3)
395throw ExceptionUtilities.Unreachable(); 406throw ExceptionUtilities.Unreachable(); 415throw ExceptionUtilities.Unreachable();
Symbols\BaseTypeAnalysis.cs (1)
195throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
291throw ExceptionUtilities.UnexpectedValue(descriptor.Flags); 359throw ExceptionUtilities.UnexpectedValue(targetSymbolKind); 703throw 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\ConstructedNamedTypeSymbol.cs (3)
45get { throw ExceptionUtilities.Unreachable(); } 50throw ExceptionUtilities.Unreachable(); 135get { throw ExceptionUtilities.Unreachable(); }
Symbols\EnumConversions.cs (1)
43throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\ErrorMethodSymbol.cs (4)
86internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 248get { throw ExceptionUtilities.Unreachable(); } 268throw ExceptionUtilities.Unreachable(); 273throw ExceptionUtilities.Unreachable();
Symbols\ErrorTypeSymbol.cs (5)
177throw ExceptionUtilities.Unreachable(); 535throw ExceptionUtilities.Unreachable(); 555get { throw ExceptionUtilities.Unreachable(); } 558internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 755=> throw ExceptionUtilities.Unreachable();
Symbols\ExtendedErrorTypeSymbol.cs (1)
96throw ExceptionUtilities.Unreachable();
Symbols\Extensions\ReceiverParameterSymbol.cs (1)
44=> throw ExceptionUtilities.Unreachable();
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (1)
44=> throw ExceptionUtilities.Unreachable();
Symbols\Extensions\RewrittenMethodSymbol.cs (3)
76internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 83internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 132=> throw ExceptionUtilities.Unreachable();
Symbols\Extensions\RewrittenParameterSymbol.cs (2)
24internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 26internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (2)
230BoundInterpolatedStringArgumentPlaceholder.InstanceParameter => throw ExceptionUtilities.Unreachable(), 235_ => throw ExceptionUtilities.UnexpectedValue(index),
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (11)
186throw ExceptionUtilities.UnexpectedValue(unexpected); 848internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable(); 852internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 854internal override bool GenerateDebugInfo => throw ExceptionUtilities.Unreachable(); 855internal override ObsoleteAttributeData? ObsoleteAttributeData => throw ExceptionUtilities.Unreachable(); 857public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable(); 858public override DllImportData GetDllImportData() => throw ExceptionUtilities.Unreachable(); 859internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => throw ExceptionUtilities.Unreachable(); 860internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => throw ExceptionUtilities.Unreachable(); 861internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 862protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
33internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable();
Symbols\FunctionTypeSymbol.cs (22)
112public override ImmutableArray<Location> Locations => throw ExceptionUtilities.Unreachable(); 114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => throw ExceptionUtilities.Unreachable(); 116public override Accessibility DeclaredAccessibility => throw ExceptionUtilities.Unreachable(); 120public override bool IsAbstract => throw ExceptionUtilities.Unreachable(); 122public override bool IsSealed => throw ExceptionUtilities.Unreachable(); 126internal override bool IsRecord => throw ExceptionUtilities.Unreachable(); 128internal override bool IsRecordStruct => throw ExceptionUtilities.Unreachable(); 130internal override ObsoleteAttributeData ObsoleteAttributeData => throw ExceptionUtilities.Unreachable(); 132public override void Accept(CSharpSymbolVisitor visitor) => throw ExceptionUtilities.Unreachable(); 134public override TResult Accept<TResult>(CSharpSymbolVisitor<TResult> visitor) => throw ExceptionUtilities.Unreachable(); 136public override ImmutableArray<Symbol> GetMembers() => throw ExceptionUtilities.Unreachable(); 138public override ImmutableArray<Symbol> GetMembers(string name) => throw ExceptionUtilities.Unreachable(); 140public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => throw ExceptionUtilities.Unreachable(); 142public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => throw ExceptionUtilities.Unreachable(); 144protected override ISymbol CreateISymbol() => throw ExceptionUtilities.Unreachable(); 146protected override ITypeSymbol CreateITypeSymbol(CodeAnalysis.NullableAnnotation nullableAnnotation) => throw ExceptionUtilities.Unreachable(); 148internal override TResult Accept<TArgument, TResult>(CSharpSymbolVisitor<TArgument, TResult> visitor, TArgument a) => throw ExceptionUtilities.Unreachable(); 150internal override void AddNullableTransforms(ArrayBuilder<byte> transforms) => throw ExceptionUtilities.Unreachable(); 152internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) => throw ExceptionUtilities.Unreachable(); 154internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => throw ExceptionUtilities.Unreachable(); 156internal override bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) => throw ExceptionUtilities.Unreachable(); 197internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => throw ExceptionUtilities.Unreachable();
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 (2)
148throw ExceptionUtilities.Unreachable(); 268throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\Metadata\PE\PEMethodSymbol.cs (9)
507throw ExceptionUtilities.Unreachable(); 1130throw ExceptionUtilities.Unreachable(); 1200throw ExceptionUtilities.UnexpectedValue(kind); 1694throw ExceptionUtilities.Unreachable(); 1751internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 1785throw ExceptionUtilities.Unreachable(); 1790throw ExceptionUtilities.Unreachable(); 1795get { throw ExceptionUtilities.Unreachable(); } 1807internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEModuleSymbol.cs (3)
171throw ExceptionUtilities.Unreachable(); 579throw ExceptionUtilities.Unreachable(); 708throw ExceptionUtilities.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (11)
364throw ExceptionUtilities.Unreachable(); 482throw ExceptionUtilities.Unreachable(); 929throw ExceptionUtilities.UnexpectedValue(_flags & TypeAttributes.VisibilityMask); 1060throw ExceptionUtilities.Unreachable(); 1601throw ExceptionUtilities.Unreachable(); 2183get { throw ExceptionUtilities.Unreachable(); } 2924throw ExceptionUtilities.Unreachable(); 2970throw ExceptionUtilities.Unreachable(); 3188=> throw ExceptionUtilities.Unreachable(); 3277=> throw ExceptionUtilities.Unreachable(); 3321internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEParameterSymbol.cs (3)
969internal sealed override bool HasEnumeratorCancellationAttribute => throw ExceptionUtilities.Unreachable(); 1083internal sealed override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable(); 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 (3)
297throw ExceptionUtilities.Unreachable(); 635throw ExceptionUtilities.UnexpectedValue(kind); 1129throw ExceptionUtilities.Unreachable();
Symbols\MethodSymbolExtensions.cs (1)
116throw ExceptionUtilities.UnexpectedValue(hidingMember.Kind);
Symbols\MissingAssemblySymbol.cs (3)
127throw ExceptionUtilities.Unreachable(); 137throw ExceptionUtilities.Unreachable(); 185throw ExceptionUtilities.Unreachable();
Symbols\MissingMetadataTypeSymbol.cs (1)
447throw ExceptionUtilities.Unreachable();
Symbols\MissingModuleSymbol.cs (3)
166throw ExceptionUtilities.Unreachable(); 176throw ExceptionUtilities.Unreachable(); 198get { throw ExceptionUtilities.Unreachable(); }
Symbols\ModuleSymbol.cs (1)
336throw ExceptionUtilities.Unreachable();
Symbols\NamedTypeSymbol.cs (1)
521throw ExceptionUtilities.Unreachable();
Symbols\NativeIntegerTypeSymbol.cs (13)
158internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 160internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 162internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => throw ExceptionUtilities.Unreachable(); 164internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => throw ExceptionUtilities.Unreachable(); 168protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 177public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable(); 181internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 371internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable(); 406internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 412throw ExceptionUtilities.Unreachable(); 415internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 441=> throw ExceptionUtilities.Unreachable(); 486=> throw ExceptionUtilities.Unreachable();
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\OverriddenOrHiddenMembersResult.cs (1)
77throw ExceptionUtilities.Unreachable();
Symbols\PlaceholderTypeArgumentSymbol.cs (1)
31throw ExceptionUtilities.Unreachable();
Symbols\PublicModel\MethodSymbol.cs (1)
75throw ExceptionUtilities.UnexpectedValue(_underlying.MethodKind);
Symbols\ReducedExtensionMethodSymbol.cs (14)
334get { throw ExceptionUtilities.Unreachable(); } 448internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 506internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable(); 585throw ExceptionUtilities.Unreachable(); 588internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 603protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 661get { throw ExceptionUtilities.Unreachable(); } 667get { throw ExceptionUtilities.Unreachable(); } 673get { throw ExceptionUtilities.Unreachable(); } 679get { throw ExceptionUtilities.Unreachable(); } 682internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 684internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable(); 686internal override bool HasEnumeratorCancellationAttribute => throw ExceptionUtilities.Unreachable(); 712=> throw ExceptionUtilities.Unreachable();
Symbols\RefKindExtensions.cs (2)
34throw ExceptionUtilities.UnexpectedValue(syntaxKind); 50throw ExceptionUtilities.UnexpectedValue(refKind);
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
240throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingMethodSymbol.cs (5)
131internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable(); 263internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 384throw ExceptionUtilities.Unreachable(); 387internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 402=> throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
316throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (9)
427get { throw ExceptionUtilities.Unreachable(); } 433internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 537bool INestedTypeReference.InheritsEnclosingTypeTypeParameters => throw ExceptionUtilities.Unreachable(); 545bool ITypeReference.IsEnum => throw ExceptionUtilities.Unreachable(); 547bool ITypeReference.IsValueType => throw ExceptionUtilities.Unreachable(); 549Cci.PrimitiveTypeCode ITypeReference.TypeCode => throw ExceptionUtilities.Unreachable(); 551TypeDefinitionHandle ITypeReference.TypeDef => throw ExceptionUtilities.Unreachable(); 577throw ExceptionUtilities.Unreachable(); 582throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
165=> throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
686throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1070throw ExceptionUtilities.Unreachable(); 1356throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
120=> throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyMethodSymbol.cs (36)
97internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 107internal override bool GenerateDebugInfo { get { throw ExceptionUtilities.Unreachable(); } } 109internal override bool HasSpecialName { get { throw ExceptionUtilities.Unreachable(); } } 111internal override System.Reflection.MethodImplAttributes ImplementationAttributes { get { throw ExceptionUtilities.Unreachable(); } } 113internal override bool RequiresSecurityObject { get { throw ExceptionUtilities.Unreachable(); } } 117internal override MarshalPseudoCustomAttributeData ReturnValueMarshallingInformation { get { throw ExceptionUtilities.Unreachable(); } } 119internal override bool HasDeclarativeSecurity { get { throw ExceptionUtilities.Unreachable(); } } 121internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation() { throw ExceptionUtilities.Unreachable(); } 123internal override ObsoleteAttributeData ObsoleteAttributeData { get { throw ExceptionUtilities.Unreachable(); } } 125internal sealed override UnmanagedCallersOnlyAttributeData GetUnmanagedCallersOnlyAttributeData(bool forceComplete) => throw ExceptionUtilities.Unreachable(); 127internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 129internal override ImmutableArray<string> GetAppliedConditionalSymbols() { throw ExceptionUtilities.Unreachable(); } 131public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 133public override Symbol AssociatedSymbol { get { throw ExceptionUtilities.Unreachable(); } } 135public override bool IsExtensionMethod { get { throw ExceptionUtilities.Unreachable(); } } 137public override bool HidesBaseMethodsByName { get { throw ExceptionUtilities.Unreachable(); } } 139public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 141public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 143public override Accessibility DeclaredAccessibility { get { throw ExceptionUtilities.Unreachable(); } } 147public override bool IsAsync { get { throw ExceptionUtilities.Unreachable(); } } 149public override bool IsVirtual { get { throw ExceptionUtilities.Unreachable(); } } 151public override bool IsOverride { get { throw ExceptionUtilities.Unreachable(); } } 153public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } } 155public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } } 157public override bool IsExtern { get { throw ExceptionUtilities.Unreachable(); } } 159public override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable(); } } 161public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 163internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 165internal sealed override bool IsMetadataNewSlot(ModuleSymbol context, bool ignoreInterfaceImplementationChanges = false) { throw ExceptionUtilities.Unreachable(); } 167internal sealed override bool IsMetadataVirtual(ModuleSymbol context, bool ignoreInterfaceImplementationChanges = false) { throw ExceptionUtilities.Unreachable(); } 173throw ExceptionUtilities.Unreachable(); 181internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) { throw ExceptionUtilities.Unreachable(); } 183protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 189internal sealed override CallerUnsafeMode GetCallerUnsafeMode(ConsList<FieldSymbol> fieldsBeingBound) => throw ExceptionUtilities.Unreachable(); 191internal sealed override int TryGetOverloadResolutionPriority() => throw ExceptionUtilities.Unreachable(); 193internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyParameterSymbol.cs (24)
44internal override bool HasEnumeratorCancellationAttribute { get { throw ExceptionUtilities.Unreachable(); } } 58internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable(); 69internal override bool IsMetadataIn { get { throw ExceptionUtilities.Unreachable(); } } 71internal override bool IsMetadataOut { get { throw ExceptionUtilities.Unreachable(); } } 73internal override MarshalPseudoCustomAttributeData MarshallingInformation { get { throw ExceptionUtilities.Unreachable(); } } 75public override int Ordinal { get { throw ExceptionUtilities.Unreachable(); } } 77internal override bool IsMetadataOptional { get { throw ExceptionUtilities.Unreachable(); } } 79internal override ConstantValue ExplicitDefaultConstantValue { get { throw ExceptionUtilities.Unreachable(); } } 81internal override ConstantValue DefaultValueFromAttributes { get { throw ExceptionUtilities.Unreachable(); } } 83internal override bool IsIDispatchConstant { get { throw ExceptionUtilities.Unreachable(); } } 85internal override bool IsIUnknownConstant { get { throw ExceptionUtilities.Unreachable(); } } 87internal override bool IsCallerFilePath { get { throw ExceptionUtilities.Unreachable(); } } 89internal override bool IsCallerLineNumber { get { throw ExceptionUtilities.Unreachable(); } } 91internal override bool IsCallerMemberName { get { throw ExceptionUtilities.Unreachable(); } } 93internal override int CallerArgumentExpressionParameterIndex { get { throw ExceptionUtilities.Unreachable(); } } 95internal override FlowAnalysisAnnotations FlowAnalysisAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 97internal override ImmutableHashSet<string> NotNullIfParameterNotNull { get { throw ExceptionUtilities.Unreachable(); } } 99public override Symbol ContainingSymbol { get { throw ExceptionUtilities.Unreachable(); } } 101public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 103public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 105public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 107internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 109internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 111internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyPropertySymbol.cs (19)
70internal override bool HasSpecialName { get { throw ExceptionUtilities.Unreachable(); } } 72internal override Cci.CallingConvention CallingConvention { get { throw ExceptionUtilities.Unreachable(); } } 74public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 76public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 78public override Accessibility DeclaredAccessibility { get { throw ExceptionUtilities.Unreachable(); } } 80public override bool IsVirtual { get { throw ExceptionUtilities.Unreachable(); } } 84public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } } 86public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } } 88public override bool IsExtern { get { throw ExceptionUtilities.Unreachable(); } } 90internal override bool IsRequired => throw ExceptionUtilities.Unreachable(); 92internal override ObsoleteAttributeData ObsoleteAttributeData { get { throw ExceptionUtilities.Unreachable(); } } 94public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 96internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 98internal override bool MustCallMethodsDirectly { get { throw ExceptionUtilities.Unreachable(); } } 100public override MethodSymbol SetMethod { get { throw ExceptionUtilities.Unreachable(); } } 102public override MethodSymbol GetMethod { get { throw ExceptionUtilities.Unreachable(); } } 104public override bool IsIndexer { get { throw ExceptionUtilities.Unreachable(); } } 106internal override int TryGetOverloadResolutionPriority() => throw ExceptionUtilities.Unreachable(); 108internal override CallerUnsafeMode GetCallerUnsafeMode(ConsList<FieldSymbol> fieldsBeingBound) => throw ExceptionUtilities.Unreachable();
Symbols\Source\AttributeLocation.cs (1)
97throw ExceptionUtilities.UnexpectedValue(i);
Symbols\Source\CrefTypeParameterSymbol.cs (2)
210throw ExceptionUtilities.Unreachable(); 216throw ExceptionUtilities.Unreachable();
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
144throw ExceptionUtilities.Unreachable();
Symbols\Source\ExtensionGroupingInfo.cs (4)
139throw ExceptionUtilities.Unreachable(); 188throw ExceptionUtilities.Unreachable(); 672throw ExceptionUtilities.Unreachable(); 678throw ExceptionUtilities.Unreachable();
Symbols\Source\GlobalExpressionVariable.cs (1)
160throw ExceptionUtilities.Unreachable();
Symbols\Source\ImplicitNamedTypeSymbol.cs (3)
32=> throw ExceptionUtilities.Unreachable(); 159throw ExceptionUtilities.Unreachable(); 182internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Source\LambdaSymbol.cs (2)
439throw ExceptionUtilities.Unreachable(); 442internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Source\LocalFunctionSymbol.cs (2)
436throw ExceptionUtilities.Unreachable(); 568internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Source\ModifierUtils.cs (2)
365throw ExceptionUtilities.UnexpectedValue(modifier); 422throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Source\ParameterHelpers.cs (1)
816throw ExceptionUtilities.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (4)
1675_ => throw ExceptionUtilities.UnexpectedValue(attribute) 1860throw ExceptionUtilities.Unreachable(); 1874throw ExceptionUtilities.Unreachable(); 2091throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceClonedParameterSymbol.cs (2)
162internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 164internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1361throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceConstructorSymbolBase.cs (1)
229throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceCustomEventSymbol.cs (1)
121throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
39internal sealed override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceEventSymbol.cs (1)
169throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Symbols\Source\SourceFixedFieldSymbol.cs (1)
241=> throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceLocalSymbol.cs (4)
275throw ExceptionUtilities.Unreachable(); 556throw ExceptionUtilities.UnexpectedValue(_declarationKind); 655throw ExceptionUtilities.Unreachable(); 855throw ExceptionUtilities.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
308throw ExceptionUtilities.UnexpectedValue(matchResult); 531throw ExceptionUtilities.UnexpectedValue(this.TypeKind); 1038throw ExceptionUtilities.Unreachable(); 1772throw ExceptionUtilities.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMemberContainerSymbol.cs (10)
740throw ExceptionUtilities.Unreachable(); 1226throw ExceptionUtilities.Unreachable(); 1246throw ExceptionUtilities.Unreachable(); 4109throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 4284throw ExceptionUtilities.UnexpectedValue(symbol); 4543throw ExceptionUtilities.Unreachable(); 4801throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4812throw ExceptionUtilities.UnexpectedValue(member.Kind); 4864throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4882throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceMethodSymbol.cs (1)
93protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1441throw ExceptionUtilities.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics); 1549var unexpected => throw ExceptionUtilities.UnexpectedValue(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
415throw ExceptionUtilities.UnexpectedValue(member); 423throw ExceptionUtilities.UnexpectedValue(item);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
669throw ExceptionUtilities.UnexpectedValue(baseType.TypeKind); 821throw 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\SourceNamedTypeSymbol.cs (3)
182throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 491throw ExceptionUtilities.UnexpectedValue(node.Kind()); 2148_ => throw ExceptionUtilities.UnexpectedValue(field.AssociatedSymbol),
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (8)
58throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 85throw ExceptionUtilities.Unreachable(); 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); 426throw ExceptionUtilities.UnexpectedValue(declaration.Kind);
Symbols\Source\SourcePropertySymbol.cs (4)
185_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 288throw ExceptionUtilities.UnexpectedValue(accessor.Kind()); 353throw ExceptionUtilities.Unreachable(); 368throw ExceptionUtilities.Unreachable();
Symbols\Source\SourcePropertySymbolBase.cs (1)
352_ => throw ExceptionUtilities.UnexpectedValue(accessorToBlame)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
298throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (3)
430throw ExceptionUtilities.UnexpectedValue(extensionParameter.RefKind); 455throw ExceptionUtilities.Unreachable(); 1028throw ExceptionUtilities.Unreachable();
Symbols\Source\SynthesizedSourceOrdinaryMethodSymbol.cs (1)
75internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Source\ThisParameterSymbol.cs (1)
186internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable();
Symbols\Source\TypeParameterConstraintClause.cs (1)
114ExceptionUtilities.UnexpectedValue(constraints); // This call asserts.
Symbols\SubstitutedMethodSymbol.cs (5)
176internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable(); 224internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 370throw ExceptionUtilities.Unreachable(); 373internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 496=> throw ExceptionUtilities.Unreachable();
Symbols\SubstitutedNamedTypeSymbol.cs (7)
186throw ExceptionUtilities.Unreachable(); 393throw ExceptionUtilities.Unreachable(); 463throw ExceptionUtilities.Unreachable(); 468throw ExceptionUtilities.Unreachable(); 473throw ExceptionUtilities.Unreachable(); 478throw ExceptionUtilities.Unreachable(); 484internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\SubstitutedParameterSymbol.cs (1)
134=> throw ExceptionUtilities.Unreachable();
Symbols\Symbol_Attributes.cs (2)
90throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 746throw ExceptionUtilities.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\Symbol.cs (4)
305throw ExceptionUtilities.UnexpectedValue(DeclaredAccessibility); 712throw ExceptionUtilities.UnexpectedValue(this.Kind); 1783throw ExceptionUtilities.UnexpectedValue(variable); 1786throw ExceptionUtilities.UnexpectedValue(variable.Kind);
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\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (4)
233protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 235internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 245internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 247internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (5)
282var v => throw ExceptionUtilities.UnexpectedValue(v) 958protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 960internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 970internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 972internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
132throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
70_ => throw ExceptionUtilities.Unreachable()
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
80throw ExceptionUtilities.Unreachable(); 174internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
63internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
210_ => 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)
192var binder = getAccessor.TryGetBodyBinder() ?? throw ExceptionUtilities.UnexpectedValue(getAccessor);
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (10)
49internal sealed override ThreeState RuntimeAsyncMethodGenerationAttributeSetting => throw ExceptionUtilities.Unreachable(); 112public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => throw ExceptionUtilities.Unreachable(); 113public override Symbol AssociatedSymbol => throw ExceptionUtilities.Unreachable(); 114internal override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 115internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => throw ExceptionUtilities.Unreachable(); 116internal override bool HasAsyncMethodBuilderAttribute(out TypeSymbol builderArgument) => throw ExceptionUtilities.Unreachable(); 117internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 119internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<CSharpAttributeData> attributes) => throw ExceptionUtilities.Unreachable(); 135internal override bool HasEnumeratorCancellationAttribute => throw ExceptionUtilities.Unreachable(); 141internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<CSharpAttributeData> attributes) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedContainer.cs (3)
76=> throw ExceptionUtilities.Unreachable(); 205throw ExceptionUtilities.Unreachable(); 214internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (2)
133throw ExceptionUtilities.Unreachable(); 263protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
154protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 211internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (4)
210internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 276throw ExceptionUtilities.Unreachable(); 286throw ExceptionUtilities.Unreachable(); 315protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (4)
138throw ExceptionUtilities.Unreachable(); 148internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 352throw ExceptionUtilities.Unreachable(); 357protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (2)
141protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 154internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedImplementationMethod.cs (2)
261throw ExceptionUtilities.Unreachable(); 269protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (4)
154protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 156internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 166internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 168internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
119throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (2)
220throw ExceptionUtilities.Unreachable(); 279protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (4)
161get { throw ExceptionUtilities.Unreachable(); } 413internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 417throw ExceptionUtilities.Unreachable(); 422protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedMethodSymbol.cs (2)
81internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 85throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedParameterSymbol.cs (6)
90get { throw ExceptionUtilities.Unreachable(); } 95get { throw ExceptionUtilities.Unreachable(); } 100get { throw ExceptionUtilities.Unreachable(); } 105get { throw ExceptionUtilities.Unreachable(); } 110get { throw ExceptionUtilities.Unreachable(); } 225internal sealed override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (4)
139throw ExceptionUtilities.Unreachable(); 144throw ExceptionUtilities.Unreachable(); 151throw ExceptionUtilities.Unreachable(); 162internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
353throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedStaticConstructor.cs (3)
362throw ExceptionUtilities.Unreachable(); 372internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 436protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (1)
70throw ExceptionUtilities.Unreachable();
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (5)
98get { throw ExceptionUtilities.Unreachable(); } 103get { throw ExceptionUtilities.Unreachable(); } 117throw ExceptionUtilities.Unreachable(); 122throw ExceptionUtilities.Unreachable(); 127throw ExceptionUtilities.Unreachable();
Symbols\Tuples\TupleTypeSymbol.cs (5)
49throw ExceptionUtilities.Unreachable(); 313throw ExceptionUtilities.Unreachable(); 341throw ExceptionUtilities.Unreachable(); 699throw ExceptionUtilities.UnexpectedValue(member.Kind); 1090throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\TypeSymbol.cs (10)
1586throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1984throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2047throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2475throw ExceptionUtilities.Unreachable(); 2492=> throw ExceptionUtilities.Unreachable(); 2496=> throw ExceptionUtilities.Unreachable(); 2500=> throw ExceptionUtilities.Unreachable(); 2504=> throw ExceptionUtilities.Unreachable(); 2508=> throw ExceptionUtilities.Unreachable(); 2512=> throw ExceptionUtilities.Unreachable();
Symbols\TypeSymbolExtensions.cs (3)
988throw ExceptionUtilities.UnexpectedValue(current.TypeKind); 1221throw ExceptionUtilities.UnexpectedValue(acc1); 1614throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
163throw ExceptionUtilities.UnexpectedValue(NullableAnnotation);
Symbols\UpdatedContainingSymbolLocal.cs (1)
108) => throw ExceptionUtilities.Unreachable();
Symbols\VarianceSafety.cs (3)
86throw ExceptionUtilities.UnexpectedValue(member.TypeKind); 412throw ExceptionUtilities.UnexpectedValue(typeParam.Variance); 461throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.Variance);
Symbols\Wrapped\WrappedEventSymbol.cs (1)
170=> throw ExceptionUtilities.Unreachable();
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
214=> throw ExceptionUtilities.Unreachable();
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
266=> throw ExceptionUtilities.Unreachable();
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
198=> throw ExceptionUtilities.Unreachable();
Syntax\CSharpLineDirectiveMap.cs (2)
220throw ExceptionUtilities.UnexpectedValue(entry.State); 226=> throw ExceptionUtilities.Unreachable();
Syntax\CSharpPragmaWarningStateMap.cs (1)
105var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\CSharpSyntaxNode.cs (1)
451throw ExceptionUtilities.Unreachable();
Syntax\CSharpSyntaxTree.cs (1)
285throw ExceptionUtilities.UnexpectedValue(directive.Kind());
Syntax\CSharpSyntaxTree.Dummy.cs (1)
61=> throw ExceptionUtilities.Unreachable();
Syntax\DirectiveTriviaSyntax.cs (1)
64throw ExceptionUtilities.UnexpectedValue(this.Kind());
Syntax\InternalSyntax\SyntaxToken.cs (2)
67throw ExceptionUtilities.Unreachable(); 477throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxTrivia.cs (2)
43throw ExceptionUtilities.Unreachable(); 112throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\TypeDeclarationSyntax.cs (2)
208throw ExceptionUtilities.Unreachable(); 213throw ExceptionUtilities.Unreachable();
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 (2)
101throw ExceptionUtilities.Unreachable(); 377throw ExceptionUtilities.UnexpectedValue(accessibility);
Syntax\SyntaxKindExtensions.cs (1)
49throw ExceptionUtilities.UnexpectedValue(kind);
Syntax\TypeDeclarationSyntax.cs (3)
65throw ExceptionUtilities.UnexpectedValue(kind); 85throw ExceptionUtilities.UnexpectedValue(kind); 140throw ExceptionUtilities.UnexpectedValue(kind);
Utilities\TypeSymbolExtensions.cs (2)
206throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 286throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Utilities\TypeUnionValueSet.cs (3)
220throw ExceptionUtilities.UnexpectedValue(inputValue); 236throw ExceptionUtilities.UnexpectedValue(inputValue); 264throw ExceptionUtilities.UnexpectedValue(node);
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
48_ => throw ExceptionUtilities.UnexpectedValue("random"),
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
73throw ExceptionUtilities.Unreachable();
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.Rebuild (2)
RebuildSourceReferenceResolver.cs (2)
64public override Stream OpenRead(string resolvedPath) => throw ExceptionUtilities.Unreachable(); 66public override string? ResolveReference(string path, string? baseFilePath) => throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
114throw ExceptionUtilities.UnexpectedValue(GetPrimitiveSpecialType(type));