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