1968 references to ExceptionUtilities
BuildValidator (1)
CompilationDiff.cs (1)
180return peReader.GetEmbeddedPdbMetadataReader() ?? throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis (675)
CodeGen\ArrayMembers.cs (3)
138throw ExceptionUtilities.UnexpectedValue(id); 369throw ExceptionUtilities.Unreachable(); 375throw ExceptionUtilities.Unreachable();
CodeGen\ILBuilder.cs (1)
1165throw ExceptionUtilities.UnexpectedValue(scopeType);
CodeGen\ILBuilderConversions.cs (3)
323throw ExceptionUtilities.UnexpectedValue(fromPredefTypeKind); 348throw ExceptionUtilities.UnexpectedValue(fromPredefTypeKind); 354throw ExceptionUtilities.UnexpectedValue(toPredefTypeKind);
CodeGen\ILBuilderEmit.cs (2)
617throw ExceptionUtilities.UnexpectedValue(discriminator); 716throw ExceptionUtilities.UnexpectedValue(value);
CodeGen\ILOpCodeExtensions.cs (3)
40throw ExceptionUtilities.UnexpectedValue(opcode); 469throw ExceptionUtilities.UnexpectedValue(opcode); 733throw ExceptionUtilities.UnexpectedValue(opcode);
CodeGen\LocalDefinition.cs (2)
109get { throw ExceptionUtilities.Unreachable(); } 117get { throw ExceptionUtilities.Unreachable(); }
CodeGen\LocalScopeManager.cs (2)
229throw ExceptionUtilities.Unreachable(); 806throw ExceptionUtilities.UnexpectedValue(handlerScope.Type);
CodeGen\PrivateImplementationDetails.cs (8)
875get { throw ExceptionUtilities.Unreachable(); } 894throw ExceptionUtilities.Unreachable(); 915get { throw ExceptionUtilities.Unreachable(); } 921throw ExceptionUtilities.Unreachable(); 927throw ExceptionUtilities.Unreachable(); 1095get { throw ExceptionUtilities.Unreachable(); } 1135throw ExceptionUtilities.Unreachable(); 1141throw ExceptionUtilities.Unreachable();
CodeGen\SignatureOnlyLocalDefinition.cs (6)
31get { throw ExceptionUtilities.Unreachable(); } 36get { throw ExceptionUtilities.Unreachable(); } 57get { throw ExceptionUtilities.Unreachable(); } 62get { throw ExceptionUtilities.Unreachable(); } 67get { throw ExceptionUtilities.Unreachable(); } 78get { throw ExceptionUtilities.Unreachable(); }
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
517throw ExceptionUtilities.UnexpectedValue(branchCode);
Collections\Rope.cs (5)
102throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 145throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 156throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 177throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 201throw ExceptionUtilities.UnexpectedValue(v.GetType().Name);
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
139throw ExceptionUtilities.UnexpectedValue(tokenKind); 305throw ExceptionUtilities.UnexpectedValue(tokenKind); 403throw ExceptionUtilities.UnexpectedValue(lastChar);
Compilation.EmitStreamProvider.cs (1)
68throw ExceptionUtilities.Unreachable();
Compilation\Compilation.cs (3)
2305throw ExceptionUtilities.UnexpectedValue(platform); 2403throw ExceptionUtilities.UnexpectedValue(outputKind); 2424throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
316throw ExceptionUtilities.UnexpectedValue(m); 340throw ExceptionUtilities.UnexpectedValue(reference);
Compilation\OptimizationLevel.cs (1)
60_ => throw ExceptionUtilities.UnexpectedValue(optimization)
ConstantValue.cs (6)
433throw ExceptionUtilities.UnexpectedValue(discriminator); 483ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.UnexpectedValue(Discriminator), 484_ => throw ExceptionUtilities.UnexpectedValue(Discriminator) 538default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 805default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 833_ => throw ExceptionUtilities.UnexpectedValue(Discriminator)
CryptographicHashProvider.cs (4)
60throw ExceptionUtilities.UnexpectedValue(algorithmId); 76throw ExceptionUtilities.UnexpectedValue(algorithmId); 108throw ExceptionUtilities.UnexpectedValue(algorithmId); 270throw ExceptionUtilities.UnexpectedValue(constant.Discriminator);
Diagnostic\Diagnostic.cs (1)
546throw ExceptionUtilities.UnexpectedValue(reportAction);
Diagnostic\DiagnosticDescriptor.cs (2)
262throw ExceptionUtilities.UnexpectedValue(severity); 281throw ExceptionUtilities.UnexpectedValue(severity);
Diagnostic\DiagnosticFormatter.cs (1)
100throw ExceptionUtilities.UnexpectedValue(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (2)
121throw ExceptionUtilities.UnexpectedValue(type); 458throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalysisResultBuilder.cs (2)
124throw ExceptionUtilities.Unreachable(); 144throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
1569throw ExceptionUtilities.Unreachable(); 1628throw ExceptionUtilities.Unreachable();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (3)
809throw ExceptionUtilities.Unreachable(); 1093throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString()); 1289throw 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)
1172throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (29)
99=> throw ExceptionUtilities.Unreachable(); 102=> throw ExceptionUtilities.Unreachable(); 105=> throw ExceptionUtilities.Unreachable(); 108=> throw ExceptionUtilities.Unreachable(); 111=> throw ExceptionUtilities.Unreachable(); 114=> throw ExceptionUtilities.Unreachable(); 117=> throw ExceptionUtilities.Unreachable(); 120=> throw ExceptionUtilities.Unreachable(); 123=> throw ExceptionUtilities.Unreachable(); 126=> throw ExceptionUtilities.Unreachable(); 129=> throw ExceptionUtilities.Unreachable(); 132=> throw ExceptionUtilities.Unreachable(); 135=> throw ExceptionUtilities.Unreachable(); 138=> throw ExceptionUtilities.Unreachable(); 141=> throw ExceptionUtilities.Unreachable(); 144=> throw ExceptionUtilities.Unreachable(); 147=> throw ExceptionUtilities.Unreachable(); 150=> throw ExceptionUtilities.Unreachable(); 153=> throw ExceptionUtilities.Unreachable(); 156=> throw ExceptionUtilities.Unreachable(); 159=> throw ExceptionUtilities.Unreachable(); 162=> throw ExceptionUtilities.Unreachable(); 165=> throw ExceptionUtilities.Unreachable(); 168=> throw ExceptionUtilities.Unreachable(); 171=> throw ExceptionUtilities.Unreachable(); 174=> throw ExceptionUtilities.Unreachable(); 177=> throw ExceptionUtilities.Unreachable(); 181=> throw ExceptionUtilities.Unreachable(); 185=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
41=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
86=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (6)
33=> throw ExceptionUtilities.Unreachable(); 77public ITypeDefinition ContainingTypeDefinition => throw ExceptionUtilities.Unreachable(); 115=> throw ExceptionUtilities.Unreachable(); 134=> throw ExceptionUtilities.Unreachable(); 144throw ExceptionUtilities.Unreachable(); 150throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (9)
61=> throw ExceptionUtilities.Unreachable(); 108=> throw ExceptionUtilities.Unreachable(); 111=> throw ExceptionUtilities.Unreachable(); 114=> throw ExceptionUtilities.Unreachable(); 117=> throw ExceptionUtilities.Unreachable(); 120=> throw ExceptionUtilities.Unreachable(); 123=> throw ExceptionUtilities.Unreachable(); 126=> throw ExceptionUtilities.Unreachable(); 129=> throw ExceptionUtilities.Unreachable();
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
640throw ExceptionUtilities.UnexpectedValue(change); 1478throw ExceptionUtilities.UnexpectedValue(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
212throw ExceptionUtilities.UnexpectedValue(generatorChange); 278throw ExceptionUtilities.UnexpectedValue(containerChange); 410throw ExceptionUtilities.UnexpectedValue(edit.Kind);
Emit\EditAndContinue\SymbolMatcher.cs (1)
144value.Name, value.UniqueIndex, (Cci.ITypeDefinition?)MapDefinition(value.Type) ?? throw ExceptionUtilities.UnexpectedValue(value.Type))));
Emit\ErrorType.cs (2)
197throw ExceptionUtilities.Unreachable(); 203throw ExceptionUtilities.Unreachable();
Emit\HotReloadExceptionCode.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(code)
Emit\NoPia\CommonEmbeddedMember.cs (4)
112throw ExceptionUtilities.Unreachable(); 117throw ExceptionUtilities.Unreachable(); 125throw ExceptionUtilities.Unreachable(); 131throw ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedParameter.cs (3)
214throw ExceptionUtilities.Unreachable(); 277throw ExceptionUtilities.Unreachable(); 283throw ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedType.cs (3)
554throw ExceptionUtilities.Unreachable(); 722throw ExceptionUtilities.Unreachable(); 728throw ExceptionUtilities.Unreachable();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (3)
212throw ExceptionUtilities.Unreachable(); 243throw ExceptionUtilities.Unreachable(); 249throw ExceptionUtilities.Unreachable();
Emit\NoPia\VtblGap.cs (2)
263throw ExceptionUtilities.Unreachable(); 269throw ExceptionUtilities.Unreachable();
EnumConstantHelper.cs (1)
111throw ExceptionUtilities.UnexpectedValue(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
186throw ExceptionUtilities.UnexpectedValue(kind);
Generated\Operations.Generated.cs (328)
4016_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4031throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4047throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4071_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4086throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4102throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4135_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4153throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4172throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4229_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4253throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4278throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4317_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4343throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4370throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4421_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4451throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4482throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4532_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4545throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4559throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4579internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4593internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4618_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4645throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4676_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4692throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4709throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4745_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4766throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4788throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4823_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4839throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4856throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4880_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4893throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4907throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4938_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4954throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4971throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4985internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4999internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5028_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5046throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5065throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5083internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5116_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5129throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5143throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5179_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5197throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5216throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5246_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5264throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5283throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5305internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5324internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5362_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5375throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5389throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5418_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5431throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5445throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5477_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5495throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5514throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5541_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5554throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5568throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5604_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5617throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5676_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5692throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5709throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5747_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5766throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5786throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5820_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5836throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5879_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5892throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5906throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5939_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5957throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5976throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6001_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6014throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6028throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6058_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6076throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6095throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6114internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6143_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6156throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6170throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6195_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6208throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6222throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6262_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6278throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6295throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6337_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6353throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6370throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6396_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6409throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6423throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6455_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6471throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6488throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6518_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6534throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6551throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6568internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6594_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6609throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6625throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6650_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6665throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6681throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6706_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6721throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6737throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6767_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6783throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6800throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6826_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6839throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6853throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6880_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6895throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6911throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6942_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6955throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6969throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6994_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7007throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7021throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7046_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7059throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7073throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7091internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7110internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7130internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7155_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7168throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7182throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7212_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7228throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7245throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7281_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7294throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7308throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7333_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7346throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7360throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7386_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7402throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7419throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7444_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7457throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7471throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7488internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7523_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7536throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7550throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7570_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7583throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7597throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7621_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7634throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7648throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7672_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7685throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7699throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7723_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7738throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7754throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7785_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7803throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7822throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7856_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7879throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7903throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7937_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7950throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7964throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8002_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8021throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8041throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8074_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8094throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8115throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8139internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8169_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8185throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8202throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8231_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8247throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8264throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8290_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8303throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8317throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8341_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8354throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8368throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8397_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8410throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8424throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8458_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8477throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8497throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8532_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8545throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8559throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8581internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8613_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8629throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8646throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8680_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8696throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8713throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8745_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8764throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8784throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8803internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8829_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8842throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8856throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8878internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8904_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8917throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8931throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8948internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8967internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8993_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9009throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9026throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9060_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9076throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9093throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9119_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9134throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9150throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9179_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9197throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9216throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9251_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9271throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9292throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9306internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9338_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9356throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9375throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9411_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9430throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9450throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9479_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9495throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9512throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9542_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9558throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9575throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9606_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9622throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9639throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9664_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9677throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9691throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9710internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9739_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9755throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9772throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9800_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9813throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9827throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9851_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9864throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9878throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9909_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9925throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9942throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9960internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9986_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9999throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10013throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10045_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10061throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10078throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10112_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10128throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10145throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10174_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10190throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10207throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10232_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10245throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10259throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10279internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10309_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10327throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10346throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10376_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10391throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10407throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10433_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10446throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10460throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10494_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10510throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10527throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10546internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10570_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10583throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10597throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10627_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10643throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10660throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10687_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10702throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10718throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10747_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10760throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10774throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10793public override IOperation DefaultVisit(IOperation operation, object? argument) => throw ExceptionUtilities.Unreachable();
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51=> throw ExceptionUtilities.Unreachable();
InternalUtilities\RoslynParallel.cs (2)
35throw ExceptionUtilities.Unreachable(); 42throw ExceptionUtilities.Unreachable();
InternalUtilities\SingleInitNullable.cs (2)
77return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 80throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
MemberDescriptor.cs (2)
112throw ExceptionUtilities.UnexpectedValue(memberKind); 205throw ExceptionUtilities.UnexpectedValue(typeCode);
MetadataReader\MetadataDecoder.cs (1)
464throw ExceptionUtilities.UnexpectedValue(handle.Kind);
MetadataReader\MetadataHelpers.cs (2)
266throw ExceptionUtilities.UnexpectedValue(c); 363throw ExceptionUtilities.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73throw ExceptionUtilities.UnexpectedValue(typeCode); 135throw ExceptionUtilities.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (8)
1285_ => throw ExceptionUtilities.UnexpectedValue(kind) 1305throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1804throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1853throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1867throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1900throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1949throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3342throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135throw ExceptionUtilities.UnexpectedValue(_contentType);
MetadataReference\MetadataImageReference.cs (1)
36throw ExceptionUtilities.Unreachable();
NativePdbWriter\PdbWriter.cs (1)
455throw ExceptionUtilities.Unreachable();
Operations\ControlFlowGraphBuilder.cs (41)
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(); 2281throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3824throw ExceptionUtilities.Unreachable(); 3849throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5234throw ExceptionUtilities.Unreachable(); 5637throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5657throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 5672throw ExceptionUtilities.Unreachable(); 5677throw ExceptionUtilities.Unreachable(); 5682throw ExceptionUtilities.Unreachable(); 5687throw ExceptionUtilities.Unreachable(); 5692throw ExceptionUtilities.Unreachable(); 5697throw ExceptionUtilities.Unreachable(); 5892throw ExceptionUtilities.Unreachable(); 5898throw ExceptionUtilities.Unreachable(); 5904throw ExceptionUtilities.Unreachable(); 5909throw ExceptionUtilities.Unreachable(); 5914throw ExceptionUtilities.Unreachable(); 5919throw ExceptionUtilities.Unreachable(); 5924throw ExceptionUtilities.Unreachable(); 6274throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6346throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6467throw ExceptionUtilities.Unreachable(); 6577throw ExceptionUtilities.Unreachable(); 6914throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6926throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6956throw ExceptionUtilities.Unreachable(); 6961throw ExceptionUtilities.Unreachable(); 7000throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7074throw ExceptionUtilities.UnexpectedValue(element.Kind); 7088throw ExceptionUtilities.Unreachable(); 7093throw ExceptionUtilities.Unreachable(); 7540throw ExceptionUtilities.Unreachable(); 7902throw ExceptionUtilities.Unreachable(); 7907throw ExceptionUtilities.Unreachable(); 7912throw ExceptionUtilities.Unreachable();
Operations\ControlFlowRegion.cs (1)
142throw ExceptionUtilities.UnexpectedValue(kind);
Operations\OperationCloner.cs (4)
52throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable(); 62throw ExceptionUtilities.Unreachable(); 67throw ExceptionUtilities.Unreachable();
Operations\OperationNodes.cs (22)
33_ => throw ExceptionUtilities.UnexpectedValue((slot, index)) 51throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 61_ => throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)) 104_ => throw ExceptionUtilities.UnexpectedValue((slot, index)) 122throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 132_ => throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)) 163internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 271_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 294throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 318throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 349_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 372throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 396throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 435_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 458throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 482throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 526_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 538_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 563throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 584throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 610throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 631throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex));
PEWriter\InheritedTypeParameter.cs (8)
235throw ExceptionUtilities.Unreachable(); 283get { throw ExceptionUtilities.Unreachable(); } 288get { throw ExceptionUtilities.Unreachable(); } 293get { throw ExceptionUtilities.Unreachable(); } 298get { throw ExceptionUtilities.Unreachable(); } 303get { throw ExceptionUtilities.Unreachable(); } 309throw ExceptionUtilities.Unreachable(); 315throw ExceptionUtilities.Unreachable();
PEWriter\MetadataVisitor.cs (1)
214throw ExceptionUtilities.Unreachable();
PEWriter\MetadataWriter.cs (10)
1093_ => throw ExceptionUtilities.Unreachable() 1591throw ExceptionUtilities.Unreachable(); 1682_ => throw ExceptionUtilities.Unreachable() 2271throw ExceptionUtilities.UnexpectedValue(exportedType); 2875throw ExceptionUtilities.UnexpectedValue(typeRef); 3126_ => throw ExceptionUtilities.UnexpectedValue(reference) 3306throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3381throw ExceptionUtilities.UnexpectedValue(operandType); 4017throw ExceptionUtilities.UnexpectedValue(primitiveType); 4123throw ExceptionUtilities.UnexpectedValue(primitiveType);
PEWriter\MetadataWriter.PortablePdb.cs (2)
317throw ExceptionUtilities.Unreachable(); 997_ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind)
PEWriter\MethodDefinitionBase.cs (2)
176throw ExceptionUtilities.Unreachable(); 182throw ExceptionUtilities.Unreachable();
PEWriter\ModifiedTypeReference.cs (6)
49get { throw ExceptionUtilities.Unreachable(); } 54get { throw ExceptionUtilities.Unreachable(); } 59throw ExceptionUtilities.Unreachable(); 69get { throw ExceptionUtilities.Unreachable(); } 155throw ExceptionUtilities.Unreachable(); 161throw ExceptionUtilities.Unreachable();
PEWriter\ParameterDefinitionBase.cs (2)
40throw ExceptionUtilities.Unreachable(); 46throw ExceptionUtilities.Unreachable();
PEWriter\RootModuleType.cs (9)
202get { throw ExceptionUtilities.Unreachable(); } 215get { throw ExceptionUtilities.Unreachable(); } 220throw ExceptionUtilities.Unreachable(); 225get { throw ExceptionUtilities.Unreachable(); } 230get { throw ExceptionUtilities.Unreachable(); } 240get { throw ExceptionUtilities.Unreachable(); } 245get { throw ExceptionUtilities.Unreachable(); } 334throw ExceptionUtilities.Unreachable(); 340throw ExceptionUtilities.Unreachable();
PEWriter\SequencePoint.cs (2)
47throw ExceptionUtilities.Unreachable(); 52throw ExceptionUtilities.Unreachable();
PEWriter\SourceSpan.cs (2)
39throw ExceptionUtilities.Unreachable(); 44throw ExceptionUtilities.Unreachable();
PrimitiveTypeCodeExtensions.cs (1)
88throw ExceptionUtilities.UnexpectedValue(type);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (3)
77throw ExceptionUtilities.Unreachable(); 108throw ExceptionUtilities.Unreachable(); 115throw ExceptionUtilities.Unreachable();
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
313throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 391throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind); 976throw ExceptionUtilities.Unreachable();
SignatureComparer.cs (1)
228throw ExceptionUtilities.UnexpectedValue(typeCode);
SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
SourceGeneration\IncrementalWrapper.cs (2)
29void ISourceGenerator.Execute(GeneratorExecutionContext context) => throw ExceptionUtilities.Unreachable(); 31void ISourceGenerator.Initialize(GeneratorInitializationContext context) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\HostOutputNode.cs (3)
98IIncrementalGeneratorNode<OutputType> IIncrementalGeneratorNode<OutputType>.WithComparer(IEqualityComparer<OutputType> comparer) => throw ExceptionUtilities.Unreachable(); 100public IIncrementalGeneratorNode<OutputType> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 102void IIncrementalGeneratorNode<OutputType>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\InputNode.cs (1)
40_registerOutput = registerOutput ?? (o => throw ExceptionUtilities.Unreachable());
SourceGeneration\Nodes\NodeStateTable.cs (3)
214_ => throw ExceptionUtilities.Unreachable(), 515_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState)) 663_ => throw ExceptionUtilities.Unreachable()
SourceGeneration\Nodes\SourceOutputNode.cs (3)
92IIncrementalGeneratorNode<TOutput> IIncrementalGeneratorNode<TOutput>.WithComparer(IEqualityComparer<TOutput> comparer) => throw ExceptionUtilities.Unreachable(); 94public IIncrementalGeneratorNode<(IEnumerable<GeneratedSourceText>, IEnumerable<Diagnostic>)> WithTrackingName(string name) => throw ExceptionUtilities.Unreachable(); 96void IIncrementalGeneratorNode<TOutput>.RegisterOutput(IIncrementalGeneratorOutputNode output) => throw ExceptionUtilities.Unreachable();
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (1)
85catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\Nodes\TransformNode.cs (1)
85catch (Exception e) when (_wrapUserFunc && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\UserFunction.cs (3)
70catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 90catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 105catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token))
SpecialTypeExtensions.cs (2)
271throw ExceptionUtilities.UnexpectedValue(specialType); 387_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1170throw ExceptionUtilities.Unreachable(); 1180throw ExceptionUtilities.Unreachable();
src\Dependencies\Collections\TemporaryArray`1.cs (3)
317_ => throw ExceptionUtilities.Unreachable(), 379throw ExceptionUtilities.Unreachable(); 432throw ExceptionUtilities.Unreachable();
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
45throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 55throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (1)
145if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
SwitchConstantValueHelper.cs (1)
93throw ExceptionUtilities.UnexpectedValue(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229throw ExceptionUtilities.UnexpectedValue(target);
Symbols\Attributes\CommonAttributeData.cs (2)
268throw ExceptionUtilities.UnexpectedValue(kind); 362private protected virtual bool IsStringProperty(string memberName) => throw ExceptionUtilities.Unreachable();
Symbols\CommonGeneratedNameParser.cs (1)
106throw ExceptionUtilities.Unreachable();
Symbols\PlatformInvokeInformation.cs (1)
82throw ExceptionUtilities.UnexpectedValue(_flags);
Symbols\RefKind.cs (3)
60default: throw ExceptionUtilities.UnexpectedValue(kind); 71default: throw ExceptionUtilities.UnexpectedValue(kind); 84default: throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\SymbolKindExtensions.cs (1)
54throw ExceptionUtilities.UnexpectedValue(kind);
Syntax\GreenNode.cs (1)
182throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxList.cs (4)
148throw ExceptionUtilities.Unreachable(); 156throw ExceptionUtilities.Unreachable(); 162throw ExceptionUtilities.Unreachable(); 167throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxList`1.cs (1)
52throw ExceptionUtilities.Unreachable();
Syntax\SyntaxList.cs (11)
22throw ExceptionUtilities.Unreachable(); 31throw ExceptionUtilities.Unreachable(); 36throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable(); 46throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable(); 56throw ExceptionUtilities.Unreachable(); 61throw ExceptionUtilities.Unreachable(); 66throw ExceptionUtilities.Unreachable(); 71throw ExceptionUtilities.Unreachable(); 76throw ExceptionUtilities.Unreachable();
Syntax\SyntaxNodeOrToken.cs (1)
947throw ExceptionUtilities.Unreachable();
Text\SourceHashAlgorithms.cs (2)
41_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 56_ => throw ExceptionUtilities.UnexpectedValue(algorithm)
Microsoft.CodeAnalysis.CSharp (1162)
Binder\Binder.CapturedParametersFinder.cs (1)
136throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Binder\Binder.cs (2)
266_ => throw ExceptionUtilities.UnexpectedValue(context.AnnotationsState) 295throw ExceptionUtilities.UnexpectedValue(Compilation.Options.NullableContextOptions);
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
422throw ExceptionUtilities.UnexpectedValue(topClause.Kind()); 543(LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => throw ExceptionUtilities.Unreachable()),
Binder\Binder.QueryUnboundLambdaState.cs (1)
80throw ExceptionUtilities.Unreachable();
Binder\Binder.ValueChecks.cs (18)
83_ => throw ExceptionUtilities.UnexpectedValue(accessorKind), 113throw ExceptionUtilities.Unreachable(); // we don't bind to extension methods with unsupported metadata 163_ => throw ExceptionUtilities.UnexpectedValue(EscapeLevel) 898throw ExceptionUtilities.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind); 1375throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1407throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1422throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 3138internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable(); 3240throw ExceptionUtilities.UnexpectedValue(kind); 3268throw ExceptionUtilities.UnexpectedValue(kind); 3312throw ExceptionUtilities.UnexpectedValue(kind); 3631throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 3959throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4340throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4715throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); // ref struct collection type with unexpected type kind 5113throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 5663throw ExceptionUtilities.Unreachable(); 5830throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Constraints.cs (4)
287throw ExceptionUtilities.UnexpectedValue(keyword); 336throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 467_ => throw ExceptionUtilities.UnexpectedValue(containingSymbol) 628throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Binder\Binder_Conversions.cs (25)
802throw ExceptionUtilities.UnexpectedValue(v); 1101throw ExceptionUtilities.UnexpectedValue(targetType); 1170throw ExceptionUtilities.UnexpectedValue(targetType); 1660throw ExceptionUtilities.UnexpectedValue(element); 1676throw ExceptionUtilities.UnexpectedValue(element); 2262_ => throw ExceptionUtilities.UnexpectedValue(source), 2433throw ExceptionUtilities.UnexpectedValue(conversion.Kind); 2836_ => throw ExceptionUtilities.UnexpectedValue(delegateType), 2976_ => throw ExceptionUtilities.UnexpectedValue(type) 2984_ => throw ExceptionUtilities.UnexpectedValue(type) 3331default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3351default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3371default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3391default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3411default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3430default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3450default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3470default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3490default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3510default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3530default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3554default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3574default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3577throw ExceptionUtilities.UnexpectedValue(value.Discriminator); 3680default: throw ExceptionUtilities.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
41throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 133throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 784throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1004throw ExceptionUtilities.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (3)
383throw ExceptionUtilities.UnexpectedValue(expression.Kind); 848throw ExceptionUtilities.UnexpectedValue(node.Kind()); 926throw ExceptionUtilities.Unreachable();
Binder\Binder_Expressions.cs (16)
998throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1556throw ExceptionUtilities.UnexpectedValue(managedKind); 2240_ => throw ExceptionUtilities.UnexpectedValue(alias.Target.Kind), 2248throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2497throw ExceptionUtilities.UnexpectedValue(symbol); 3187throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 3253throw ExceptionUtilities.Unreachable(); 3863throw ExceptionUtilities.UnexpectedValue(argumentIndex); 5232throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5249throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5281_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 5645throw ExceptionUtilities.Unreachable(); 7039throw ExceptionUtilities.UnexpectedValue(classCreation.Kind); 8064throw ExceptionUtilities.UnexpectedValue(extensionMember.Kind); 8513throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 9306throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Binder_Initializers.cs (1)
138throw ExceptionUtilities.Unreachable();
Binder\Binder_InterpolatedString.cs (2)
178throw ExceptionUtilities.UnexpectedValue(content.Kind()); 571_ => throw ExceptionUtilities.UnexpectedValue(unconvertedExpression.Kind)
Binder\Binder_Invocation.cs (1)
1097throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (4)
287throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1440return lastBinder.AssociatedFileIdentifier ?? throw ExceptionUtilities.Unreachable(); 1444throw ExceptionUtilities.Unreachable(); 1634throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Binder\Binder_Operators.cs (7)
1234_ => throw ExceptionUtilities.UnexpectedValue(current.Right.Kind) 2529throw ExceptionUtilities.UnexpectedValue(kind); 2550throw ExceptionUtilities.UnexpectedValue(underlyingType); 2613throw ExceptionUtilities.UnexpectedValue(newKind.Operator()); 3104default: throw ExceptionUtilities.UnexpectedValue(kind); 4447default: throw ExceptionUtilities.UnexpectedValue(kind); 5111throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (4)
77throw ExceptionUtilities.Unreachable(); 186_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 923throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 1454throw ExceptionUtilities.UnexpectedValue(node.Kind());
Binder\Binder_Query.cs (3)
146throw ExceptionUtilities.UnexpectedValue(firstClause.Kind()); 160throw ExceptionUtilities.UnexpectedValue(query.Body.SelectOrGroup.Kind()); 354throw ExceptionUtilities.UnexpectedValue(topClause.Kind());
Binder\Binder_QueryErrors.cs (1)
204throw ExceptionUtilities.UnexpectedValue(queryClause.Kind());
Binder\Binder_Statements.cs (7)
550throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1680throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 1731_ => throw ExceptionUtilities.UnexpectedValue(e.Kind) 1752throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3576_ => throw ExceptionUtilities.UnexpectedValue(expressionBody.Parent.Kind()), 3660throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3917throw ExceptionUtilities.Unreachable();
Binder\Binder_Symbols.cs (3)
165throw ExceptionUtilities.UnexpectedValue(keyword); 738throw ExceptionUtilities.UnexpectedValue(typesArray.Length); 1468throw ExceptionUtilities.UnexpectedValue(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
115throw ExceptionUtilities.UnexpectedValue(comparison); 155throw ExceptionUtilities.UnexpectedValue(binaryOperator);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 477throw ExceptionUtilities.UnexpectedValue(baseMethodDeclarationSyntax.Kind()); 502throw ExceptionUtilities.UnexpectedValue(basePropertyDeclarationSyntax.Kind()); 1188throw ExceptionUtilities.UnexpectedValue(elementKind);
Binder\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)
263throw ExceptionUtilities.UnexpectedValue(tests); 314throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 962throw ExceptionUtilities.UnexpectedValue(n.Kind); 1061throw ExceptionUtilities.UnexpectedValue(n?.Kind); 1145throw ExceptionUtilities.UnexpectedValue(test); 1448throw ExceptionUtilities.Unreachable(); 2027throw ExceptionUtilities.Unreachable(); 2076public virtual BoundDagTest ComputeSelectedTest() => throw ExceptionUtilities.Unreachable(); 2289_ => 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)
259throw ExceptionUtilities.UnexpectedValue(node.Kind()); 439throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 523throw ExceptionUtilities.UnexpectedValue(designation.Kind());
Binder\FixedStatementBinder.cs (2)
67throw ExceptionUtilities.Unreachable(); 72throw ExceptionUtilities.Unreachable();
Binder\ForEachLoopBinder.cs (7)
54throw ExceptionUtilities.Unreachable(); 59throw ExceptionUtilities.Unreachable(); 97throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 173throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 356throw ExceptionUtilities.UnexpectedValue(local.RefKind); 426throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 1661throw ExceptionUtilities.UnexpectedValue(enumeratorType.TypeKind);
Binder\ForLoopBinder.cs (2)
147throw ExceptionUtilities.Unreachable(); 152throw ExceptionUtilities.Unreachable();
Binder\LookupResultKind.cs (1)
98throw ExceptionUtilities.UnexpectedValue(resultKind);
Binder\PatternExplainer.cs (5)
93throw ExceptionUtilities.Unreachable(); 164throw ExceptionUtilities.UnexpectedValue(currentNode.Kind); 241throw ExceptionUtilities.Unreachable(); 444throw ExceptionUtilities.UnexpectedValue(v); 688throw ExceptionUtilities.Unreachable();
Binder\RefSafetyAnalysis.cs (3)
306throw ExceptionUtilities.Unreachable(); 784throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex); 1104throw ExceptionUtilities.Unreachable();
Binder\ScriptLocalScopeBinder.cs (2)
44throw ExceptionUtilities.Unreachable(); 49throw ExceptionUtilities.Unreachable();
Binder\Semantics\AccessCheck.cs (5)
83throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 103throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 215throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 289throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 408throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
Binder\Semantics\Conversions\Conversion.cs (1)
1071throw ExceptionUtilities.UnexpectedValue(conversionResult.Kind);
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
76throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
933throw ExceptionUtilities.UnexpectedValue(oppositeConversion.Kind); 3221throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.Variance);
Binder\Semantics\Conversions\TypeConversions.cs (5)
39throw ExceptionUtilities.Unreachable(); 45throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable(); 57throw ExceptionUtilities.Unreachable(); 63throw ExceptionUtilities.Unreachable();
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
685throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (2)
45throw ExceptionUtilities.Unreachable(); 51throw ExceptionUtilities.Unreachable();
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
370throw ExceptionUtilities.UnexpectedValue(kind); 672throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\OperatorFacts.cs (3)
113throw ExceptionUtilities.UnexpectedValue(kind); 246throw ExceptionUtilities.UnexpectedValue(kind & UnaryOperatorKind.OpMask); 272throw ExceptionUtilities.UnexpectedValue(kind & BinaryOperatorKind.OpMask);
Binder\Semantics\Operators\OperatorKindExtensions.cs (4)
161throw ExceptionUtilities.UnexpectedValue(type); 179throw ExceptionUtilities.UnexpectedValue(type); 377throw ExceptionUtilities.UnexpectedValue(kind.Operator()); 399throw ExceptionUtilities.UnexpectedValue(kind.Operator());
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (3)
146throw ExceptionUtilities.Unreachable(); 151throw ExceptionUtilities.Unreachable(); 260throw ExceptionUtilities.UnexpectedValue(argAnalysis.Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1087_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType) 1468_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1466throw ExceptionUtilities.UnexpectedValue(member.Kind); 3413throw ExceptionUtilities.Unreachable(); 4389throw ExceptionUtilities.UnexpectedValue(member); 4760throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
457throw ExceptionUtilities.UnexpectedValue(result.Result.Kind); 1530throw ExceptionUtilities.UnexpectedValue(kind);
Binder\SimpleLocalScopeBinder.cs (2)
32throw ExceptionUtilities.Unreachable(); 37throw ExceptionUtilities.Unreachable();
Binder\SimpleProgramBinder.cs (2)
94throw ExceptionUtilities.Unreachable(); 112throw ExceptionUtilities.Unreachable();
Binder\SwitchBinder.cs (2)
335throw ExceptionUtilities.Unreachable(); 345throw ExceptionUtilities.Unreachable();
Binder\SwitchBinder_Patterns.cs (2)
120throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 283throw ExceptionUtilities.UnexpectedValue(node);
Binder\UsingStatementBinder.cs (2)
313throw ExceptionUtilities.Unreachable(); 318throw 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)
42throw ExceptionUtilities.UnexpectedValue(node.Kind); 135throw ExceptionUtilities.UnexpectedValue(dag); 197throw ExceptionUtilities.UnexpectedValue(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundExpression.cs (5)
157public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 177public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 197public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 207public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable(); 217public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable();
BoundTree\BoundExpressionExtensions.cs (1)
73var s => throw ExceptionUtilities.UnexpectedValue(s?.Kind)
BoundTree\BoundInterpolatedStringArgumentPlaceholder.cs (1)
14public sealed override bool IsEquivalentToThisReference => throw ExceptionUtilities.Unreachable();
BoundTree\BoundNode.cs (4)
250var a => throw ExceptionUtilities.UnexpectedValue(a), 264throw ExceptionUtilities.UnexpectedValue(value.FlowState); 287var mask => throw ExceptionUtilities.UnexpectedValue(mask) 480throw ExceptionUtilities.UnexpectedValue(conversion);
BoundTree\BoundNodeExtensions.cs (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\BoundTreeRewriter.cs (1)
151throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
BoundTree\Formatting.cs (2)
108get { throw ExceptionUtilities.Unreachable(); } 140get { throw ExceptionUtilities.Unreachable(); }
BoundTree\NullabilityRewriter.cs (1)
121_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Kind),
BoundTree\UnboundLambda.cs (1)
365throw ExceptionUtilities.Unreachable();
BoundTree\VariablePendingInference.cs (2)
110throw ExceptionUtilities.UnexpectedValue(this.VariableSymbol.Kind); 131throw ExceptionUtilities.Unreachable();
CodeGen\EmitAddress.cs (2)
87throw ExceptionUtilities.UnexpectedValue(expression.Kind); 282throw ExceptionUtilities.UnexpectedValue(local.RefKind);
CodeGen\EmitArrayInitializer.cs (1)
438throw ExceptionUtilities.Unreachable();
CodeGen\EmitConversion.cs (5)
45throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 132throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 174throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller. 178throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 333throw ExceptionUtilities.Unreachable();
CodeGen\EmitExpression.cs (8)
174throw ExceptionUtilities.UnexpectedValue(expression.Kind); 365throw ExceptionUtilities.UnexpectedValue(expression.Kind); 1111throw ExceptionUtilities.Unreachable(); 1676throw ExceptionUtilities.Unreachable(); 2982throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3003throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3190throw ExceptionUtilities.UnexpectedValue(expression.Kind); 4142throw ExceptionUtilities.Unreachable();
CodeGen\EmitOperators.cs (4)
54throw ExceptionUtilities.UnexpectedValue(operatorKind.Operator()); 245throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator()); 438throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind.OperatorWithLogical()); 736throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator());
CodeGen\EmitStatement.cs (6)
105throw ExceptionUtilities.UnexpectedValue(statement.Kind); 163throw ExceptionUtilities.UnexpectedValue(statement.Flavor); 330throw ExceptionUtilities.UnexpectedValue(op.OperatorKind.Operator()); 496throw ExceptionUtilities.Unreachable(); 1182throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind); 1997throw ExceptionUtilities.Unreachable();
CodeGen\Optimizer.cs (4)
492throw ExceptionUtilities.UnexpectedValue(context); 536throw ExceptionUtilities.Unreachable(); 1102throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 2279throw ExceptionUtilities.Unreachable();
Compilation\BuiltInOperators.cs (2)
279default: throw ExceptionUtilities.UnexpectedValue(kind.OperandTypes()); 849var v => throw ExceptionUtilities.UnexpectedValue(v),
Compilation\CSharpDiagnosticFilter.cs (2)
170_ => throw ExceptionUtilities.UnexpectedValue(warningsState) 288throw ExceptionUtilities.UnexpectedValue(report);
Compilation\CSharpSemanticModel.cs (2)
3790throw ExceptionUtilities.UnexpectedValue(containingMember.Kind); 4018throw ExceptionUtilities.UnexpectedValue(boundNodeForSyntacticParent.Kind);
Compilation\InitializerSemanticModel.cs (3)
105throw ExceptionUtilities.UnexpectedValue(rootSyntax.Kind()); 182throw ExceptionUtilities.UnexpectedValue(this.MemberSymbol.Kind); 286throw ExceptionUtilities.UnexpectedValue(MemberSymbol.Kind);
Compilation\MemberSemanticModel.cs (4)
124throw ExceptionUtilities.Unreachable(); 134throw ExceptionUtilities.Unreachable(); 2364throw ExceptionUtilities.Unreachable(); 2369throw ExceptionUtilities.Unreachable();
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
311throw ExceptionUtilities.Unreachable();
Compilation\MemberSemanticModel.SpeculativeMemberSemanticModel.cs (7)
67throw ExceptionUtilities.Unreachable(); 72throw ExceptionUtilities.Unreachable(); 77throw ExceptionUtilities.Unreachable(); 82throw ExceptionUtilities.Unreachable(); 87throw ExceptionUtilities.Unreachable(); 92throw ExceptionUtilities.Unreachable(); 97throw ExceptionUtilities.Unreachable();
Compilation\SpeculativeSemanticModelWithMemberModel.cs (12)
173ExceptionUtilities.UnexpectedValue(attributeOrParameter); 507throw ExceptionUtilities.Unreachable(); 512throw ExceptionUtilities.Unreachable(); 522throw ExceptionUtilities.Unreachable(); 527throw ExceptionUtilities.Unreachable(); 532throw ExceptionUtilities.Unreachable(); 537throw ExceptionUtilities.Unreachable(); 542throw ExceptionUtilities.Unreachable(); 547throw ExceptionUtilities.Unreachable(); 552throw ExceptionUtilities.Unreachable(); 557throw ExceptionUtilities.Unreachable(); 562throw ExceptionUtilities.Unreachable();
Compilation\SyntaxTreeSemanticModel.cs (11)
1116ExceptionUtilities.UnexpectedValue(node.Parent); 1177throw ExceptionUtilities.UnexpectedValue(node.Parent.Kind()); 1193ExceptionUtilities.UnexpectedValue(node.Parent); 1620throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 1644ExceptionUtilities.UnexpectedValue(containingMemberSyntax.Kind()); 1728throw ExceptionUtilities.UnexpectedValue(declaration.Kind()); 1767throw ExceptionUtilities.UnexpectedValue(name.Kind()); 2211throw ExceptionUtilities.UnexpectedValue(typeParameter.Parent.Kind()); 2480ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2518ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2545ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (7)
222throw ExceptionUtilities.Unreachable(); 757throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1008throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1249throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 1284throw ExceptionUtilities.UnexpectedValue(compliance); 1300throw ExceptionUtilities.UnexpectedValue(compliance); 1350throw ExceptionUtilities.UnexpectedValue(x.Kind);
Compiler\DocumentationCommentCompiler.cs (1)
1216throw ExceptionUtilities.UnexpectedValue(elementKind);
Compiler\MethodBodySynthesizer.Lowered.cs (2)
294protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 311internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Compiler\MethodCompiler.cs (8)
404throw ExceptionUtilities.Unreachable(); 450throw ExceptionUtilities.Unreachable(); 887throw ExceptionUtilities.Unreachable(); 892throw ExceptionUtilities.Unreachable(); 897throw ExceptionUtilities.Unreachable(); 902throw ExceptionUtilities.Unreachable(); 2000throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); 2132throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Compiler\SynthesizedMetadataCompiler.cs (1)
119throw ExceptionUtilities.Unreachable();
Compiler\TypeCompilationState.cs (1)
212throw ExceptionUtilities.Unreachable();
Declarations\DeclarationKind.cs (1)
48throw ExceptionUtilities.UnexpectedValue(kind);
Declarations\DeclarationTreeBuilder.cs (3)
104DeclarationKind.Namespace => throw ExceptionUtilities.Unreachable(), 120_ => throw ExceptionUtilities.UnexpectedValue(typeDeclaration.Kind) 678_ => throw ExceptionUtilities.UnexpectedValue(node.Kind())
Declarations\MergedTypeDeclaration.cs (1)
95throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind());
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (7)
142throw ExceptionUtilities.Unreachable(); 274throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 370throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 377throw ExceptionUtilities.Unreachable(); 452_ => throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind), 780throw ExceptionUtilities.UnexpectedValue(type.Kind); 858throw ExceptionUtilities.Unreachable();
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
310throw ExceptionUtilities.Unreachable();
Emitter\Model\ExpandedVarargsMethodReference.cs (2)
228throw ExceptionUtilities.Unreachable(); 234throw ExceptionUtilities.Unreachable();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (2)
86throw ExceptionUtilities.Unreachable(); 90public override int GetHashCode() => throw ExceptionUtilities.Unreachable();
Emitter\Model\MethodSymbolAdapter.cs (1)
709throw ExceptionUtilities.Unreachable();
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(value);
Emitter\Model\NamedTypeReference.cs (2)
172throw ExceptionUtilities.Unreachable(); 178throw ExceptionUtilities.Unreachable();
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
221throw ExceptionUtilities.Unreachable(); 1064throw ExceptionUtilities.Unreachable();
Emitter\Model\ParameterSymbolAdapter.cs (2)
168throw ExceptionUtilities.Unreachable(); 278throw ExceptionUtilities.Unreachable();
Emitter\Model\ParameterTypeInformation.cs (4)
72throw ExceptionUtilities.Unreachable(); 78throw ExceptionUtilities.Unreachable(); 123throw ExceptionUtilities.Unreachable(); 129throw ExceptionUtilities.Unreachable();
Emitter\Model\PEAssemblyBuilder.cs (1)
663=> throw ExceptionUtilities.Unreachable();
Emitter\Model\PEModuleBuilder.cs (6)
246throw ExceptionUtilities.UnexpectedValue(member.Kind); 288throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 367throw ExceptionUtilities.UnexpectedValue(member.Kind); 427throw ExceptionUtilities.UnexpectedValue(member.Kind); 434throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1164throw ExceptionUtilities.UnexpectedValue(typeSymbol.Kind);
Emitter\Model\PENetModuleBuilder.cs (3)
31throw ExceptionUtilities.Unreachable(); 36throw ExceptionUtilities.Unreachable(); 48=> throw ExceptionUtilities.Unreachable();
Emitter\Model\PropertySymbolAdapter.cs (1)
335throw ExceptionUtilities.Unreachable();
Emitter\Model\SymbolAdapter.cs (5)
32throw ExceptionUtilities.Unreachable(); 39throw ExceptionUtilities.Unreachable(); 52protected virtual SymbolAdapter GetCciAdapterImpl() => throw ExceptionUtilities.Unreachable(); 184throw ExceptionUtilities.Unreachable(); 190throw ExceptionUtilities.Unreachable();
Emitter\Model\TypeMemberReference.cs (2)
57throw ExceptionUtilities.Unreachable(); 63throw ExceptionUtilities.Unreachable();
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
156throw ExceptionUtilities.Unreachable(); 337throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
520throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
722throw ExceptionUtilities.UnexpectedValue(feature);
FlowAnalysis\AbstractFlowPass.cs (12)
871throw ExceptionUtilities.UnexpectedValue(node.Kind); 1022throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1075throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1110throw ExceptionUtilities.Unreachable(); 1116throw ExceptionUtilities.Unreachable(); 1566throw ExceptionUtilities.UnexpectedValue(refKind); 2182throw ExceptionUtilities.Unreachable(); 2476throw ExceptionUtilities.UnexpectedValue(binary.Kind); 2498throw ExceptionUtilities.UnexpectedValue(binary.Kind); 3489throw ExceptionUtilities.Unreachable(); 3707throw ExceptionUtilities.Unreachable(); 3712throw ExceptionUtilities.Unreachable();
FlowAnalysis\DefiniteAssignment.cs (1)
2131throw 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 (22)
589throw ExceptionUtilities.UnexpectedValue(placeholder.Kind); 960=> throw ExceptionUtilities.Unreachable(), 2039throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 3518throw ExceptionUtilities.Unreachable(); 4300ExceptionUtilities.UnexpectedValue(node.Kind); 4520throw ExceptionUtilities.Unreachable(); 4801_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 4878_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 5907_ => throw ExceptionUtilities.UnexpectedValue(node.OperatorResultKind), 7138throw ExceptionUtilities.Unreachable(); 7284throw ExceptionUtilities.UnexpectedValue(member); 7790throw ExceptionUtilities.UnexpectedValue(refKind); 7882throw ExceptionUtilities.UnexpectedValue(refKind); 8034throw ExceptionUtilities.UnexpectedValue(refKind); 10944throw ExceptionUtilities.Unreachable(); 11790_ => throw ExceptionUtilities.UnexpectedValue(node.Syntax) 11884throw ExceptionUtilities.Unreachable(); 12105throw ExceptionUtilities.UnexpectedValue(binary.Kind); 12120throw ExceptionUtilities.UnexpectedValue(binary.Kind); 12237throw ExceptionUtilities.Unreachable(); 12563throw ExceptionUtilities.Unreachable(); 13300_ => throw ExceptionUtilities.Unreachable()
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (4)
54internal override SyntaxToken IdentifierToken => throw ExceptionUtilities.Unreachable(); 60internal override SynthesizedLocalKind SynthesizedKind => throw ExceptionUtilities.Unreachable(); 63internal override SyntaxNode GetDeclaratorSyntax() => throw ExceptionUtilities.Unreachable(); 72) => throw ExceptionUtilities.Unreachable();
FlowAnalysis\NullableWalker_Patterns.cs (6)
244throw ExceptionUtilities.UnexpectedValue(pattern); 437(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable(); 585throw ExceptionUtilities.UnexpectedValue(p.Evaluation.Kind); 662throw ExceptionUtilities.UnexpectedValue(test.Kind); 721throw ExceptionUtilities.UnexpectedValue(dagNode.Kind); 860_ => throw ExceptionUtilities.UnexpectedValue(e.Kind)
LanguageVersion.cs (2)
338throw ExceptionUtilities.UnexpectedValue(version); 419throw ExceptionUtilities.UnexpectedValue(version);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
523throw ExceptionUtilities.Unreachable();
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336throw ExceptionUtilities.UnexpectedValue(method);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
335throw ExceptionUtilities.Unreachable();
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (3)
89throw ExceptionUtilities.UnexpectedValue(local); 184throw ExceptionUtilities.Unreachable(); 225throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (7)
129throw ExceptionUtilities.UnexpectedValue(node.Kind); 193throw ExceptionUtilities.Unreachable(); 407throw ExceptionUtilities.Unreachable(); 598throw ExceptionUtilities.UnexpectedValue(variable.Kind); 621return Helper(treeRoot) ?? throw ExceptionUtilities.Unreachable(); 663throw ExceptionUtilities.Unreachable(); 671return helper(treeRoot) ?? throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
414=> throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ClosureConversion.cs (2)
785throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1794throw ExceptionUtilities.Unreachable();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
157throw ExceptionUtilities.UnexpectedValue(stmt.Kind); 249throw ExceptionUtilities.UnexpectedValue(node.Kind); 478throw ExceptionUtilities.UnexpectedValue(opKind.Operator()); 789throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup); 805throw ExceptionUtilities.UnexpectedValue(node.Argument); 920throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 935throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 988throw ExceptionUtilities.UnexpectedValue(elementKind); 1043throw ExceptionUtilities.UnexpectedValue(initializerKind); // no other options at the top level of an initializer 1161throw ExceptionUtilities.UnexpectedValue(op); 1181throw ExceptionUtilities.UnexpectedValue(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107throw ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
74throw ExceptionUtilities.UnexpectedValue(closureKind); 235throw ExceptionUtilities.Unreachable();
Lowering\ExtensionMethodBodyRewriter.cs (2)
87throw ExceptionUtilities.Unreachable(); 153throw 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 (3)
106throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind()); 154throw ExceptionUtilities.UnexpectedValue(grandparent.Kind()); 329throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind());
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
129throw ExceptionUtilities.UnexpectedValue(declarationSyntax.Parent.Kind());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
391throw ExceptionUtilities.UnexpectedValue(original.Left); 490_ => throw ExceptionUtilities.UnexpectedValue(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (2)
107throw ExceptionUtilities.Unreachable(); 259protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81throw ExceptionUtilities.UnexpectedValue(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
48public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\DynamicSiteContainer.cs (1)
47get { throw ExceptionUtilities.Unreachable(); }
Lowering\LocalRewriter\LocalRewriter.cs (5)
457throw ExceptionUtilities.Unreachable(); 462throw ExceptionUtilities.Unreachable(); 559throw ExceptionUtilities.Unreachable(); 565throw ExceptionUtilities.Unreachable(); 1114throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89throw ExceptionUtilities.UnexpectedValue(node.Kind); 640throw ExceptionUtilities.UnexpectedValue(otherwise); 672throw ExceptionUtilities.UnexpectedValue(n); 803throw ExceptionUtilities.UnexpectedValue(input.Type); 818_ => throw ExceptionUtilities.UnexpectedValue(input.Type.SpecialType) 857_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 870_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 929_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 941_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 956_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 964_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 1233throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
307throw ExceptionUtilities.UnexpectedValue(evaluation); 367throw ExceptionUtilities.UnexpectedValue(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
132throw ExceptionUtilities.Unreachable(); 177throw ExceptionUtilities.UnexpectedValue(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
218throw ExceptionUtilities.UnexpectedValue(operatorKind); 266throw ExceptionUtilities.UnexpectedValue(operatorKind); 532throw ExceptionUtilities.UnexpectedValue(operatorKind); 2077throw ExceptionUtilities.UnexpectedValue(operatorKind); 2383throw ExceptionUtilities.UnexpectedValue(numericSpecialType); 2450throw ExceptionUtilities.UnexpectedValue(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (4)
159throw ExceptionUtilities.Unreachable(); 869var u => throw ExceptionUtilities.UnexpectedValue(u.Kind) 890throw ExceptionUtilities.UnexpectedValue(argIndex); 1307throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (6)
22throw ExceptionUtilities.Unreachable(); 27throw ExceptionUtilities.Unreachable(); 88throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); 388var e => throw ExceptionUtilities.UnexpectedValue(e) 444var v => throw ExceptionUtilities.UnexpectedValue(v) 727throw ExceptionUtilities.UnexpectedValue(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
515throw ExceptionUtilities.UnexpectedValue(indexerAccess.Argument.Type); 836throw ExceptionUtilities.UnexpectedValue(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (3)
21throw ExceptionUtilities.Unreachable(); 101throw ExceptionUtilities.UnexpectedValue(loweringKind); 196throw ExceptionUtilities.UnexpectedValue(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (11)
31_ => throw ExceptionUtilities.UnexpectedValue(node.Operand.Kind) 200throw ExceptionUtilities.UnexpectedValue(current); 628throw ExceptionUtilities.Unreachable(); 651throw ExceptionUtilities.Unreachable(); 663throw ExceptionUtilities.Unreachable(); 684throw ExceptionUtilities.Unreachable(); 702throw ExceptionUtilities.Unreachable(); 709throw ExceptionUtilities.Unreachable(); 1649throw ExceptionUtilities.Unreachable(); 1672throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType); 1692throw 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)
159throw ExceptionUtilities.UnexpectedValue(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (8)
151_ => throw ExceptionUtilities.UnexpectedValue(oldNode) 400throw ExceptionUtilities.Unreachable(); 405throw ExceptionUtilities.Unreachable(); 410throw ExceptionUtilities.Unreachable(); 415throw ExceptionUtilities.Unreachable(); 558throw ExceptionUtilities.UnexpectedValue(strategy); 687throw ExceptionUtilities.UnexpectedValue(strategy); 912throw ExceptionUtilities.UnexpectedValue(startStrategy);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
64throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
81throw ExceptionUtilities.UnexpectedValue(node); 299throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
88throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
74throw ExceptionUtilities.UnexpectedValue(temps.Length);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (8)
27throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 62throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 81throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 93throw ExceptionUtilities.UnexpectedValue(initializer.Kind); 465throw ExceptionUtilities.UnexpectedValue(rewrittenArrayAccess.Kind); 547throw ExceptionUtilities.UnexpectedValue(left.Kind); 609throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 748throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind);
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (1)
63throw ExceptionUtilities.UnexpectedValue(rewrittenIndex.Type.SpecialType);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
198throw ExceptionUtilities.UnexpectedValue(constructionMethod.MethodKind);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
93throw ExceptionUtilities.UnexpectedValue(type);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (5)
135throw ExceptionUtilities.Unreachable(); 150_ => throw ExceptionUtilities.Unreachable(), 178_ => throw ExceptionUtilities.UnexpectedValue(visitedArguments.Count), 199throw ExceptionUtilities.UnexpectedValue(concatKind); 601throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
84throw ExceptionUtilities.UnexpectedValue(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
262throw ExceptionUtilities.UnexpectedValue(@operator.InfoKind);
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
17throw ExceptionUtilities.Unreachable();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (6)
427throw ExceptionUtilities.Unreachable(); 974throw ExceptionUtilities.UnexpectedValue(oper.Operator()); 1119throw ExceptionUtilities.UnexpectedValue(kind); 1209throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType); 1219throw ExceptionUtilities.UnexpectedValue(unaryOperatorKind.OperandTypes()); 1279throw ExceptionUtilities.UnexpectedValue(binaryOperatorKind.OperandTypes());
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
88throw ExceptionUtilities.UnexpectedValue(loop.Kind);
Lowering\MethodToClassRewriter.cs (8)
71throw ExceptionUtilities.Unreachable(); 76throw ExceptionUtilities.Unreachable(); 81throw ExceptionUtilities.Unreachable(); 86throw ExceptionUtilities.Unreachable(); 244_ => throw ExceptionUtilities.UnexpectedValue(proxy) 274throw ExceptionUtilities.Unreachable(); 281throw ExceptionUtilities.Unreachable(); 384throw ExceptionUtilities.Unreachable();
Lowering\SpillSequenceSpiller.cs (2)
977throw ExceptionUtilities.Unreachable(); 1202throw ExceptionUtilities.Unreachable();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
180throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
682throw ExceptionUtilities.UnexpectedValue(expr.Kind); 818throw ExceptionUtilities.Unreachable(); // for statements have been lowered away by now 823throw ExceptionUtilities.Unreachable(); // using statements have been lowered away by now
Lowering\SyntheticBoundNodeFactory.cs (2)
794throw ExceptionUtilities.UnexpectedValue(input.Type); 1690throw ExceptionUtilities.UnexpectedValue(refKind);
Operations\CSharpOperationFactory.cs (16)
333throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 416throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 548throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 608throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 799throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 815throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 902throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind); 1253throw ExceptionUtilities.UnexpectedValue(expr.CollectionTypeKind); 1475{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2247{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2340throw ExceptionUtilities.UnexpectedValue(part.Kind); 2356_ => throw ExceptionUtilities.UnexpectedValue(value.Kind), 2453_ => throw ExceptionUtilities.UnexpectedValue(part.Kind) 2461_ => throw ExceptionUtilities.UnexpectedValue(methodName) 2476throw ExceptionUtilities.UnexpectedValue(current.Kind); 2499_ => throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
260throw ExceptionUtilities.UnexpectedValue(containingExpression.Kind);
Parser\Blender.Cursor.cs (1)
127throw ExceptionUtilities.Unreachable();
Parser\LanguageParser.cs (9)
1715throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1995throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 6870throw ExceptionUtilities.Unreachable(); 7386throw ExceptionUtilities.UnexpectedValue(mode); 9472throw ExceptionUtilities.UnexpectedValue(decl.designation.Kind); 11005throw ExceptionUtilities.UnexpectedValue(op); 11286throw ExceptionUtilities.Unreachable(); 11588_ => throw ExceptionUtilities.UnexpectedValue(node), 12626throw ExceptionUtilities.UnexpectedValue(type);
Parser\LanguageParser_InterpolatedString.cs (2)
88_ => throw ExceptionUtilities.UnexpectedValue(kind), 249_ => throw ExceptionUtilities.UnexpectedValue(kind),
Parser\Lexer.cs (2)
288throw ExceptionUtilities.UnexpectedValue(ModeOf(_mode)); 386throw ExceptionUtilities.UnexpectedValue(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
119throw ExceptionUtilities.UnexpectedValue(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
73throw ExceptionUtilities.UnexpectedValue(node.KindText); 107_ => throw ExceptionUtilities.UnexpectedValue(name.KindText),
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
413ExceptionUtilities.UnexpectedValue(node.Kind());
SymbolDisplay\SymbolDisplayVisitor.cs (2)
235throw ExceptionUtilities.UnexpectedValue(Format.GlobalNamespaceStyle); 418throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
573throw ExceptionUtilities.UnexpectedValue(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
662throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind);
Symbols\AbstractTypeMap.cs (1)
210throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
790throw ExceptionUtilities.Unreachable();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (7)
37=> throw ExceptionUtilities.Unreachable(); 41throw ExceptionUtilities.Unreachable(); 86=> throw ExceptionUtilities.Unreachable(); 167throw ExceptionUtilities.Unreachable(); 241get { throw ExceptionUtilities.Unreachable(); } 251throw ExceptionUtilities.Unreachable(); 274internal 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 (4)
56=> throw ExceptionUtilities.Unreachable(); 171=> throw ExceptionUtilities.Unreachable(); 310throw ExceptionUtilities.Unreachable(); 323internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\AssemblySymbol.cs (3)
388throw ExceptionUtilities.Unreachable(); 399throw ExceptionUtilities.Unreachable(); 408throw ExceptionUtilities.Unreachable();
Symbols\BaseTypeAnalysis.cs (1)
195throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
287throw ExceptionUtilities.UnexpectedValue(descriptor.Flags); 355throw ExceptionUtilities.UnexpectedValue(targetSymbolKind); 663throw ExceptionUtilities.UnexpectedValue(attribute);
Symbols\ConstraintsHelper.cs (4)
287throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1137throw ExceptionUtilities.UnexpectedValue(error); 1508throw ExceptionUtilities.UnexpectedValue(typeArgument.TypeKind); 1651throw ExceptionUtilities.UnexpectedValue(type2.NullableAnnotation);
Symbols\ConstructedNamedTypeSymbol.cs (3)
45get { throw ExceptionUtilities.Unreachable(); } 50throw ExceptionUtilities.Unreachable(); 135get { throw ExceptionUtilities.Unreachable(); }
Symbols\EnumConversions.cs (1)
42throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\ErrorMethodSymbol.cs (4)
86internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 246get { throw ExceptionUtilities.Unreachable(); } 266throw ExceptionUtilities.Unreachable(); 271throw ExceptionUtilities.Unreachable();
Symbols\ErrorTypeSymbol.cs (6)
120=> throw ExceptionUtilities.Unreachable(); 172throw ExceptionUtilities.Unreachable(); 528throw ExceptionUtilities.Unreachable(); 548get { throw ExceptionUtilities.Unreachable(); } 551internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 748=> throw ExceptionUtilities.Unreachable();
Symbols\ExtendedErrorTypeSymbol.cs (1)
96throw ExceptionUtilities.Unreachable();
Symbols\Extensions\RewrittenMethodSymbol.cs (2)
72internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 79internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable();
Symbols\Extensions\RewrittenParameterSymbol.cs (2)
24internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 26internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (2)
227BoundInterpolatedStringArgumentPlaceholder.InstanceParameter => throw ExceptionUtilities.Unreachable(), 232_ => throw ExceptionUtilities.UnexpectedValue(index),
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (10)
186throw ExceptionUtilities.UnexpectedValue(unexpected); 851internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 853internal override bool GenerateDebugInfo => throw ExceptionUtilities.Unreachable(); 854internal override ObsoleteAttributeData? ObsoleteAttributeData => throw ExceptionUtilities.Unreachable(); 856public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable(); 857public override DllImportData GetDllImportData() => throw ExceptionUtilities.Unreachable(); 858internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => throw ExceptionUtilities.Unreachable(); 859internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => throw ExceptionUtilities.Unreachable(); 860internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 861protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
33internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable();
Symbols\FunctionTypeSymbol.cs (22)
114public override ImmutableArray<Location> Locations => throw ExceptionUtilities.Unreachable(); 116public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => throw ExceptionUtilities.Unreachable(); 118public override Accessibility DeclaredAccessibility => throw ExceptionUtilities.Unreachable(); 122public override bool IsAbstract => throw ExceptionUtilities.Unreachable(); 124public override bool IsSealed => throw ExceptionUtilities.Unreachable(); 128internal override bool IsRecord => throw ExceptionUtilities.Unreachable(); 130internal override bool IsRecordStruct => throw ExceptionUtilities.Unreachable(); 132internal override ObsoleteAttributeData ObsoleteAttributeData => throw ExceptionUtilities.Unreachable(); 134public override void Accept(CSharpSymbolVisitor visitor) => throw ExceptionUtilities.Unreachable(); 136public override TResult Accept<TResult>(CSharpSymbolVisitor<TResult> visitor) => throw ExceptionUtilities.Unreachable(); 138public override ImmutableArray<Symbol> GetMembers() => throw ExceptionUtilities.Unreachable(); 140public override ImmutableArray<Symbol> GetMembers(string name) => throw ExceptionUtilities.Unreachable(); 142public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => throw ExceptionUtilities.Unreachable(); 144public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => throw ExceptionUtilities.Unreachable(); 146protected override ISymbol CreateISymbol() => throw ExceptionUtilities.Unreachable(); 148protected override ITypeSymbol CreateITypeSymbol(CodeAnalysis.NullableAnnotation nullableAnnotation) => throw ExceptionUtilities.Unreachable(); 150internal override TResult Accept<TArgument, TResult>(CSharpSymbolVisitor<TArgument, TResult> visitor, TArgument a) => throw ExceptionUtilities.Unreachable(); 152internal override void AddNullableTransforms(ArrayBuilder<byte> transforms) => throw ExceptionUtilities.Unreachable(); 154internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) => throw ExceptionUtilities.Unreachable(); 156internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => throw ExceptionUtilities.Unreachable(); 158internal override bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) => throw ExceptionUtilities.Unreachable(); 199internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => throw ExceptionUtilities.Unreachable();
Symbols\MemberSignatureComparer.cs (1)
874throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46throw ExceptionUtilities.UnexpectedValue(member.Kind); 64throw ExceptionUtilities.UnexpectedValue(member.Kind); 78throw ExceptionUtilities.UnexpectedValue(member.Kind); 147throw ExceptionUtilities.UnexpectedValue(member); 177throw ExceptionUtilities.UnexpectedValue(member); 241throw ExceptionUtilities.UnexpectedValue(member); 302throw ExceptionUtilities.UnexpectedValue(member.Kind); 328throw ExceptionUtilities.UnexpectedValue(member.Kind); 344throw ExceptionUtilities.UnexpectedValue(member.Kind); 470throw ExceptionUtilities.UnexpectedValue(m.Kind); 516throw ExceptionUtilities.UnexpectedValue(s.Kind); 570throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 588throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 857throw ExceptionUtilities.UnexpectedValue(member.Kind); 887throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
139throw ExceptionUtilities.UnexpectedValue(memberRefOrMethodDef.Kind);
Symbols\Metadata\PE\MetadataDecoder.cs (2)
148throw ExceptionUtilities.Unreachable(); 268throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\Metadata\PE\PEMethodSymbol.cs (9)
487throw ExceptionUtilities.Unreachable(); 1097throw ExceptionUtilities.Unreachable(); 1167throw ExceptionUtilities.UnexpectedValue(kind); 1629throw ExceptionUtilities.Unreachable(); 1686internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 1720throw ExceptionUtilities.Unreachable(); 1725throw ExceptionUtilities.Unreachable(); 1730get { throw ExceptionUtilities.Unreachable(); } 1742internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEModuleSymbol.cs (3)
161throw ExceptionUtilities.Unreachable(); 690throw ExceptionUtilities.Unreachable(); 819throw ExceptionUtilities.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (11)
343throw ExceptionUtilities.Unreachable(); 446throw ExceptionUtilities.Unreachable(); 457throw ExceptionUtilities.Unreachable(); 879throw ExceptionUtilities.UnexpectedValue(_flags & TypeAttributes.VisibilityMask); 965throw ExceptionUtilities.Unreachable(); 1358throw ExceptionUtilities.Unreachable(); 1915get { throw ExceptionUtilities.Unreachable(); } 2617throw ExceptionUtilities.Unreachable(); 2833=> throw ExceptionUtilities.Unreachable(); 2918=> throw ExceptionUtilities.Unreachable(); 2962internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEParameterSymbol.cs (3)
954internal sealed override bool HasEnumeratorCancellationAttribute => throw ExceptionUtilities.Unreachable(); 1068internal sealed override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable(); 1220_ => throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
148_ => throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (3)
288throw ExceptionUtilities.Unreachable(); 624throw ExceptionUtilities.UnexpectedValue(kind); 1116throw ExceptionUtilities.Unreachable();
Symbols\MethodSymbolExtensions.cs (1)
116throw ExceptionUtilities.UnexpectedValue(hidingMember.Kind);
Symbols\MissingAssemblySymbol.cs (3)
127throw ExceptionUtilities.Unreachable(); 137throw ExceptionUtilities.Unreachable(); 185throw ExceptionUtilities.Unreachable();
Symbols\MissingMetadataTypeSymbol.cs (1)
447throw ExceptionUtilities.Unreachable();
Symbols\MissingModuleSymbol.cs (3)
166throw ExceptionUtilities.Unreachable(); 176throw ExceptionUtilities.Unreachable(); 198get { throw ExceptionUtilities.Unreachable(); }
Symbols\ModuleSymbol.cs (1)
329throw ExceptionUtilities.Unreachable();
Symbols\NamedTypeSymbol.cs (1)
381throw ExceptionUtilities.Unreachable();
Symbols\NativeIntegerTypeSymbol.cs (10)
153internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 155internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable(); 157internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => throw ExceptionUtilities.Unreachable(); 159internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => throw ExceptionUtilities.Unreachable(); 163protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 172public override bool AreLocalsZeroed => throw ExceptionUtilities.Unreachable(); 176internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 391internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 397throw ExceptionUtilities.Unreachable(); 400internal 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)
74throw ExceptionUtilities.UnexpectedValue(_underlying.MethodKind);
Symbols\ReducedExtensionMethodSymbol.cs (12)
333get { throw ExceptionUtilities.Unreachable(); } 447internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 582throw ExceptionUtilities.Unreachable(); 585internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 600protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 656get { throw ExceptionUtilities.Unreachable(); } 662get { throw ExceptionUtilities.Unreachable(); } 668get { throw ExceptionUtilities.Unreachable(); } 674get { throw ExceptionUtilities.Unreachable(); } 677internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 679internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable(); 681internal override bool HasEnumeratorCancellationAttribute => throw ExceptionUtilities.Unreachable();
Symbols\RefKindExtensions.cs (2)
34throw ExceptionUtilities.UnexpectedValue(syntaxKind); 50throw ExceptionUtilities.UnexpectedValue(refKind);
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
225throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingMethodSymbol.cs (3)
259internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 380throw ExceptionUtilities.Unreachable(); 383internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
316throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (2)
417get { throw ExceptionUtilities.Unreachable(); } 423internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
686throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1070throw ExceptionUtilities.Unreachable(); 1356throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyMethodSymbol.cs (34)
97internal sealed override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable(); 107internal override bool GenerateDebugInfo { get { throw ExceptionUtilities.Unreachable(); } } 109internal override bool HasSpecialName { get { throw ExceptionUtilities.Unreachable(); } } 111internal override System.Reflection.MethodImplAttributes ImplementationAttributes { get { throw ExceptionUtilities.Unreachable(); } } 113internal override bool RequiresSecurityObject { get { throw ExceptionUtilities.Unreachable(); } } 117internal override MarshalPseudoCustomAttributeData ReturnValueMarshallingInformation { get { throw ExceptionUtilities.Unreachable(); } } 119internal override bool HasDeclarativeSecurity { get { throw ExceptionUtilities.Unreachable(); } } 121internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation() { throw ExceptionUtilities.Unreachable(); } 123internal override ObsoleteAttributeData ObsoleteAttributeData { get { throw ExceptionUtilities.Unreachable(); } } 125internal sealed override UnmanagedCallersOnlyAttributeData GetUnmanagedCallersOnlyAttributeData(bool forceComplete) => throw ExceptionUtilities.Unreachable(); 127internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 129internal override ImmutableArray<string> GetAppliedConditionalSymbols() { throw ExceptionUtilities.Unreachable(); } 131public override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 133public override Symbol AssociatedSymbol { get { throw ExceptionUtilities.Unreachable(); } } 135public override bool IsExtensionMethod { get { throw ExceptionUtilities.Unreachable(); } } 137public override bool HidesBaseMethodsByName { get { throw ExceptionUtilities.Unreachable(); } } 139public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 141public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 143public override Accessibility DeclaredAccessibility { get { throw ExceptionUtilities.Unreachable(); } } 147public override bool IsAsync { get { throw ExceptionUtilities.Unreachable(); } } 149public override bool IsVirtual { get { throw ExceptionUtilities.Unreachable(); } } 151public override bool IsOverride { get { throw ExceptionUtilities.Unreachable(); } } 153public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } } 155public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } } 157public override bool IsExtern { get { throw ExceptionUtilities.Unreachable(); } } 159public override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable(); } } 161public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 163internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 165internal sealed override bool IsMetadataNewSlot(bool ignoreInterfaceImplementationChanges = false) { throw ExceptionUtilities.Unreachable(); } 167internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None) { throw ExceptionUtilities.Unreachable(); } 173throw ExceptionUtilities.Unreachable(); 181internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) { throw ExceptionUtilities.Unreachable(); } 183protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable(); 189internal sealed override int TryGetOverloadResolutionPriority() => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyParameterSymbol.cs (23)
44internal override bool HasEnumeratorCancellationAttribute { get { throw ExceptionUtilities.Unreachable(); } } 58internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable(); 69internal override bool IsMetadataIn { get { throw ExceptionUtilities.Unreachable(); } } 71internal override bool IsMetadataOut { get { throw ExceptionUtilities.Unreachable(); } } 73internal override MarshalPseudoCustomAttributeData MarshallingInformation { get { throw ExceptionUtilities.Unreachable(); } } 75public override int Ordinal { get { throw ExceptionUtilities.Unreachable(); } } 77internal override bool IsMetadataOptional { get { throw ExceptionUtilities.Unreachable(); } } 79internal override ConstantValue ExplicitDefaultConstantValue { get { throw ExceptionUtilities.Unreachable(); } } 81internal override bool IsIDispatchConstant { get { throw ExceptionUtilities.Unreachable(); } } 83internal override bool IsIUnknownConstant { get { throw ExceptionUtilities.Unreachable(); } } 85internal override bool IsCallerFilePath { get { throw ExceptionUtilities.Unreachable(); } } 87internal override bool IsCallerLineNumber { get { throw ExceptionUtilities.Unreachable(); } } 89internal override bool IsCallerMemberName { get { throw ExceptionUtilities.Unreachable(); } } 91internal override int CallerArgumentExpressionParameterIndex { get { throw ExceptionUtilities.Unreachable(); } } 93internal override FlowAnalysisAnnotations FlowAnalysisAnnotations { get { throw ExceptionUtilities.Unreachable(); } } 95internal override ImmutableHashSet<string> NotNullIfParameterNotNull { get { throw ExceptionUtilities.Unreachable(); } } 97public override Symbol ContainingSymbol { get { throw ExceptionUtilities.Unreachable(); } } 99public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 103public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 105internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 107internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 109internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\SignatureOnlyPropertySymbol.cs (18)
70internal override bool HasSpecialName { get { throw ExceptionUtilities.Unreachable(); } } 72internal override Cci.CallingConvention CallingConvention { get { throw ExceptionUtilities.Unreachable(); } } 74public override ImmutableArray<Location> Locations { get { throw ExceptionUtilities.Unreachable(); } } 76public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } } 78public override Accessibility DeclaredAccessibility { get { throw ExceptionUtilities.Unreachable(); } } 80public override bool IsVirtual { get { throw ExceptionUtilities.Unreachable(); } } 84public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } } 86public override bool IsSealed { get { throw ExceptionUtilities.Unreachable(); } } 88public override bool IsExtern { get { throw ExceptionUtilities.Unreachable(); } } 90internal override bool IsRequired => throw ExceptionUtilities.Unreachable(); 92internal override ObsoleteAttributeData ObsoleteAttributeData { get { throw ExceptionUtilities.Unreachable(); } } 94public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } } 96internal override ModuleSymbol ContainingModule { get { throw ExceptionUtilities.Unreachable(); } } 98internal override bool MustCallMethodsDirectly { get { throw ExceptionUtilities.Unreachable(); } } 100public override MethodSymbol SetMethod { get { throw ExceptionUtilities.Unreachable(); } } 102public override MethodSymbol GetMethod { get { throw ExceptionUtilities.Unreachable(); } } 104public override bool IsIndexer { get { throw ExceptionUtilities.Unreachable(); } } 106internal override int TryGetOverloadResolutionPriority() => throw ExceptionUtilities.Unreachable();
Symbols\Source\AttributeLocation.cs (1)
95throw ExceptionUtilities.UnexpectedValue(i);
Symbols\Source\CrefTypeParameterSymbol.cs (2)
210throw ExceptionUtilities.Unreachable(); 216throw ExceptionUtilities.Unreachable();
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
140throw ExceptionUtilities.Unreachable();
Symbols\Source\GlobalExpressionVariable.cs (1)
160throw ExceptionUtilities.Unreachable();
Symbols\Source\ImplicitNamedTypeSymbol.cs (4)
32=> throw ExceptionUtilities.Unreachable(); 159throw ExceptionUtilities.Unreachable(); 180internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 199=> throw ExceptionUtilities.Unreachable();
Symbols\Source\LambdaSymbol.cs (2)
419throw ExceptionUtilities.Unreachable(); 422internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Source\LocalFunctionSymbol.cs (2)
391throw ExceptionUtilities.Unreachable(); 523internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\Source\ModifierUtils.cs (2)
354throw ExceptionUtilities.UnexpectedValue(modifier); 407throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Source\ParameterHelpers.cs (1)
800throw ExceptionUtilities.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (4)
1675_ => throw ExceptionUtilities.UnexpectedValue(attribute) 1860throw ExceptionUtilities.Unreachable(); 1874throw ExceptionUtilities.Unreachable(); 2089throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceClonedParameterSymbol.cs (2)
160internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw ExceptionUtilities.Unreachable(); 162internal override bool HasInterpolatedStringHandlerArgumentError => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1318throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceConstructorSymbolBase.cs (1)
227throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceCustomEventSymbol.cs (1)
121throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
38internal sealed override ExecutableCodeBinder TryGetBodyBinder(BinderFactory binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceEventSymbol.cs (1)
168throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Symbols\Source\SourceFixedFieldSymbol.cs (1)
241=> throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceLocalSymbol.cs (4)
241throw ExceptionUtilities.Unreachable(); 458throw ExceptionUtilities.UnexpectedValue(_declarationKind); 557throw ExceptionUtilities.Unreachable(); 785throw ExceptionUtilities.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (11)
702throw ExceptionUtilities.Unreachable(); 1118throw ExceptionUtilities.Unreachable(); 1138throw ExceptionUtilities.Unreachable(); 3919throw ExceptionUtilities.Unreachable(); 3974throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 4135throw ExceptionUtilities.UnexpectedValue(symbol); 4394throw ExceptionUtilities.Unreachable(); 4652throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4663throw ExceptionUtilities.UnexpectedValue(member.Kind); 4707throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4724throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
308throw ExceptionUtilities.UnexpectedValue(matchResult); 525throw ExceptionUtilities.UnexpectedValue(this.TypeKind); 1015throw ExceptionUtilities.Unreachable(); 1719throw ExceptionUtilities.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbol.cs (1)
94protected override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1425throw ExceptionUtilities.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics); 1533var unexpected => throw ExceptionUtilities.UnexpectedValue(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
395throw ExceptionUtilities.UnexpectedValue(member); 403throw ExceptionUtilities.UnexpectedValue(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
178throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 486throw ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
614throw ExceptionUtilities.UnexpectedValue(baseType.TypeKind); 754throw ExceptionUtilities.UnexpectedValue(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (9)
38throw ExceptionUtilities.Unreachable(); 65throw ExceptionUtilities.Unreachable(); 220throw ExceptionUtilities.UnexpectedValue(type); 342_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 493throw ExceptionUtilities.UnexpectedValue(annotation); 526throw ExceptionUtilities.UnexpectedValue(type); 750_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 793_ => throw ExceptionUtilities.UnexpectedValue(refKind) 958throw ExceptionUtilities.UnexpectedValue(argument.Kind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (8)
58throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 85throw ExceptionUtilities.Unreachable(); 137throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 168throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 200throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 232throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 439throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 570throw ExceptionUtilities.UnexpectedValue(declarationSyntax);
Symbols\Source\SourceNamespaceSymbol.cs (2)
398throw ExceptionUtilities.UnexpectedValue(otherSymbol); 425throw ExceptionUtilities.UnexpectedValue(declaration.Kind);
Symbols\Source\SourcePropertySymbol.cs (4)
186_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 289throw ExceptionUtilities.UnexpectedValue(accessor.Kind()); 354throw ExceptionUtilities.Unreachable(); 369throw ExceptionUtilities.Unreachable();
Symbols\Source\SourcePropertySymbolBase.cs (1)
351_ => throw ExceptionUtilities.UnexpectedValue(accessorToBlame)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
298throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (3)
430throw ExceptionUtilities.UnexpectedValue(extensionParameter.RefKind); 455throw ExceptionUtilities.Unreachable(); 1028throw ExceptionUtilities.Unreachable();
Symbols\Source\SynthesizedSourceOrdinaryMethodSymbol.cs (1)
75internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Source\ThisParameterSymbol.cs (1)
181internal override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable();
Symbols\Source\TypeParameterConstraintClause.cs (1)
114ExceptionUtilities.UnexpectedValue(constraints); // This call asserts.
Symbols\SubstitutedMethodSymbol.cs (3)
219internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 361throw ExceptionUtilities.Unreachable(); 364internal override bool IsNullableAnalysisEnabled() => throw ExceptionUtilities.Unreachable();
Symbols\SubstitutedNamedTypeSymbol.cs (7)
186throw ExceptionUtilities.Unreachable(); 389throw ExceptionUtilities.Unreachable(); 459throw ExceptionUtilities.Unreachable(); 464throw ExceptionUtilities.Unreachable(); 469throw ExceptionUtilities.Unreachable(); 474throw ExceptionUtilities.Unreachable(); 480internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Symbol.cs (4)
305throw ExceptionUtilities.UnexpectedValue(DeclaredAccessibility); 703throw ExceptionUtilities.UnexpectedValue(this.Kind); 1749throw ExceptionUtilities.UnexpectedValue(variable); 1752throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 734throw ExceptionUtilities.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
521throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
51throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
248static byte @throw(char c) => throw ExceptionUtilities.UnexpectedValue(c);
Symbols\Synthesized\GeneratedNames.cs (1)
482var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (5)
144=> throw ExceptionUtilities.Unreachable(); 218protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 220internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 230internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 232internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (6)
281var v => throw ExceptionUtilities.UnexpectedValue(v) 821=> throw ExceptionUtilities.Unreachable(); 900protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 902internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 912internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 914internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
132throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
70_ => throw ExceptionUtilities.Unreachable()
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
78throw ExceptionUtilities.Unreachable(); 164internal override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
63internal sealed override ExecutableCodeBinder? TryGetBodyBinder(BinderFactory? binderFactoryOpt = null, bool ignoreAccessibility = false) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
203_ => throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\Synthesized\RefKindVector.cs (2)
51var bits => throw ExceptionUtilities.UnexpectedValue(bits) 64_ => throw ExceptionUtilities.UnexpectedValue(value)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
179var binder = getAccessor.TryGetBodyBinder() ?? throw ExceptionUtilities.UnexpectedValue(getAccessor);
Symbols\Synthesized\SynthesizedContainer.cs (4)
72=> throw ExceptionUtilities.Unreachable(); 153=> throw ExceptionUtilities.Unreachable(); 198throw ExceptionUtilities.Unreachable(); 207internal 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 (3)
94=> throw ExceptionUtilities.Unreachable(); 147protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 204internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (4)
208internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 274throw ExceptionUtilities.Unreachable(); 284throw ExceptionUtilities.Unreachable(); 313protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (4)
138throw ExceptionUtilities.Unreachable(); 148internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 350throw ExceptionUtilities.Unreachable(); 355protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (3)
101=> throw ExceptionUtilities.Unreachable(); 126protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 139internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedImplementationMethod.cs (2)
261throw ExceptionUtilities.Unreachable(); 269protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (5)
69=> throw ExceptionUtilities.Unreachable(); 149protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw ExceptionUtilities.Unreachable(); 151internal override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable(); 161internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw ExceptionUtilities.Unreachable(); 163internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
119throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (2)
220throw ExceptionUtilities.Unreachable(); 279protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (4)
161get { throw ExceptionUtilities.Unreachable(); } 411internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 415throw ExceptionUtilities.Unreachable(); 420protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedMethodSymbol.cs (2)
75internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 79throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedParameterSymbol.cs (6)
92get { throw ExceptionUtilities.Unreachable(); } 97get { throw ExceptionUtilities.Unreachable(); } 102get { throw ExceptionUtilities.Unreachable(); } 107get { throw ExceptionUtilities.Unreachable(); } 112get { throw ExceptionUtilities.Unreachable(); } 227internal sealed override ScopedKind DeclaredScope => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (5)
62=> throw ExceptionUtilities.Unreachable(); 134throw ExceptionUtilities.Unreachable(); 139throw ExceptionUtilities.Unreachable(); 146throw ExceptionUtilities.Unreachable(); 157internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
353throw ExceptionUtilities.Unreachable();
Symbols\Synthesized\SynthesizedStaticConstructor.cs (3)
360throw ExceptionUtilities.Unreachable(); 370internal sealed override bool HasSpecialNameAttribute => throw ExceptionUtilities.Unreachable(); 434protected sealed override bool HasSetsRequiredMembersImpl => throw ExceptionUtilities.Unreachable();
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (5)
98get { throw ExceptionUtilities.Unreachable(); } 103get { throw ExceptionUtilities.Unreachable(); } 117throw ExceptionUtilities.Unreachable(); 122throw ExceptionUtilities.Unreachable(); 127throw ExceptionUtilities.Unreachable();
Symbols\Tuples\TupleTypeSymbol.cs (5)
49throw ExceptionUtilities.Unreachable(); 313throw ExceptionUtilities.Unreachable(); 341throw ExceptionUtilities.Unreachable(); 699throw ExceptionUtilities.UnexpectedValue(member.Kind); 1090throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\TypeSymbol.cs (10)
1594throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1975throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2038throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2465throw ExceptionUtilities.Unreachable(); 2482=> throw ExceptionUtilities.Unreachable(); 2486=> throw ExceptionUtilities.Unreachable(); 2490=> throw ExceptionUtilities.Unreachable(); 2494=> throw ExceptionUtilities.Unreachable(); 2498=> throw ExceptionUtilities.Unreachable(); 2502=> throw ExceptionUtilities.Unreachable();
Symbols\TypeSymbolExtensions.cs (3)
943throw ExceptionUtilities.UnexpectedValue(current.TypeKind); 1176throw ExceptionUtilities.UnexpectedValue(acc1); 1531throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
163throw ExceptionUtilities.UnexpectedValue(NullableAnnotation);
Symbols\UpdatedContainingSymbolLocal.cs (1)
108) => throw ExceptionUtilities.Unreachable();
Symbols\VarianceSafety.cs (3)
86throw ExceptionUtilities.UnexpectedValue(member.TypeKind); 412throw ExceptionUtilities.UnexpectedValue(typeParam.Variance); 461throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.Variance);
Syntax\CSharpLineDirectiveMap.cs (2)
220throw ExceptionUtilities.UnexpectedValue(entry.State); 226=> throw ExceptionUtilities.Unreachable();
Syntax\CSharpPragmaWarningStateMap.cs (1)
105var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\CSharpSyntaxNode.cs (1)
451throw ExceptionUtilities.Unreachable();
Syntax\CSharpSyntaxTree.cs (1)
285throw ExceptionUtilities.UnexpectedValue(directive.Kind());
Syntax\CSharpSyntaxTree.Dummy.cs (1)
61=> throw ExceptionUtilities.Unreachable();
Syntax\DirectiveTriviaSyntax.cs (1)
64throw ExceptionUtilities.UnexpectedValue(this.Kind());
Syntax\InternalSyntax\SyntaxToken.cs (2)
67throw ExceptionUtilities.Unreachable(); 477throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\SyntaxTrivia.cs (2)
43throw ExceptionUtilities.Unreachable(); 112throw ExceptionUtilities.Unreachable();
Syntax\InternalSyntax\TypeDeclarationSyntax.cs (2)
176throw ExceptionUtilities.Unreachable(); 181throw ExceptionUtilities.Unreachable();
Syntax\LambdaUtilities.cs (2)
121throw ExceptionUtilities.UnexpectedValue(newLambda.Kind()); 130_ => throw ExceptionUtilities.UnexpectedValue(nestedFunction),
Syntax\LookupPosition.cs (2)
368throw ExceptionUtilities.UnexpectedValue(statement.Kind()); 449throw ExceptionUtilities.UnexpectedValue(statement.Kind());
Syntax\NullableContextStateMap.cs (2)
159var kind => throw ExceptionUtilities.UnexpectedValue(kind), 167var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\SyntaxExtensions.cs (4)
54ExceptionUtilities.UnexpectedValue(node.Kind()); 152throw ExceptionUtilities.UnexpectedValue(parentKind); 173throw ExceptionUtilities.UnexpectedValue(parentName); 483throw ExceptionUtilities.UnexpectedValue(type.Kind());
Syntax\SyntaxFacts.cs (2)
101throw ExceptionUtilities.Unreachable(); 377throw ExceptionUtilities.UnexpectedValue(accessibility);
Syntax\SyntaxKindExtensions.cs (1)
49throw ExceptionUtilities.UnexpectedValue(kind);
Syntax\TypeDeclarationSyntax.cs (3)
63throw ExceptionUtilities.UnexpectedValue(kind); 81throw ExceptionUtilities.UnexpectedValue(kind); 134throw ExceptionUtilities.UnexpectedValue(kind);
Utilities\TypeSymbolExtensions.cs (2)
206throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 286throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
48_ => throw ExceptionUtilities.UnexpectedValue("random"),
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
73throw ExceptionUtilities.Unreachable();
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
88throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
49throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
85throw ExceptionUtilities.UnexpectedValue(relation); 125throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
48throw ExceptionUtilities.UnexpectedValue(relation);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
13434_ => throw ExceptionUtilities.UnexpectedValue(expectedDiagnosticSeverity) 13898throw ExceptionUtilities.UnexpectedValue(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27487throw ExceptionUtilities.UnexpectedValue(expectedValue); 27507throw ExceptionUtilities.UnexpectedValue(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
7044_ => throw ExceptionUtilities.Unreachable()
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Diagnostics\DiagnosticAnalyzerTests.cs (3)
377throw ExceptionUtilities.Unreachable(); 1061throw ExceptionUtilities.Unreachable(); 4239throw ExceptionUtilities.Unreachable();
Diagnostics\GetDiagnosticsTests.cs (3)
1146_ => throw ExceptionUtilities.UnexpectedValue(basePropertyDecl.Kind()), 1157_ => throw ExceptionUtilities.UnexpectedValue(baseMethodDecl.Kind()), 1535throw ExceptionUtilities.Unreachable();
OverloadResolutionPriorityTests.cs (3)
2721_ => throw ExceptionUtilities.Unreachable(), 2783_ => throw ExceptionUtilities.Unreachable(), 2844_ => throw ExceptionUtilities.Unreachable(),
PartialEventsAndConstructorsTests.cs (2)
1006_ => throw ExceptionUtilities.UnexpectedValue(access), 1174_ => throw ExceptionUtilities.UnexpectedValue(access),
RefReadonlyParameterTests.cs (2)
87throw ExceptionUtilities.UnexpectedValue(customModifiers); 7080_ => throw ExceptionUtilities.UnexpectedValue(modifier)
Semantics\CollectionExpressionTests.cs (1)
3039throw ExceptionUtilities.Unreachable();
Semantics\ExtensionOperatorsTests.cs (17)
11412public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 11940public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 16071public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 18727public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 18852public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C1 y) => throw null; 18971public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19032public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19080public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(T x, T y) => throw null; 19136public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19183public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19218public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 19370public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19409public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19448public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19492public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19534public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19578public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (6)
5996throw ExceptionUtilities.UnexpectedValue(refKind); 6790throw ExceptionUtilities.UnexpectedValue(refKind); 7529throw ExceptionUtilities.UnexpectedValue(refKind); 8508throw ExceptionUtilities.UnexpectedValue(refKind); 9733throw ExceptionUtilities.UnexpectedValue(refKind); 13643_ => throw ExceptionUtilities.Unreachable()
Semantics\PatternMatchingTestBase.cs (1)
466var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
12245default: throw ExceptionUtilities.UnexpectedValue(op);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\InterceptorsTests.cs (1)
7388throw ExceptionUtilities.Unreachable();
Semantics\InterpolationTests.cs (1)
4763_ => throw ExceptionUtilities.Unreachable()
Semantics\NativeIntegerTests.cs (2)
590throw ExceptionUtilities.UnexpectedValue(member.Kind); 624throw ExceptionUtilities.UnexpectedValue(nativeIntegerMember.Kind);
Semantics\OperatorTests.cs (2)
3255_ => throw ExceptionUtilities.UnexpectedValue(node.Text) 8793throw ExceptionUtilities.UnexpectedValue(i);
Semantics\RawInterpolationTests_Handler.cs (1)
3064_ => throw ExceptionUtilities.Unreachable()
Semantics\SemanticErrorTests.cs (2)
25161ParameterSymbol or TypeParameterSymbol => throw ExceptionUtilities.Unreachable(), 25230ParameterSymbol or TypeParameterSymbol => throw ExceptionUtilities.Unreachable(),
SourceGeneration\GeneratorDriverFuzzTests.cs (2)
343var num => throw ExceptionUtilities.UnexpectedValue(num) 410throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\CovariantReturnTests.cs (1)
507throw ExceptionUtilities.Unreachable();
Symbols\ExtendedPartialMethodsTests.cs (2)
2032_ => throw ExceptionUtilities.UnexpectedValue(access), 2184_ => throw ExceptionUtilities.UnexpectedValue(access),
Symbols\MockNamedTypeSymbol.cs (3)
206=> throw ExceptionUtilities.Unreachable(); 236throw ExceptionUtilities.Unreachable(); 334internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable();
Symbols\PartialPropertiesTests.cs (6)
91throw ExceptionUtilities.Unreachable(); 163throw ExceptionUtilities.Unreachable(); 366throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 403throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 2607_ => throw ExceptionUtilities.UnexpectedValue(access), 2755_ => throw ExceptionUtilities.UnexpectedValue(access),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91_ => throw ExceptionUtilities.UnexpectedValue(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
AttributeValidation.cs (1)
47throw ExceptionUtilities.UnexpectedValue(accessibility);
CompilationTestUtils.cs (1)
284throw ExceptionUtilities.UnexpectedValue(node);
Extensions.cs (3)
762throw ExceptionUtilities.UnexpectedValue(member.Kind); 829throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 855throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
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)
147throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 152throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 157throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
DkmUtilities.cs (2)
98throw ExceptionUtilities.Unreachable(); 321throw ExceptionUtilities.UnexpectedValue(accessibility);
EEMetadataReferenceResolver.cs (4)
47=> throw ExceptionUtilities.Unreachable(); 50=> throw ExceptionUtilities.Unreachable(); 53=> throw ExceptionUtilities.Unreachable(); 77throw ExceptionUtilities.UnexpectedValue(compareResult);
ExpressionCompiler.cs (4)
88throw ExceptionUtilities.Unreachable(); 154throw ExceptionUtilities.Unreachable(); 205throw ExceptionUtilities.Unreachable(); 247throw ExceptionUtilities.Unreachable();
FrameDecoder.cs (2)
61throw ExceptionUtilities.Unreachable(); 82throw ExceptionUtilities.Unreachable();
LanguageInstructionDecoder.cs (1)
65throw ExceptionUtilities.Unreachable();
MetadataContextId.cs (1)
36_ => throw ExceptionUtilities.UnexpectedValue(kind),
MetadataUtilities.cs (1)
300throw ExceptionUtilities.UnexpectedValue(compareResult);
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)
114throw ExceptionUtilities.UnexpectedValue(GetPrimitiveSpecialType(type));
Microsoft.CodeAnalysis.Test.Utilities (16)
Compilation\OperationTreeVerifier.cs (1)
1499throw ExceptionUtilities.Unreachable();
Diagnostics\CommonDiagnosticAnalyzers.cs (5)
438_ => throw ExceptionUtilities.UnexpectedValue(severity) 2694throw ExceptionUtilities.Unreachable(); 2817throw ExceptionUtilities.UnexpectedValue(_actionKind); 2964throw ExceptionUtilities.Unreachable(); 3218throw ExceptionUtilities.UnexpectedValue(_analysisKind);
Diagnostics\ReportDiagnosticExtensions.cs (1)
22_ => throw ExceptionUtilities.Unreachable(),
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (2)
304throw ExceptionUtilities.Unreachable(); 309=> throw ExceptionUtilities.Unreachable();
Metadata\ILBuilderVisualizer.cs (1)
500throw ExceptionUtilities.UnexpectedValue(opcode);
Metadata\MetadataReaderUtils.cs (2)
176throw ExceptionUtilities.UnexpectedValue(token.Kind); 229throw ExceptionUtilities.UnexpectedValue(token.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (4)
248throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 341throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 360throw ExceptionUtilities.Unreachable(); 396throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
Microsoft.CodeAnalysis.UnitTests (14)
AnalyzerAssemblyLoaderTests.cs (1)
1664_ => throw ExceptionUtilities.UnexpectedValue(kind)
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\List\SegmentedList.Generic.Tests.AddRange.cs (1)
76throw ExceptionUtilities.UnexpectedValue(method);
Collections\SegmentedArrayHelperTests.cs (3)
139_ => throw ExceptionUtilities.Unreachable(), 164_ => throw ExceptionUtilities.Unreachable(), 189_ => throw ExceptionUtilities.Unreachable(),
Collections\TestExtensionsMethods.nonnetstandard.cs (2)
38_ => throw ExceptionUtilities.UnexpectedValue(dictionary), 50_ => throw ExceptionUtilities.UnexpectedValue(dictionary),
InvokeUtil.cs (1)
62throw ExceptionUtilities.Unreachable();
Roslyn.Test.PdbUtilities (1)
Reader\MockSymUnmanagedReader.cs (1)
54throw ExceptionUtilities.Unreachable();