2621 references to ExceptionUtilities
BuildValidator (1)
CompilationDiff.cs (1)
180return peReader.GetEmbeddedPdbMetadataReader() ?? throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis (610)
CodeGen\ArrayMembers.cs (3)
137throw ExceptionUtilities.UnexpectedValue(id); 370throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 376throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
CodeGen\ILBuilder.cs (1)
1142throw 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(); 804throw ExceptionUtilities.UnexpectedValue(handlerScope.Type);
CodeGen\PrivateImplementationDetails.cs (10)
509get { throw ExceptionUtilities.Unreachable(); } 528throw ExceptionUtilities.Unreachable(); 551get { throw ExceptionUtilities.Unreachable(); } 557throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 563throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 692get { throw ExceptionUtilities.Unreachable(); } 721throw ExceptionUtilities.Unreachable(); 730throw ExceptionUtilities.Unreachable(); 738throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 744throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
CodeGen\SignatureOnlyLocalDefinition.cs (6)
31get { throw ExceptionUtilities.Unreachable(); } 36get { throw ExceptionUtilities.Unreachable(); } 57get { throw ExceptionUtilities.Unreachable(); } 62get { throw ExceptionUtilities.Unreachable(); } 67get { throw ExceptionUtilities.Unreachable(); } 78get { throw ExceptionUtilities.Unreachable(); }
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
510throw ExceptionUtilities.UnexpectedValue(branchCode);
Collections\Rope.cs (5)
101throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 144throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 155throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 176throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 200throw ExceptionUtilities.UnexpectedValue(v.GetType().Name);
Collections\TemporaryArray`1.cs (2)
242_ => throw ExceptionUtilities.Unreachable(), 304throw ExceptionUtilities.Unreachable();
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
132throw ExceptionUtilities.UnexpectedValue(tokenKind); 298throw ExceptionUtilities.UnexpectedValue(tokenKind); 396throw ExceptionUtilities.UnexpectedValue(lastChar);
Compilation.EmitStreamProvider.cs (1)
64throw ExceptionUtilities.Unreachable();
Compilation\Compilation.cs (3)
2252throw ExceptionUtilities.UnexpectedValue(platform); 2350throw ExceptionUtilities.UnexpectedValue(outputKind); 2371throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
315throw ExceptionUtilities.UnexpectedValue(m); 339throw ExceptionUtilities.UnexpectedValue(reference);
Compilation\OptimizationLevel.cs (1)
60_ => throw ExceptionUtilities.UnexpectedValue(optimization)
ConstantValue.cs (6)
429throw ExceptionUtilities.UnexpectedValue(discriminator); 479ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.UnexpectedValue(Discriminator), 480_ => throw ExceptionUtilities.UnexpectedValue(Discriminator) 534default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 801default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 829_ => throw ExceptionUtilities.UnexpectedValue(Discriminator)
CryptographicHashProvider.cs (3)
57throw ExceptionUtilities.UnexpectedValue(algorithmId); 73throw ExceptionUtilities.UnexpectedValue(algorithmId); 103throw ExceptionUtilities.UnexpectedValue(algorithmId);
Diagnostic\Diagnostic.cs (1)
543throw ExceptionUtilities.UnexpectedValue(reportAction);
Diagnostic\DiagnosticDescriptor.cs (1)
252throw ExceptionUtilities.UnexpectedValue(severity);
Diagnostic\DiagnosticFormatter.cs (1)
98throw ExceptionUtilities.UnexpectedValue(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (2)
125throw ExceptionUtilities.UnexpectedValue(type); 514throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalysisResultBuilder.cs (2)
123throw ExceptionUtilities.Unreachable(); 143throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1482throw ExceptionUtilities.Unreachable(); 1541throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (4)
712throw ExceptionUtilities.Unreachable(); 1056throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString()); 1105throw ExceptionUtilities.Unreachable(); 1279throw 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)
1071throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeletedMethodDefinition.cs (2)
164throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 170throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
538throw ExceptionUtilities.UnexpectedValue(change);
Emit\EditAndContinue\SymbolChanges.cs (3)
288throw ExceptionUtilities.UnexpectedValue(generatorChange); 360throw ExceptionUtilities.UnexpectedValue(containerChange); 473throw ExceptionUtilities.UnexpectedValue(edit.Kind);
Emit\ErrorType.cs (2)
196throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 202throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedMember.cs (4)
109throw ExceptionUtilities.Unreachable(); 114throw ExceptionUtilities.Unreachable(); 122throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 128throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedParameter.cs (3)
213throw ExceptionUtilities.Unreachable(); 276throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 282throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedType.cs (3)
552throw ExceptionUtilities.Unreachable(); 720throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 726throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (3)
199throw ExceptionUtilities.Unreachable(); 230throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 236throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emit\NoPia\VtblGap.cs (2)
263throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 269throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
EnumConstantHelper.cs (1)
111throw ExceptionUtilities.UnexpectedValue(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
184throw ExceptionUtilities.UnexpectedValue(kind);
Generated\Operations.Generated.cs (319)
3643_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 3658throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3674throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3698_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 3713throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3729throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3762_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 3780throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3799throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3856_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 3880throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3905throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3944_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 3970throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 3997throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4048_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4078throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4109throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4159_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4172throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4186throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4206internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4220internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4245_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4258throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4272throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4303_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4319throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4336throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4372_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4393throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4415throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4450_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4466throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4483throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4507_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4520throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4534throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4565_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4581throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4598throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4612internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4626internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4655_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4673throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4692throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4710internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4743_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4756throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4770throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4806_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4824throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4843throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4873_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4891throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4910throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4932internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4951internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4989_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5002throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5016throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5045_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5058throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5072throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5104_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5122throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5141throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5168_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5181throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5195throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5231_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5244throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5258throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5303_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5319throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5336throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5374_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5393throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5413throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5447_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5463throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5480throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5506_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5519throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5533throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5566_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5584throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5603throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5628_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5641throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5655throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5685_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5703throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5722throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5741internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5770_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5783throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5797throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5822_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5835throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5849throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5889_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5905throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5922throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5964_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5980throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5997throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6023_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6036throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6050throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6082_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6098throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6115throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6145_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6161throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6178throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6195internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6221_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6236throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6252throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6277_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6292throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6308throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6333_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6348throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6364throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6394_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6410throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6427throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6453_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6466throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6480throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6507_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6522throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6538throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6569_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6582throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6596throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6621_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6634throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6648throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6673_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6686throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6700throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6718internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6737internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6757internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6782_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6795throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6809throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6839_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6855throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6872throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6908_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6921throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6935throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6960_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6973throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6987throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7013_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7029throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7046throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7071_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7084throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7098throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7115internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7150_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7163throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7177throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7197_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7210throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7224throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7248_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7261throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7275throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7299_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7312throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7326throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7350_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7365throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7381throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7412_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7430throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7449throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7483_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7506throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7530throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7564_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7577throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7591throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7629_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7648throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7668throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7701_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7721throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7742throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7766internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7796_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7812throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7829throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7858_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7874throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7891throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7917_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7930throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7944throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7968_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7981throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7995throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8024_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8037throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8051throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8085_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8104throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8124throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8159_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8172throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8186throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8208internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8240_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8256throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8273throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8307_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8323throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8340throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8372_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8391throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8411throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8430internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8456_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8469throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8483throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8505internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8531_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8544throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8558throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8575internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8594internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8620_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8636throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8653throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8687_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8703throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8720throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8746_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8761throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8777throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8806_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8824throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8843throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8878_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8898throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8919throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8933internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8965_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8983throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9002throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9038_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9057throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9077throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9106_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9122throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9139throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9169_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9185throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9202throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9233_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9249throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9266throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9291_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9304throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9318throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9337internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9366_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9382throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9399throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9427_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9440throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9454throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9478_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9491throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9505throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9536_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9552throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9569throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9587internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9613_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9626throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9640throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9672_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9688throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9705throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9739_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9755throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9772throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9801_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9817throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9834throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9859_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9872throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9886throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9906internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9936_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9954throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9973throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10003_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10018throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10034throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10060_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10073throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10087throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10121_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10137throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10154throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10173internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10197_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10210throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10224throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10243public override IOperation DefaultVisit(IOperation operation, object? argument) => throw ExceptionUtilities.Unreachable();
InternalUtilities\FailFast.cs (2)
43throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 53throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
InternalUtilities\FatalError.cs (1)
140if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
InternalUtilities\RoslynParallel.cs (2)
34throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable();
MemberDescriptor.cs (2)
91throw ExceptionUtilities.UnexpectedValue(memberKind); 184throw ExceptionUtilities.UnexpectedValue(typeCode);
MetadataReader\MetadataDecoder.cs (1)
464throw ExceptionUtilities.UnexpectedValue(handle.Kind);
MetadataReader\MetadataHelpers.cs (2)
251throw ExceptionUtilities.UnexpectedValue(c); 348throw ExceptionUtilities.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73throw ExceptionUtilities.UnexpectedValue(typeCode); 176throw ExceptionUtilities.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (6)
1578throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1627throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1641throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1674throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1723throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3061throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
134throw ExceptionUtilities.UnexpectedValue(_contentType);
MetadataReference\MetadataImageReference.cs (1)
36throw ExceptionUtilities.Unreachable();
NativePdbWriter\PdbWriter.cs (1)
444throw ExceptionUtilities.Unreachable();
Operations\ControlFlowGraphBuilder.cs (39)
339throw ExceptionUtilities.UnexpectedValue(branch.Kind); 428throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 448throw ExceptionUtilities.Unreachable(); 484throw ExceptionUtilities.UnexpectedValue(@catch.Kind); 604throw ExceptionUtilities.UnexpectedValue(region.Kind); 1312throw ExceptionUtilities.Unreachable(); 2264throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3807throw ExceptionUtilities.Unreachable(); 3832throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5137throw ExceptionUtilities.Unreachable(); 5540throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5560throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 5575throw ExceptionUtilities.Unreachable(); 5580throw ExceptionUtilities.Unreachable(); 5585throw ExceptionUtilities.Unreachable(); 5590throw ExceptionUtilities.Unreachable(); 5595throw ExceptionUtilities.Unreachable(); 5600throw ExceptionUtilities.Unreachable(); 5795throw ExceptionUtilities.Unreachable(); 5801throw ExceptionUtilities.Unreachable(); 5807throw ExceptionUtilities.Unreachable(); 5812throw ExceptionUtilities.Unreachable(); 5817throw ExceptionUtilities.Unreachable(); 5822throw ExceptionUtilities.Unreachable(); 5827throw ExceptionUtilities.Unreachable(); 6153throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6268throw ExceptionUtilities.Unreachable(); 6676throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6688throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6718throw ExceptionUtilities.Unreachable(); 6723throw ExceptionUtilities.Unreachable(); 6762throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 6836throw ExceptionUtilities.UnexpectedValue(element.Kind); 6850throw ExceptionUtilities.Unreachable(); 6855throw ExceptionUtilities.Unreachable(); 7302throw ExceptionUtilities.Unreachable(); 7636throw ExceptionUtilities.Unreachable(); 7641throw ExceptionUtilities.Unreachable(); 7646throw 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)
228throw ExceptionUtilities.Unreachable(); 276get { throw ExceptionUtilities.Unreachable(); } 281get { throw ExceptionUtilities.Unreachable(); } 286get { throw ExceptionUtilities.Unreachable(); } 291get { throw ExceptionUtilities.Unreachable(); } 296get { throw ExceptionUtilities.Unreachable(); } 302throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 308throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\MetadataVisitor.cs (1)
213throw ExceptionUtilities.Unreachable();
PEWriter\MetadataWriter.cs (10)
1104_ => throw ExceptionUtilities.Unreachable() 1592throw ExceptionUtilities.Unreachable(); 1683_ => throw ExceptionUtilities.Unreachable() 2245throw ExceptionUtilities.UnexpectedValue(exportedType); 2808throw ExceptionUtilities.UnexpectedValue(typeRef); 3064_ => throw ExceptionUtilities.UnexpectedValue(reference) 3244throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3319throw ExceptionUtilities.UnexpectedValue(operandType); 3955throw ExceptionUtilities.UnexpectedValue(primitiveType); 4061throw ExceptionUtilities.UnexpectedValue(primitiveType);
PEWriter\MetadataWriter.PortablePdb.cs (2)
317throw ExceptionUtilities.Unreachable(); 997_ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind)
PEWriter\ModifiedTypeReference.cs (6)
47get { throw ExceptionUtilities.Unreachable(); } 52get { throw ExceptionUtilities.Unreachable(); } 57throw ExceptionUtilities.Unreachable(); 67get { throw ExceptionUtilities.Unreachable(); } 153throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 159throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\ReferenceIndexer.cs (1)
128throw ExceptionUtilities.Unreachable();
PEWriter\ReturnValueParameter.cs (2)
120throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 126throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\RootModuleStaticConstructor.cs (2)
173throw ExceptionUtilities.Unreachable(); 179throw ExceptionUtilities.Unreachable();
PEWriter\RootModuleType.cs (9)
198get { throw ExceptionUtilities.Unreachable(); } 211get { throw ExceptionUtilities.Unreachable(); } 216throw ExceptionUtilities.Unreachable(); 221get { throw ExceptionUtilities.Unreachable(); } 226get { throw ExceptionUtilities.Unreachable(); } 236get { throw ExceptionUtilities.Unreachable(); } 241get { throw ExceptionUtilities.Unreachable(); } 330throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 336throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
PEWriter\SequencePoint.cs (2)
46throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable();
PEWriter\SourceSpan.cs (2)
39throw ExceptionUtilities.Unreachable(); 44throw ExceptionUtilities.Unreachable();
PrimitiveTypeCodeExtensions.cs (1)
88throw ExceptionUtilities.UnexpectedValue(type);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (3)
73throw ExceptionUtilities.Unreachable(); 104throw ExceptionUtilities.Unreachable(); 111throw ExceptionUtilities.Unreachable();
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
312throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 390throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind); 975throw ExceptionUtilities.Unreachable();
Serialization\ObjectReader.cs (6)
146throw ExceptionUtilities.UnexpectedValue(b); 157throw ExceptionUtilities.UnexpectedValue(b); 309throw ExceptionUtilities.UnexpectedValue(code); 379throw ExceptionUtilities.UnexpectedValue(marker); 406throw ExceptionUtilities.UnexpectedValue(kind); 507throw ExceptionUtilities.UnexpectedValue(kind);
Serialization\ObjectWriter.cs (2)
237throw ExceptionUtilities.UnexpectedValue(value.GetType()); 671throw ExceptionUtilities.UnexpectedValue(kind);
Serialization\TextEncodingKind.cs (1)
54_ => throw ExceptionUtilities.UnexpectedValue(kind)
SignatureComparer.cs (1)
228throw ExceptionUtilities.UnexpectedValue(typeCode);
SourceGeneration\IncrementalWrapper.cs (2)
29void ISourceGenerator.Execute(GeneratorExecutionContext context) => throw ExceptionUtilities.Unreachable(); 31void ISourceGenerator.Initialize(GeneratorInitializationContext context) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\InputNode.cs (1)
37_registerOutput = registerOutput ?? (o => throw ExceptionUtilities.Unreachable());
SourceGeneration\Nodes\NodeStateTable.cs (2)
410_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState)) 528_ => throw ExceptionUtilities.Unreachable()
SourceGeneration\Nodes\SourceOutputNode.cs (3)
88IIncrementalGeneratorNode<TOutput> IIncrementalGeneratorNode<TOutput>.WithComparer(IEqualityComparer<TOutput> comparer) => throw ExceptionUtilities.Unreachable(); 90public IIncrementalGeneratorNode<(IEnumerable<GeneratedSourceText>, IEnumerable<Diagnostic>)> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 92void IIncrementalGeneratorNode<TOutput>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
85catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\UserFunction.cs (3)
33catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 53catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 68catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token))
SpecialTypeExtensions.cs (1)
269throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(specialType);
SwitchConstantValueHelper.cs (1)
93throw ExceptionUtilities.UnexpectedValue(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229throw ExceptionUtilities.UnexpectedValue(target);
Symbols\Attributes\CommonAttributeData.cs (2)
261throw ExceptionUtilities.UnexpectedValue(kind); 320private protected virtual bool IsStringProperty(string memberName) => throw ExceptionUtilities.Unreachable();
Symbols\PlatformInvokeInformation.cs (1)
82throw ExceptionUtilities.UnexpectedValue(_flags);
Symbols\RefKind.cs (3)
54default: throw ExceptionUtilities.UnexpectedValue(kind); 65default: throw ExceptionUtilities.UnexpectedValue(kind); 77default: throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\SymbolKindExtensions.cs (1)
54throw ExceptionUtilities.UnexpectedValue(kind);
Syntax\InternalSyntax\SyntaxList.cs (4)
153throw ExceptionUtilities.Unreachable(); 161throw ExceptionUtilities.Unreachable(); 167throw ExceptionUtilities.Unreachable(); 172throw 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)
960throw ExceptionUtilities.Unreachable();
Text\SourceHashAlgorithms.cs (1)
40_ => throw ExceptionUtilities.UnexpectedValue(algorithm),
Microsoft.CodeAnalysis.CSharp (1006)
Binder\Binder.CapturedParametersFinder.cs (1)
136throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Binder\Binder.cs (2)
265_ => throw ExceptionUtilities.UnexpectedValue(context.AnnotationsState) 294throw ExceptionUtilities.UnexpectedValue(Compilation.Options.NullableContextOptions);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
414throw ExceptionUtilities.UnexpectedValue(topClause.Kind()); 535(LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => throw ExceptionUtilities.Unreachable()),
Binder\Binder.QueryUnboundLambdaState.cs (1)
81throw ExceptionUtilities.Unreachable();
Binder\Binder.ValueChecks.cs (15)
71_ => throw ExceptionUtilities.UnexpectedValue(EscapeLevel) 726throw ExceptionUtilities.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind); 1155throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1179throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 2074_ => throw ExceptionUtilities.UnexpectedValue(symbol) 2382_ => throw ExceptionUtilities.UnexpectedValue(symbol) 2615_ => throw ExceptionUtilities.UnexpectedValue(methodOrPropertySymbol) 2727throw ExceptionUtilities.UnexpectedValue(kind); 2755throw ExceptionUtilities.UnexpectedValue(kind); 2799throw ExceptionUtilities.UnexpectedValue(kind); 3109throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 3359throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 3660throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4108throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4525throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Constraints.cs (4)
286throw ExceptionUtilities.UnexpectedValue(keyword); 294throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 425_ => throw ExceptionUtilities.UnexpectedValue(containingSymbol) 586throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Binder\Binder_Conversions.cs (21)
402throw ExceptionUtilities.UnexpectedValue(v); 726_ => throw ExceptionUtilities.UnexpectedValue(source), 884throw ExceptionUtilities.UnexpectedValue(conversion.Kind); 1284_ => throw ExceptionUtilities.UnexpectedValue(delegateType), 1411_ => throw ExceptionUtilities.UnexpectedValue(type) 1419_ => throw ExceptionUtilities.UnexpectedValue(type) 1754default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1774default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1794default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1814default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1834default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1853default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1873default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1893default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1913default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1933default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1953default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1977default: throw ExceptionUtilities.UnexpectedValue(destinationType); 1997default: throw ExceptionUtilities.UnexpectedValue(destinationType); 2000throw ExceptionUtilities.UnexpectedValue(value.Discriminator); 2103default: throw ExceptionUtilities.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
40throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 129throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 601throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 821throw ExceptionUtilities.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (3)
383throw ExceptionUtilities.UnexpectedValue(expression.Kind); 847throw ExceptionUtilities.UnexpectedValue(node.Kind()); 923throw ExceptionUtilities.Unreachable();
Binder\Binder_Expressions.cs (13)
955throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1430throw ExceptionUtilities.UnexpectedValue(managedKind); 2009throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2017throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2252throw ExceptionUtilities.UnexpectedValue(symbol); 2921throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 2985throw ExceptionUtilities.Unreachable(); 4459throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 4476throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 4784throw ExceptionUtilities.Unreachable(); 5912throw ExceptionUtilities.UnexpectedValue(classCreation.Kind); 7261throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 7863throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Binder_Initializers.cs (1)
138throw ExceptionUtilities.Unreachable();
Binder\Binder_InterpolatedString.cs (3)
178throw ExceptionUtilities.UnexpectedValue(content.Kind()); 425_ => throw ExceptionUtilities.UnexpectedValue(unconvertedExpression.Kind) 1025throw ExceptionUtilities.UnexpectedValue(argumentIndex);
Binder\Binder_Invocation.cs (1)
916throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (3)
213throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1378throw ExceptionUtilities.Unreachable(); 1564throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Binder\Binder_Operators.cs (7)
754_ => throw ExceptionUtilities.UnexpectedValue(current.Right.Kind) 1650throw ExceptionUtilities.UnexpectedValue(kind); 1671throw ExceptionUtilities.UnexpectedValue(underlyingType); 1734throw ExceptionUtilities.UnexpectedValue(newKind.Operator()); 2225default: throw ExceptionUtilities.UnexpectedValue(kind); 2977default: throw ExceptionUtilities.UnexpectedValue(kind); 3612throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (4)
76throw ExceptionUtilities.Unreachable(); 185_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 913throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 1444throw 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)
547throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1674throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 1725_ => throw ExceptionUtilities.UnexpectedValue(e.Kind) 1746throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3459_ => throw ExceptionUtilities.UnexpectedValue(expressionBody.Parent.Kind()), 3543throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3800throw ExceptionUtilities.Unreachable();
Binder\Binder_Symbols.cs (3)
165throw ExceptionUtilities.UnexpectedValue(keyword); 728throw ExceptionUtilities.UnexpectedValue(typesArray.Length); 1482throw ExceptionUtilities.UnexpectedValue(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
115throw ExceptionUtilities.UnexpectedValue(comparison); 155throw ExceptionUtilities.UnexpectedValue(binaryOperator);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
304throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 460throw ExceptionUtilities.UnexpectedValue(baseMethodDeclarationSyntax.Kind()); 485throw ExceptionUtilities.UnexpectedValue(basePropertyDeclarationSyntax.Kind()); 1165throw ExceptionUtilities.UnexpectedValue(elementKind);
Binder\BlockBinder.cs (2)
73throw ExceptionUtilities.Unreachable(); 91throw ExceptionUtilities.Unreachable();
Binder\BuckStopsHereBinder.cs (14)
155throw ExceptionUtilities.Unreachable(); 178throw 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(); 243throw ExceptionUtilities.Unreachable(); 249throw ExceptionUtilities.Unreachable();
Binder\CatchClauseBinder.cs (2)
52throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable();
Binder\DecisionDagBuilder.cs (9)
260throw ExceptionUtilities.UnexpectedValue(tests); 311throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 912throw ExceptionUtilities.UnexpectedValue(n.Kind); 1012throw ExceptionUtilities.UnexpectedValue(n?.Kind); 1096throw ExceptionUtilities.UnexpectedValue(test); 1399throw ExceptionUtilities.Unreachable(); 1871throw ExceptionUtilities.Unreachable(); 1922public virtual BoundDagTest ComputeSelectedTest() => throw ExceptionUtilities.Unreachable(); 2135_ => throw ExceptionUtilities.UnexpectedValue(negated),
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)
268throw ExceptionUtilities.UnexpectedValue(node.Kind()); 382throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 466throw ExceptionUtilities.UnexpectedValue(designation.Kind());
Binder\FixedStatementBinder.cs (2)
67throw ExceptionUtilities.Unreachable(); 72throw ExceptionUtilities.Unreachable();
Binder\ForEachLoopBinder.cs (7)
81throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 157throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 331throw ExceptionUtilities.UnexpectedValue(local.RefKind); 394throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 1401throw ExceptionUtilities.UnexpectedValue(enumeratorType.TypeKind); 1687throw ExceptionUtilities.Unreachable(); 1692throw ExceptionUtilities.Unreachable();
Binder\ForLoopBinder.cs (2)
147throw ExceptionUtilities.Unreachable(); 152throw ExceptionUtilities.Unreachable();
Binder\LookupResultKind.cs (1)
98throw ExceptionUtilities.UnexpectedValue(resultKind);
Binder\PatternExplainer.cs (5)
93throw ExceptionUtilities.Unreachable(); 164throw ExceptionUtilities.UnexpectedValue(currentNode.Kind); 241throw ExceptionUtilities.Unreachable(); 444throw ExceptionUtilities.UnexpectedValue(v); 688throw ExceptionUtilities.Unreachable();
Binder\RefSafetyAnalysis.cs (2)
629throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex); 851throw 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); 407throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
Binder\Semantics\Conversions\Conversion.cs (1)
963throw ExceptionUtilities.UnexpectedValue(conversionResult.Kind);
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
72throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
897throw ExceptionUtilities.UnexpectedValue(oppositeConversion.Kind); 2999throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.Variance);
Binder\Semantics\Conversions\TypeConversions.cs (4)
41throw ExceptionUtilities.Unreachable(); 47throw ExceptionUtilities.Unreachable(); 53throw ExceptionUtilities.Unreachable(); 59throw ExceptionUtilities.Unreachable();
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
670throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (2)
41throw ExceptionUtilities.Unreachable(); 47throw ExceptionUtilities.Unreachable();
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
357throw ExceptionUtilities.UnexpectedValue(kind); 660throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\OperatorFacts.cs (2)
184throw ExceptionUtilities.UnexpectedValue(kind & UnaryOperatorKind.OpMask); 210throw 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)
53throw ExceptionUtilities.Unreachable(); 58throw ExceptionUtilities.Unreachable(); 165throw ExceptionUtilities.UnexpectedValue(argAnalysis.Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
970_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType) 1351_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1137throw ExceptionUtilities.UnexpectedValue(member.Kind); 2682throw ExceptionUtilities.Unreachable(); 3837throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
456throw ExceptionUtilities.UnexpectedValue(result.Result.Kind); 1456throw 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.cs (2)
331throw ExceptionUtilities.Unreachable(); 341throw ExceptionUtilities.Unreachable();
Binder\SwitchBinder_Patterns.cs (2)
120throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 283throw ExceptionUtilities.UnexpectedValue(node);
Binder\UsingStatementBinder.cs (2)
305throw ExceptionUtilities.Unreachable(); 310throw ExceptionUtilities.Unreachable();
Binder\WhileBinder.cs (3)
62throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 76throw ExceptionUtilities.Unreachable(); 81throw ExceptionUtilities.Unreachable();
Binder\WithCrefTypeParametersBinder.cs (2)
72throw ExceptionUtilities.UnexpectedValue(_crefSyntax.Kind()); 99throw 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\BoundDagEvaluation.cs (1)
45_ => throw ExceptionUtilities.UnexpectedValue(this.Kind)
BoundTree\BoundDagTest.cs (1)
40throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundDecisionDag.cs (3)
36throw ExceptionUtilities.UnexpectedValue(node.Kind); 129throw ExceptionUtilities.UnexpectedValue(dag); 191throw ExceptionUtilities.UnexpectedValue(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundExpression.cs (5)
137public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 152public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 172public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 182public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 192public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable();
BoundTree\BoundExpressionExtensions.cs (1)
55var s => throw ExceptionUtilities.UnexpectedValue(s?.Kind)
BoundTree\BoundInterpolatedStringArgumentPlaceholder.cs (1)
13public sealed override bool IsEquivalentToThisReference => throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
BoundTree\BoundNode.cs (4)
237var a => throw ExceptionUtilities.UnexpectedValue(a), 251throw ExceptionUtilities.UnexpectedValue(value.FlowState); 274var mask => throw ExceptionUtilities.UnexpectedValue(mask) 425throw ExceptionUtilities.UnexpectedValue(conversion);
BoundTree\BoundNodeExtensions.cs (6)
131throw ExceptionUtilities.UnexpectedValue(current.Left.Kind); 146throw ExceptionUtilities.UnexpectedValue(current.Right.Kind); 214_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Left.Kind) 225_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Right.Kind) 255BoundBinaryOperator or BoundInterpolatedString => throw ExceptionUtilities.Unreachable(), 256_ => throw ExceptionUtilities.UnexpectedValue(e.Kind),
BoundTree\BoundStatementExtensions.cs (3)
23throw ExceptionUtilities.UnexpectedValue(node.Kind); 50throw ExceptionUtilities.Unreachable(); 53throw ExceptionUtilities.UnexpectedValue(node.Kind);
BoundTree\Formatting.cs (2)
108get { throw ExceptionUtilities.Unreachable(); } 140get { throw ExceptionUtilities.Unreachable(); }
BoundTree\NullabilityRewriter.cs (1)
66_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Kind),
BoundTree\UnboundLambda.cs (1)
365throw ExceptionUtilities.Unreachable();
BoundTree\VariablePendingInference.cs (2)
108throw ExceptionUtilities.UnexpectedValue(this.VariableSymbol.Kind); 129throw ExceptionUtilities.Unreachable();
CodeGen\EmitAddress.cs (2)
89throw ExceptionUtilities.UnexpectedValue(expression.Kind); 279throw ExceptionUtilities.UnexpectedValue(local.RefKind);
CodeGen\EmitArrayInitializer.cs (1)
436throw ExceptionUtilities.Unreachable();
CodeGen\EmitConversion.cs (5)
45throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 132throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 173throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller. 177throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 332throw ExceptionUtilities.Unreachable();
CodeGen\EmitExpression.cs (7)
169throw ExceptionUtilities.UnexpectedValue(expression.Kind); 350throw ExceptionUtilities.UnexpectedValue(expression.Kind); 1630throw ExceptionUtilities.Unreachable(); 2736throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 2757throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 2944throw ExceptionUtilities.UnexpectedValue(expression.Kind); 3834throw ExceptionUtilities.Unreachable();
CodeGen\EmitOperators.cs (4)
54throw ExceptionUtilities.UnexpectedValue(operatorKind.Operator()); 245throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator()); 418throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind.OperatorWithLogical()); 664throw 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(); 1157throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind); 1967throw ExceptionUtilities.Unreachable();
CodeGen\Optimizer.cs (4)
493throw ExceptionUtilities.UnexpectedValue(context); 537throw ExceptionUtilities.Unreachable(); 1092throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 2153throw ExceptionUtilities.Unreachable();
Compilation\BuiltInOperators.cs (1)
279default: throw ExceptionUtilities.UnexpectedValue(kind.OperandTypes());
Compilation\CSharpDiagnosticFilter.cs (2)
162_ => throw ExceptionUtilities.UnexpectedValue(warningsState) 257throw ExceptionUtilities.UnexpectedValue(report);
Compilation\CSharpSemanticModel.cs (2)
3767throw ExceptionUtilities.UnexpectedValue(containingMember.Kind); 3994throw 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)
113throw ExceptionUtilities.Unreachable(); 123throw ExceptionUtilities.Unreachable(); 2327throw ExceptionUtilities.Unreachable(); 2332throw ExceptionUtilities.Unreachable();
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
286throw 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)
169ExceptionUtilities.UnexpectedValue(attributeOrParameter); 503throw ExceptionUtilities.Unreachable(); 508throw ExceptionUtilities.Unreachable(); 518throw ExceptionUtilities.Unreachable(); 523throw ExceptionUtilities.Unreachable(); 528throw ExceptionUtilities.Unreachable(); 533throw ExceptionUtilities.Unreachable(); 538throw ExceptionUtilities.Unreachable(); 543throw ExceptionUtilities.Unreachable(); 548throw ExceptionUtilities.Unreachable(); 553throw ExceptionUtilities.Unreachable(); 558throw ExceptionUtilities.Unreachable();
Compilation\SyntaxTreeSemanticModel.cs (11)
1112ExceptionUtilities.UnexpectedValue(node.Parent); 1173throw ExceptionUtilities.UnexpectedValue(node.Parent.Kind()); 1189ExceptionUtilities.UnexpectedValue(node.Parent); 1599throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 1623ExceptionUtilities.UnexpectedValue(containingMemberSyntax.Kind()); 1707throw ExceptionUtilities.UnexpectedValue(declaration.Kind()); 1746throw ExceptionUtilities.UnexpectedValue(name.Kind()); 2150throw ExceptionUtilities.UnexpectedValue(typeParameter.Parent.Kind()); 2423ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2461ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2488ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (7)
215throw ExceptionUtilities.Unreachable(); 750throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1001throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1242throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 1277throw ExceptionUtilities.UnexpectedValue(compliance); 1293throw ExceptionUtilities.UnexpectedValue(compliance); 1343throw ExceptionUtilities.UnexpectedValue(x.Kind);
Compiler\DocumentationCommentCompiler.cs (1)
1174throw 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)
385throw ExceptionUtilities.Unreachable(); 431throw ExceptionUtilities.Unreachable(); 918throw ExceptionUtilities.Unreachable(); 923throw ExceptionUtilities.Unreachable(); 928throw ExceptionUtilities.Unreachable(); 933throw ExceptionUtilities.Unreachable(); 1925throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); 2059throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Compiler\SynthesizedMetadataCompiler.cs (1)
110throw ExceptionUtilities.Unreachable();
Compiler\TypeCompilationState.cs (1)
212throw ExceptionUtilities.Unreachable();
CSharpDeclarationComputer.cs (1)
411ExceptionUtilities.UnexpectedValue(node.Kind());
Declarations\DeclarationKind.cs (1)
46throw ExceptionUtilities.UnexpectedValue(kind);
Declarations\DeclarationTreeBuilder.cs (1)
593_ => throw ExceptionUtilities.UnexpectedValue(node.Kind())
Declarations\MergedTypeDeclaration.cs (1)
93throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind());
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (8)
149throw ExceptionUtilities.UnexpectedValue(def); 348throw ExceptionUtilities.Unreachable(); 480throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 576throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 583throw ExceptionUtilities.Unreachable(); 658_ => throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind), 973throw ExceptionUtilities.UnexpectedValue(type.Kind); 1051throw ExceptionUtilities.Unreachable();
Emitter\Model\ExpandedVarargsMethodReference.cs (2)
233throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 239throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (2)
85throw ExceptionUtilities.Unreachable(); 89public override int GetHashCode() => throw ExceptionUtilities.Unreachable();
Emitter\Model\MethodSymbolAdapter.cs (1)
694throw ExceptionUtilities.Unreachable();
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
57throw ExceptionUtilities.UnexpectedValue(value);
Emitter\Model\NamedTypeReference.cs (2)
171throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 177throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
217throw ExceptionUtilities.Unreachable(); 1046throw ExceptionUtilities.Unreachable();
Emitter\Model\ParameterSymbolAdapter.cs (2)
165throw ExceptionUtilities.Unreachable(); 275throw ExceptionUtilities.Unreachable();
Emitter\Model\ParameterTypeInformation.cs (4)
72throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 78throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 123throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 129throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emitter\Model\PEModuleBuilder.cs (7)
244throw ExceptionUtilities.UnexpectedValue(member.Kind); 286throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 360throw ExceptionUtilities.UnexpectedValue(member.Kind); 420throw ExceptionUtilities.UnexpectedValue(member.Kind); 427throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1145throw ExceptionUtilities.UnexpectedValue(typeSymbol.Kind); 1256throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility);
Emitter\Model\PENetModuleBuilder.cs (2)
30throw ExceptionUtilities.Unreachable(); 35throw ExceptionUtilities.Unreachable();
Emitter\Model\PropertySymbolAdapter.cs (1)
332throw ExceptionUtilities.Unreachable();
Emitter\Model\SymbolAdapter.cs (5)
31throw ExceptionUtilities.Unreachable(); 38throw ExceptionUtilities.Unreachable(); 51protected virtual SymbolAdapter GetCciAdapterImpl() => throw ExceptionUtilities.Unreachable(); 183throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 189throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emitter\Model\TypeMemberReference.cs (2)
56throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 62throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
153throw ExceptionUtilities.Unreachable(); 326throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
505throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
598throw ExceptionUtilities.UnexpectedValue(feature);
FlowAnalysis\AbstractFlowPass.cs (9)
865throw ExceptionUtilities.UnexpectedValue(node.Kind); 1006throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1048throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1061throw ExceptionUtilities.Unreachable(); 2003throw ExceptionUtilities.Unreachable(); 2278throw ExceptionUtilities.UnexpectedValue(binary.Kind); 3261throw ExceptionUtilities.Unreachable(); 3479throw ExceptionUtilities.Unreachable(); 3484throw ExceptionUtilities.Unreachable();
FlowAnalysis\DefiniteAssignment.cs (1)
1967throw 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.cs (20)
541throw ExceptionUtilities.UnexpectedValue(placeholder.Kind); 993=> throw ExceptionUtilities.Unreachable(), 1887throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 3155throw ExceptionUtilities.Unreachable(); 3679ExceptionUtilities.UnexpectedValue(node.Kind); 3898throw ExceptionUtilities.Unreachable(); 4171_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 4259_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 5165_ => throw ExceptionUtilities.UnexpectedValue(node.OperatorResultKind), 6106throw ExceptionUtilities.Unreachable(); 6630throw ExceptionUtilities.UnexpectedValue(refKind); 6782throw ExceptionUtilities.UnexpectedValue(refKind); 9525throw ExceptionUtilities.Unreachable(); 10159_ => throw ExceptionUtilities.UnexpectedValue(node.Syntax) 10251throw ExceptionUtilities.Unreachable(); 10463throw ExceptionUtilities.UnexpectedValue(node.Kind); 10499_ => throw ExceptionUtilities.UnexpectedValue(node) 10828throw ExceptionUtilities.Unreachable(); 11529(false, false) => throw ExceptionUtilities.Unreachable(), 11561_ => 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(); 71) => throw ExceptionUtilities.Unreachable();
FlowAnalysis\NullableWalker_Patterns.cs (6)
206throw ExceptionUtilities.UnexpectedValue(pattern); 399(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable(); 543throw ExceptionUtilities.UnexpectedValue(p.Evaluation.Kind); 620throw ExceptionUtilities.UnexpectedValue(test.Kind); 679throw ExceptionUtilities.UnexpectedValue(dagNode.Kind); 818_ => throw ExceptionUtilities.UnexpectedValue(e.Kind)
LanguageVersion.cs (2)
299throw ExceptionUtilities.UnexpectedValue(version); 372throw ExceptionUtilities.UnexpectedValue(version);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336throw ExceptionUtilities.UnexpectedValue(method);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
333throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (7)
125throw ExceptionUtilities.UnexpectedValue(node.Kind); 188throw ExceptionUtilities.Unreachable(); 402throw ExceptionUtilities.Unreachable(); 578throw ExceptionUtilities.UnexpectedValue(variable.Kind); 601return Helper(treeRoot) ?? throw ExceptionUtilities.Unreachable(); 643throw ExceptionUtilities.Unreachable(); 651return helper(treeRoot) ?? throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
396=> throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.cs (2)
769throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1763throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (10)
159throw ExceptionUtilities.UnexpectedValue(stmt.Kind); 251throw ExceptionUtilities.UnexpectedValue(node.Kind); 412throw ExceptionUtilities.UnexpectedValue(opKind.Operator()); 710throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup); 726throw ExceptionUtilities.UnexpectedValue(node.Argument); 841throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 856throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 900throw ExceptionUtilities.UnexpectedValue(elementKind); 953throw ExceptionUtilities.UnexpectedValue(initializerKind); // no other options at the top level of an initializer 1068throw ExceptionUtilities.UnexpectedValue(op);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
99throw ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
78throw ExceptionUtilities.UnexpectedValue(closureKind); 239throw 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.cs (2)
113throw ExceptionUtilities.UnexpectedValue(grandparent.Kind()); 284throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind());
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
148throw ExceptionUtilities.UnexpectedValue(declarationSyntax.Parent.Kind());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
393throw ExceptionUtilities.UnexpectedValue(original.Left); 492_ => 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)
42public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\DynamicSiteContainer.cs (1)
36get { throw ExceptionUtilities.Unreachable(); }
Lowering\LocalRewriter\LocalRewriter.cs (5)
392throw ExceptionUtilities.Unreachable(); 397throw ExceptionUtilities.Unreachable(); 489throw ExceptionUtilities.Unreachable(); 495throw ExceptionUtilities.Unreachable(); 984throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89throw ExceptionUtilities.UnexpectedValue(node.Kind); 641throw ExceptionUtilities.UnexpectedValue(otherwise); 673throw ExceptionUtilities.UnexpectedValue(n); 803throw ExceptionUtilities.UnexpectedValue(input.Type); 818_ => throw ExceptionUtilities.UnexpectedValue(input.Type.SpecialType) 857_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 870_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 929_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 941_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 956_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 964_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 1233throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
303throw ExceptionUtilities.UnexpectedValue(evaluation); 363throw ExceptionUtilities.UnexpectedValue(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
132throw ExceptionUtilities.Unreachable(); 178throw ExceptionUtilities.UnexpectedValue(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
523throw ExceptionUtilities.UnexpectedValue(operatorKind); 1979throw ExceptionUtilities.UnexpectedValue(operatorKind); 2285throw ExceptionUtilities.UnexpectedValue(numericSpecialType); 2352throw ExceptionUtilities.UnexpectedValue(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
630var u => throw ExceptionUtilities.UnexpectedValue(u.Kind) 651throw ExceptionUtilities.UnexpectedValue(argIndex);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
413throw ExceptionUtilities.UnexpectedValue(indexerAccess.Argument.Type); 729throw ExceptionUtilities.UnexpectedValue(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (3)
21throw ExceptionUtilities.Unreachable(); 101throw ExceptionUtilities.UnexpectedValue(loweringKind); 199throw ExceptionUtilities.UnexpectedValue(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (5)
31_ => throw ExceptionUtilities.UnexpectedValue(node.Operand.Kind) 195throw ExceptionUtilities.UnexpectedValue(current); 1494throw ExceptionUtilities.Unreachable(); 1517throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType); 1537throw ExceptionUtilities.UnexpectedValue(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
325throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
191throw ExceptionUtilities.Unreachable(); //Should be handled by VisitFixedStatement
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
156throw ExceptionUtilities.UnexpectedValue(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (7)
172throw ExceptionUtilities.Unreachable(); 177throw ExceptionUtilities.Unreachable(); 182throw ExceptionUtilities.Unreachable(); 187throw ExceptionUtilities.Unreachable(); 324throw ExceptionUtilities.UnexpectedValue(strategy); 430throw ExceptionUtilities.UnexpectedValue(strategy); 686throw ExceptionUtilities.UnexpectedValue(startStrategy);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
64throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
81throw ExceptionUtilities.UnexpectedValue(node); 299throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
89throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
73throw ExceptionUtilities.UnexpectedValue(temps.Length);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (5)
28throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 63throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 82throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 447throw ExceptionUtilities.UnexpectedValue((rewrittenLeft ?? assignment.Left).Kind); 550throw 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_StringInterpolation.cs (1)
128throw ExceptionUtilities.UnexpectedValue(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
262throw ExceptionUtilities.UnexpectedValue(@operator.InfoKind);
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
17throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
798throw ExceptionUtilities.UnexpectedValue(oper.Operator()); 943throw ExceptionUtilities.UnexpectedValue(kind); 1033throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType); 1043throw ExceptionUtilities.UnexpectedValue(unaryOperatorKind.OperandTypes()); 1103throw ExceptionUtilities.UnexpectedValue(binaryOperatorKind.OperandTypes());
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
83throw ExceptionUtilities.UnexpectedValue(loop.Kind);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
567throw ExceptionUtilities.UnexpectedValue(loweredReceiver.Kind);
Lowering\MethodToClassRewriter.cs (5)
426_ => throw ExceptionUtilities.UnexpectedValue(proxy) 491throw ExceptionUtilities.Unreachable(); 498throw ExceptionUtilities.Unreachable(); 638throw ExceptionUtilities.Unreachable(); 681throw ExceptionUtilities.Unreachable();
Lowering\SpillSequenceSpiller.cs (2)
906throw ExceptionUtilities.Unreachable(); 1104throw ExceptionUtilities.Unreachable();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
163throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
640throw ExceptionUtilities.UnexpectedValue(expr.Kind); 775throw ExceptionUtilities.Unreachable(); // for statements have been lowered away by now 780throw ExceptionUtilities.Unreachable(); // using statements have been lowered away by now
Lowering\SyntheticBoundNodeFactory.cs (2)
728throw ExceptionUtilities.UnexpectedValue(input.Type); 1548throw ExceptionUtilities.UnexpectedValue(refKind);
Operations\CSharpOperationFactory.cs (15)
330throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 413throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 545throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 605throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 796throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 811throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 896throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind); 1408{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2136{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2223throw ExceptionUtilities.UnexpectedValue(part.Kind); 2239_ => throw ExceptionUtilities.UnexpectedValue(value.Kind), 2336_ => throw ExceptionUtilities.UnexpectedValue(part.Kind) 2344_ => throw ExceptionUtilities.UnexpectedValue(methodName) 2359throw ExceptionUtilities.UnexpectedValue(current.Kind); 2382_ => throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
274throw ExceptionUtilities.UnexpectedValue(containingExpression.Kind);
Parser\Blender.Cursor.cs (1)
107throw ExceptionUtilities.Unreachable();
Parser\LanguageParser.cs (10)
1441throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1689throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 6351throw ExceptionUtilities.Unreachable(); 6878throw ExceptionUtilities.UnexpectedValue(mode); 8773throw ExceptionUtilities.UnexpectedValue(decl.designation.Kind); 10194throw ExceptionUtilities.UnexpectedValue(op); 10500throw ExceptionUtilities.UnexpectedValue(tokensToCombine); 10623_ => throw ExceptionUtilities.UnexpectedValue(node), 10966_ => throw ExceptionUtilities.Unreachable(), 11606throw ExceptionUtilities.UnexpectedValue(type);
Parser\LanguageParser_InterpolatedString.cs (2)
88_ => throw ExceptionUtilities.UnexpectedValue(kind), 249_ => throw ExceptionUtilities.UnexpectedValue(kind),
Parser\Lexer.cs (2)
279throw ExceptionUtilities.UnexpectedValue(ModeOf(_mode)); 380throw ExceptionUtilities.UnexpectedValue(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
119throw ExceptionUtilities.UnexpectedValue(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
78throw ExceptionUtilities.UnexpectedValue(node.KindText); 112_ => throw ExceptionUtilities.UnexpectedValue(name.KindText),
SymbolDisplay\ObjectDisplay.cs (1)
13using ExceptionUtilities = Roslyn.Utilities.ExceptionUtilities;
SymbolDisplay\SymbolDisplayVisitor.cs (2)
184throw ExceptionUtilities.UnexpectedValue(format.GlobalNamespaceStyle); 360throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
574throw ExceptionUtilities.UnexpectedValue(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
611throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind);
Symbols\AbstractTypeMap.cs (1)
209throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
789throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (6)
35=> throw ExceptionUtilities.Unreachable(); 39throw ExceptionUtilities.Unreachable(); 157throw ExceptionUtilities.Unreachable(); 231get { throw ExceptionUtilities.Unreachable(); } 241throw ExceptionUtilities.Unreachable(); 264internal 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)
54=> throw ExceptionUtilities.Unreachable(); 294throw ExceptionUtilities.Unreachable(); 307internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\AssemblySymbol.cs (3)
391throw ExceptionUtilities.Unreachable(); 402throw ExceptionUtilities.Unreachable(); 411throw ExceptionUtilities.Unreachable();
Symbols\Attributes\AttributeData.cs (1)
693throw ExceptionUtilities.Unreachable();
Symbols\BaseTypeAnalysis.cs (1)
172throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
282throw ExceptionUtilities.UnexpectedValue(descriptor.Flags); 350throw ExceptionUtilities.UnexpectedValue(targetSymbolKind); 633throw ExceptionUtilities.UnexpectedValue(attribute);
Symbols\ConstraintsHelper.cs (4)
258throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1032throw ExceptionUtilities.UnexpectedValue(error); 1393throw ExceptionUtilities.UnexpectedValue(typeArgument.TypeKind); 1535throw ExceptionUtilities.UnexpectedValue(type2.NullableAnnotation);
Symbols\ConstructedNamedTypeSymbol.cs (3)
45get { throw ExceptionUtilities.Unreachable(); } 50throw ExceptionUtilities.Unreachable(); 135get { throw ExceptionUtilities.Unreachable(); }
Symbols\EnumConversions.cs (1)
40throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\ErrorMethodSymbol.cs (3)
244get { throw ExceptionUtilities.Unreachable(); } 264throw ExceptionUtilities.Unreachable(); 269throw ExceptionUtilities.Unreachable();
Symbols\ErrorTypeSymbol.cs (5)
164throw ExceptionUtilities.Unreachable(); 512throw ExceptionUtilities.Unreachable(); 532get { throw ExceptionUtilities.Unreachable(); } 535internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 712=> throw ExceptionUtilities.Unreachable();
Symbols\ExtendedErrorTypeSymbol.cs (1)
96throw ExceptionUtilities.Unreachable();
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (9)
186throw ExceptionUtilities.UnexpectedValue(unexpected); 836internal override bool GenerateDebugInfo => throw ExceptionUtilities.Unreachable(); 837internal override ObsoleteAttributeData? ObsoleteAttributeData => throw ExceptionUtilities.Unreachable(); 839public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable(); 840public override DllImportData GetDllImportData() => throw ExceptionUtilities.Unreachable(); 841internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => throw ExceptionUtilities.Unreachable(); 842internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => throw ExceptionUtilities.Unreachable(); 843internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 844protected sealed override bool HasSetsRequiredMembersImpl => 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(string 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)
787throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\MemberSymbolExtensions.cs (11)
44throw ExceptionUtilities.UnexpectedValue(member.Kind); 62throw ExceptionUtilities.UnexpectedValue(member.Kind); 76throw ExceptionUtilities.UnexpectedValue(member.Kind); 94throw ExceptionUtilities.UnexpectedValue(member.Kind); 110throw ExceptionUtilities.UnexpectedValue(member.Kind); 236throw ExceptionUtilities.UnexpectedValue(m.Kind); 282throw ExceptionUtilities.UnexpectedValue(s.Kind); 336throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 354throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 579throw ExceptionUtilities.UnexpectedValue(member.Kind); 609throw 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 (8)
459throw ExceptionUtilities.Unreachable(); 1053throw ExceptionUtilities.Unreachable(); 1116throw ExceptionUtilities.UnexpectedValue(kind); 1524throw ExceptionUtilities.Unreachable(); 1613throw ExceptionUtilities.Unreachable(); 1618throw ExceptionUtilities.Unreachable(); 1623get { throw ExceptionUtilities.Unreachable(); } 1635internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEModuleSymbol.cs (3)
159throw ExceptionUtilities.Unreachable(); 680throw ExceptionUtilities.Unreachable(); 809throw ExceptionUtilities.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (9)
323throw ExceptionUtilities.Unreachable(); 660throw ExceptionUtilities.UnexpectedValue(_flags & TypeAttributes.VisibilityMask); 746throw ExceptionUtilities.Unreachable(); 1139throw ExceptionUtilities.Unreachable(); 1696get { throw ExceptionUtilities.Unreachable(); } 2299throw ExceptionUtilities.Unreachable(); 2464=> throw ExceptionUtilities.Unreachable(); 2544=> throw ExceptionUtilities.Unreachable(); 2588internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1134_ => throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
146_ => throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (3)
282throw ExceptionUtilities.Unreachable(); 618throw ExceptionUtilities.UnexpectedValue(kind); 1102throw ExceptionUtilities.Unreachable();
Symbols\MethodSymbolExtensions.cs (1)
116throw ExceptionUtilities.UnexpectedValue(hidingMemberKind);
Symbols\MissingAssemblySymbol.cs (3)
122throw ExceptionUtilities.Unreachable(); 132throw ExceptionUtilities.Unreachable(); 180throw ExceptionUtilities.Unreachable();
Symbols\MissingMetadataTypeSymbol.cs (1)
446throw ExceptionUtilities.Unreachable();
Symbols\MissingModuleSymbol.cs (3)
165throw ExceptionUtilities.Unreachable(); 175throw ExceptionUtilities.Unreachable(); 197get { throw ExceptionUtilities.Unreachable(); }
Symbols\ModuleSymbol.cs (1)
338throw ExceptionUtilities.Unreachable();
Symbols\NativeIntegerTypeSymbol.cs (9)
152internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 154internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 156internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => throw ExceptionUtilities.Unreachable(); 158internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => throw ExceptionUtilities.Unreachable(); 162protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 171public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable(); 175internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 356throw ExceptionUtilities.Unreachable(); 359internal override bool IsNullableAnalysisEnabled() => 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)
73throw ExceptionUtilities.UnexpectedValue(_underlying.MethodKind);
Symbols\ReducedExtensionMethodSymbol.cs (10)
325get { throw ExceptionUtilities.Unreachable(); } 572throw ExceptionUtilities.Unreachable(); 575internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 590protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 636get { throw ExceptionUtilities.Unreachable(); } 642get { throw ExceptionUtilities.Unreachable(); } 648get { throw ExceptionUtilities.Unreachable(); } 654get { throw ExceptionUtilities.Unreachable(); } 657internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 659internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\RefKindExtensions.cs (2)
34throw ExceptionUtilities.UnexpectedValue(syntaxKind); 49throw ExceptionUtilities.UnexpectedValue(refKind);
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
216throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingMethodSymbol.cs (2)
375throw ExceptionUtilities.Unreachable(); 378internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
316throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (2)
389get { throw ExceptionUtilities.Unreachable(); } 394internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
686throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1093throw ExceptionUtilities.Unreachable(); 1393throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyMethodSymbol.cs (32)
97internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 101internal override bool GenerateDebugInfo { get { throw ExceptionUtilities.Unreachable(); } } 103internal override bool HasSpecialName { get { throw ExceptionUtilities.Unreachable(); } } 105internal override System.Reflection.MethodImplAttributes ImplementationAttributes { get { throw ExceptionUtilities.Unreachable(); } } 107internal override bool RequiresSecurityObject { get { throw ExceptionUtilities.Unreachable(); } } 111internal override MarshalPseudoCustomAttributeData ReturnValueMarshallingInformation { get { throw ExceptionUtilities.Unreachable(); } } 113internal override bool HasDeclarativeSecurity { get { throw ExceptionUtilities.Unreachable(); } } 115internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation() { throw ExceptionUtilities.Unreachable(); } 117internal override ObsoleteAttributeData ObsoleteAttributeData { get { throw ExceptionUtilities.Unreachable(); } } 119internal sealed override UnmanagedCallersOnlyAttributeData GetUnmanagedCallersOnlyAttributeData(bool forceComplete) => throw ExceptionUtilities.Unreachable(); 121internal override ImmutableArray<string> GetAppliedConditionalSymbols() { throw ExceptionUtilities.Unreachable(); } 123public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 125public override Symbol AssociatedSymbol { get { throw ExceptionUtilities.Unreachable(); } } 127public override bool IsExtensionMethod { get { throw ExceptionUtilities.Unreachable(); } } 129public override bool HidesBaseMethodsByName { get { throw ExceptionUtilities.Unreachable(); } } 131public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 133public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 135public override Accessibility DeclaredAccessibility { get { throw ExceptionUtilities.Unreachable(); } } 139public override bool IsAsync { get { throw ExceptionUtilities.Unreachable(); } } 141public override bool IsVirtual { get { throw ExceptionUtilities.Unreachable(); } } 143public override bool IsOverride { get { throw ExceptionUtilities.Unreachable(); } } 145public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } } 147public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } } 149public override bool IsExtern { get { throw ExceptionUtilities.Unreachable(); } } 151public override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable(); } } 153public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 155internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 157internal sealed override bool IsMetadataNewSlot(bool ignoreInterfaceImplementationChanges = false) { throw ExceptionUtilities.Unreachable(); } 159internal sealed override bool IsMetadataVirtual(bool ignoreInterfaceImplementationChanges = false) { throw ExceptionUtilities.Unreachable(); } 165throw ExceptionUtilities.Unreachable(); 173internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) { throw ExceptionUtilities.Unreachable(); } 175protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyParameterSymbol.cs (21)
60internal override bool IsMetadataIn { get { throw ExceptionUtilities.Unreachable(); } } 62internal override bool IsMetadataOut { get { throw ExceptionUtilities.Unreachable(); } } 64internal override MarshalPseudoCustomAttributeData MarshallingInformation { get { throw ExceptionUtilities.Unreachable(); } } 66public override int Ordinal { get { throw ExceptionUtilities.Unreachable(); } } 68internal override bool IsMetadataOptional { get { throw ExceptionUtilities.Unreachable(); } } 70internal override ConstantValue ExplicitDefaultConstantValue { get { throw ExceptionUtilities.Unreachable(); } } 72internal override bool IsIDispatchConstant { get { throw ExceptionUtilities.Unreachable(); } } 74internal override bool IsIUnknownConstant { get { throw ExceptionUtilities.Unreachable(); } } 76internal override bool IsCallerFilePath { get { throw ExceptionUtilities.Unreachable(); } } 78internal override bool IsCallerLineNumber { get { throw ExceptionUtilities.Unreachable(); } } 80internal override bool IsCallerMemberName { get { throw ExceptionUtilities.Unreachable(); } } 82internal override int CallerArgumentExpressionParameterIndex { get { throw ExceptionUtilities.Unreachable(); } } 84internal override FlowAnalysisAnnotations FlowAnalysisAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 86internal override ImmutableHashSet<string> NotNullIfParameterNotNull { get { throw ExceptionUtilities.Unreachable(); } } 88public override Symbol ContainingSymbol { get { throw ExceptionUtilities.Unreachable(); } } 90public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 92public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 94public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 96internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 98internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 100internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyPropertySymbol.cs (17)
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(); } }
Symbols\Source\AttributeLocation.cs (1)
94throw ExceptionUtilities.UnexpectedValue(i);
Symbols\Source\CrefTypeParameterSymbol.cs (2)
205throw ExceptionUtilities.Unreachable(); 211throw ExceptionUtilities.Unreachable();
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
140throw ExceptionUtilities.Unreachable();
Symbols\Source\GlobalExpressionVariable.cs (1)
158throw ExceptionUtilities.Unreachable();
Symbols\Source\ImplicitNamedTypeSymbol.cs (3)
32=> throw ExceptionUtilities.Unreachable(); 153throw ExceptionUtilities.Unreachable(); 170internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Source\LambdaSymbol.cs (2)
412throw ExceptionUtilities.Unreachable(); 415internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Source\LocalFunctionSymbol.cs (2)
351throw ExceptionUtilities.Unreachable(); 478internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Source\ModifierUtils.cs (2)
329throw ExceptionUtilities.UnexpectedValue(modifier); 382throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Source\ParameterHelpers.cs (1)
588throw ExceptionUtilities.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (4)
1665_ => throw ExceptionUtilities.UnexpectedValue(attribute) 1850throw ExceptionUtilities.Unreachable(); 1864throw ExceptionUtilities.Unreachable(); 2073throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceClonedParameterSymbol.cs (2)
148internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 150internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1309throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceConstructorSymbolBase.cs (1)
242throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceCustomEventSymbol.cs (1)
121throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
34internal sealed override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceEventSymbol.cs (1)
145throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Symbols\Source\SourceFixedFieldSymbol.cs (1)
240=> throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceLocalSymbol.cs (3)
242throw ExceptionUtilities.Unreachable(); 459throw ExceptionUtilities.UnexpectedValue(_declarationKind); 769throw ExceptionUtilities.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
673throw ExceptionUtilities.Unreachable(); 1088throw ExceptionUtilities.Unreachable(); 1108throw ExceptionUtilities.Unreachable(); 3407throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3814throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 3825throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
308throw ExceptionUtilities.UnexpectedValue(matchResult); 524throw ExceptionUtilities.UnexpectedValue(this.TypeKind); 1010throw ExceptionUtilities.Unreachable(); 1656throw ExceptionUtilities.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbol.cs (1)
83protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
984throw ExceptionUtilities.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics); 1092var unexpected => throw ExceptionUtilities.UnexpectedValue(unexpected)
Symbols\Source\SourceNamedTypeSymbol.cs (2)
181throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 486throw ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
614throw ExceptionUtilities.UnexpectedValue(baseType.TypeKind); 750throw ExceptionUtilities.UnexpectedValue(typeKind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (8)
57throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 84throw ExceptionUtilities.Unreachable(); 126throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 157throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 189throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 221throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 428throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 559throw ExceptionUtilities.UnexpectedValue(declarationSyntax);
Symbols\Source\SourceNamespaceSymbol.cs (1)
446throw ExceptionUtilities.UnexpectedValue(declaration.Kind);
Symbols\Source\SourcePropertySymbol.cs (4)
152_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 221throw ExceptionUtilities.UnexpectedValue(accessor.Kind()); 249throw ExceptionUtilities.Unreachable(); 264throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceTypeParameterSymbol.cs (1)
293throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
313throw ExceptionUtilities.Unreachable(); 830throw ExceptionUtilities.Unreachable();
Symbols\Source\TypeParameterConstraintClause.cs (1)
113ExceptionUtilities.UnexpectedValue(constraints); // This call asserts.
Symbols\SubstitutedMethodSymbol.cs (2)
355throw ExceptionUtilities.Unreachable(); 358internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\SubstitutedNamedTypeSymbol.cs (7)
160throw ExceptionUtilities.Unreachable(); 356throw ExceptionUtilities.Unreachable(); 414throw ExceptionUtilities.Unreachable(); 419throw ExceptionUtilities.Unreachable(); 424throw ExceptionUtilities.Unreachable(); 429throw ExceptionUtilities.Unreachable(); 434internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Symbol.cs (3)
570throw ExceptionUtilities.UnexpectedValue(this.Kind); 1591throw ExceptionUtilities.UnexpectedValue(variable); 1594throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 713throw ExceptionUtilities.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
83throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolExtensions.cs (2)
210throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 528throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
43throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
240static byte @throw(char c) => throw ExceptionUtilities.UnexpectedValue(c);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
137throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
80_ => throw ExceptionUtilities.Unreachable()
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
71throw ExceptionUtilities.Unreachable(); 164internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
61internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
88internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
204_ => throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\Synthesized\RefKindVector.cs (1)
60_ => throw ExceptionUtilities.UnexpectedValue(value)
Symbols\Synthesized\SynthesizedContainer.cs (3)
78=> throw ExceptionUtilities.Unreachable(); 192throw ExceptionUtilities.Unreachable(); 201internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (2)
130throw ExceptionUtilities.Unreachable(); 263protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
132protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 189internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
272throw ExceptionUtilities.Unreachable(); 282throw ExceptionUtilities.Unreachable(); 310protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (3)
141throw ExceptionUtilities.Unreachable(); 334throw ExceptionUtilities.Unreachable(); 339protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedImplementationMethod.cs (2)
261throw ExceptionUtilities.Unreachable(); 269protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
119throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (1)
71throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (2)
220throw ExceptionUtilities.Unreachable(); 279protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (3)
160get { throw ExceptionUtilities.Unreachable(); } 412throw ExceptionUtilities.Unreachable(); 417protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedParameterSymbol.cs (5)
87get { throw ExceptionUtilities.Unreachable(); } 92get { throw ExceptionUtilities.Unreachable(); } 97get { throw ExceptionUtilities.Unreachable(); } 102get { throw ExceptionUtilities.Unreachable(); } 107get { throw ExceptionUtilities.Unreachable(); }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
353throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedStaticConstructor.cs (2)
360throw ExceptionUtilities.Unreachable(); 432protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Tuples\TupleTypeSymbol.cs (5)
50throw ExceptionUtilities.Unreachable(); 320throw ExceptionUtilities.Unreachable(); 348throw ExceptionUtilities.Unreachable(); 706throw ExceptionUtilities.UnexpectedValue(member.Kind); 1097throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\TypeSymbol.cs (10)
1574throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1930throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 1978throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2400throw ExceptionUtilities.Unreachable(); 2417=> throw ExceptionUtilities.Unreachable(); 2421=> throw ExceptionUtilities.Unreachable(); 2425=> throw ExceptionUtilities.Unreachable(); 2429=> throw ExceptionUtilities.Unreachable(); 2433=> throw ExceptionUtilities.Unreachable(); 2437=> throw ExceptionUtilities.Unreachable();
Symbols\TypeSymbolExtensions.cs (3)
853throw ExceptionUtilities.UnexpectedValue(current.TypeKind); 1086throw ExceptionUtilities.UnexpectedValue(acc1); 1417throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
160throw ExceptionUtilities.UnexpectedValue(NullableAnnotation);
Symbols\UpdatedContainingSymbolLocal.cs (1)
106) => throw ExceptionUtilities.Unreachable();
Symbols\VarianceSafety.cs (3)
83throw ExceptionUtilities.UnexpectedValue(member.TypeKind); 409throw ExceptionUtilities.UnexpectedValue(typeParam.Variance); 458throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.Variance);
Syntax\CSharpLineDirectiveMap.cs (2)
214throw ExceptionUtilities.UnexpectedValue(entry.State); 220=> throw ExceptionUtilities.Unreachable();
Syntax\CSharpPragmaWarningStateMap.cs (1)
105var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\CSharpSyntaxNode.cs (1)
471throw ExceptionUtilities.Unreachable();
Syntax\CSharpSyntaxTree.cs (1)
286throw ExceptionUtilities.UnexpectedValue(directive.Kind());
Syntax\CSharpSyntaxTree.Dummy.cs (1)
61=> throw ExceptionUtilities.Unreachable();
Syntax\DirectiveTriviaSyntax.cs (1)
62throw ExceptionUtilities.UnexpectedValue(this.Kind());
Syntax\InternalSyntax\SyntaxToken.cs (2)
83throw ExceptionUtilities.Unreachable(); 477throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxTrivia.cs (2)
64throw ExceptionUtilities.Unreachable(); 133throw ExceptionUtilities.Unreachable();
Syntax\LambdaUtilities.cs (2)
119throw ExceptionUtilities.UnexpectedValue(newLambda.Kind()); 128_ => throw ExceptionUtilities.UnexpectedValue(nestedFunction),
Syntax\LookupPosition.cs (2)
368throw ExceptionUtilities.UnexpectedValue(statement.Kind()); 451throw 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); 484throw 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)
63throw ExceptionUtilities.UnexpectedValue(kind); 81throw ExceptionUtilities.UnexpectedValue(kind); 134throw ExceptionUtilities.UnexpectedValue(kind);
Utilities\TypeSymbolExtensions.cs (1)
276throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
48_ => throw ExceptionUtilities.UnexpectedValue("random"),
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
67throw ExceptionUtilities.Unreachable();
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
89throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
49throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
86throw ExceptionUtilities.UnexpectedValue(relation); 127throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
49throw ExceptionUtilities.UnexpectedValue(relation);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
12799_ => throw ExceptionUtilities.UnexpectedValue(expectedDiagnosticSeverity) 13220throw ExceptionUtilities.UnexpectedValue(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27525throw ExceptionUtilities.UnexpectedValue(expectedValue); 27545throw ExceptionUtilities.UnexpectedValue(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Attributes\AttributeTests_IsUnmanaged.cs (1)
850throw ExceptionUtilities.UnexpectedValue(accessibility);
Diagnostics\DiagnosticAnalyzerTests.cs (3)
376throw ExceptionUtilities.Unreachable(); 1060throw ExceptionUtilities.Unreachable(); 4085throw ExceptionUtilities.Unreachable();
Diagnostics\GetDiagnosticsTests.cs (2)
960_ => throw ExceptionUtilities.UnexpectedValue(basePropertyDecl.Kind()), 971_ => throw ExceptionUtilities.UnexpectedValue(baseMethodDecl.Kind()),
Emit\NumericIntPtrTests.cs (1)
7004_ => throw ExceptionUtilities.Unreachable()
Semantics\PatternMatchingTestBase.cs (1)
458var v => throw ExceptionUtilities.UnexpectedValue(v)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (75)
Binders\PlaceholderLocalBinder.cs (3)
84throw ExceptionUtilities.UnexpectedValue(valueText); 115throw ExceptionUtilities.Unreachable(); 120throw ExceptionUtilities.Unreachable();
CompilationContext.cs (1)
1157throw ExceptionUtilities.UnexpectedValue(importRecord.TargetKind);
Rewriters\CapturedVariableRewriter.cs (1)
72throw ExceptionUtilities.Unreachable();
Symbols\DisplayClassVariable.cs (12)
124get { throw ExceptionUtilities.Unreachable(); } 134get { throw ExceptionUtilities.Unreachable(); } 139get { throw ExceptionUtilities.Unreachable(); } 162internal override bool IsRequired => throw ExceptionUtilities.Unreachable(); 171get { throw ExceptionUtilities.Unreachable(); } 181get { throw ExceptionUtilities.Unreachable(); } 186get { throw ExceptionUtilities.Unreachable(); } 191get { throw ExceptionUtilities.Unreachable(); } 196get { throw ExceptionUtilities.Unreachable(); } 201get { throw ExceptionUtilities.Unreachable(); } 206get { throw ExceptionUtilities.Unreachable(); } 211throw ExceptionUtilities.Unreachable();
Symbols\EEDisplayClassFieldLocalSymbol.cs (1)
47get { throw ExceptionUtilities.Unreachable(); }
Symbols\EELocalConstantSymbol.cs (1)
59get { throw ExceptionUtilities.Unreachable(); }
Symbols\EELocalSymbol.cs (1)
101get { throw ExceptionUtilities.Unreachable(); }
Symbols\EELocalSymbolBase.cs (2)
65throw ExceptionUtilities.Unreachable(); 75throw ExceptionUtilities.Unreachable();
Symbols\EEMethodSymbol.cs (6)
280throw ExceptionUtilities.Unreachable(); 374throw ExceptionUtilities.Unreachable(); 456get { throw ExceptionUtilities.Unreachable(); } 459internal sealed override UnmanagedCallersOnlyAttributeData GetUnmanagedCallersOnlyAttributeData(bool forceComplete) => throw ExceptionUtilities.Unreachable(); 746throw ExceptionUtilities.UnexpectedValue(bodyOpt.Kind); 757protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\EENamedTypeSymbol.cs (12)
98=> throw ExceptionUtilities.Unreachable(); 147throw ExceptionUtilities.Unreachable(); 166get { throw ExceptionUtilities.Unreachable(); } 191throw ExceptionUtilities.Unreachable(); 196throw ExceptionUtilities.Unreachable(); 206throw ExceptionUtilities.Unreachable(); 211throw ExceptionUtilities.Unreachable(); 221throw ExceptionUtilities.Unreachable(); 271throw ExceptionUtilities.Unreachable(); 276throw ExceptionUtilities.Unreachable(); 286throw ExceptionUtilities.Unreachable(); 351internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\EETypeParameterSymbol.cs (3)
49get { throw ExceptionUtilities.Unreachable(); } 113get { throw ExceptionUtilities.Unreachable(); } 123get { throw ExceptionUtilities.Unreachable(); }
Symbols\PlaceholderLocalSymbol.cs (3)
80throw ExceptionUtilities.UnexpectedValue(alias.Kind); 91get { throw ExceptionUtilities.Unreachable(); } 145throw ExceptionUtilities.Unreachable();
Symbols\PlaceholderMethodSymbol.cs (8)
67get { throw ExceptionUtilities.Unreachable(); } 216get { throw ExceptionUtilities.Unreachable(); } 219internal sealed override UnmanagedCallersOnlyAttributeData GetUnmanagedCallersOnlyAttributeData(bool forceComplete) => throw ExceptionUtilities.Unreachable(); 242get { throw ExceptionUtilities.Unreachable(); } 247throw ExceptionUtilities.Unreachable(); 252throw ExceptionUtilities.Unreachable(); 275throw ExceptionUtilities.Unreachable(); 280protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\SimpleTypeParameterSymbol.cs (5)
102get { throw ExceptionUtilities.Unreachable(); } 107get { throw ExceptionUtilities.Unreachable(); } 121throw ExceptionUtilities.Unreachable(); 126throw ExceptionUtilities.Unreachable(); 131throw ExceptionUtilities.Unreachable();
Symbols\SynthesizedContextMethodSymbol.cs (16)
107get { throw ExceptionUtilities.Unreachable(); } 132get { throw ExceptionUtilities.Unreachable(); } 141get { throw ExceptionUtilities.Unreachable(); } 156get { throw ExceptionUtilities.Unreachable(); } 161get { throw ExceptionUtilities.Unreachable(); } 166get { throw ExceptionUtilities.Unreachable(); } 171get { throw ExceptionUtilities.Unreachable(); } 176get { throw ExceptionUtilities.Unreachable(); } 181get { throw ExceptionUtilities.Unreachable(); } 186get { throw ExceptionUtilities.Unreachable(); } 191throw ExceptionUtilities.Unreachable(); 196throw ExceptionUtilities.Unreachable(); 201throw ExceptionUtilities.Unreachable(); 214throw ExceptionUtilities.Unreachable(); 219throw ExceptionUtilities.Unreachable(); 222protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (6)
MissingAssemblyTests.cs (5)
423throw ExceptionUtilities.Unreachable(); 450throw ExceptionUtilities.Unreachable(); 461throw ExceptionUtilities.Unreachable(); 481throw ExceptionUtilities.Unreachable(); 768throw ExceptionUtilities.Unreachable();
WinMdTests.cs (1)
358throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\InterpolationTests.cs (1)
4735_ => throw ExceptionUtilities.Unreachable()
Semantics\NativeIntegerTests.cs (2)
585throw ExceptionUtilities.UnexpectedValue(member.Kind); 619throw ExceptionUtilities.UnexpectedValue(nativeIntegerMember.Kind);
Semantics\OperatorTests.cs (2)
3254_ => throw ExceptionUtilities.UnexpectedValue(node.Text) 8791throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(i);
Semantics\RawInterpolationTests_Handler.cs (1)
3062_ => throw ExceptionUtilities.Unreachable()
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\CovariantReturnTests.cs (1)
507throw ExceptionUtilities.Unreachable();
Symbols\MockNamedTypeSymbol.cs (2)
231throw ExceptionUtilities.Unreachable(); 327internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91_ => throw ExceptionUtilities.UnexpectedValue(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (7)
CompilationTestUtils.cs (1)
284throw ExceptionUtilities.UnexpectedValue(node);
Extensions.cs (3)
722throw ExceptionUtilities.UnexpectedValue(member.Kind); 789throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 815throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
NullableAttributesVisitor.cs (2)
121throw ExceptionUtilities.Unreachable(); 126throw ExceptionUtilities.Unreachable();
UsesIsNullableVisitor.cs (1)
207throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
335throw ExceptionUtilities.UnexpectedValue(constant.Kind);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (18)
AbstractTypeParameterChecker.cs (3)
148throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 153throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 158throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
DkmUtilities.cs (2)
98throw ExceptionUtilities.Unreachable(); 327throw ExceptionUtilities.UnexpectedValue(accessibility);
EEMetadataReferenceResolver.cs (4)
49=> throw ExceptionUtilities.Unreachable(); 52=> throw ExceptionUtilities.Unreachable(); 55=> throw ExceptionUtilities.Unreachable(); 79throw ExceptionUtilities.UnexpectedValue(compareResult);
ExpressionCompiler.cs (4)
81throw ExceptionUtilities.Unreachable(); 139throw ExceptionUtilities.Unreachable(); 180throw ExceptionUtilities.Unreachable(); 214throw ExceptionUtilities.Unreachable();
FrameDecoder.cs (2)
61throw ExceptionUtilities.Unreachable(); 82throw ExceptionUtilities.Unreachable();
LanguageInstructionDecoder.cs (1)
58throw ExceptionUtilities.Unreachable();
MetadataContextId.cs (1)
37_ => throw ExceptionUtilities.UnexpectedValue(kind),
MetadataUtilities.cs (1)
300throw ExceptionUtilities.UnexpectedValue(compareResult);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (2)
NamespaceTypeDefinitionNoBase.cs (2)
133throw Roslyn.Utilities.ExceptionUtilities.Unreachable(); 139throw Roslyn.Utilities.ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (3)
HostOutputNode.cs (3)
86IIncrementalGeneratorNode<TOutput> IIncrementalGeneratorNode<TOutput>.WithComparer(IEqualityComparer<TOutput> comparer) => throw ExceptionUtilities.Unreachable(); 88public IIncrementalGeneratorNode<TOutput> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 90void IIncrementalGeneratorNode<TOutput>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
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.Rebuild.UnitTests (1)
RoundTripUtil.cs (1)
43var pdbReader = embeddedPdbReader ?? portablePdbReader ?? throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
115throw ExceptionUtilities.UnexpectedValue(GetPrimitiveSpecialType(type));
Microsoft.CodeAnalysis.Test.Utilities (13)
Compilation\OperationTreeVerifier.cs (1)
1508throw ExceptionUtilities.Unreachable();
CustomDataFlowAnalysis.cs (4)
249throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 342throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 361throw ExceptionUtilities.Unreachable(); 397throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
2523throw ExceptionUtilities.Unreachable(); 2638throw ExceptionUtilities.Unreachable();
Diagnostics\ReportDiagnosticExtensions.cs (1)
22_ => throw ExceptionUtilities.Unreachable(),
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (2)
304throw ExceptionUtilities.Unreachable(); 309=> throw ExceptionUtilities.Unreachable();
Metadata\ILBuilderVisualizer.cs (1)
495throw ExceptionUtilities.UnexpectedValue(opcode);
Metadata\MetadataReaderUtils.cs (2)
175throw ExceptionUtilities.UnexpectedValue(token.Kind); 228throw ExceptionUtilities.UnexpectedValue(token.Kind);
Microsoft.CodeAnalysis.UnitTests (11)
Collections\DebuggerAttributes.cs (1)
66object proxyInstance = Activator.CreateInstance(proxyType, obj) ?? throw ExceptionUtilities.Unreachable();
Collections\ImmutableListTestBase.cs (2)
114ForEachImpl(ImmutableSegmentedList<int>.Empty, n => { throw ExceptionUtilities.Unreachable(); }); 162Assert.Equal(0, FindLastImpl(ImmutableSegmentedList<int>.Empty, n => { throw ExceptionUtilities.Unreachable(); }));
Collections\ImmutableSegmentedListTest.cs (1)
416list.RemoveRange(Enumerable.Range(1, 1).Select<int, int>(n => { throw ExceptionUtilities.Unreachable(); }));
Collections\ImmutableSetTest.nonnetstandard.cs (2)
73_ => throw ExceptionUtilities.UnexpectedValue(set), 89_ => throw ExceptionUtilities.UnexpectedValue(set),
Collections\SegmentedArrayHelperTests.cs (3)
44_ => throw ExceptionUtilities.Unreachable(), 69_ => throw ExceptionUtilities.Unreachable(), 94_ => throw ExceptionUtilities.Unreachable(),
Collections\TestExtensionsMethods.nonnetstandard.cs (2)
38_ => throw ExceptionUtilities.UnexpectedValue(dictionary), 50_ => throw ExceptionUtilities.UnexpectedValue(dictionary),
Microsoft.CodeAnalysis.VisualBasic (785)
Analysis\FlowAnalysis\AbstractFlowPass.vb (5)
465Throw ExceptionUtilities.UnexpectedValue(branch.Kind) 1372Throw ExceptionUtilities.Unreachable 1376Throw ExceptionUtilities.Unreachable 1836Throw ExceptionUtilities.Unreachable 1854Throw ExceptionUtilities.UnexpectedValue(clause.Kind)
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (1)
67Throw ExceptionUtilities.Unreachable
Analysis\FlowAnalysis\DataFlowPass.vb (2)
905Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 1963Throw ExceptionUtilities.UnexpectedValue(expr.Kind) ' TODO: is this reachable at all?
Analysis\FlowAnalysis\EntryPointsWalker.vb (1)
56Throw ExceptionUtilities.UnexpectedValue(stmt.Kind)
Analysis\FlowAnalysis\ExitPointsWalker.vb (1)
120Throw ExceptionUtilities.UnexpectedValue(pending.Branch.Kind) ' there are no other branch statements
Analysis\FlowAnalysis\ReadWriteWalker.vb (2)
73Throw ExceptionUtilities.UnexpectedValue(Me._regionPlace) 90Throw ExceptionUtilities.UnexpectedValue(Me._regionPlace)
Analysis\InitializerRewriter.vb (1)
243Throw ExceptionUtilities.UnexpectedValue(initializer.Kind)
Binding\BackstopBinder.vb (18)
35Throw ExceptionUtilities.Unreachable 39Throw ExceptionUtilities.Unreachable 43Throw ExceptionUtilities.Unreachable 63Throw ExceptionUtilities.Unreachable 69Throw ExceptionUtilities.Unreachable 76Throw ExceptionUtilities.Unreachable 82Throw ExceptionUtilities.Unreachable 88Throw ExceptionUtilities.Unreachable 93Throw ExceptionUtilities.Unreachable 97Throw ExceptionUtilities.Unreachable 153Throw ExceptionUtilities.Unreachable 159Throw ExceptionUtilities.Unreachable 165Throw ExceptionUtilities.Unreachable 171Throw ExceptionUtilities.Unreachable 177Throw ExceptionUtilities.Unreachable 194Throw ExceptionUtilities.Unreachable 254Throw ExceptionUtilities.Unreachable 277Throw ExceptionUtilities.Unreachable
Binding\Binder_Constraints.vb (2)
36Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 96Throw ExceptionUtilities.UnexpectedValue(syntax.Kind)
Binding\Binder_Conversions.vb (8)
38Throw ExceptionUtilities.UnexpectedValue(node.Keyword.Kind) 288Throw ExceptionUtilities.UnexpectedValue(node.Keyword.Kind) 1261Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1326Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1388Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1486Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1550Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1601Throw ExceptionUtilities.UnexpectedValue(conversionSemantics)
Binding\Binder_Expressions.vb (11)
597Throw ExceptionUtilities.Unreachable 906Throw ExceptionUtilities.UnexpectedValue(group.Kind) 1154Throw ExceptionUtilities.UnexpectedValue(result.Kind) 1379Throw ExceptionUtilities.UnexpectedValue(propertyAccess.AccessKind) 1392Throw ExceptionUtilities.UnexpectedValue(expr.GetLateBoundAccessKind()) 1495Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1566Throw ExceptionUtilities.UnexpectedValue(conversionSemantics) 1899Throw ExceptionUtilities.UnexpectedValue(containingMember.Kind) 3341Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 3345Throw ExceptionUtilities.UnexpectedValue(lookupResult.Symbols(0).Kind) 3512Throw ExceptionUtilities.UnexpectedValue(member.Kind)
Binding\Binder_Initializers.vb (2)
418Throw ExceptionUtilities.UnexpectedValue(asNew.NewExpression.Kind) 526Throw ExceptionUtilities.UnexpectedValue(asNewSyntax.NewExpression.Kind)
Binding\Binder_InterpolatedString.vb (1)
28Throw ExceptionUtilities.Unreachable
Binding\Binder_Invocation.vb (3)
1022Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1619Throw ExceptionUtilities.UnexpectedValue(state) 3083Throw ExceptionUtilities.UnexpectedValue(argumentSyntax.Kind)
Binding\Binder_Lambda.vb (3)
361Throw ExceptionUtilities.Unreachable 501Throw ExceptionUtilities.UnexpectedValue(lambdaSyntax.Kind) 1050Throw ExceptionUtilities.Unreachable
Binding\Binder_Lookup.vb (4)
597Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 626Throw ExceptionUtilities.UnexpectedValue(container.TypeKind) 1117Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 1140Throw ExceptionUtilities.Unreachable
Binding\Binder_ObjectInitializer.vb (3)
278Throw ExceptionUtilities.UnexpectedValue(coClass.TypeKind) 337Throw ExceptionUtilities.UnexpectedValue(type0.TypeKind) 567Throw ExceptionUtilities.UnexpectedValue(syntaxNode.Initializer.Kind)
Binding\Binder_Operators.vb (1)
1022Throw ExceptionUtilities.UnexpectedValue(operatorKind)
Binding\Binder_Query.vb (9)
153Throw ExceptionUtilities.UnexpectedValue(current.Kind) 1208Throw ExceptionUtilities.UnexpectedValue(clauseSyntax.Kind) 1231Throw ExceptionUtilities.UnexpectedValue(absorbNextOperator.Kind) 1329Throw ExceptionUtilities.UnexpectedValue(absorbNextOperator.Kind) 2224Throw ExceptionUtilities.UnexpectedValue(rangeVariables.Length) 3158Throw ExceptionUtilities.UnexpectedValue(absorbNextOperator.Kind) 3567Throw ExceptionUtilities.UnexpectedValue(outerSide) 3582Throw ExceptionUtilities.UnexpectedValue(innerSide) 4040Throw ExceptionUtilities.UnexpectedValue(item.Aggregation.Kind)
Binding\Binder_SelectCase.vb (3)
185Throw ExceptionUtilities.UnexpectedValue(node.Kind) 219Throw ExceptionUtilities.UnexpectedValue(node.Kind) 466Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind)
Binding\Binder_Statements.vb (9)
284Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 1077Throw ExceptionUtilities.Unreachable 1202Throw ExceptionUtilities.UnexpectedValue(asNew.NewExpression.Kind) 2097Throw ExceptionUtilities.UnexpectedValue(localDecl.Kind) 2159Throw ExceptionUtilities.UnexpectedValue(node.Kind) 4886Case Else : ExceptionUtilities.UnexpectedValue(node.Kind) 4907Case Else : ExceptionUtilities.UnexpectedValue(node.Kind) 5243Throw ExceptionUtilities.UnexpectedValue(node.Kind) 5282Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Binding\Binder_Symbols.vb (4)
595Throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind) 671Throw ExceptionUtilities.UnexpectedValue(typesArray.Length) 800Throw ExceptionUtilities.UnexpectedValue(predefinedType) 1160Throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind)
Binding\Binder_Utils.vb (5)
37Throw ExceptionUtilities.UnexpectedValue(varianceKeywordOpt.Kind) 751Throw ExceptionUtilities.UnexpectedValue(typeChar) 789Throw ExceptionUtilities.UnexpectedValue(keywordSyntax.Kind) 808Throw ExceptionUtilities.UnexpectedValue(keywordSyntax.Kind) 1537Throw ExceptionUtilities.UnexpectedValue(kind)
Binding\Binder_XmlLiterals.vb (4)
631Throw ExceptionUtilities.UnexpectedValue(syntax.Kind) 951Throw ExceptionUtilities.UnexpectedValue(token.Kind) 1303Throw ExceptionUtilities.UnexpectedValue(token.Kind) 1988Throw ExceptionUtilities.Unreachable
Binding\BinderBuilder.vb (1)
361Throw ExceptionUtilities.UnexpectedValue(binderType)
Binding\BinderFactory.vb (6)
331Throw ExceptionUtilities.UnexpectedValue(node.Kind) 421Throw ExceptionUtilities.UnexpectedValue(methodSyntax.Kind) 433Throw ExceptionUtilities.UnexpectedValue(usage) 555Throw ExceptionUtilities.UnexpectedValue(parent.Kind) 613Throw ExceptionUtilities.UnexpectedValue(childName.Kind) 625Throw ExceptionUtilities.Unreachable
Binding\DocumentationCommentBinder.vb (3)
144Throw ExceptionUtilities.Unreachable 148Throw ExceptionUtilities.Unreachable 152Throw ExceptionUtilities.Unreachable
Binding\DocumentationCommentCrefBinder.vb (7)
271Throw ExceptionUtilities.UnexpectedValue(crefName.Kind) 371Throw ExceptionUtilities.UnexpectedValue(name.Kind) 512Throw ExceptionUtilities.UnexpectedValue(nameFromCref.Kind) 592Throw ExceptionUtilities.UnexpectedValue(left.Kind) 667Throw ExceptionUtilities.UnexpectedValue(left.Kind) 1070Throw ExceptionUtilities.UnexpectedValue(crefOperator.OperatorToken.Kind) 1115Throw ExceptionUtilities.UnexpectedValue(name.Kind)
Binding\DocumentationCommentCrefBinder_Compat.vb (4)
77Throw ExceptionUtilities.UnexpectedValue(nameFromCref.Kind) 102Throw ExceptionUtilities.UnexpectedValue(left.Kind) 386Throw ExceptionUtilities.UnexpectedValue(node.Keyword.Kind) 410Throw ExceptionUtilities.UnexpectedValue(genericSymbol.Kind)
Binding\InitializerSemanticModel.vb (1)
158Throw ExceptionUtilities.UnexpectedValue(Me.MemberSymbol.Kind)
Binding\LocalBinderBuilder.vb (3)
136Throw ExceptionUtilities.UnexpectedValue(methodBlock.BlockStatement.Kind) 156Throw ExceptionUtilities.UnexpectedValue(node.Kind) 188Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Binding\LookupResult.vb (1)
80Throw ExceptionUtilities.UnexpectedValue(resultKind)
Binding\MemberSemanticModel.vb (4)
66Throw ExceptionUtilities.Unreachable() 74Throw ExceptionUtilities.Unreachable() 400Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1090Throw ExceptionUtilities.UnexpectedValue(queryableSource.Source.Kind)
Binding\SpeculativeMemberSemanticModel.vb (3)
27Throw ExceptionUtilities.Unreachable 31Throw ExceptionUtilities.Unreachable 35Throw ExceptionUtilities.Unreachable
BoundTree\BoundCaseClause.vb (1)
24ExceptionUtilities.UnexpectedValue(conditionOpt.Kind) ' This is going to assert
BoundTree\BoundExpressionExtensions.vb (4)
254Throw ExceptionUtilities.UnexpectedValue(node.Kind) 269Throw ExceptionUtilities.UnexpectedValue(node.Kind) 292Throw ExceptionUtilities.UnexpectedValue(node.Kind) 307Throw ExceptionUtilities.UnexpectedValue(node.Kind)
BoundTree\BoundMethodOrPropertyGroup.vb (2)
34Throw ExceptionUtilities.UnexpectedValue(Me.Kind) 51Throw ExceptionUtilities.UnexpectedValue(Me.Kind)
BoundTree\BoundNode.vb (1)
105Throw ExceptionUtilities.Unreachable
BoundTree\BoundTreeWalker.vb (1)
120Throw ExceptionUtilities.Unreachable
CodeGen\EmitAddress.vb (1)
124Throw ExceptionUtilities.UnexpectedValue(kind)
CodeGen\EmitConversion.vb (1)
280Throw ExceptionUtilities.Unreachable
CodeGen\EmitExpression.vb (5)
166Throw ExceptionUtilities.UnexpectedValue(expression.Kind) 207Throw ExceptionUtilities.UnexpectedValue(expression.Kind) 645Throw ExceptionUtilities.Unreachable 1844Throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind) 1951Throw ExceptionUtilities.UnexpectedValue(expression.Kind)
CodeGen\EmitOperators.vb (3)
80Throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind) 340Throw ExceptionUtilities.UnexpectedValue(opKind) 539Throw ExceptionUtilities.UnexpectedValue(opKind)
CodeGen\EmitStatement.vb (6)
73Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 112Throw ExceptionUtilities.UnexpectedValue(statement.Flavor) 378Throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind) 612Throw ExceptionUtilities.UnexpectedValue(opKind) 1013Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind) 1016Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (4)
143Throw ExceptionUtilities.UnexpectedValue(context) 203Throw ExceptionUtilities.Unreachable 207Throw ExceptionUtilities.Unreachable 652Throw ExceptionUtilities.UnexpectedValue(node.Kind)
CodeGen\Optimizer\StackScheduler.DummyLocal.vb (1)
20Throw ExceptionUtilities.Unreachable
Compilation\ClsComplianceChecker.vb (9)
116Throw ExceptionUtilities.Unreachable 160Throw ExceptionUtilities.Unreachable 429Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 598Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 624Throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 829Throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility) 855Throw ExceptionUtilities.UnexpectedValue(compliance) 927Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 949Throw ExceptionUtilities.UnexpectedValue(symbol.Kind)
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (3)
107Throw ExceptionUtilities.UnexpectedValue(tag) 750Throw ExceptionUtilities.UnexpectedValue(DirectCast(symbol, NamedTypeSymbol).TypeKind) 754Throw ExceptionUtilities.UnexpectedValue(symbol.Kind)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
147Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 708Throw ExceptionUtilities.UnexpectedValue(attr.Kind) 782Throw ExceptionUtilities.UnexpectedValue(attr.Kind)
Compilation\MethodCompiler.vb (3)
504Throw ExceptionUtilities.Unreachable 537Throw ExceptionUtilities.Unreachable 1112Throw ExceptionUtilities.Unreachable
Compilation\SemanticModel.vb (2)
653Throw ExceptionUtilities.Unreachable 1451Throw ExceptionUtilities.UnexpectedValue(boundNodeOfSyntacticParent.Kind)
Compilation\SpeculativeSemanticModelWithMemberModel.vb (5)
278Throw ExceptionUtilities.Unreachable() 282Throw ExceptionUtilities.Unreachable() 294Throw ExceptionUtilities.Unreachable() 298Throw ExceptionUtilities.Unreachable() 302Throw ExceptionUtilities.Unreachable()
Compilation\SyntaxTreeSemanticModel.vb (2)
747Throw ExceptionUtilities.UnexpectedValue(implementingMember.Kind) 1596Throw ExceptionUtilities.Unreachable
Compilation\SynthesizedMetadataCompiler.vb (2)
60Throw ExceptionUtilities.Unreachable 64Throw ExceptionUtilities.Unreachable
Compilation\VisualBasicCompilation.vb (2)
272Throw ExceptionUtilities.Unreachable 292Throw ExceptionUtilities.Unreachable
Compilation\VisualBasicDeterministicKeyBuilder.vb (1)
56Throw ExceptionUtilities.UnexpectedValue(value)
Declarations\DeclarationModifiersExtensions.vb (1)
20Throw ExceptionUtilities.UnexpectedValue(modifiers)
Declarations\DeclarationTreeBuilder.vb (2)
800Throw ExceptionUtilities.UnexpectedValue(kind) 853Throw ExceptionUtilities.UnexpectedValue(modifier.Kind)
Declarations\MergedTypeDeclaration.vb (1)
101Throw ExceptionUtilities.UnexpectedValue(node.Kind)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
123Throw ExceptionUtilities.UnexpectedValue(containingSymbol.Kind)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (8)
120Throw ExceptionUtilities.UnexpectedValue(def) 275Throw ExceptionUtilities.Unreachable 387Throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind) 461Throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind) 466Throw ExceptionUtilities.Unreachable 493Throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind) 638Throw ExceptionUtilities.UnexpectedValue(type.Kind) 708Throw ExceptionUtilities.Unreachable
Emit\NamedTypeReference.vb (2)
126Throw Roslyn.Utilities.ExceptionUtilities.Unreachable 131Throw Roslyn.Utilities.ExceptionUtilities.Unreachable
Emit\NoPia\EmbeddedTypesManager.vb (2)
259Throw ExceptionUtilities.UnexpectedValue(IsFrozen) 422Throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind)
Emit\ParameterTypeInformation.vb (2)
53Throw Roslyn.Utilities.ExceptionUtilities.Unreachable 58Throw Roslyn.Utilities.ExceptionUtilities.Unreachable
Emit\PEModuleBuilder.vb (5)
220Throw ExceptionUtilities.UnexpectedValue(member.Kind) 259Throw ExceptionUtilities.UnexpectedValue(member.Kind) 265Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 671Throw ExceptionUtilities.UnexpectedValue(member.Kind) 706Throw ExceptionUtilities.UnexpectedValue(symbol.Kind)
Emit\PENetModuleBuilder.vb (1)
26Throw ExceptionUtilities.Unreachable
Emit\SymbolAdapter.vb (5)
23Throw ExceptionUtilities.Unreachable 33Throw ExceptionUtilities.Unreachable 48Throw ExceptionUtilities.Unreachable 157Throw Roslyn.Utilities.ExceptionUtilities.Unreachable 162Throw Roslyn.Utilities.ExceptionUtilities.Unreachable
Emit\SymbolTranslator.vb (2)
261Throw ExceptionUtilities.UnexpectedValue(typeSymbol.Kind) 355Throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility)
Emit\TypeMemberReference.vb (2)
45Throw Roslyn.Utilities.ExceptionUtilities.Unreachable 50Throw Roslyn.Utilities.ExceptionUtilities.Unreachable
Emit\TypeParameterSymbolAdapter.vb (3)
147Throw ExceptionUtilities.UnexpectedValue(kind) 157Throw ExceptionUtilities.UnexpectedValue(kind) 248Throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance)
Errors\ErrorMessageHelpers.vb (1)
30Throw ExceptionUtilities.UnexpectedValue(access)
LanguageVersion.vb (2)
75Throw ExceptionUtilities.UnexpectedValue(value) 136Throw ExceptionUtilities.UnexpectedValue(version)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
698Throw ExceptionUtilities.Unreachable 705Throw ExceptionUtilities.Unreachable
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (5)
30Throw ExceptionUtilities.UnexpectedValue(node.Kind) 376Throw ExceptionUtilities.Unreachable 383Throw ExceptionUtilities.Unreachable 399Throw ExceptionUtilities.UnexpectedValue(expr.Kind) 540Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Lowering\AsyncRewriter\AsyncRewriter.vb (4)
65Throw ExceptionUtilities.UnexpectedValue(Me._asyncMethodKind) 131Throw ExceptionUtilities.Unreachable 337Throw ExceptionUtilities.UnexpectedValue(Me._asyncMethodKind) 471Throw ExceptionUtilities.UnexpectedValue(expression.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (5)
280Throw ExceptionUtilities.UnexpectedValue(node.Kind) 283Throw ExceptionUtilities.UnexpectedValue(node.Kind) 437Throw ExceptionUtilities.Unreachable 559Throw ExceptionUtilities.UnexpectedValue(initializerOpt.Kind) 588Throw ExceptionUtilities.UnexpectedValue(left.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (6)
56Throw ExceptionUtilities.UnexpectedValue(node.OperatorKind) 59Throw ExceptionUtilities.UnexpectedValue(node.OperatorKind) 520Throw ExceptionUtilities.UnexpectedValue(opKind) 547Throw ExceptionUtilities.UnexpectedValue(opKind) 586Throw ExceptionUtilities.UnexpectedValue(opKind) 636Throw ExceptionUtilities.UnexpectedValue(opKind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
60Throw ExceptionUtilities.UnexpectedValue(convTestExpr.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (5)
99Throw ExceptionUtilities.UnexpectedValue(opKind) 183Throw ExceptionUtilities.UnexpectedValue(opKind) 212Throw ExceptionUtilities.UnexpectedValue(opKind) 231Throw ExceptionUtilities.UnexpectedValue(opKind) 249Throw ExceptionUtilities.UnexpectedValue(opKind)
Lowering\LambdaRewriter\LambdaFrame.vb (1)
114ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind())
Lowering\LambdaRewriter\LambdaFrameConstructor.vb (1)
67Throw ExceptionUtilities.Unreachable
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (3)
298Throw ExceptionUtilities.Unreachable 453Throw ExceptionUtilities.UnexpectedValue(asVariable.IsByRef) 492Throw ExceptionUtilities.Unreachable
Lowering\LambdaRewriter\LambdaRewriter.vb (3)
646Throw ExceptionUtilities.UnexpectedValue(originalSymbol.Kind) 696Throw ExceptionUtilities.Unreachable 1256Throw ExceptionUtilities.Unreachable
Lowering\LocalRewriter\LocalRewriter.vb (1)
477Throw ExceptionUtilities.Unreachable
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
183Throw ExceptionUtilities.UnexpectedValue(setNode.Kind)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
615Throw ExceptionUtilities.Unreachable
Lowering\LocalRewriter\LocalRewriter_Call.vb (1)
150Throw ExceptionUtilities.Unreachable
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
677Throw ExceptionUtilities.Unreachable
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (4)
162Throw ExceptionUtilities.Unreachable 381Throw ExceptionUtilities.Unreachable 702Throw ExceptionUtilities.UnexpectedValue(constStep) 773Throw ExceptionUtilities.Unreachable
Lowering\LocalRewriter\LocalRewriter_If.vb (3)
55Throw ExceptionUtilities.UnexpectedValue(syntax.Kind) 154Throw ExceptionUtilities.UnexpectedValue(instrumentationTargetOpt.Syntax.Kind) 198Throw ExceptionUtilities.UnexpectedValue(instrumentationTargetOpt.Syntax.Kind)
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
159Throw ExceptionUtilities.Unreachable()
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
425Throw ExceptionUtilities.UnexpectedValue(rewrittenObjectCreationExpression.Kind)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
374Throw ExceptionUtilities.UnexpectedValue(caseClause.Kind)
Lowering\LocalRewriter\LocalRewriter_While.vb (3)
70Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 87Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 110Throw ExceptionUtilities.UnexpectedValue(statement.Kind)
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (1)
319Throw ExceptionUtilities.Unreachable
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (50)
470Throw ExceptionUtilities.Unreachable 474Throw ExceptionUtilities.Unreachable 478Throw ExceptionUtilities.Unreachable 482Throw ExceptionUtilities.Unreachable 486Throw ExceptionUtilities.Unreachable 490Throw ExceptionUtilities.Unreachable 494Throw ExceptionUtilities.Unreachable 498Throw ExceptionUtilities.Unreachable 502Throw ExceptionUtilities.Unreachable 506Throw ExceptionUtilities.Unreachable 510Throw ExceptionUtilities.Unreachable 514Throw ExceptionUtilities.Unreachable 518Throw ExceptionUtilities.Unreachable 522Throw ExceptionUtilities.Unreachable 526Throw ExceptionUtilities.Unreachable 530Throw ExceptionUtilities.Unreachable 534Throw ExceptionUtilities.Unreachable 538Throw ExceptionUtilities.Unreachable 542Throw ExceptionUtilities.Unreachable 546Throw ExceptionUtilities.Unreachable 550Throw ExceptionUtilities.Unreachable 554Throw ExceptionUtilities.Unreachable 558Throw ExceptionUtilities.Unreachable 562Throw ExceptionUtilities.Unreachable 566Throw ExceptionUtilities.Unreachable 570Throw ExceptionUtilities.Unreachable 574Throw ExceptionUtilities.Unreachable 578Throw ExceptionUtilities.Unreachable 582Throw ExceptionUtilities.Unreachable 586Throw ExceptionUtilities.Unreachable 590Throw ExceptionUtilities.Unreachable 594Throw ExceptionUtilities.Unreachable 598Throw ExceptionUtilities.Unreachable 602Throw ExceptionUtilities.Unreachable 606Throw ExceptionUtilities.Unreachable 610Throw ExceptionUtilities.Unreachable 614Throw ExceptionUtilities.Unreachable 618Throw ExceptionUtilities.Unreachable 622Throw ExceptionUtilities.Unreachable 626Throw ExceptionUtilities.Unreachable 630Throw ExceptionUtilities.Unreachable 634Throw ExceptionUtilities.Unreachable 638Throw ExceptionUtilities.Unreachable 642Throw ExceptionUtilities.Unreachable 646Throw ExceptionUtilities.Unreachable 650Throw ExceptionUtilities.Unreachable 654Throw ExceptionUtilities.Unreachable 658Throw ExceptionUtilities.Unreachable 662Throw ExceptionUtilities.Unreachable 666Throw ExceptionUtilities.Unreachable
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
337Throw ExceptionUtilities.Unreachable
Lowering\StateMachineRewriter\SynthesizedContainer.vb (3)
183Throw ExceptionUtilities.Unreachable() 193Throw ExceptionUtilities.Unreachable 293Throw ExceptionUtilities.Unreachable
Lowering\UseTwiceRewriter.vb (1)
201Throw ExceptionUtilities.Unreachable
Lowering\WithExpressionRewriter.vb (2)
168Throw ExceptionUtilities.Unreachable 330Throw ExceptionUtilities.UnexpectedValue(value.Kind)
Operations\VisualBasicOperationFactory.vb (3)
327Throw ExceptionUtilities.UnexpectedValue(boundNode.Kind) 494Throw ExceptionUtilities.UnexpectedValue(boundOperator.Kind) 545Throw ExceptionUtilities.UnexpectedValue(binaryOperator.Kind)
Operations\VisualBasicOperationFactory_Methods.vb (7)
35Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) 48Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) 65Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) 76Throw ExceptionUtilities.UnexpectedValue(boundAssignment.Kind) 162Throw ExceptionUtilities.UnexpectedValue(index) 190Throw ExceptionUtilities.UnexpectedValue(boundNode.Kind) 378Throw ExceptionUtilities.UnexpectedValue(conditionOpt.Kind)
Parser\BlockContexts\BlockContext.vb (2)
718Throw ExceptionUtilities.UnexpectedValue(kind) 814Throw ExceptionUtilities.UnexpectedValue(kind)
Parser\BlockContexts\CompilationUnitContext.vb (1)
89Throw ExceptionUtilities.Unreachable
Parser\BlockContexts\MethodBlockContext.vb (1)
86Throw ExceptionUtilities.UnexpectedValue(BlockKind)
Parser\BlockContexts\SingleLineElseContext.vb (2)
99Throw ExceptionUtilities.UnexpectedValue(token.Kind) 177Throw ExceptionUtilities.UnexpectedValue(context.BlockKind)
Parser\BlockContexts\SingleLineIfBlockContext.vb (2)
43Throw ExceptionUtilities.Unreachable 101Throw ExceptionUtilities.UnexpectedValue(token.Kind)
Parser\BlockContexts\SingleLineIfOrElseBlockContext.vb (1)
57Throw ExceptionUtilities.UnexpectedValue(context.BlockKind)
Parser\BlockContexts\StatementBlockContext.vb (1)
45Throw ExceptionUtilities.UnexpectedValue(BlockKind)
Parser\ParseExpression.vb (2)
498Throw ExceptionUtilities.Unreachable 1629Throw ExceptionUtilities.UnexpectedValue(keywordKind)
Parser\Parser.vb (3)
253Throw ExceptionUtilities.Unreachable 1577Throw ExceptionUtilities.UnexpectedValue(typeKeyword.Kind) 4890Throw ExceptionUtilities.UnexpectedValue(keyword.Kind)
Parser\ParserFeature.vb (2)
109Throw ExceptionUtilities.UnexpectedValue(feature) 182Throw ExceptionUtilities.UnexpectedValue(feature)
Parser\ParseStatement.vb (1)
1193Throw ExceptionUtilities.UnexpectedValue(operatorToken.Kind)
Parser\ParseXml.vb (1)
1255Throw ExceptionUtilities.Unreachable
PredefinedPreprocessorSymbols.vb (1)
88Throw ExceptionUtilities.UnexpectedValue(kind)
Preprocessor\CConst.vb (1)
243Throw ExceptionUtilities.Unreachable
Preprocessor\ExpressionEvaluator.vb (18)
108Throw ExceptionUtilities.UnexpectedValue(specialType) 265Throw ExceptionUtilities.UnexpectedValue(token.Kind) 321Throw ExceptionUtilities.UnexpectedValue(typeChar) 403Throw ExceptionUtilities.UnexpectedValue(kind) 535Throw ExceptionUtilities.UnexpectedValue(expr.Keyword.Kind) 894Throw ExceptionUtilities.UnexpectedValue(specialType) 933Throw ExceptionUtilities.UnexpectedValue(specialType) 940Throw ExceptionUtilities.UnexpectedValue(expr) 1009Throw ExceptionUtilities.UnexpectedValue(expr) 1156Throw ExceptionUtilities.UnexpectedValue(opcode) 1269Throw ExceptionUtilities.UnexpectedValue(opcode) 1304Throw ExceptionUtilities.UnexpectedValue(opcode) 1384Throw ExceptionUtilities.UnexpectedValue(opcode) 1435Throw ExceptionUtilities.UnexpectedValue(opcode) 1482Throw ExceptionUtilities.UnexpectedValue(opcode) 1537Throw ExceptionUtilities.UnexpectedValue(opcode) 1577Throw ExceptionUtilities.UnexpectedValue(opcode) 1583Throw ExceptionUtilities.Unreachable
Preprocessor\OperatorResolution.vb (2)
65Throw ExceptionUtilities.UnexpectedValue(specialType) 346Throw ExceptionUtilities.UnexpectedValue(opcode)
Preprocessor\TypeHelpers.vb (1)
37Throw ExceptionUtilities.UnexpectedValue(specialType)
Scanner\Directives.vb (2)
220Throw ExceptionUtilities.UnexpectedValue(statement.Kind) 611Throw ExceptionUtilities.UnexpectedValue(curToken.Kind)
Scanner\Scanner.vb (2)
1786Throw ExceptionUtilities.UnexpectedValue(ch) 2116Throw ExceptionUtilities.UnexpectedValue(literalKind)
Scanner\ScannerInterpolatedString.vb (1)
50Throw ExceptionUtilities.Unreachable
Scanner\TokenStream.vb (1)
631Throw ExceptionUtilities.UnexpectedValue(state)
Semantics\AccessCheck.vb (3)
125Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 195Throw ExceptionUtilities.UnexpectedValue(declaredAccessibility) 271Throw ExceptionUtilities.UnexpectedValue(declaredAccessibility)
Semantics\CompileTimeCalculations.vb (8)
159Case Else : Throw ExceptionUtilities.UnexpectedValue(value.Discriminator) 178Case Else : Throw ExceptionUtilities.UnexpectedValue(type) 229Throw ExceptionUtilities.UnexpectedValue(resultType) 343Throw ExceptionUtilities.Unreachable() 433Throw ExceptionUtilities.Unreachable() 515Throw ExceptionUtilities.Unreachable() 542Throw ExceptionUtilities.UnexpectedValue(resultType) 570Throw ExceptionUtilities.UnexpectedValue(resultType)
Semantics\Conversions.vb (3)
464Throw ExceptionUtilities.Unreachable 4557Throw ExceptionUtilities.Unreachable 4561Throw ExceptionUtilities.Unreachable
Semantics\Operators.vb (20)
157Throw ExceptionUtilities.UnexpectedValue(op) 213Throw ExceptionUtilities.UnexpectedValue(op) 488Throw ExceptionUtilities.UnexpectedValue(opCode) 685Throw ExceptionUtilities.UnexpectedValue(opCode) 749Throw ExceptionUtilities.UnexpectedValue(op) 769Throw ExceptionUtilities.UnexpectedValue(op) 794Throw ExceptionUtilities.UnexpectedValue(op) 837Throw ExceptionUtilities.UnexpectedValue(opCode) 1172Throw ExceptionUtilities.UnexpectedValue(op) 1281Throw ExceptionUtilities.UnexpectedValue(op) 1333Throw ExceptionUtilities.UnexpectedValue(op) 1397Throw ExceptionUtilities.UnexpectedValue(op) 1457Throw ExceptionUtilities.UnexpectedValue(op) 1483Throw ExceptionUtilities.UnexpectedValue(op) 1569Throw ExceptionUtilities.UnexpectedValue(op) 1624Throw ExceptionUtilities.UnexpectedValue(op) 1694Throw ExceptionUtilities.UnexpectedValue(opCode) 3007Throw ExceptionUtilities.UnexpectedValue(opKind) 3133Throw ExceptionUtilities.UnexpectedValue(opKind) 3407Throw ExceptionUtilities.Unreachable
Semantics\OverloadResolution.vb (4)
23Throw ExceptionUtilities.Unreachable 375Throw ExceptionUtilities.Unreachable 3870Throw ExceptionUtilities.UnexpectedValue(candidate.State) 4722Throw ExceptionUtilities.UnexpectedValue(this.Kind)
Semantics\TypeInference\Graph.vb (1)
119Throw ExceptionUtilities.Unreachable
Semantics\TypeInference\TypeArgumentInference.vb (5)
800Throw ExceptionUtilities.Unreachable 1210Throw ExceptionUtilities.UnexpectedValue(argNode.Expression.Kind) 2020Throw ExceptionUtilities.UnexpectedValue(argument.Kind) 2075Throw ExceptionUtilities.UnexpectedValue(argument.Kind) 2238Throw ExceptionUtilities.UnexpectedValue(argument.Kind)
SourceGeneration\VisualBasicSyntaxHelper.vb (1)
88Throw ExceptionUtilities.UnexpectedValue(name.KindText)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
284Throw ExceptionUtilities.UnexpectedValue(symbol.MethodKind) 375Throw ExceptionUtilities.UnexpectedValue(symbol.MethodKind) 474Throw ExceptionUtilities.UnexpectedValue(data.CharacterSet)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
270Throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
242Throw ExceptionUtilities.UnexpectedValue(format.GlobalNamespaceStyle) 338Throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility)
Symbols\AccessibilityExtensions.vb (1)
32Throw ExceptionUtilities.UnexpectedValue(a)
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
121Throw ExceptionUtilities.UnexpectedValue(t.TypeKind)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
225Throw ExceptionUtilities.UnexpectedValue(template.TypeKind)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (2)
23Throw ExceptionUtilities.Unreachable 40Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (5)
223Throw ExceptionUtilities.Unreachable 239Throw ExceptionUtilities.Unreachable 246Throw ExceptionUtilities.Unreachable 252Throw ExceptionUtilities.Unreachable 309Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_ConstructorSymbol.vb (1)
57Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_EqualsMethodSymbol.vb (1)
100Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_GetHashCodeMethodSymbol.vb (1)
69Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_IEquatable_EqualsMethodSymbol.vb (1)
106Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
59Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_ToStringMethodSymbol.vb (1)
74Throw ExceptionUtilities.Unreachable
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (3)
199Throw ExceptionUtilities.Unreachable 209Throw ExceptionUtilities.Unreachable 377Throw ExceptionUtilities.Unreachable
Symbols\AssemblySymbol.vb (2)
326Throw ExceptionUtilities.Unreachable 335Throw ExceptionUtilities.Unreachable
Symbols\Attributes\AttributeData.vb (1)
534Throw ExceptionUtilities.Unreachable
Symbols\ConstraintsHelper.vb (1)
259Throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
245Throw ExceptionUtilities.UnexpectedValue(methKind) 354Throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.vb (4)
50Throw ExceptionUtilities.UnexpectedValue(kind) 59Throw ExceptionUtilities.Unreachable 74Throw ExceptionUtilities.Unreachable 86Throw ExceptionUtilities.Unreachable
Symbols\ErrorMethodSymbol.vb (1)
263Throw ExceptionUtilities.Unreachable
Symbols\ErrorTypeSymbol.vb (3)
289Throw ExceptionUtilities.Unreachable 299Throw ExceptionUtilities.Unreachable 402Throw ExceptionUtilities.Unreachable
Symbols\FieldSymbol.vb (1)
257Throw ExceptionUtilities.Unreachable
Symbols\MemberSignatureComparer.vb (1)
80Throw ExceptionUtilities.UnexpectedValue(sym.Kind)
Symbols\MergedNamespaceSymbol.vb (9)
148Throw ExceptionUtilities.Unreachable 424Throw ExceptionUtilities.Unreachable 430Throw ExceptionUtilities.Unreachable 436Throw ExceptionUtilities.Unreachable 578Throw ExceptionUtilities.Unreachable 629Throw ExceptionUtilities.Unreachable 635Throw ExceptionUtilities.Unreachable 640Throw ExceptionUtilities.Unreachable 670Throw ExceptionUtilities.Unreachable
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
115Throw ExceptionUtilities.UnexpectedValue(memberRefOrMethodDef.Kind)
Symbols\Metadata\PE\MetadataDecoder.vb (2)
138Throw ExceptionUtilities.Unreachable 232Throw ExceptionUtilities.UnexpectedValue(this.Kind)
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
380Throw ExceptionUtilities.Unreachable
Symbols\Metadata\PE\PEMethodSymbol.vb (5)
440Throw ExceptionUtilities.UnexpectedValue(opInfo.UnaryOperatorKind) 488Throw ExceptionUtilities.UnexpectedValue(opInfo.BinaryOperatorKind) 723Throw ExceptionUtilities.Unreachable 728Throw ExceptionUtilities.Unreachable 1289Throw ExceptionUtilities.Unreachable
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
401Throw ExceptionUtilities.Unreachable
Symbols\Metadata\PE\PENamedTypeSymbol.vb (5)
599Throw ExceptionUtilities.Unreachable 648Throw ExceptionUtilities.UnexpectedValue(x.Kind) 1415Throw ExceptionUtilities.Unreachable 1461Throw ExceptionUtilities.Unreachable 1466Throw ExceptionUtilities.Unreachable
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
166Throw ExceptionUtilities.UnexpectedValue(type.TypeKind)
Symbols\MethodSymbol.vb (2)
604Throw ExceptionUtilities.Unreachable 810Throw ExceptionUtilities.Unreachable
Symbols\MissingAssemblySymbol.vb (3)
104Throw ExceptionUtilities.Unreachable 112Throw ExceptionUtilities.Unreachable 152Throw ExceptionUtilities.Unreachable
Symbols\MissingModuleSymbol.vb (2)
134Throw ExceptionUtilities.Unreachable 144Throw ExceptionUtilities.Unreachable
Symbols\ModuleSymbol.vb (1)
253Throw ExceptionUtilities.Unreachable
Symbols\OverriddenMembersResult.vb (1)
105Throw ExceptionUtilities.Unreachable
Symbols\ParameterSymbol.vb (1)
250Throw ExceptionUtilities.Unreachable
Symbols\PropertySymbol.vb (1)
371Throw ExceptionUtilities.Unreachable
Symbols\ReducedExtensionMethodSymbol.vb (1)
654Throw ExceptionUtilities.Unreachable
Symbols\Retargeting\RetargetingAssemblySymbol.vb (1)
184Throw ExceptionUtilities.Unreachable
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
519Throw ExceptionUtilities.Unreachable
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (4)
207Throw ExceptionUtilities.Unreachable 211Throw ExceptionUtilities.Unreachable 234Throw ExceptionUtilities.Unreachable 524Throw ExceptionUtilities.Unreachable
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (3)
208Throw ExceptionUtilities.Unreachable 237Throw ExceptionUtilities.Unreachable 290Throw ExceptionUtilities.Unreachable
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
578Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 1026Throw ExceptionUtilities.Unreachable
Symbols\SignatureOnlyMethodSymbol.vb (24)
176Throw ExceptionUtilities.Unreachable 182Throw ExceptionUtilities.Unreachable 188Throw ExceptionUtilities.Unreachable 194Throw ExceptionUtilities.Unreachable 200Throw ExceptionUtilities.Unreachable 206Throw ExceptionUtilities.Unreachable 212Throw ExceptionUtilities.Unreachable 218Throw ExceptionUtilities.Unreachable 224Throw ExceptionUtilities.Unreachable 230Throw ExceptionUtilities.Unreachable 242Throw ExceptionUtilities.Unreachable 248Throw ExceptionUtilities.Unreachable 254Throw ExceptionUtilities.Unreachable 264Throw ExceptionUtilities.Unreachable 270Throw ExceptionUtilities.Unreachable 281Throw ExceptionUtilities.Unreachable 286Throw ExceptionUtilities.Unreachable 292Throw ExceptionUtilities.Unreachable 297Throw ExceptionUtilities.Unreachable 301Throw ExceptionUtilities.Unreachable 306Throw ExceptionUtilities.Unreachable 312Throw ExceptionUtilities.Unreachable 318Throw ExceptionUtilities.Unreachable 323Throw ExceptionUtilities.Unreachable
Symbols\SignatureOnlyParameterSymbol.vb (12)
127Throw ExceptionUtilities.Unreachable 133Throw ExceptionUtilities.Unreachable 139Throw ExceptionUtilities.Unreachable 145Throw ExceptionUtilities.Unreachable 151Throw ExceptionUtilities.Unreachable 157Throw ExceptionUtilities.Unreachable 163Throw ExceptionUtilities.Unreachable 169Throw ExceptionUtilities.Unreachable 175Throw ExceptionUtilities.Unreachable 181Throw ExceptionUtilities.Unreachable 187Throw ExceptionUtilities.Unreachable 193Throw ExceptionUtilities.Unreachable
Symbols\SignatureOnlyPropertySymbol.vb (16)
126Throw ExceptionUtilities.Unreachable 132Throw ExceptionUtilities.Unreachable 138Throw ExceptionUtilities.Unreachable 144Throw ExceptionUtilities.Unreachable 150Throw ExceptionUtilities.Unreachable 156Throw ExceptionUtilities.Unreachable 162Throw ExceptionUtilities.Unreachable 168Throw ExceptionUtilities.Unreachable 174Throw ExceptionUtilities.Unreachable 180Throw ExceptionUtilities.Unreachable 186Throw ExceptionUtilities.Unreachable 192Throw ExceptionUtilities.Unreachable 210Throw ExceptionUtilities.Unreachable 216Throw ExceptionUtilities.Unreachable 222Throw ExceptionUtilities.Unreachable 234Throw ExceptionUtilities.Unreachable
Symbols\Source\ImplementsHelper.vb (2)
61Throw ExceptionUtilities.Unreachable 444Throw ExceptionUtilities.UnexpectedValue(implementingSym.Kind)
Symbols\Source\LambdaSymbol.vb (2)
190Throw ExceptionUtilities.Unreachable 350Throw ExceptionUtilities.Unreachable
Symbols\Source\LocalSymbol.vb (4)
366Throw ExceptionUtilities.Unreachable 370Throw ExceptionUtilities.Unreachable 576Throw ExceptionUtilities.UnexpectedValue(Me.DeclarationKind) 898Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceAssemblySymbol.vb (2)
820Throw ExceptionUtilities.Unreachable 832Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceClonedParameterSymbol.vb (1)
231Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceComplexParameterSymbol.vb (1)
453Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceDelegateClonedParameterSymbolForBeginAndEndInvoke.vb (4)
17Throw ExceptionUtilities.Unreachable 24Throw ExceptionUtilities.Unreachable 31Throw ExceptionUtilities.Unreachable 38Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceEventSymbol.vb (3)
125Throw ExceptionUtilities.UnexpectedValue(accessor.MethodKind) 360Throw ExceptionUtilities.UnexpectedValue(blockSyntax.Kind) 407Throw ExceptionUtilities.UnexpectedValue(kind)
Symbols\Source\SourceFieldSymbol.vb (3)
559Throw ExceptionUtilities.Unreachable 566Throw ExceptionUtilities.Unreachable 573Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceMemberContainerTypeSymbol.vb (8)
177Throw ExceptionUtilities.UnexpectedValue(declaration.Kind) 348Throw ExceptionUtilities.UnexpectedValue(Me.TypeKind) 816Throw ExceptionUtilities.UnexpectedValue(context) 958Throw ExceptionUtilities.UnexpectedValue(type.Kind) 2477Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 2697Throw ExceptionUtilities.UnexpectedValue(methodBaseSyntax.Kind) 3245Throw ExceptionUtilities.Unreachable 3264Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceMemberMethodSymbol.vb (2)
542Throw ExceptionUtilities.Unreachable 764Throw ExceptionUtilities.UnexpectedValue(ContainingType.TypeKind)
Symbols\Source\SourceMethodSymbol.vb (9)
340Throw ExceptionUtilities.UnexpectedValue(syntax.OperatorToken.Kind) 362Throw ExceptionUtilities.UnexpectedValue(paramCountMismatchERRID) 881Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1016Throw ExceptionUtilities.UnexpectedValue(operatorStatement.OperatorToken.Kind) 1040Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1228Throw ExceptionUtilities.Unreachable 2211Throw ExceptionUtilities.UnexpectedValue(decl.Kind) 2233Throw ExceptionUtilities.UnexpectedValue(methodStatement.Kind) 2258Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceModuleSymbol.vb (7)
731Throw ExceptionUtilities.Unreachable 854Throw ExceptionUtilities.Unreachable 886Throw ExceptionUtilities.Unreachable 914Throw ExceptionUtilities.Unreachable 939Throw ExceptionUtilities.Unreachable 963Throw ExceptionUtilities.Unreachable 994Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceNamedTypeSymbol.vb (4)
140Throw ExceptionUtilities.UnexpectedValue(node.Kind) 452Throw ExceptionUtilities.UnexpectedValue(node.Kind) 660Throw ExceptionUtilities.UnexpectedValue(node.Kind) 1400Throw ExceptionUtilities.UnexpectedValue(TypeKind)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (34)
459Throw ExceptionUtilities.UnexpectedValue(memberKind) 631Throw ExceptionUtilities.UnexpectedValue(member.Kind) 727Throw ExceptionUtilities.Unreachable 750Throw ExceptionUtilities.Unreachable 756Throw ExceptionUtilities.Unreachable 767Throw ExceptionUtilities.Unreachable 775Throw ExceptionUtilities.Unreachable 783Throw ExceptionUtilities.Unreachable 787Throw ExceptionUtilities.Unreachable 796Throw ExceptionUtilities.Unreachable 802Throw ExceptionUtilities.Unreachable 841Throw ExceptionUtilities.Unreachable 851Throw ExceptionUtilities.Unreachable 855Throw ExceptionUtilities.Unreachable 872Throw ExceptionUtilities.Unreachable 900Throw ExceptionUtilities.Unreachable 906Throw ExceptionUtilities.Unreachable 1118Throw ExceptionUtilities.Unreachable 1124Throw ExceptionUtilities.Unreachable 1130Throw ExceptionUtilities.Unreachable 1136Throw ExceptionUtilities.Unreachable 1208Throw ExceptionUtilities.Unreachable 1260Throw ExceptionUtilities.Unreachable 1295Throw ExceptionUtilities.Unreachable 1374Throw ExceptionUtilities.Unreachable 1443Throw ExceptionUtilities.Unreachable 1547Throw ExceptionUtilities.Unreachable 1553Throw ExceptionUtilities.Unreachable 1559Throw ExceptionUtilities.Unreachable 1565Throw ExceptionUtilities.Unreachable 1591Throw ExceptionUtilities.Unreachable 1719Throw ExceptionUtilities.Unreachable 1743Throw ExceptionUtilities.Unreachable 1785Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
165Throw ExceptionUtilities.UnexpectedValue(argumentSyntax.Kind)
Symbols\Source\SourceNamespaceSymbol.vb (1)
488Throw ExceptionUtilities.UnexpectedValue(node.Kind)
Symbols\Source\SourceParameterSymbol.vb (1)
471Throw ExceptionUtilities.UnexpectedValue(pinvoke.CharacterSet)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
243Throw ExceptionUtilities.Unreachable()
Symbols\Source\SourcePropertyClonedParameterSymbolForAccessors.vb (4)
15Throw ExceptionUtilities.Unreachable 21Throw ExceptionUtilities.Unreachable 27Throw ExceptionUtilities.Unreachable 33Throw ExceptionUtilities.Unreachable
Symbols\Source\SourceSimpleParameterSymbol.vb (1)
207Throw ExceptionUtilities.Unreachable
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
186Throw ExceptionUtilities.Unreachable
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
515Throw ExceptionUtilities.Unreachable
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
99Throw ExceptionUtilities.Unreachable
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
137Throw ExceptionUtilities.Unreachable
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (1)
111Throw ExceptionUtilities.Unreachable
Symbols\Source\UnboundLambdaParameterSymbol.vb (1)
108Throw ExceptionUtilities.Unreachable
Symbols\SpecialTypeExtensions.vb (3)
310Throw ExceptionUtilities.UnexpectedValue(this) 330Throw ExceptionUtilities.UnexpectedValue(this) 372Throw ExceptionUtilities.UnexpectedValue(this)
Symbols\SubstitutedMethodSymbol.vb (1)
466Throw ExceptionUtilities.Unreachable
Symbols\SubstitutedNamedType.vb (5)
388Throw ExceptionUtilities.UnexpectedValue(member.Kind) 431Throw ExceptionUtilities.Unreachable 492Throw ExceptionUtilities.UnexpectedValue(member.Kind) 783Throw ExceptionUtilities.Unreachable 1187Throw ExceptionUtilities.Unreachable
Symbols\SubstitutedTypeParameterSymbol.vb (1)
194Throw ExceptionUtilities.Unreachable
Symbols\Symbol.vb (2)
81Throw ExceptionUtilities.Unreachable 552Throw ExceptionUtilities.UnexpectedValue(Me.Kind)
Symbols\Symbol_Attributes.vb (2)
115Throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind) 381Throw ExceptionUtilities.UnexpectedValue(targetOpt.AttributeModifier.Kind)
Symbols\SymbolExtensions.vb (3)
80Throw ExceptionUtilities.UnexpectedValue(target.Kind) 331Throw ExceptionUtilities.UnexpectedValue(sym.Kind) 477Throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
50Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
170Throw ExceptionUtilities.Unreachable 450Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (2)
312Throw ExceptionUtilities.Unreachable 322Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
290Throw ExceptionUtilities.Unreachable 352Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
211Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (1)
185Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
211Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (1)
111Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedSimpleConstructorSymbol.vb (1)
68Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (1)
114Throw ExceptionUtilities.Unreachable
Symbols\Tuples\TupleMethodSymbol.vb (1)
128Throw ExceptionUtilities.Unreachable
Symbols\Tuples\TupleTypeSymbol.vb (12)
374Throw ExceptionUtilities.Unreachable 586Throw ExceptionUtilities.Unreachable 594Throw ExceptionUtilities.Unreachable 798Throw ExceptionUtilities.UnexpectedValue(member.Kind) 916Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 1034Throw ExceptionUtilities.Unreachable 1038Throw ExceptionUtilities.Unreachable 1042Throw ExceptionUtilities.Unreachable 1046Throw ExceptionUtilities.Unreachable 1050Throw ExceptionUtilities.Unreachable 1054Throw ExceptionUtilities.Unreachable 1068Throw ExceptionUtilities.Unreachable
Symbols\TypeParameterConstraint.vb (1)
82Throw ExceptionUtilities.UnexpectedValue(kind)
Symbols\TypeParameterSymbol.vb (2)
192Throw ExceptionUtilities.Unreachable 202Throw ExceptionUtilities.Unreachable
Symbols\TypeSymbol.vb (6)
306Throw ExceptionUtilities.Unreachable 311Throw ExceptionUtilities.Unreachable 316Throw ExceptionUtilities.Unreachable 321Throw ExceptionUtilities.Unreachable 326Throw ExceptionUtilities.Unreachable 331Throw ExceptionUtilities.Unreachable
Symbols\TypeSymbolExtensions.vb (2)
417Throw ExceptionUtilities.UnexpectedValue(this.TypeKind) 888Throw ExceptionUtilities.UnexpectedValue(current.TypeKind)
Symbols\UnboundGenericType.vb (4)
250Throw ExceptionUtilities.Unreachable 326Throw ExceptionUtilities.Unreachable 334Throw ExceptionUtilities.Unreachable 650Throw ExceptionUtilities.Unreachable
Symbols\WellKnownMembers.vb (3)
194Throw ExceptionUtilities.Unreachable 452Throw ExceptionUtilities.UnexpectedValue(descriptor.Flags) 505Throw ExceptionUtilities.UnexpectedValue(targetSymbolKind)
Syntax\InternalSyntax\SyntaxNode.vb (1)
93Throw ExceptionUtilities.Unreachable
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (1)
401Throw ExceptionUtilities.UnexpectedValue(trivia(i).Kind)
Syntax\InternalSyntax\SyntaxNodeFactories.vb (3)
443Throw ExceptionUtilities.UnexpectedValue(kind) 544Throw ExceptionUtilities.UnexpectedValue(blockKind) 563Throw ExceptionUtilities.UnexpectedValue(statementKind)
Syntax\InternalSyntax\SyntaxToken.vb (3)
221Throw ExceptionUtilities.Unreachable 472Throw ExceptionUtilities.UnexpectedValue(kind) 507Throw ExceptionUtilities.Unreachable
Syntax\InternalSyntax\SyntaxTrivia.vb (2)
88Throw ExceptionUtilities.Unreachable 143Throw ExceptionUtilities.Unreachable
Syntax\LambdaUtilities.vb (6)
94Throw ExceptionUtilities.UnexpectedValue(oldLambda.Kind) 298Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 395Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 415Throw ExceptionUtilities.UnexpectedValue(clause.Kind) 429Throw ExceptionUtilities.UnexpectedValue(lambda.Kind) 594Throw ExceptionUtilities.UnexpectedValue(clause.Kind)
Syntax\SyntaxEquivalence.vb (1)
163Throw ExceptionUtilities.Unreachable
Syntax\SyntaxExtensions.vb (3)
61Throw ExceptionUtilities.UnexpectedValue(newExpressionSyntax.Kind) 76Throw ExceptionUtilities.UnexpectedValue(asClauseSyntax.Kind) 91Throw ExceptionUtilities.UnexpectedValue(asClauseSyntax.Kind)
Syntax\SyntaxFactory.vb (2)
434Throw ExceptionUtilities.UnexpectedValue(blockKind) 453Throw ExceptionUtilities.UnexpectedValue(statementKind)
Syntax\SyntaxNodeExtensions.vb (1)
371Throw ExceptionUtilities.UnexpectedValue(syntax.Kind)
Syntax\SyntaxNodeFactories.vb (1)
739Throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\SyntaxNodePartials.vb (1)
127Throw ExceptionUtilities.UnexpectedValue(Me.Kind)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (2)
57Throw ExceptionUtilities.Unreachable 99Throw ExceptionUtilities.Unreachable
Utilities\VarianceAmbiguity.vb (1)
154Throw ExceptionUtilities.UnexpectedValue(variance)
VisualBasicDeclarationComputer.vb (1)
232Throw ExceptionUtilities.UnexpectedValue(methodBase.Kind)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
10163Throw ExceptionUtilities.UnexpectedValue(expectedEffectiveSeverity)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
CodeGen\CodeGenTuples.vb (2)
23202Throw ExceptionUtilities.UnexpectedValue(expectedValue) 23220Throw ExceptionUtilities.UnexpectedValue(expectedValue)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (44)
Binders\ParametersAndLocalsBinder.vb (1)
76Throw ExceptionUtilities.Unreachable
CompilationContext.vb (2)
882Throw ExceptionUtilities.UnexpectedValue(importRecord.TargetKind) 884Throw ExceptionUtilities.UnexpectedValue(importRecord.TargetKind)
Symbols\DisplayClassVariable.vb (9)
130Throw ExceptionUtilities.Unreachable 148Throw ExceptionUtilities.Unreachable 182Throw ExceptionUtilities.Unreachable 194Throw ExceptionUtilities.Unreachable 200Throw ExceptionUtilities.Unreachable 206Throw ExceptionUtilities.Unreachable 212Throw ExceptionUtilities.Unreachable 218Throw ExceptionUtilities.Unreachable 224Throw ExceptionUtilities.Unreachable
Symbols\EEDisplayClassFieldLocalSymbol.vb (1)
50Throw ExceptionUtilities.Unreachable
Symbols\EELocalConstantSymbol.vb (1)
65Throw ExceptionUtilities.Unreachable
Symbols\EELocalSymbol.vb (1)
91Throw ExceptionUtilities.Unreachable
Symbols\EELocalSymbolBase.vb (1)
39Throw ExceptionUtilities.Unreachable
Symbols\EEMethodSymbol.vb (4)
235Throw ExceptionUtilities.Unreachable 325Throw ExceptionUtilities.Unreachable 428Throw ExceptionUtilities.Unreachable 605Throw ExceptionUtilities.UnexpectedValue(body.Kind)
Symbols\EENamedTypeSymbol.vb (9)
144Throw ExceptionUtilities.Unreachable 163Throw ExceptionUtilities.Unreachable 182Throw ExceptionUtilities.Unreachable 186Throw ExceptionUtilities.Unreachable 244Throw ExceptionUtilities.Unreachable 248Throw ExceptionUtilities.Unreachable 271Throw ExceptionUtilities.Unreachable 352Throw ExceptionUtilities.Unreachable 356Throw ExceptionUtilities.Unreachable
Symbols\EEStaticLocalSymbol.vb (1)
62Throw ExceptionUtilities.Unreachable
Symbols\EETypeParameterSymbol.vb (3)
45Throw ExceptionUtilities.Unreachable 69Throw ExceptionUtilities.Unreachable 81Throw ExceptionUtilities.Unreachable
Symbols\PlaceholderLocalSymbol.vb (3)
60Throw ExceptionUtilities.UnexpectedValue([alias].Kind) 78Throw ExceptionUtilities.Unreachable 103Throw ExceptionUtilities.Unreachable
Symbols\PlaceholderMethodSymbol.vb (1)
150Throw ExceptionUtilities.Unreachable
Symbols\SimpleTypeParameterSymbol.vb (3)
87Throw ExceptionUtilities.Unreachable 93Throw ExceptionUtilities.Unreachable 98Throw ExceptionUtilities.Unreachable
Symbols\SynthesizedContextMethodSymbol.vb (4)
59Throw ExceptionUtilities.Unreachable 77Throw ExceptionUtilities.Unreachable 89Throw ExceptionUtilities.Unreachable 100Throw ExceptionUtilities.Unreachable
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (6)
ExpressionCompilerTestBase.vb (1)
273Throw ExceptionUtilities.Unreachable
ImportDebugInfoTests.vb (4)
222Throw ExceptionUtilities.Unreachable 246Throw ExceptionUtilities.Unreachable 335Throw ExceptionUtilities.Unreachable 355Throw ExceptionUtilities.Unreachable
MissingAssemblyTests.vb (1)
582Throw ExceptionUtilities.Unreachable
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
120Throw ExceptionUtilities.Unreachable
Semantics\BinaryOperators.vb (1)
1439Throw ExceptionUtilities.UnexpectedValue(i)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MockSymbols.vb (1)
638Throw ExceptionUtilities.Unreachable
Roslyn.Test.PdbUtilities (1)
Reader\MockSymUnmanagedReader.cs (1)
54throw ExceptionUtilities.Unreachable();