2042 references to ExceptionUtilities
BuildValidator (1)
CompilationDiff.cs (1)
180
return peReader.GetEmbeddedPdbMetadataReader() ?? throw
ExceptionUtilities
.Unreachable();
Microsoft.CodeAnalysis (691)
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)
829
get { throw
ExceptionUtilities
.Unreachable(); }
848
throw
ExceptionUtilities
.Unreachable();
869
get { throw
ExceptionUtilities
.Unreachable(); }
875
throw
ExceptionUtilities
.Unreachable();
881
throw
ExceptionUtilities
.Unreachable();
1051
get { throw
ExceptionUtilities
.Unreachable(); }
1091
throw
ExceptionUtilities
.Unreachable();
1097
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)
140
throw
ExceptionUtilities
.UnexpectedValue(tokenKind);
306
throw
ExceptionUtilities
.UnexpectedValue(tokenKind);
404
throw
ExceptionUtilities
.UnexpectedValue(lastChar);
Compilation.EmitStreamProvider.cs (1)
68
throw
ExceptionUtilities
.Unreachable();
Compilation\Compilation.cs (3)
2314
throw
ExceptionUtilities
.UnexpectedValue(platform);
2412
throw
ExceptionUtilities
.UnexpectedValue(outputKind);
2433
throw
ExceptionUtilities
.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
371
throw
ExceptionUtilities
.UnexpectedValue(m);
394
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);
82
throw
ExceptionUtilities
.UnexpectedValue(algorithmId);
126
throw
ExceptionUtilities
.UnexpectedValue(algorithmId);
288
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)
1586
throw
ExceptionUtilities
.Unreachable();
1645
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)
1187
throw
ExceptionUtilities
.UnexpectedValue(platformType);
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (28)
103
=> throw
ExceptionUtilities
.Unreachable();
106
=> throw
ExceptionUtilities
.Unreachable();
109
=> throw
ExceptionUtilities
.Unreachable();
112
=> throw
ExceptionUtilities
.Unreachable();
115
=> throw
ExceptionUtilities
.Unreachable();
118
=> throw
ExceptionUtilities
.Unreachable();
121
=> throw
ExceptionUtilities
.Unreachable();
124
=> throw
ExceptionUtilities
.Unreachable();
127
=> throw
ExceptionUtilities
.Unreachable();
130
=> throw
ExceptionUtilities
.Unreachable();
133
=> throw
ExceptionUtilities
.Unreachable();
136
=> throw
ExceptionUtilities
.Unreachable();
139
=> throw
ExceptionUtilities
.Unreachable();
142
=> throw
ExceptionUtilities
.Unreachable();
145
=> throw
ExceptionUtilities
.Unreachable();
148
=> throw
ExceptionUtilities
.Unreachable();
151
=> throw
ExceptionUtilities
.Unreachable();
154
=> throw
ExceptionUtilities
.Unreachable();
157
=> throw
ExceptionUtilities
.Unreachable();
160
=> throw
ExceptionUtilities
.Unreachable();
163
=> throw
ExceptionUtilities
.Unreachable();
166
=> throw
ExceptionUtilities
.Unreachable();
169
=> throw
ExceptionUtilities
.Unreachable();
172
=> throw
ExceptionUtilities
.Unreachable();
175
=> throw
ExceptionUtilities
.Unreachable();
178
=> throw
ExceptionUtilities
.Unreachable();
182
=> throw
ExceptionUtilities
.Unreachable();
186
=> throw
ExceptionUtilities
.Unreachable();
Emit\EditAndContinue\DeletedSourceEventDefinition.cs (8)
34
public ITypeDefinition ContainingTypeDefinition => throw
ExceptionUtilities
.Unreachable();
47
public IMethodReference Adder => throw
ExceptionUtilities
.Unreachable();
48
public IMethodReference? Caller => throw
ExceptionUtilities
.Unreachable();
49
public IMethodReference Remover => throw
ExceptionUtilities
.Unreachable();
52
=> throw
ExceptionUtilities
.Unreachable();
55
=> throw
ExceptionUtilities
.Unreachable();
60
throw
ExceptionUtilities
.Unreachable();
66
throw
ExceptionUtilities
.Unreachable();
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
86
=> throw
ExceptionUtilities
.Unreachable();
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (6)
32
=> throw
ExceptionUtilities
.Unreachable();
76
public ITypeDefinition ContainingTypeDefinition => throw
ExceptionUtilities
.Unreachable();
114
=> throw
ExceptionUtilities
.Unreachable();
133
=> throw
ExceptionUtilities
.Unreachable();
143
throw
ExceptionUtilities
.Unreachable();
149
throw
ExceptionUtilities
.Unreachable();
Emit\EditAndContinue\DeletedSourcePropertyDefinition.cs (7)
53
public ITypeDefinition ContainingTypeDefinition => throw
ExceptionUtilities
.Unreachable();
67
=> throw
ExceptionUtilities
.Unreachable();
70
=> throw
ExceptionUtilities
.Unreachable();
73
=> throw
ExceptionUtilities
.Unreachable();
79
=> throw
ExceptionUtilities
.Unreachable();
84
throw
ExceptionUtilities
.Unreachable();
90
throw
ExceptionUtilities
.Unreachable();
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (9)
60
=> throw
ExceptionUtilities
.Unreachable();
107
=> throw
ExceptionUtilities
.Unreachable();
110
=> throw
ExceptionUtilities
.Unreachable();
113
=> throw
ExceptionUtilities
.Unreachable();
116
=> throw
ExceptionUtilities
.Unreachable();
119
=> throw
ExceptionUtilities
.Unreachable();
122
=> throw
ExceptionUtilities
.Unreachable();
125
=> throw
ExceptionUtilities
.Unreachable();
128
=> throw
ExceptionUtilities
.Unreachable();
Emit\EditAndContinue\DeltaMetadataWriter.cs (4)
578
throw
ExceptionUtilities
.UnexpectedValue(deletedMember);
661
throw
ExceptionUtilities
.UnexpectedValue(change);
711
throw
ExceptionUtilities
.Unreachable();
1516
throw
ExceptionUtilities
.UnexpectedValue(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
213
throw
ExceptionUtilities
.UnexpectedValue(generatorChange);
279
throw
ExceptionUtilities
.UnexpectedValue(containerChange);
411
throw
ExceptionUtilities
.UnexpectedValue(edit.Kind);
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)
561
throw
ExceptionUtilities
.Unreachable();
729
throw
ExceptionUtilities
.Unreachable();
735
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 (329)
4056
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4071
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4087
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4111
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4126
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4142
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4175
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4193
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4212
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4269
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4293
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4318
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4357
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4383
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4410
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4461
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4491
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4522
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4572
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4585
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4599
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4619
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
4633
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
4658
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4671
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4685
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4716
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4732
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4749
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4785
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4806
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4828
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4863
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4879
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4896
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4920
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4933
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4947
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
4978
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
4994
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5011
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5025
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
5039
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
5068
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5086
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5105
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5123
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
5156
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5169
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5183
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5219
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5237
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5256
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5286
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5304
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5323
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5345
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
5364
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
5402
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5415
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5429
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5458
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5471
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5485
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5517
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5535
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5554
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5581
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5594
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5608
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5644
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5657
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5671
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5716
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5732
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5749
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5787
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5806
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5826
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5860
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5876
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5893
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5919
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5932
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5946
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
5979
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
5997
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6016
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6041
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6054
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6068
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6098
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6116
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6135
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6154
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
6183
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6196
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6210
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6235
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6248
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6262
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6302
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6318
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6335
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6377
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6393
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6410
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6436
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6449
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6463
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6495
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6511
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6528
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6558
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6574
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6591
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6608
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
6634
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6649
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6665
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6690
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6705
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6721
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6746
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6761
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6777
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6807
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6823
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6840
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6866
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6879
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6893
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6920
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6935
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6951
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
6982
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
6995
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7009
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7034
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7047
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7061
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7086
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7099
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7113
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7131
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
7150
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
7170
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
7195
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7208
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7222
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7252
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7268
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7285
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7321
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7334
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7348
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7373
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7386
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7400
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7426
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7442
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7459
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7484
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7497
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7511
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7528
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
7563
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7576
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7590
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7610
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7623
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7637
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7661
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7674
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7688
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7712
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7725
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7739
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7763
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7778
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7794
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7825
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7843
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7862
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7896
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7919
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7943
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
7977
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
7990
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8004
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8042
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8061
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8081
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8114
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8134
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8155
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8179
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
8209
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8225
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8242
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8271
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8287
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8304
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8330
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8343
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8357
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8381
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8394
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8408
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8437
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8450
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8464
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8498
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8517
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8537
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8572
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8585
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8599
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8621
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
8653
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8669
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8686
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8720
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8736
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8753
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8785
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8804
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8824
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8843
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
8869
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8882
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8896
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8918
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
8944
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
8957
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8971
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
8988
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
9007
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
9033
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9049
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9066
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9100
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9116
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9133
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9159
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9174
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9190
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9219
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9237
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9256
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9291
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9311
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9332
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9346
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
9378
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9396
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9415
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9451
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9470
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9490
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9519
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9535
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9552
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9582
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9598
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9615
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9646
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9662
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9679
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9704
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9717
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9731
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9750
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
9779
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9795
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9812
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9840
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9853
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9867
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9891
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9904
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9918
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9949
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
9965
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
9982
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10000
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
10026
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10039
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10053
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10085
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10101
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10118
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10152
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10168
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10185
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10214
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10230
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10247
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10272
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10285
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10299
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10319
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
10349
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10367
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10386
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10416
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10431
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10447
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10473
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10486
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10500
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10534
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10550
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10567
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10586
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
10610
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10623
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10637
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10667
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10683
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10700
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10732
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10752
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10773
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10802
_ => throw
ExceptionUtilities
.UnexpectedValue((slot, index)),
10815
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10829
throw
ExceptionUtilities
.UnexpectedValue((previousSlot, previousIndex));
10846
internal override IOperation GetCurrent(int slot, int index) => throw
ExceptionUtilities
.UnexpectedValue((slot, index));
10865
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)
276
throw
ExceptionUtilities
.UnexpectedValue(c);
373
throw
ExceptionUtilities
.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73
throw
ExceptionUtilities
.UnexpectedValue(typeCode);
135
throw
ExceptionUtilities
.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (8)
1311
_ => throw
ExceptionUtilities
.UnexpectedValue(kind)
1331
throw
ExceptionUtilities
.UnexpectedValue(attributeInfo.SignatureIndex);
1830
throw
ExceptionUtilities
.UnexpectedValue(attributeInfo.SignatureIndex);
1879
throw
ExceptionUtilities
.UnexpectedValue(attributeInfo.SignatureIndex);
1893
throw
ExceptionUtilities
.UnexpectedValue(attributeInfo.SignatureIndex);
1926
throw
ExceptionUtilities
.UnexpectedValue(attributeInfo.SignatureIndex);
1975
throw
ExceptionUtilities
.UnexpectedValue(info.SignatureIndex);
3368
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 (42)
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);
1313
throw
ExceptionUtilities
.Unreachable();
2283
throw
ExceptionUtilities
.UnexpectedValue(binOp.OperatorKind);
3826
throw
ExceptionUtilities
.Unreachable();
3851
throw
ExceptionUtilities
.UnexpectedValue(operation.Kind);
5236
throw
ExceptionUtilities
.Unreachable();
5639
throw
ExceptionUtilities
.UnexpectedValue(relationalValueClause.Relation);
5659
throw
ExceptionUtilities
.UnexpectedValue(caseClause.CaseKind);
5674
throw
ExceptionUtilities
.Unreachable();
5679
throw
ExceptionUtilities
.Unreachable();
5684
throw
ExceptionUtilities
.Unreachable();
5689
throw
ExceptionUtilities
.Unreachable();
5694
throw
ExceptionUtilities
.Unreachable();
5699
throw
ExceptionUtilities
.Unreachable();
5894
throw
ExceptionUtilities
.Unreachable();
5900
throw
ExceptionUtilities
.Unreachable();
5906
throw
ExceptionUtilities
.Unreachable();
5911
throw
ExceptionUtilities
.Unreachable();
5916
throw
ExceptionUtilities
.Unreachable();
5921
throw
ExceptionUtilities
.Unreachable();
5926
throw
ExceptionUtilities
.Unreachable();
6276
throw
ExceptionUtilities
.UnexpectedValue(originalTarget.Kind);
6348
throw
ExceptionUtilities
.UnexpectedValue(lhs.Kind);
6469
throw
ExceptionUtilities
.Unreachable();
6549
throw
ExceptionUtilities
.UnexpectedValue("Mixed argument operations and non-argument operations in ConstructArguments");
6601
throw
ExceptionUtilities
.Unreachable();
6938
throw
ExceptionUtilities
.UnexpectedValue(currentAddition.Left.Kind);
6950
throw
ExceptionUtilities
.UnexpectedValue(currentAddition.Left.Kind);
6980
throw
ExceptionUtilities
.Unreachable();
6985
throw
ExceptionUtilities
.Unreachable();
7027
throw
ExceptionUtilities
.UnexpectedValue(operation.PlaceholderKind);
7101
throw
ExceptionUtilities
.UnexpectedValue(element.Kind);
7115
throw
ExceptionUtilities
.Unreachable();
7120
throw
ExceptionUtilities
.Unreachable();
7573
throw
ExceptionUtilities
.Unreachable();
7935
throw
ExceptionUtilities
.Unreachable();
7940
throw
ExceptionUtilities
.Unreachable();
7945
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()
1598
throw
ExceptionUtilities
.Unreachable();
1689
_ => throw
ExceptionUtilities
.Unreachable()
2272
throw
ExceptionUtilities
.UnexpectedValue(exportedType);
2900
throw
ExceptionUtilities
.UnexpectedValue(typeRef);
3151
_ => throw
ExceptionUtilities
.UnexpectedValue(reference)
3331
throw
ExceptionUtilities
.UnexpectedValue(rawTokenEncoding);
3406
throw
ExceptionUtilities
.UnexpectedValue(operandType);
4040
throw
ExceptionUtilities
.UnexpectedValue(primitiveType);
4146
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)
1016
throw
ExceptionUtilities
.Unreachable();
1026
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)
47
_ => throw
ExceptionUtilities
.UnexpectedValue(algorithm),
66
_ => throw
ExceptionUtilities
.UnexpectedValue(algorithm)
Microsoft.CodeAnalysis.CSharp (1218)
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)
423
throw
ExceptionUtilities
.UnexpectedValue(topClause.Kind());
544
(LambdaSymbol lambdaSymbol, Binder lambdaBodyBinder, BindingDiagnosticBag diagnostics) => throw
ExceptionUtilities
.Unreachable()),
Binder\Binder.OperatorResolutionForReporting.cs (2)
215
throw
ExceptionUtilities
.UnexpectedValue(result);
310
throw
ExceptionUtilities
.UnexpectedValue(result);
Binder\Binder.QueryUnboundLambdaState.cs (1)
81
throw
ExceptionUtilities
.Unreachable();
Binder\Binder.ValueChecks.cs (18)
82
_ => throw
ExceptionUtilities
.UnexpectedValue(accessorKind),
385
_ => throw
ExceptionUtilities
.UnexpectedValue(EscapeLevel)
1141
throw
ExceptionUtilities
.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind);
1646
throw
ExceptionUtilities
.UnexpectedValue(fieldSymbol.RefKind);
1678
throw
ExceptionUtilities
.UnexpectedValue(fieldSymbol.RefKind);
1693
throw
ExceptionUtilities
.UnexpectedValue(fieldSymbol.RefKind);
3422
internal override ScopedKind DeclaredScope => throw
ExceptionUtilities
.Unreachable();
3524
throw
ExceptionUtilities
.UnexpectedValue(kind);
3552
throw
ExceptionUtilities
.UnexpectedValue(kind);
3596
throw
ExceptionUtilities
.UnexpectedValue(kind);
3890
throw
ExceptionUtilities
.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4187
throw
ExceptionUtilities
.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4524
throw
ExceptionUtilities
.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4834
throw
ExceptionUtilities
.UnexpectedValue(collectionTypeKind); // ref struct collection type with unexpected type kind
5226
throw
ExceptionUtilities
.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
5699
throw
ExceptionUtilities
.Unreachable();
5868
throw
ExceptionUtilities
.UnexpectedValue(expression.Kind);
5911
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 (27)
824
throw
ExceptionUtilities
.UnexpectedValue(v);
961
_ => throw
ExceptionUtilities
.UnexpectedValue(collectionTypeKind),
1059
throw
ExceptionUtilities
.UnexpectedValue(@this._targetType);
1690
throw
ExceptionUtilities
.UnexpectedValue(targetType);
2144
throw
ExceptionUtilities
.Unreachable();
2167
throw
ExceptionUtilities
.UnexpectedValue(element);
2183
throw
ExceptionUtilities
.UnexpectedValue(element);
2735
_ => throw
ExceptionUtilities
.UnexpectedValue(source),
2918
throw
ExceptionUtilities
.UnexpectedValue(conversion.Kind);
3331
_ => throw
ExceptionUtilities
.UnexpectedValue(delegateType),
3471
_ => throw
ExceptionUtilities
.UnexpectedValue(type)
3479
_ => throw
ExceptionUtilities
.UnexpectedValue(type)
3827
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3847
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3867
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3887
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3907
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3926
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3946
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3966
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
3986
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
4006
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
4026
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
4050
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
4070
default: throw
ExceptionUtilities
.UnexpectedValue(destinationType);
4073
throw
ExceptionUtilities
.UnexpectedValue(value.Discriminator);
4176
default: throw
ExceptionUtilities
.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
42
throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind());
134
throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind());
800
throw
ExceptionUtilities
.UnexpectedValue(type.TypeKind);
1022
throw
ExceptionUtilities
.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (3)
385
throw
ExceptionUtilities
.UnexpectedValue(expression.Kind);
850
throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
928
throw
ExceptionUtilities
.Unreachable();
Binder\Binder_Expressions.cs (15)
1030
throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
1615
throw
ExceptionUtilities
.UnexpectedValue(managedKind);
2217
_ => throw
ExceptionUtilities
.UnexpectedValue(alias.Target.Kind),
2226
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
2571
throw
ExceptionUtilities
.UnexpectedValue(symbol);
3261
throw
ExceptionUtilities
.UnexpectedValue(designation.Kind());
3327
throw
ExceptionUtilities
.Unreachable();
3940
throw
ExceptionUtilities
.UnexpectedValue(argumentIndex);
5328
throw
ExceptionUtilities
.UnexpectedValue(type.TypeKind);
5375
_ => throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind())
5806
throw
ExceptionUtilities
.Unreachable();
7201
throw
ExceptionUtilities
.UnexpectedValue(classCreation.Kind);
8295
throw
ExceptionUtilities
.UnexpectedValue(extensionMember.Kind);
8749
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
9607
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)
1120
throw
ExceptionUtilities
.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (4)
258
throw
ExceptionUtilities
.UnexpectedValue(type.TypeKind);
1420
return lastBinder.AssociatedFileIdentifier ?? throw
ExceptionUtilities
.Unreachable();
1424
throw
ExceptionUtilities
.Unreachable();
1614
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
Binder\Binder_Operators.cs (7)
1269
_ => throw
ExceptionUtilities
.UnexpectedValue(current.Right.Kind)
2652
throw
ExceptionUtilities
.UnexpectedValue(kind);
2673
throw
ExceptionUtilities
.UnexpectedValue(underlyingType);
2736
throw
ExceptionUtilities
.UnexpectedValue(newKind.Operator());
3227
default: throw
ExceptionUtilities
.UnexpectedValue(kind);
4623
default: throw
ExceptionUtilities
.UnexpectedValue(kind);
5287
throw
ExceptionUtilities
.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (4)
79
throw
ExceptionUtilities
.Unreachable();
197
_ => throw
ExceptionUtilities
.UnexpectedValue(node.Kind()),
934
throw
ExceptionUtilities
.UnexpectedValue(designation.Kind());
1469
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());
1709
throw
ExceptionUtilities
.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
1761
_ => throw
ExceptionUtilities
.UnexpectedValue(e.Kind)
1782
throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind());
3627
_ => throw
ExceptionUtilities
.UnexpectedValue(expressionBody.Parent.Kind()),
3711
throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind());
3968
throw
ExceptionUtilities
.Unreachable();
Binder\Binder_Symbols.cs (3)
167
throw
ExceptionUtilities
.UnexpectedValue(keyword);
742
throw
ExceptionUtilities
.UnexpectedValue(typesArray.Length);
1483
throw
ExceptionUtilities
.UnexpectedValue(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
116
throw
ExceptionUtilities
.UnexpectedValue(comparison);
156
throw
ExceptionUtilities
.UnexpectedValue(binaryOperator);
Binder\Binder_Unsafe.cs (1)
34
_ => throw
ExceptionUtilities
.UnexpectedValue(callerUnsafeMode),
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311
throw
ExceptionUtilities
.UnexpectedValue(propertyOrEventDecl.Kind());
477
throw
ExceptionUtilities
.UnexpectedValue(baseMethodDeclarationSyntax.Kind());
502
throw
ExceptionUtilities
.UnexpectedValue(basePropertyDeclarationSyntax.Kind());
1190
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 (20)
290
throw
ExceptionUtilities
.UnexpectedValue(toAssemble);
294
throw
ExceptionUtilities
.UnexpectedValue(current);
303
throw
ExceptionUtilities
.Unreachable();
360
throw
ExceptionUtilities
.UnexpectedValue(pattern.Kind);
1004
throw
ExceptionUtilities
.UnexpectedValue(n.Kind);
1272
throw
ExceptionUtilities
.UnexpectedValue(n?.Kind);
1356
throw
ExceptionUtilities
.UnexpectedValue(test);
1653
throw
ExceptionUtilities
.Unreachable();
1778
throw
ExceptionUtilities
.Unreachable();
2295
throw
ExceptionUtilities
.Unreachable();
2344
public virtual BoundDagTest ComputeSelectedTest() => throw
ExceptionUtilities
.Unreachable();
2723
throw
ExceptionUtilities
.UnexpectedValue(e);
2777
throw
ExceptionUtilities
.Unreachable();
2963
throw
ExceptionUtilities
.UnexpectedValue(test);
2983
throw
ExceptionUtilities
.UnexpectedValue(test);
3001
_ => throw
ExceptionUtilities
.UnexpectedValue(negated),
3105
throw
ExceptionUtilities
.Unreachable();
3223
throw
ExceptionUtilities
.Unreachable();
3400
throw
ExceptionUtilities
.Unreachable();
3457
throw
ExceptionUtilities
.Unreachable();
Binder\DecisionDagBuilder_CheckOrReachability.cs (4)
743
throw
ExceptionUtilities
.UnexpectedValue(operandOrOperation);
1206
throw
ExceptionUtilities
.Unreachable();
1211
throw
ExceptionUtilities
.Unreachable();
1394
throw
ExceptionUtilities
.Unreachable();
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());
438
throw
ExceptionUtilities
.UnexpectedValue(designation.Kind());
524
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());
1652
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();
200
throw
ExceptionUtilities
.UnexpectedValue(currentNode.Kind);
281
throw
ExceptionUtilities
.Unreachable();
484
throw
ExceptionUtilities
.UnexpectedValue(v);
737
throw
ExceptionUtilities
.Unreachable();
Binder\RefSafetyAnalysis.cs (5)
366
throw
ExceptionUtilities
.Unreachable();
837
throw
ExceptionUtilities
.Unreachable();
850
throw
ExceptionUtilities
.Unreachable();
915
throw
ExceptionUtilities
.UnexpectedValue(placeholder.ArgumentIndex + extensionBlockFormOffset);
1246
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)
46
throw
ExceptionUtilities
.Unreachable();
52
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)
1089
_ => throw
ExceptionUtilities
.UnexpectedValue(delegateOrFunctionPointerType)
1470
_ => throw
ExceptionUtilities
.UnexpectedValue(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1473
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
3433
throw
ExceptionUtilities
.Unreachable();
4409
throw
ExceptionUtilities
.UnexpectedValue(member);
4790
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
475
throw
ExceptionUtilities
.UnexpectedValue(result.Result.Kind);
1568
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)
350
throw
ExceptionUtilities
.Unreachable();
360
throw
ExceptionUtilities
.Unreachable();
Binder\SwitchBinder_Patterns.cs (2)
130
throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind());
293
throw
ExceptionUtilities
.UnexpectedValue(node);
Binder\UsingStatementBinder.cs (2)
326
throw
ExceptionUtilities
.Unreachable();
331
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)
73
throw
ExceptionUtilities
.UnexpectedValue(_crefSyntax.Kind());
100
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\BoundConversion.cs (1)
145
ExceptionUtilities
.UnexpectedValue(InConversionGroupFlags);
BoundTree\BoundDagEvaluation.cs (3)
61
_ => throw
ExceptionUtilities
.UnexpectedValue(this.Kind)
298
throw
ExceptionUtilities
.Unreachable();
328
throw
ExceptionUtilities
.Unreachable();
BoundTree\BoundDagTest.cs (1)
41
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 (6)
162
public sealed override bool IsEquivalentToThisReference => throw
ExceptionUtilities
.Unreachable();
167
public sealed override bool IsEquivalentToThisReference => throw
ExceptionUtilities
.Unreachable();
187
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();
227
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)
380
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 (6)
45
throw
ExceptionUtilities
.UnexpectedValue(conversion.ConversionKind);
134
throw
ExceptionUtilities
.UnexpectedValue(conversion.ConversionKind);
176
throw
ExceptionUtilities
.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller.
180
throw
ExceptionUtilities
.UnexpectedValue(conversion.ConversionKind);
207
ExceptionUtilities
.UnexpectedValue(conversionKind);
363
throw
ExceptionUtilities
.Unreachable();
CodeGen\EmitExpression.cs (9)
174
throw
ExceptionUtilities
.UnexpectedValue(expression.Kind);
365
throw
ExceptionUtilities
.UnexpectedValue(expression.Kind);
743
throw
ExceptionUtilities
.UnexpectedValue(refKind);
1122
throw
ExceptionUtilities
.Unreachable();
1687
throw
ExceptionUtilities
.Unreachable();
2997
throw
ExceptionUtilities
.UnexpectedValue(assignmentTarget.Kind);
3018
throw
ExceptionUtilities
.UnexpectedValue(assignmentTarget.Kind);
3205
throw
ExceptionUtilities
.UnexpectedValue(expression.Kind);
4157
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();
1205
throw
ExceptionUtilities
.UnexpectedValue(exceptionSource.Kind);
2024
throw
ExceptionUtilities
.Unreachable();
CodeGen\Optimizer.cs (4)
492
throw
ExceptionUtilities
.UnexpectedValue(context);
536
throw
ExceptionUtilities
.Unreachable();
1102
throw
ExceptionUtilities
.UnexpectedValue(lhs.Kind);
2282
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)
3796
throw
ExceptionUtilities
.UnexpectedValue(containingMember.Kind);
4024
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();
2403
throw
ExceptionUtilities
.Unreachable();
2408
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);
517
throw
ExceptionUtilities
.Unreachable();
522
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();
567
throw
ExceptionUtilities
.Unreachable();
572
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());
2492
ExceptionUtilities
.UnexpectedValue(declaredSymbol.Kind);
2530
ExceptionUtilities
.UnexpectedValue(declaredSymbol.Kind);
2557
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)
1319
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();
905
throw
ExceptionUtilities
.Unreachable();
910
throw
ExceptionUtilities
.Unreachable();
915
throw
ExceptionUtilities
.Unreachable();
920
throw
ExceptionUtilities
.Unreachable();
2040
throw
ExceptionUtilities
.UnexpectedValue(methodBody.Kind);
2172
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)
150
throw
ExceptionUtilities
.Unreachable();
282
throw
ExceptionUtilities
.UnexpectedValue(otherContainer.Kind);
378
throw
ExceptionUtilities
.UnexpectedValue(otherContainer.Kind);
385
throw
ExceptionUtilities
.Unreachable();
460
_ => throw
ExceptionUtilities
.UnexpectedValue(otherContainer.Kind),
787
throw
ExceptionUtilities
.UnexpectedValue(type.Kind);
865
throw
ExceptionUtilities
.Unreachable();
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
288
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)
729
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 (3)
223
throw
ExceptionUtilities
.Unreachable();
800
throw
ExceptionUtilities
.Unreachable();
1079
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)
743
=> throw
ExceptionUtilities
.Unreachable();
Emitter\Model\PEModuleBuilder.cs (7)
250
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
292
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
371
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
437
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
444
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
918
throw
ExceptionUtilities
.UnexpectedValue(type);
1316
throw
ExceptionUtilities
.UnexpectedValue(typeSymbol.Kind);
Emitter\Model\PENetModuleBuilder.cs (3)
31
throw
ExceptionUtilities
.Unreachable();
36
throw
ExceptionUtilities
.Unreachable();
49
=> throw
ExceptionUtilities
.Unreachable();
Emitter\Model\PropertySymbolAdapter.cs (1)
349
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)
571
throw
ExceptionUtilities
.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
730
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();
1567
throw
ExceptionUtilities
.UnexpectedValue(refKind);
2183
throw
ExceptionUtilities
.Unreachable();
2477
throw
ExceptionUtilities
.UnexpectedValue(binary.Kind);
2499
throw
ExceptionUtilities
.UnexpectedValue(binary.Kind);
3490
throw
ExceptionUtilities
.Unreachable();
3718
throw
ExceptionUtilities
.Unreachable();
3723
throw
ExceptionUtilities
.Unreachable();
FlowAnalysis\DefiniteAssignment.cs (1)
2082
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)
608
throw
ExceptionUtilities
.UnexpectedValue(placeholder.Kind);
978
=> throw
ExceptionUtilities
.Unreachable(),
2058
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
3536
throw
ExceptionUtilities
.Unreachable();
4449
ExceptionUtilities
.UnexpectedValue(node.Kind);
4729
throw
ExceptionUtilities
.Unreachable();
5010
_ => throw
ExceptionUtilities
.UnexpectedValue(type.TypeKind)
5087
_ => throw
ExceptionUtilities
.UnexpectedValue(type.TypeKind)
6116
_ => throw
ExceptionUtilities
.UnexpectedValue(node.OperatorResultKind),
7395
throw
ExceptionUtilities
.Unreachable();
7534
throw
ExceptionUtilities
.UnexpectedValue(member);
8040
throw
ExceptionUtilities
.UnexpectedValue(refKind);
8132
throw
ExceptionUtilities
.UnexpectedValue(refKind);
8284
throw
ExceptionUtilities
.UnexpectedValue(refKind);
11248
throw
ExceptionUtilities
.Unreachable();
12106
_ => throw
ExceptionUtilities
.UnexpectedValue(node.Syntax)
12200
throw
ExceptionUtilities
.Unreachable();
12428
throw
ExceptionUtilities
.UnexpectedValue(binary.Kind);
12443
throw
ExceptionUtilities
.UnexpectedValue(binary.Kind);
12560
throw
ExceptionUtilities
.Unreachable();
12886
throw
ExceptionUtilities
.Unreachable();
13625
_ => 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 (8)
244
throw
ExceptionUtilities
.UnexpectedValue(pattern);
438
(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw
ExceptionUtilities
.Unreachable();
530
throw
ExceptionUtilities
.UnexpectedValue(p.Evaluation.Kind);
607
throw
ExceptionUtilities
.UnexpectedValue(test.Kind);
666
throw
ExceptionUtilities
.UnexpectedValue(dagNode.Kind);
686
(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw
ExceptionUtilities
.Unreachable();
819
throw
ExceptionUtilities
.UnexpectedValue(evaluation.Kind);
958
_ => throw
ExceptionUtilities
.UnexpectedValue(e.Kind)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
159
throw
ExceptionUtilities
.UnexpectedValue(pattern.Kind);
LanguageVersion.cs (2)
360
throw
ExceptionUtilities
.UnexpectedValue(version);
443
throw
ExceptionUtilities
.UnexpectedValue(version);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
583
throw
ExceptionUtilities
.Unreachable();
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336
throw
ExceptionUtilities
.UnexpectedValue(method);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
335
throw
ExceptionUtilities
.Unreachable();
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
295
throw
ExceptionUtilities
.Unreachable();
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (3)
89
throw
ExceptionUtilities
.UnexpectedValue(local);
220
throw
ExceptionUtilities
.Unreachable();
275
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);
1795
throw
ExceptionUtilities
.Unreachable();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
158
throw
ExceptionUtilities
.UnexpectedValue(stmt.Kind);
256
throw
ExceptionUtilities
.UnexpectedValue(node.Kind);
485
throw
ExceptionUtilities
.UnexpectedValue(opKind.Operator());
807
throw
ExceptionUtilities
.UnexpectedValue(BoundKind.MethodGroup);
823
throw
ExceptionUtilities
.UnexpectedValue(node.Argument);
952
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
979
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
1032
throw
ExceptionUtilities
.UnexpectedValue(elementKind);
1087
throw
ExceptionUtilities
.UnexpectedValue(initializerKind); // no other options at the top level of an initializer
1211
throw
ExceptionUtilities
.UnexpectedValue(op);
1231
throw
ExceptionUtilities
.UnexpectedValue(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107
throw
ExceptionUtilities
.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
76
throw
ExceptionUtilities
.UnexpectedValue(closureKind);
243
throw
ExceptionUtilities
.Unreachable();
Lowering\ExtensionMethodBodyRewriter.cs (1)
84
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)
397
throw
ExceptionUtilities
.UnexpectedValue(original.Left);
499
_ => 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)
461
throw
ExceptionUtilities
.Unreachable();
466
throw
ExceptionUtilities
.Unreachable();
568
throw
ExceptionUtilities
.Unreachable();
574
throw
ExceptionUtilities
.Unreachable();
1128
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);
811
throw
ExceptionUtilities
.UnexpectedValue(input.Type);
826
_ => throw
ExceptionUtilities
.UnexpectedValue(input.Type.SpecialType)
865
_ => throw
ExceptionUtilities
.UnexpectedValue(stringPatternInput),
878
_ => throw
ExceptionUtilities
.UnexpectedValue(stringPatternInput),
937
_ => throw
ExceptionUtilities
.UnexpectedValue(stringPatternInput),
949
_ => throw
ExceptionUtilities
.UnexpectedValue(stringPatternInput),
964
_ => throw
ExceptionUtilities
.UnexpectedValue(stringPatternInput),
972
_ => throw
ExceptionUtilities
.UnexpectedValue(stringPatternInput),
1241
throw
ExceptionUtilities
.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
312
throw
ExceptionUtilities
.UnexpectedValue(evaluation);
372
throw
ExceptionUtilities
.UnexpectedValue(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57
throw
ExceptionUtilities
.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
141
throw
ExceptionUtilities
.Unreachable();
187
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);
2078
throw
ExceptionUtilities
.UnexpectedValue(operatorKind);
2384
throw
ExceptionUtilities
.UnexpectedValue(numericSpecialType);
2451
throw
ExceptionUtilities
.UnexpectedValue(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (4)
159
throw
ExceptionUtilities
.Unreachable();
891
var u => throw
ExceptionUtilities
.UnexpectedValue(u.Kind)
912
throw
ExceptionUtilities
.UnexpectedValue(argIndex);
1393
throw
ExceptionUtilities
.Unreachable();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (6)
21
throw
ExceptionUtilities
.Unreachable();
26
throw
ExceptionUtilities
.Unreachable();
98
throw
ExceptionUtilities
.UnexpectedValue(collectionTypeKind);
476
var e => throw
ExceptionUtilities
.UnexpectedValue(e)
536
var v => throw
ExceptionUtilities
.UnexpectedValue(v)
834
throw
ExceptionUtilities
.UnexpectedValue(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
551
throw
ExceptionUtilities
.UnexpectedValue(indexerAccess.Argument.Type);
872
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);
630
throw
ExceptionUtilities
.Unreachable();
659
throw
ExceptionUtilities
.Unreachable();
671
throw
ExceptionUtilities
.Unreachable();
692
throw
ExceptionUtilities
.Unreachable();
710
throw
ExceptionUtilities
.Unreachable();
718
throw
ExceptionUtilities
.Unreachable();
1666
throw
ExceptionUtilities
.Unreachable();
1689
throw
ExceptionUtilities
.UnexpectedValue(typeTo.SpecialType);
1709
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)
153
_ => throw
ExceptionUtilities
.UnexpectedValue(oldNode)
439
throw
ExceptionUtilities
.Unreachable();
444
throw
ExceptionUtilities
.Unreachable();
449
throw
ExceptionUtilities
.Unreachable();
454
throw
ExceptionUtilities
.Unreachable();
597
throw
ExceptionUtilities
.UnexpectedValue(strategy);
727
throw
ExceptionUtilities
.UnexpectedValue(strategy);
952
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);
648
throw
ExceptionUtilities
.Unreachable();
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
84
throw
ExceptionUtilities
.UnexpectedValue(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
267
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 (7)
71
throw
ExceptionUtilities
.Unreachable();
76
throw
ExceptionUtilities
.Unreachable();
81
throw
ExceptionUtilities
.Unreachable();
86
throw
ExceptionUtilities
.Unreachable();
245
_ => throw
ExceptionUtilities
.UnexpectedValue(proxy)
275
throw
ExceptionUtilities
.Unreachable();
282
throw
ExceptionUtilities
.Unreachable();
Lowering\SpillSequenceSpiller.cs (2)
988
throw
ExceptionUtilities
.Unreachable();
1215
throw
ExceptionUtilities
.Unreachable();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
187
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
602
throw
ExceptionUtilities
.Unreachable(); // for statements have been lowered away by now
607
throw
ExceptionUtilities
.Unreachable(); // using statements have been lowered away by now
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
299
throw
ExceptionUtilities
.UnexpectedValue(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
810
throw
ExceptionUtilities
.UnexpectedValue(input.Type);
1686
throw
ExceptionUtilities
.UnexpectedValue(refKind);
Operations\CSharpOperationFactory.cs (16)
340
throw
ExceptionUtilities
.UnexpectedValue(boundNode.Kind);
423
throw
ExceptionUtilities
.UnexpectedValue(declaration.Kind);
555
throw
ExceptionUtilities
.UnexpectedValue(declaration.Kind);
615
throw
ExceptionUtilities
.UnexpectedValue(boundNode.Kind);
814
throw
ExceptionUtilities
.UnexpectedValue(indexer.Kind);
830
throw
ExceptionUtilities
.UnexpectedValue(indexer.Kind);
917
throw
ExceptionUtilities
.UnexpectedValue(memberSymbol.Kind);
1264
throw
ExceptionUtilities
.UnexpectedValue(expr.CollectionTypeKind);
1525
{ Kind: var kind } => throw
ExceptionUtilities
.UnexpectedValue(kind)
2288
{ Kind: var kind } => throw
ExceptionUtilities
.UnexpectedValue(kind)
2381
throw
ExceptionUtilities
.UnexpectedValue(part.Kind);
2397
_ => throw
ExceptionUtilities
.UnexpectedValue(value.Kind),
2494
_ => throw
ExceptionUtilities
.UnexpectedValue(part.Kind)
2502
_ => throw
ExceptionUtilities
.UnexpectedValue(methodName)
2517
throw
ExceptionUtilities
.UnexpectedValue(current.Kind);
2540
_ => 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)
1723
throw
ExceptionUtilities
.UnexpectedValue(this.CurrentToken.Kind);
1997
throw
ExceptionUtilities
.UnexpectedValue(keyword.Kind);
7061
throw
ExceptionUtilities
.Unreachable();
7577
throw
ExceptionUtilities
.UnexpectedValue(mode);
9737
throw
ExceptionUtilities
.UnexpectedValue(decl.designation.Kind);
11298
throw
ExceptionUtilities
.UnexpectedValue(op);
11579
throw
ExceptionUtilities
.Unreachable();
11884
_ => throw
ExceptionUtilities
.UnexpectedValue(node),
12952
throw
ExceptionUtilities
.UnexpectedValue(type);
Parser\LanguageParser_InterpolatedString.cs (2)
185
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
357
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
Parser\Lexer.cs (2)
288
throw
ExceptionUtilities
.UnexpectedValue(ModeOf(_mode));
371
throw
ExceptionUtilities
.UnexpectedValue(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
88
throw
ExceptionUtilities
.UnexpectedValue(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
89
throw
ExceptionUtilities
.UnexpectedValue(node.KindText);
123
_ => throw
ExceptionUtilities
.UnexpectedValue(name.KindText),
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
464
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)
755
throw
ExceptionUtilities
.Unreachable();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (6)
37
=> throw
ExceptionUtilities
.Unreachable();
41
throw
ExceptionUtilities
.Unreachable();
168
throw
ExceptionUtilities
.Unreachable();
242
get { throw
ExceptionUtilities
.Unreachable(); }
252
throw
ExceptionUtilities
.Unreachable();
275
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 (3)
56
=> throw
ExceptionUtilities
.Unreachable();
311
throw
ExceptionUtilities
.Unreachable();
324
internal sealed override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
Symbols\AssemblySymbol.cs (3)
395
throw
ExceptionUtilities
.Unreachable();
406
throw
ExceptionUtilities
.Unreachable();
415
throw
ExceptionUtilities
.Unreachable();
Symbols\BaseTypeAnalysis.cs (1)
195
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
291
throw
ExceptionUtilities
.UnexpectedValue(descriptor.Flags);
359
throw
ExceptionUtilities
.UnexpectedValue(targetSymbolKind);
691
throw
ExceptionUtilities
.UnexpectedValue(attribute);
Symbols\ConstraintsHelper.cs (4)
287
throw
ExceptionUtilities
.UnexpectedValue(constraintType.TypeKind);
1135
throw
ExceptionUtilities
.UnexpectedValue(error);
1506
throw
ExceptionUtilities
.UnexpectedValue(typeArgument.TypeKind);
1649
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 (5)
173
throw
ExceptionUtilities
.Unreachable();
529
throw
ExceptionUtilities
.Unreachable();
549
get { throw
ExceptionUtilities
.Unreachable(); }
552
internal override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
749
=> throw
ExceptionUtilities
.Unreachable();
Symbols\ExtendedErrorTypeSymbol.cs (1)
96
throw
ExceptionUtilities
.Unreachable();
Symbols\Extensions\ReceiverParameterSymbol.cs (1)
44
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (1)
43
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Extensions\RewrittenMethodSymbol.cs (3)
72
internal sealed override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
79
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
128
=> 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)
112
public override ImmutableArray<Location> Locations => throw
ExceptionUtilities
.Unreachable();
114
public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => throw
ExceptionUtilities
.Unreachable();
116
public override Accessibility DeclaredAccessibility => throw
ExceptionUtilities
.Unreachable();
120
public override bool IsAbstract => throw
ExceptionUtilities
.Unreachable();
122
public override bool IsSealed => throw
ExceptionUtilities
.Unreachable();
126
internal override bool IsRecord => throw
ExceptionUtilities
.Unreachable();
128
internal override bool IsRecordStruct => throw
ExceptionUtilities
.Unreachable();
130
internal override ObsoleteAttributeData ObsoleteAttributeData => throw
ExceptionUtilities
.Unreachable();
132
public override void Accept(CSharpSymbolVisitor visitor) => throw
ExceptionUtilities
.Unreachable();
134
public override TResult Accept<TResult>(CSharpSymbolVisitor<TResult> visitor) => throw
ExceptionUtilities
.Unreachable();
136
public override ImmutableArray<Symbol> GetMembers() => throw
ExceptionUtilities
.Unreachable();
138
public override ImmutableArray<Symbol> GetMembers(string name) => throw
ExceptionUtilities
.Unreachable();
140
public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() => throw
ExceptionUtilities
.Unreachable();
142
public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(ReadOnlyMemory<char> name) => throw
ExceptionUtilities
.Unreachable();
144
protected override ISymbol CreateISymbol() => throw
ExceptionUtilities
.Unreachable();
146
protected override ITypeSymbol CreateITypeSymbol(CodeAnalysis.NullableAnnotation nullableAnnotation) => throw
ExceptionUtilities
.Unreachable();
148
internal override TResult Accept<TArgument, TResult>(CSharpSymbolVisitor<TArgument, TResult> visitor, TArgument a) => throw
ExceptionUtilities
.Unreachable();
150
internal override void AddNullableTransforms(ArrayBuilder<byte> transforms) => throw
ExceptionUtilities
.Unreachable();
152
internal override bool ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position, out TypeSymbol result) => throw
ExceptionUtilities
.Unreachable();
154
internal override ManagedKind GetManagedKind(ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) => throw
ExceptionUtilities
.Unreachable();
156
internal override bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) => throw
ExceptionUtilities
.Unreachable();
197
internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => throw
ExceptionUtilities
.Unreachable();
Symbols\MemberSignatureComparer.cs (1)
850
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);
148
throw
ExceptionUtilities
.UnexpectedValue(member);
178
throw
ExceptionUtilities
.UnexpectedValue(member);
242
throw
ExceptionUtilities
.UnexpectedValue(member);
308
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
334
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
350
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
482
throw
ExceptionUtilities
.UnexpectedValue(m.Kind);
528
throw
ExceptionUtilities
.UnexpectedValue(s.Kind);
582
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
600
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
869
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
899
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)
507
throw
ExceptionUtilities
.Unreachable();
1117
throw
ExceptionUtilities
.Unreachable();
1187
throw
ExceptionUtilities
.UnexpectedValue(kind);
1676
throw
ExceptionUtilities
.Unreachable();
1733
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
1767
throw
ExceptionUtilities
.Unreachable();
1772
throw
ExceptionUtilities
.Unreachable();
1777
get { throw
ExceptionUtilities
.Unreachable(); }
1789
internal sealed override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
Symbols\Metadata\PE\PEModuleSymbol.cs (3)
171
throw
ExceptionUtilities
.Unreachable();
579
throw
ExceptionUtilities
.Unreachable();
708
throw
ExceptionUtilities
.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (11)
356
throw
ExceptionUtilities
.Unreachable();
474
throw
ExceptionUtilities
.Unreachable();
902
throw
ExceptionUtilities
.UnexpectedValue(_flags & TypeAttributes.VisibilityMask);
1020
throw
ExceptionUtilities
.Unreachable();
1413
throw
ExceptionUtilities
.Unreachable();
1995
get { throw
ExceptionUtilities
.Unreachable(); }
2736
throw
ExceptionUtilities
.Unreachable();
2782
throw
ExceptionUtilities
.Unreachable();
3000
=> throw
ExceptionUtilities
.Unreachable();
3089
=> throw
ExceptionUtilities
.Unreachable();
3133
internal sealed override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
Symbols\Metadata\PE\PEParameterSymbol.cs (3)
969
internal sealed override bool HasEnumeratorCancellationAttribute => throw
ExceptionUtilities
.Unreachable();
1083
internal sealed override ScopedKind DeclaredScope => throw
ExceptionUtilities
.Unreachable();
1268
_ => 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)
290
throw
ExceptionUtilities
.Unreachable();
628
throw
ExceptionUtilities
.UnexpectedValue(kind);
1122
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)
336
throw
ExceptionUtilities
.Unreachable();
Symbols\NamedTypeSymbol.cs (1)
520
throw
ExceptionUtilities
.Unreachable();
Symbols\NativeIntegerTypeSymbol.cs (12)
154
internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw
ExceptionUtilities
.Unreachable();
156
internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw
ExceptionUtilities
.Unreachable();
158
internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => throw
ExceptionUtilities
.Unreachable();
160
internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() => throw
ExceptionUtilities
.Unreachable();
164
protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw
ExceptionUtilities
.Unreachable();
173
public override bool AreLocalsZeroed => throw
ExceptionUtilities
.Unreachable();
177
internal sealed override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
396
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
402
throw
ExceptionUtilities
.Unreachable();
405
internal override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
429
=> throw
ExceptionUtilities
.Unreachable();
474
=> 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)
75
throw
ExceptionUtilities
.UnexpectedValue(_underlying.MethodKind);
Symbols\ReducedExtensionMethodSymbol.cs (14)
334
get { throw
ExceptionUtilities
.Unreachable(); }
448
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
583
throw
ExceptionUtilities
.Unreachable();
586
internal override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
601
protected sealed override bool HasSetsRequiredMembersImpl => throw
ExceptionUtilities
.Unreachable();
605
internal sealed override CallerUnsafeMode CallerUnsafeMode => throw
ExceptionUtilities
.Unreachable();
659
get { throw
ExceptionUtilities
.Unreachable(); }
665
get { throw
ExceptionUtilities
.Unreachable(); }
671
get { throw
ExceptionUtilities
.Unreachable(); }
677
get { throw
ExceptionUtilities
.Unreachable(); }
680
internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw
ExceptionUtilities
.Unreachable();
682
internal override bool HasInterpolatedStringHandlerArgumentError => throw
ExceptionUtilities
.Unreachable();
684
internal override bool HasEnumeratorCancellationAttribute => throw
ExceptionUtilities
.Unreachable();
710
=> throw
ExceptionUtilities
.Unreachable();
Symbols\RefKindExtensions.cs (2)
34
throw
ExceptionUtilities
.UnexpectedValue(syntaxKind);
50
throw
ExceptionUtilities
.UnexpectedValue(refKind);
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
240
throw
ExceptionUtilities
.Unreachable();
Symbols\Retargeting\RetargetingMethodSymbol.cs (4)
259
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
380
throw
ExceptionUtilities
.Unreachable();
383
internal override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
398
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
316
throw
ExceptionUtilities
.Unreachable();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (9)
423
get { throw
ExceptionUtilities
.Unreachable(); }
429
internal sealed override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
531
bool INestedTypeReference.InheritsEnclosingTypeTypeParameters => throw
ExceptionUtilities
.Unreachable();
539
bool ITypeReference.IsEnum => throw
ExceptionUtilities
.Unreachable();
541
bool ITypeReference.IsValueType => throw
ExceptionUtilities
.Unreachable();
543
Cci.PrimitiveTypeCode ITypeReference.TypeCode => throw
ExceptionUtilities
.Unreachable();
545
TypeDefinitionHandle ITypeReference.TypeDef => throw
ExceptionUtilities
.Unreachable();
571
throw
ExceptionUtilities
.Unreachable();
576
throw
ExceptionUtilities
.Unreachable();
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
165
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
686
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
1070
throw
ExceptionUtilities
.Unreachable();
1356
throw
ExceptionUtilities
.Unreachable();
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
120
=> throw
ExceptionUtilities
.Unreachable();
Symbols\SignatureOnlyMethodSymbol.cs (35)
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 CallerUnsafeMode CallerUnsafeMode => throw
ExceptionUtilities
.Unreachable();
191
internal sealed override int TryGetOverloadResolutionPriority() => throw
ExceptionUtilities
.Unreachable();
Symbols\SignatureOnlyParameterSymbol.cs (24)
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 ConstantValue DefaultValueFromAttributes { get { throw
ExceptionUtilities
.Unreachable(); } }
83
internal override bool IsIDispatchConstant { get { throw
ExceptionUtilities
.Unreachable(); } }
85
internal override bool IsIUnknownConstant { get { throw
ExceptionUtilities
.Unreachable(); } }
87
internal override bool IsCallerFilePath { get { throw
ExceptionUtilities
.Unreachable(); } }
89
internal override bool IsCallerLineNumber { get { throw
ExceptionUtilities
.Unreachable(); } }
91
internal override bool IsCallerMemberName { get { throw
ExceptionUtilities
.Unreachable(); } }
93
internal override int CallerArgumentExpressionParameterIndex { get { throw
ExceptionUtilities
.Unreachable(); } }
95
internal override FlowAnalysisAnnotations FlowAnalysisAnnotations { get { throw
ExceptionUtilities
.Unreachable(); } }
97
internal override ImmutableHashSet<string> NotNullIfParameterNotNull { get { throw
ExceptionUtilities
.Unreachable(); } }
99
public override Symbol ContainingSymbol { get { throw
ExceptionUtilities
.Unreachable(); } }
101
public override ImmutableArray<Location> Locations { get { throw
ExceptionUtilities
.Unreachable(); } }
103
public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw
ExceptionUtilities
.Unreachable(); } }
105
public override AssemblySymbol ContainingAssembly { get { throw
ExceptionUtilities
.Unreachable(); } }
107
internal override ModuleSymbol ContainingModule { get { throw
ExceptionUtilities
.Unreachable(); } }
109
internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw
ExceptionUtilities
.Unreachable();
111
internal override bool HasInterpolatedStringHandlerArgumentError => throw
ExceptionUtilities
.Unreachable();
Symbols\SignatureOnlyPropertySymbol.cs (19)
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();
108
internal override CallerUnsafeMode CallerUnsafeMode => throw
ExceptionUtilities
.Unreachable();
Symbols\Source\AttributeLocation.cs (1)
97
throw
ExceptionUtilities
.UnexpectedValue(i);
Symbols\Source\CrefTypeParameterSymbol.cs (2)
210
throw
ExceptionUtilities
.Unreachable();
216
throw
ExceptionUtilities
.Unreachable();
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
144
throw
ExceptionUtilities
.Unreachable();
Symbols\Source\ExtensionGroupingInfo.cs (4)
139
throw
ExceptionUtilities
.Unreachable();
188
throw
ExceptionUtilities
.Unreachable();
672
throw
ExceptionUtilities
.Unreachable();
678
throw
ExceptionUtilities
.Unreachable();
Symbols\Source\GlobalExpressionVariable.cs (1)
160
throw
ExceptionUtilities
.Unreachable();
Symbols\Source\ImplicitNamedTypeSymbol.cs (3)
32
=> throw
ExceptionUtilities
.Unreachable();
159
throw
ExceptionUtilities
.Unreachable();
180
internal sealed override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
Symbols\Source\LambdaSymbol.cs (2)
427
throw
ExceptionUtilities
.Unreachable();
430
internal override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
Symbols\Source\LocalFunctionSymbol.cs (2)
417
throw
ExceptionUtilities
.Unreachable();
549
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)
826
throw
ExceptionUtilities
.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (4)
1675
_ => throw
ExceptionUtilities
.UnexpectedValue(attribute)
1860
throw
ExceptionUtilities
.Unreachable();
1874
throw
ExceptionUtilities
.Unreachable();
2091
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
Symbols\Source\SourceClonedParameterSymbol.cs (2)
162
internal override ImmutableArray<int> InterpolatedStringHandlerArgumentIndexes => throw
ExceptionUtilities
.Unreachable();
164
internal override bool HasInterpolatedStringHandlerArgumentError => throw
ExceptionUtilities
.Unreachable();
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1366
throw
ExceptionUtilities
.Unreachable();
Symbols\Source\SourceConstructorSymbolBase.cs (1)
229
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)
275
throw
ExceptionUtilities
.Unreachable();
556
throw
ExceptionUtilities
.UnexpectedValue(_declarationKind);
655
throw
ExceptionUtilities
.Unreachable();
855
throw
ExceptionUtilities
.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (10)
715
throw
ExceptionUtilities
.Unreachable();
1131
throw
ExceptionUtilities
.Unreachable();
1151
throw
ExceptionUtilities
.Unreachable();
3920
throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind());
4087
throw
ExceptionUtilities
.UnexpectedValue(symbol);
4346
throw
ExceptionUtilities
.Unreachable();
4604
throw
ExceptionUtilities
.UnexpectedValue(meth.MethodKind);
4615
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
4659
throw
ExceptionUtilities
.UnexpectedValue(meth.MethodKind);
4676
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
308
throw
ExceptionUtilities
.UnexpectedValue(matchResult);
531
throw
ExceptionUtilities
.UnexpectedValue(this.TypeKind);
1038
throw
ExceptionUtilities
.Unreachable();
1772
throw
ExceptionUtilities
.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbol.cs (1)
92
protected override bool HasSetsRequiredMembersImpl => throw
ExceptionUtilities
.Unreachable();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1457
throw
ExceptionUtilities
.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics);
1565
var unexpected => throw
ExceptionUtilities
.UnexpectedValue(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
415
throw
ExceptionUtilities
.UnexpectedValue(member);
423
throw
ExceptionUtilities
.UnexpectedValue(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
179
throw
ExceptionUtilities
.UnexpectedValue(typeDecl.Kind());
487
throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
622
throw
ExceptionUtilities
.UnexpectedValue(baseType.TypeKind);
774
throw
ExceptionUtilities
.UnexpectedValue(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
187
throw
ExceptionUtilities
.UnexpectedValue(type);
309
_ => throw
ExceptionUtilities
.UnexpectedValue(signature.CallingConvention)
460
throw
ExceptionUtilities
.UnexpectedValue(annotation);
493
throw
ExceptionUtilities
.UnexpectedValue(type);
715
_ => throw
ExceptionUtilities
.UnexpectedValue(signature.CallingConvention)
758
_ => throw
ExceptionUtilities
.UnexpectedValue(refKind)
926
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)
185
_ => throw
ExceptionUtilities
.UnexpectedValue(syntax.Kind())
288
throw
ExceptionUtilities
.UnexpectedValue(accessor.Kind());
353
throw
ExceptionUtilities
.Unreachable();
368
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)
186
internal override ScopedKind DeclaredScope => throw
ExceptionUtilities
.Unreachable();
Symbols\Source\TypeParameterConstraintClause.cs (1)
114
ExceptionUtilities
.UnexpectedValue(constraints); // This call asserts.
Symbols\SubstitutedMethodSymbol.cs (4)
220
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
366
throw
ExceptionUtilities
.Unreachable();
369
internal override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
492
=> 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\SubstitutedParameterSymbol.cs (1)
134
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Symbol.cs (4)
304
throw
ExceptionUtilities
.UnexpectedValue(DeclaredAccessibility);
709
throw
ExceptionUtilities
.UnexpectedValue(this.Kind);
1762
throw
ExceptionUtilities
.UnexpectedValue(variable);
1765
throw
ExceptionUtilities
.UnexpectedValue(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90
throw
ExceptionUtilities
.UnexpectedValue(namedType.TypeKind);
746
throw
ExceptionUtilities
.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
522
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 (4)
227
protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw
ExceptionUtilities
.Unreachable();
229
internal override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
239
internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw
ExceptionUtilities
.Unreachable();
241
internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) => throw
ExceptionUtilities
.Unreachable();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (5)
281
var v => throw
ExceptionUtilities
.UnexpectedValue(v)
945
protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw
ExceptionUtilities
.Unreachable();
947
internal override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
957
internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw
ExceptionUtilities
.Unreachable();
959
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)
79
throw
ExceptionUtilities
.Unreachable();
173
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)
187
var binder = getAccessor.TryGetBodyBinder() ?? throw
ExceptionUtilities
.UnexpectedValue(getAccessor);
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (9)
110
public override ImmutableArray<MethodSymbol> ExplicitInterfaceImplementations => throw
ExceptionUtilities
.Unreachable();
111
public override Symbol AssociatedSymbol => throw
ExceptionUtilities
.Unreachable();
112
internal override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
113
internal override int CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => throw
ExceptionUtilities
.Unreachable();
114
internal override bool HasAsyncMethodBuilderAttribute(out TypeSymbol builderArgument) => throw
ExceptionUtilities
.Unreachable();
115
internal override bool IsNullableAnalysisEnabled() => throw
ExceptionUtilities
.Unreachable();
117
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<CSharpAttributeData> attributes) => throw
ExceptionUtilities
.Unreachable();
133
internal override bool HasEnumeratorCancellationAttribute => throw
ExceptionUtilities
.Unreachable();
139
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<CSharpAttributeData> attributes) => throw
ExceptionUtilities
.Unreachable();
Symbols\Synthesized\SynthesizedContainer.cs (3)
76
=> throw
ExceptionUtilities
.Unreachable();
199
throw
ExceptionUtilities
.Unreachable();
208
internal sealed override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (2)
133
throw
ExceptionUtilities
.Unreachable();
263
protected sealed override bool HasSetsRequiredMembersImpl => throw
ExceptionUtilities
.Unreachable();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
148
protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw
ExceptionUtilities
.Unreachable();
205
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 (2)
138
protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw
ExceptionUtilities
.Unreachable();
151
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 (4)
150
protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) => throw
ExceptionUtilities
.Unreachable();
152
internal override NamedTypeSymbol AsNativeInteger() => throw
ExceptionUtilities
.Unreachable();
162
internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() => throw
ExceptionUtilities
.Unreachable();
164
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)
81
internal sealed override bool HasSpecialNameAttribute => throw
ExceptionUtilities
.Unreachable();
85
throw
ExceptionUtilities
.Unreachable();
Symbols\Synthesized\SynthesizedParameterSymbol.cs (6)
90
get { throw
ExceptionUtilities
.Unreachable(); }
95
get { throw
ExceptionUtilities
.Unreachable(); }
100
get { throw
ExceptionUtilities
.Unreachable(); }
105
get { throw
ExceptionUtilities
.Unreachable(); }
110
get { throw
ExceptionUtilities
.Unreachable(); }
225
internal sealed override ScopedKind DeclaredScope => throw
ExceptionUtilities
.Unreachable();
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (4)
135
throw
ExceptionUtilities
.Unreachable();
140
throw
ExceptionUtilities
.Unreachable();
147
throw
ExceptionUtilities
.Unreachable();
158
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)
1584
throw
ExceptionUtilities
.UnexpectedValue(interfaceMethod.MethodKind);
1982
throw
ExceptionUtilities
.UnexpectedValue(interfaceMember.Kind);
2045
throw
ExceptionUtilities
.UnexpectedValue(interfaceMember.Kind);
2473
throw
ExceptionUtilities
.Unreachable();
2490
=> throw
ExceptionUtilities
.Unreachable();
2494
=> throw
ExceptionUtilities
.Unreachable();
2498
=> throw
ExceptionUtilities
.Unreachable();
2502
=> throw
ExceptionUtilities
.Unreachable();
2506
=> throw
ExceptionUtilities
.Unreachable();
2510
=> throw
ExceptionUtilities
.Unreachable();
Symbols\TypeSymbolExtensions.cs (3)
971
throw
ExceptionUtilities
.UnexpectedValue(current.TypeKind);
1204
throw
ExceptionUtilities
.UnexpectedValue(acc1);
1559
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);
Symbols\Wrapped\WrappedEventSymbol.cs (1)
172
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
214
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
266
=> throw
ExceptionUtilities
.Unreachable();
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
200
=> throw
ExceptionUtilities
.Unreachable();
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)
13513
_ => throw
ExceptionUtilities
.UnexpectedValue(expectedDiagnosticSeverity)
13977
throw
ExceptionUtilities
.UnexpectedValue(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (1)
UnsafeEvolutionTests.cs (1)
298
_ => throw
ExceptionUtilities
.UnexpectedValue(symbolGetter),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
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 (41)
Diagnostics\DiagnosticAnalyzerTests.cs (3)
378
throw
ExceptionUtilities
.Unreachable();
1062
throw
ExceptionUtilities
.Unreachable();
4240
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)
1064
_ => throw
ExceptionUtilities
.UnexpectedValue(access),
1232
_ => throw
ExceptionUtilities
.UnexpectedValue(access),
RefReadonlyParameterTests.cs (2)
87
throw
ExceptionUtilities
.UnexpectedValue(customModifiers);
7089
_ => throw
ExceptionUtilities
.UnexpectedValue(modifier)
Semantics\CollectionExpressionTests.cs (1)
3039
throw
ExceptionUtilities
.Unreachable();
Semantics\CollectionExpressionTests_WithElement_Extra.cs (1)
1002
throw
ExceptionUtilities
.UnexpectedValue(typeName);
Semantics\ExtensionOperatorsTests.cs (17)
11469
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null;
11996
public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null;
16126
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null;
18824
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null;
18949
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(C1 x, C1 y) => throw null;
19068
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null;
19129
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null;
19177
public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(T x, T y) => throw null;
19233
public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null;
19280
public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null;
19315
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null;
19503
public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null;
19571
public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
19603
public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null;
19647
public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null;
19689
public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
19733
public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw
ExceptionUtilities
.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (7)
9038
throw
ExceptionUtilities
.UnexpectedValue(refKind);
10428
throw
ExceptionUtilities
.UnexpectedValue(refKind);
11786
throw
ExceptionUtilities
.UnexpectedValue(refKind);
12525
throw
ExceptionUtilities
.UnexpectedValue(refKind);
13504
throw
ExceptionUtilities
.UnexpectedValue(refKind);
15097
throw
ExceptionUtilities
.UnexpectedValue(refKind);
27372
_ => 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)
7379
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)
25225
ParameterSymbol or TypeParameterSymbol => throw
ExceptionUtilities
.Unreachable(),
25294
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 (11)
Symbols\CovariantReturnTests.cs (1)
507
throw
ExceptionUtilities
.Unreachable();
Symbols\ExtendedPartialMethodsTests.cs (2)
2022
_ => throw
ExceptionUtilities
.UnexpectedValue(access),
2174
_ => throw
ExceptionUtilities
.UnexpectedValue(access),
Symbols\MockNamedTypeSymbol.cs (2)
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();
393
throw
ExceptionUtilities
.UnexpectedValue(comp.GetMembers("C.P"));
430
throw
ExceptionUtilities
.UnexpectedValue(comp.GetMembers("C.P"));
2634
_ => throw
ExceptionUtilities
.UnexpectedValue(access),
2782
_ => throw
ExceptionUtilities
.UnexpectedValue(access),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91
_ => throw
ExceptionUtilities
.UnexpectedValue(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
AttributeValidation.cs (1)
47
throw
ExceptionUtilities
.UnexpectedValue(accessibility);
CompilationTestUtils.cs (1)
284
throw
ExceptionUtilities
.UnexpectedValue(node);
Extensions.cs (3)
766
throw
ExceptionUtilities
.UnexpectedValue(member.Kind);
833
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
859
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)
1505
throw
ExceptionUtilities
.Unreachable();
Diagnostics\CommonDiagnosticAnalyzers.cs (5)
438
_ => throw
ExceptionUtilities
.UnexpectedValue(severity)
2697
throw
ExceptionUtilities
.Unreachable();
2820
throw
ExceptionUtilities
.UnexpectedValue(_actionKind);
2967
throw
ExceptionUtilities
.Unreachable();
3221
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)
509
throw
ExceptionUtilities
.UnexpectedValue(opcode);
Metadata\MetadataReaderUtils.cs (2)
177
throw
ExceptionUtilities
.UnexpectedValue(token.Kind);
230
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)
1662
_ => 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();