1092 references to UnexpectedValue
Microsoft.CodeAnalysis (460)
CodeGen\ArrayMembers.cs (1)
138
throw ExceptionUtilities.
UnexpectedValue
(id);
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\LocalScopeManager.cs (1)
806
throw ExceptionUtilities.
UnexpectedValue
(handlerScope.Type);
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
517
throw ExceptionUtilities.
UnexpectedValue
(branchCode);
Collections\Rope.cs (5)
102
throw ExceptionUtilities.
UnexpectedValue
(nameof(maxLength));
145
throw ExceptionUtilities.
UnexpectedValue
(v.GetType().Name);
156
throw ExceptionUtilities.
UnexpectedValue
(nameof(maxLength));
177
throw ExceptionUtilities.
UnexpectedValue
(v.GetType().Name);
201
throw ExceptionUtilities.
UnexpectedValue
(v.GetType().Name);
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
139
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
305
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
403
throw ExceptionUtilities.
UnexpectedValue
(lastChar);
Compilation\Compilation.cs (3)
2305
throw ExceptionUtilities.
UnexpectedValue
(platform);
2403
throw ExceptionUtilities.
UnexpectedValue
(outputKind);
2424
throw ExceptionUtilities.
UnexpectedValue
(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
316
throw ExceptionUtilities.
UnexpectedValue
(m);
340
throw ExceptionUtilities.
UnexpectedValue
(reference);
Compilation\OptimizationLevel.cs (1)
60
_ => throw ExceptionUtilities.
UnexpectedValue
(optimization)
ConstantValue.cs (6)
433
throw ExceptionUtilities.
UnexpectedValue
(discriminator);
483
ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.
UnexpectedValue
(Discriminator),
484
_ => throw ExceptionUtilities.
UnexpectedValue
(Discriminator)
538
default: throw ExceptionUtilities.
UnexpectedValue
(this.Discriminator);
805
default: throw ExceptionUtilities.
UnexpectedValue
(this.Discriminator);
833
_ => throw ExceptionUtilities.
UnexpectedValue
(Discriminator)
CryptographicHashProvider.cs (4)
60
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
76
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
108
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
270
throw ExceptionUtilities.
UnexpectedValue
(constant.Discriminator);
Diagnostic\Diagnostic.cs (1)
546
throw ExceptionUtilities.
UnexpectedValue
(reportAction);
Diagnostic\DiagnosticDescriptor.cs (2)
262
throw ExceptionUtilities.
UnexpectedValue
(severity);
281
throw ExceptionUtilities.
UnexpectedValue
(severity);
Diagnostic\DiagnosticFormatter.cs (1)
100
throw ExceptionUtilities.
UnexpectedValue
(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (1)
121
throw ExceptionUtilities.
UnexpectedValue
(type);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1093
throw ExceptionUtilities.
UnexpectedValue
(compilationEvent.GetType().ToString());
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228
throw ExceptionUtilities.
UnexpectedValue
(_scope);
Emit\CommonPEModuleBuilder.cs (1)
1172
throw ExceptionUtilities.
UnexpectedValue
(platformType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
640
throw ExceptionUtilities.
UnexpectedValue
(change);
1478
throw ExceptionUtilities.
UnexpectedValue
(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
212
throw ExceptionUtilities.
UnexpectedValue
(generatorChange);
278
throw ExceptionUtilities.
UnexpectedValue
(containerChange);
410
throw ExceptionUtilities.
UnexpectedValue
(edit.Kind);
Emit\EditAndContinue\SymbolMatcher.cs (1)
144
value.Name, value.UniqueIndex, (Cci.ITypeDefinition?)MapDefinition(value.Type) ?? throw ExceptionUtilities.
UnexpectedValue
(value.Type))));
Emit\HotReloadExceptionCode.cs (1)
31
_ => throw ExceptionUtilities.
UnexpectedValue
(code)
EnumConstantHelper.cs (1)
111
throw ExceptionUtilities.
UnexpectedValue
(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
186
throw ExceptionUtilities.
UnexpectedValue
(kind);
Generated\Operations.Generated.cs (327)
4016
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4031
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4047
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4071
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4086
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4102
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4135
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4153
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4172
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4229
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4253
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4278
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4317
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4343
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4370
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4421
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4451
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4482
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4532
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4545
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4559
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4579
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4593
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4618
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4631
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4645
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4676
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4692
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4709
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4745
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4766
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4788
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4823
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4839
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4856
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4880
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4893
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4907
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4938
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4954
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4971
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4985
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4999
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5028
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5046
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5065
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5083
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5116
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5129
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5143
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5179
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5197
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5216
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5246
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5264
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5283
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5305
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5324
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5362
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5375
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5389
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5418
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5431
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5445
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5477
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5495
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5514
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5541
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5554
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5568
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5604
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5617
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5631
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5676
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5692
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5709
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5747
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5766
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5786
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5820
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5836
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5853
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5879
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5892
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5906
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5939
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5957
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5976
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6001
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6014
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6028
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6058
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6076
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6095
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6114
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6143
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6156
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6170
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6195
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6208
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6222
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6262
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6278
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6295
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6337
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6353
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6370
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6396
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6409
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6423
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6455
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6471
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6488
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6518
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6534
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6551
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6568
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6594
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6609
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6625
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6650
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6665
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6681
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6706
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6721
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6737
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6767
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6783
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6800
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6826
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6839
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6853
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6880
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6895
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6911
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6942
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6955
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6969
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6994
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7007
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7021
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7046
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7059
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7073
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7091
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7110
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7130
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7155
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7168
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7182
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7212
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7228
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7245
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7281
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7294
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7308
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7333
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7346
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7360
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7386
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7402
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7419
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7444
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7457
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7471
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7488
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7523
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7536
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7550
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7570
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7583
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7597
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7621
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7634
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7648
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7672
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7685
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7699
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7723
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7738
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7754
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7785
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7803
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7822
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7856
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7879
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7903
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7937
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7950
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7964
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8002
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8021
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8041
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8074
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8094
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8115
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8139
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8169
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8185
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8202
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8231
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8247
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8264
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8290
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8303
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8317
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8341
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8354
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8368
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8397
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8410
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8424
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8458
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8477
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8497
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8532
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8545
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8559
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8581
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8613
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8629
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8646
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8680
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8696
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8713
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8745
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8764
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8784
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8803
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8829
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8842
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8856
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8878
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8904
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8917
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8931
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8948
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8967
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8993
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9009
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9026
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9060
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9076
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9093
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9119
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9134
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9150
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9179
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9197
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9216
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9251
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9271
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9292
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9306
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9338
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9356
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9375
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9411
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9430
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9450
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9479
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9495
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9512
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9542
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9558
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9575
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9606
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9622
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9639
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9664
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9677
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9691
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9710
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9739
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9755
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9772
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9800
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9813
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9827
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9851
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9864
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9878
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9909
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9925
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9942
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9960
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9986
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9999
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10013
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10045
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10061
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10078
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10112
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10128
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10145
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10174
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10190
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10207
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10232
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10245
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10259
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10279
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10309
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10327
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10346
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10376
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10391
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10407
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10433
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10446
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10460
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10494
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10510
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10527
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10546
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10570
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10583
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10597
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10627
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10643
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10660
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10687
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10702
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10718
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10747
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10760
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10774
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
InternalUtilities\SingleInitNullable.cs (1)
80
throw ExceptionUtilities.
UnexpectedValue
(unexpectedValue);
MemberDescriptor.cs (2)
112
throw ExceptionUtilities.
UnexpectedValue
(memberKind);
205
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
MetadataReader\MetadataDecoder.cs (1)
464
throw ExceptionUtilities.
UnexpectedValue
(handle.Kind);
MetadataReader\MetadataHelpers.cs (2)
266
throw ExceptionUtilities.
UnexpectedValue
(c);
363
throw ExceptionUtilities.
UnexpectedValue
(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
135
throw ExceptionUtilities.
UnexpectedValue
(specialType);
MetadataReader\PEModule.cs (8)
1285
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
1305
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1804
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1853
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1867
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1900
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1949
throw ExceptionUtilities.
UnexpectedValue
(info.SignatureIndex);
3342
throw ExceptionUtilities.
UnexpectedValue
(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135
throw ExceptionUtilities.
UnexpectedValue
(_contentType);
Operations\ControlFlowGraphBuilder.cs (14)
339
throw ExceptionUtilities.
UnexpectedValue
(branch.Kind);
428
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
484
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
604
throw ExceptionUtilities.
UnexpectedValue
(region.Kind);
2281
throw ExceptionUtilities.
UnexpectedValue
(binOp.OperatorKind);
3849
throw ExceptionUtilities.
UnexpectedValue
(operation.Kind);
5637
throw ExceptionUtilities.
UnexpectedValue
(relationalValueClause.Relation);
5657
throw ExceptionUtilities.
UnexpectedValue
(caseClause.CaseKind);
6274
throw ExceptionUtilities.
UnexpectedValue
(originalTarget.Kind);
6346
throw ExceptionUtilities.
UnexpectedValue
(lhs.Kind);
6914
throw ExceptionUtilities.
UnexpectedValue
(currentAddition.Left.Kind);
6926
throw ExceptionUtilities.
UnexpectedValue
(currentAddition.Left.Kind);
7000
throw ExceptionUtilities.
UnexpectedValue
(operation.PlaceholderKind);
7074
throw ExceptionUtilities.
UnexpectedValue
(element.Kind);
Operations\ControlFlowRegion.cs (1)
142
throw ExceptionUtilities.
UnexpectedValue
(kind);
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\MetadataWriter.cs (7)
2271
throw ExceptionUtilities.
UnexpectedValue
(exportedType);
2875
throw ExceptionUtilities.
UnexpectedValue
(typeRef);
3126
_ => throw ExceptionUtilities.
UnexpectedValue
(reference)
3306
throw ExceptionUtilities.
UnexpectedValue
(rawTokenEncoding);
3381
throw ExceptionUtilities.
UnexpectedValue
(operandType);
4017
throw ExceptionUtilities.
UnexpectedValue
(primitiveType);
4123
throw ExceptionUtilities.
UnexpectedValue
(primitiveType);
PEWriter\MetadataWriter.PortablePdb.cs (1)
997
_ => throw ExceptionUtilities.
UnexpectedValue
(portableReference.Properties.Kind)
PrimitiveTypeCodeExtensions.cs (1)
88
throw ExceptionUtilities.
UnexpectedValue
(type);
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
313
throw ExceptionUtilities.
UnexpectedValue
(compilationReference.Properties.Kind);
391
throw ExceptionUtilities.
UnexpectedValue
(peReference.Properties.Kind);
SignatureComparer.cs (1)
228
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
SourceGeneration\GeneratedCodeUtilities.cs (1)
182
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
SourceGeneration\Nodes\NodeStateTable.cs (1)
515
_ => throw ExceptionUtilities.
UnexpectedValue
((inputState, outputState))
SpecialTypeExtensions.cs (2)
271
throw ExceptionUtilities.
UnexpectedValue
(specialType);
387
_ => throw ExceptionUtilities.
UnexpectedValue
(enumUnderlyingType),
SwitchConstantValueHelper.cs (1)
93
throw ExceptionUtilities.
UnexpectedValue
(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229
throw ExceptionUtilities.
UnexpectedValue
(target);
Symbols\Attributes\CommonAttributeData.cs (1)
268
throw ExceptionUtilities.
UnexpectedValue
(kind);
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);
Text\SourceHashAlgorithms.cs (2)
41
_ => throw ExceptionUtilities.
UnexpectedValue
(algorithm),
56
_ => throw ExceptionUtilities.
UnexpectedValue
(algorithm)
Microsoft.CodeAnalysis.CSharp (556)
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 (1)
422
throw ExceptionUtilities.
UnexpectedValue
(topClause.Kind());
Binder\Binder.ValueChecks.cs (15)
83
_ => throw ExceptionUtilities.
UnexpectedValue
(accessorKind),
163
_ => throw ExceptionUtilities.
UnexpectedValue
(EscapeLevel)
898
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexer.IndexerOrSliceAccess.Kind);
1375
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
1407
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
1422
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
3240
throw ExceptionUtilities.
UnexpectedValue
(kind);
3268
throw ExceptionUtilities.
UnexpectedValue
(kind);
3312
throw ExceptionUtilities.
UnexpectedValue
(kind);
3631
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
3959
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4340
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4715
throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind); // ref struct collection type with unexpected type kind
5113
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
5830
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
Binder\Binder_Constraints.cs (4)
287
throw ExceptionUtilities.
UnexpectedValue
(keyword);
336
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
467
_ => throw ExceptionUtilities.
UnexpectedValue
(containingSymbol)
628
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Binder\Binder_Conversions.cs (25)
802
throw ExceptionUtilities.
UnexpectedValue
(v);
1101
throw ExceptionUtilities.
UnexpectedValue
(targetType);
1170
throw ExceptionUtilities.
UnexpectedValue
(targetType);
1660
throw ExceptionUtilities.
UnexpectedValue
(element);
1676
throw ExceptionUtilities.
UnexpectedValue
(element);
2262
_ => throw ExceptionUtilities.
UnexpectedValue
(source),
2433
throw ExceptionUtilities.
UnexpectedValue
(conversion.Kind);
2836
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateType),
2976
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
2984
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
3331
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3351
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3371
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3391
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3411
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3430
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3450
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3470
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3490
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3510
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3530
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3554
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3574
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3577
throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
3680
default: throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
Binder\Binder_Crefs.cs (4)
41
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
133
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
784
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1004
throw ExceptionUtilities.
UnexpectedValue
(candidate.Kind);
Binder\Binder_Deconstruct.cs (2)
383
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
848
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Binder\Binder_Expressions.cs (14)
998
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
1556
throw ExceptionUtilities.
UnexpectedValue
(managedKind);
2240
_ => throw ExceptionUtilities.
UnexpectedValue
(alias.Target.Kind),
2248
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
2497
throw ExceptionUtilities.
UnexpectedValue
(symbol);
3187
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
3863
throw ExceptionUtilities.
UnexpectedValue
(argumentIndex);
5232
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
5249
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
5281
_ => throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind())
7039
throw ExceptionUtilities.
UnexpectedValue
(classCreation.Kind);
8064
throw ExceptionUtilities.
UnexpectedValue
(extensionMember.Kind);
8513
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
9306
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Binder\Binder_InterpolatedString.cs (2)
178
throw ExceptionUtilities.
UnexpectedValue
(content.Kind());
571
_ => throw ExceptionUtilities.
UnexpectedValue
(unconvertedExpression.Kind)
Binder\Binder_Invocation.cs (1)
1097
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
Binder\Binder_Lookup.cs (2)
287
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1634
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Binder\Binder_Operators.cs (7)
1234
_ => throw ExceptionUtilities.
UnexpectedValue
(current.Right.Kind)
2529
throw ExceptionUtilities.
UnexpectedValue
(kind);
2550
throw ExceptionUtilities.
UnexpectedValue
(underlyingType);
2613
throw ExceptionUtilities.
UnexpectedValue
(newKind.Operator());
3104
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
4447
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
5111
throw ExceptionUtilities.
UnexpectedValue
(conversionKind);
Binder\Binder_Patterns.cs (3)
186
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
923
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
1454
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Binder\Binder_Query.cs (3)
146
throw ExceptionUtilities.
UnexpectedValue
(firstClause.Kind());
160
throw ExceptionUtilities.
UnexpectedValue
(query.Body.SelectOrGroup.Kind());
354
throw ExceptionUtilities.
UnexpectedValue
(topClause.Kind());
Binder\Binder_QueryErrors.cs (1)
204
throw ExceptionUtilities.
UnexpectedValue
(queryClause.Kind());
Binder\Binder_Statements.cs (6)
550
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
1680
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
1731
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind)
1752
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
3576
_ => throw ExceptionUtilities.
UnexpectedValue
(expressionBody.Parent.Kind()),
3660
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Binder\Binder_Symbols.cs (3)
165
throw ExceptionUtilities.
UnexpectedValue
(keyword);
738
throw ExceptionUtilities.
UnexpectedValue
(typesArray.Length);
1468
throw ExceptionUtilities.
UnexpectedValue
(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
115
throw ExceptionUtilities.
UnexpectedValue
(comparison);
155
throw ExceptionUtilities.
UnexpectedValue
(binaryOperator);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEventDecl.Kind());
477
throw ExceptionUtilities.
UnexpectedValue
(baseMethodDeclarationSyntax.Kind());
502
throw ExceptionUtilities.
UnexpectedValue
(basePropertyDeclarationSyntax.Kind());
1188
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Binder\DecisionDagBuilder.cs (6)
263
throw ExceptionUtilities.
UnexpectedValue
(tests);
314
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
962
throw ExceptionUtilities.
UnexpectedValue
(n.Kind);
1061
throw ExceptionUtilities.
UnexpectedValue
(n?.Kind);
1145
throw ExceptionUtilities.
UnexpectedValue
(test);
2289
_ => throw ExceptionUtilities.
UnexpectedValue
(negated),
Binder\ExpressionVariableFinder.cs (3)
259
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
439
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
523
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
Binder\ForEachLoopBinder.cs (5)
97
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
173
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
356
throw ExceptionUtilities.
UnexpectedValue
(local.RefKind);
426
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
1661
throw ExceptionUtilities.
UnexpectedValue
(enumeratorType.TypeKind);
Binder\LookupResultKind.cs (1)
98
throw ExceptionUtilities.
UnexpectedValue
(resultKind);
Binder\PatternExplainer.cs (2)
164
throw ExceptionUtilities.
UnexpectedValue
(currentNode.Kind);
444
throw ExceptionUtilities.
UnexpectedValue
(v);
Binder\RefSafetyAnalysis.cs (1)
784
throw ExceptionUtilities.
UnexpectedValue
(placeholder.ArgumentIndex);
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\UserDefinedImplicitConversions.cs (1)
685
throw ExceptionUtilities.
UnexpectedValue
(kind);
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 (1)
260
throw ExceptionUtilities.
UnexpectedValue
(argAnalysis.Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1087
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateOrFunctionPointerType)
1468
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1466
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
4389
throw ExceptionUtilities.
UnexpectedValue
(member);
4760
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
457
throw ExceptionUtilities.
UnexpectedValue
(result.Result.Kind);
1530
throw ExceptionUtilities.
UnexpectedValue
(kind);
Binder\SwitchBinder_Patterns.cs (1)
120
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Binder\WhileBinder.cs (1)
62
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
Binder\WithCrefTypeParametersBinder.cs (2)
72
throw ExceptionUtilities.
UnexpectedValue
(_crefSyntax.Kind());
99
throw ExceptionUtilities.
UnexpectedValue
(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (1)
194
throw ExceptionUtilities.
UnexpectedValue
(_declarationSyntax);
BoundTree\BoundDagEvaluation.cs (1)
45
_ => throw ExceptionUtilities.
UnexpectedValue
(this.Kind)
BoundTree\BoundDagTest.cs (1)
40
throw ExceptionUtilities.
UnexpectedValue
(this);
BoundTree\BoundDecisionDag.cs (3)
42
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
135
throw ExceptionUtilities.
UnexpectedValue
(dag);
197
throw ExceptionUtilities.
UnexpectedValue
(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51
throw ExceptionUtilities.
UnexpectedValue
(this);
BoundTree\BoundExpressionExtensions.cs (1)
73
var s => throw ExceptionUtilities.
UnexpectedValue
(s?.Kind)
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 (5)
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)
256
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind),
BoundTree\BoundStatementExtensions.cs (2)
23
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
53
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
BoundTree\BoundTreeRewriter.cs (1)
151
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
BoundTree\NullabilityRewriter.cs (1)
121
_ => throw ExceptionUtilities.
UnexpectedValue
(currentBinary.Kind),
BoundTree\VariablePendingInference.cs (1)
110
throw ExceptionUtilities.
UnexpectedValue
(this.VariableSymbol.Kind);
CodeGen\EmitAddress.cs (2)
87
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
282
throw ExceptionUtilities.
UnexpectedValue
(local.RefKind);
CodeGen\EmitConversion.cs (4)
45
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
132
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
174
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind); // Should be handled by caller.
178
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
CodeGen\EmitExpression.cs (5)
174
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
365
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
2982
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
3003
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
3190
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
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 (4)
105
throw ExceptionUtilities.
UnexpectedValue
(statement.Kind);
163
throw ExceptionUtilities.
UnexpectedValue
(statement.Flavor);
330
throw ExceptionUtilities.
UnexpectedValue
(op.OperatorKind.Operator());
1182
throw ExceptionUtilities.
UnexpectedValue
(exceptionSource.Kind);
CodeGen\Optimizer.cs (2)
492
throw ExceptionUtilities.
UnexpectedValue
(context);
1102
throw ExceptionUtilities.
UnexpectedValue
(lhs.Kind);
Compilation\BuiltInOperators.cs (2)
279
default: throw ExceptionUtilities.
UnexpectedValue
(kind.OperandTypes());
849
var v => throw ExceptionUtilities.
UnexpectedValue
(v),
Compilation\CSharpDiagnosticFilter.cs (2)
170
_ => throw ExceptionUtilities.
UnexpectedValue
(warningsState)
288
throw ExceptionUtilities.
UnexpectedValue
(report);
Compilation\CSharpSemanticModel.cs (2)
3790
throw ExceptionUtilities.
UnexpectedValue
(containingMember.Kind);
4018
throw ExceptionUtilities.
UnexpectedValue
(boundNodeForSyntacticParent.Kind);
Compilation\InitializerSemanticModel.cs (3)
105
throw ExceptionUtilities.
UnexpectedValue
(rootSyntax.Kind());
182
throw ExceptionUtilities.
UnexpectedValue
(this.MemberSymbol.Kind);
286
throw ExceptionUtilities.
UnexpectedValue
(MemberSymbol.Kind);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
173
ExceptionUtilities.
UnexpectedValue
(attributeOrParameter);
Compilation\SyntaxTreeSemanticModel.cs (11)
1116
ExceptionUtilities.
UnexpectedValue
(node.Parent);
1177
throw ExceptionUtilities.
UnexpectedValue
(node.Parent.Kind());
1193
ExceptionUtilities.
UnexpectedValue
(node.Parent);
1620
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEventDecl.Kind());
1644
ExceptionUtilities.
UnexpectedValue
(containingMemberSyntax.Kind());
1728
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind());
1767
throw ExceptionUtilities.
UnexpectedValue
(name.Kind());
2211
throw ExceptionUtilities.
UnexpectedValue
(typeParameter.Parent.Kind());
2480
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
2518
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
2545
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (6)
757
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
1008
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1249
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
1284
throw ExceptionUtilities.
UnexpectedValue
(compliance);
1300
throw ExceptionUtilities.
UnexpectedValue
(compliance);
1350
throw ExceptionUtilities.
UnexpectedValue
(x.Kind);
Compiler\DocumentationCommentCompiler.cs (1)
1216
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Compiler\MethodCompiler.cs (2)
2000
throw ExceptionUtilities.
UnexpectedValue
(methodBody.Kind);
2132
throw ExceptionUtilities.
UnexpectedValue
(syntaxNode);
Declarations\DeclarationKind.cs (1)
48
throw ExceptionUtilities.
UnexpectedValue
(kind);
Declarations\DeclarationTreeBuilder.cs (2)
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 (4)
274
throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind);
370
throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind);
452
_ => throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind),
780
throw ExceptionUtilities.
UnexpectedValue
(type.Kind);
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62
throw ExceptionUtilities.
UnexpectedValue
(value);
Emitter\Model\PEModuleBuilder.cs (6)
246
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
288
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
367
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
427
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
434
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
1164
throw ExceptionUtilities.
UnexpectedValue
(typeSymbol.Kind);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
337
throw ExceptionUtilities.
UnexpectedValue
(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
520
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
722
throw ExceptionUtilities.
UnexpectedValue
(feature);
FlowAnalysis\AbstractFlowPass.cs (6)
871
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
1022
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
1075
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
1566
throw ExceptionUtilities.
UnexpectedValue
(refKind);
2476
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
2498
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
FlowAnalysis\DefiniteAssignment.cs (1)
2131
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
FlowAnalysis\ExitPointsWalker.cs (1)
148
throw ExceptionUtilities.
UnexpectedValue
(pending.Branch.Kind);
FlowAnalysis\NullableWalker.cs (13)
589
throw ExceptionUtilities.
UnexpectedValue
(placeholder.Kind);
2039
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
4300
ExceptionUtilities.
UnexpectedValue
(node.Kind);
4801
_ => throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
4878
_ => throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
5907
_ => throw ExceptionUtilities.
UnexpectedValue
(node.OperatorResultKind),
7284
throw ExceptionUtilities.
UnexpectedValue
(member);
7790
throw ExceptionUtilities.
UnexpectedValue
(refKind);
7882
throw ExceptionUtilities.
UnexpectedValue
(refKind);
8034
throw ExceptionUtilities.
UnexpectedValue
(refKind);
11790
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Syntax)
12105
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
12120
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
FlowAnalysis\NullableWalker_Patterns.cs (5)
244
throw ExceptionUtilities.
UnexpectedValue
(pattern);
585
throw ExceptionUtilities.
UnexpectedValue
(p.Evaluation.Kind);
662
throw ExceptionUtilities.
UnexpectedValue
(test.Kind);
721
throw ExceptionUtilities.
UnexpectedValue
(dagNode.Kind);
860
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind)
LanguageVersion.cs (2)
338
throw ExceptionUtilities.
UnexpectedValue
(version);
419
throw ExceptionUtilities.
UnexpectedValue
(version);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336
throw ExceptionUtilities.
UnexpectedValue
(method);
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
89
throw ExceptionUtilities.
UnexpectedValue
(local);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
129
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
598
throw ExceptionUtilities.
UnexpectedValue
(variable.Kind);
Lowering\ClosureConversion\ClosureConversion.cs (1)
785
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
157
throw ExceptionUtilities.
UnexpectedValue
(stmt.Kind);
249
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
478
throw ExceptionUtilities.
UnexpectedValue
(opKind.Operator());
789
throw ExceptionUtilities.
UnexpectedValue
(BoundKind.MethodGroup);
805
throw ExceptionUtilities.
UnexpectedValue
(node.Argument);
920
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
935
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
988
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
1043
throw ExceptionUtilities.
UnexpectedValue
(initializerKind); // no other options at the top level of an initializer
1161
throw ExceptionUtilities.
UnexpectedValue
(op);
1181
throw ExceptionUtilities.
UnexpectedValue
(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107
throw ExceptionUtilities.
UnexpectedValue
(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
74
throw ExceptionUtilities.
UnexpectedValue
(closureKind);
Lowering\InitializerRewriter.cs (1)
128
throw ExceptionUtilities.
UnexpectedValue
(initializer.Kind);
Lowering\Instrumentation\DebugInfoInjector.cs (3)
106
throw ExceptionUtilities.
UnexpectedValue
(original.Syntax.Kind());
154
throw ExceptionUtilities.
UnexpectedValue
(grandparent.Kind());
329
throw ExceptionUtilities.
UnexpectedValue
(original.Syntax.Kind());
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
129
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax.Parent.Kind());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
391
throw ExceptionUtilities.
UnexpectedValue
(original.Left);
490
_ => throw ExceptionUtilities.
UnexpectedValue
(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81
throw ExceptionUtilities.
UnexpectedValue
(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.cs (1)
1114
throw ExceptionUtilities.
UnexpectedValue
(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
640
throw ExceptionUtilities.
UnexpectedValue
(otherwise);
672
throw ExceptionUtilities.
UnexpectedValue
(n);
803
throw ExceptionUtilities.
UnexpectedValue
(input.Type);
818
_ => throw ExceptionUtilities.
UnexpectedValue
(input.Type.SpecialType)
857
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
870
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
929
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
941
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
956
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
964
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
1233
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
307
throw ExceptionUtilities.
UnexpectedValue
(evaluation);
367
throw ExceptionUtilities.
UnexpectedValue
(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57
throw ExceptionUtilities.
UnexpectedValue
(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
177
throw ExceptionUtilities.
UnexpectedValue
(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
218
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
266
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
532
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
2077
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
2383
throw ExceptionUtilities.
UnexpectedValue
(numericSpecialType);
2450
throw ExceptionUtilities.
UnexpectedValue
(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
869
var u => throw ExceptionUtilities.
UnexpectedValue
(u.Kind)
890
throw ExceptionUtilities.
UnexpectedValue
(argIndex);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
88
throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind);
388
var e => throw ExceptionUtilities.
UnexpectedValue
(e)
444
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
727
throw ExceptionUtilities.
UnexpectedValue
(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
515
throw ExceptionUtilities.
UnexpectedValue
(indexerAccess.Argument.Type);
836
throw ExceptionUtilities.
UnexpectedValue
(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (2)
101
throw ExceptionUtilities.
UnexpectedValue
(loweringKind);
196
throw ExceptionUtilities.
UnexpectedValue
(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
31
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Operand.Kind)
200
throw ExceptionUtilities.
UnexpectedValue
(current);
1672
throw ExceptionUtilities.
UnexpectedValue
(typeTo.SpecialType);
1692
throw ExceptionUtilities.
UnexpectedValue
(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
159
throw ExceptionUtilities.
UnexpectedValue
(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (4)
151
_ => throw ExceptionUtilities.
UnexpectedValue
(oldNode)
558
throw ExceptionUtilities.
UnexpectedValue
(strategy);
687
throw ExceptionUtilities.
UnexpectedValue
(strategy);
912
throw ExceptionUtilities.
UnexpectedValue
(startStrategy);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
64
throw ExceptionUtilities.
UnexpectedValue
(constantValue);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
81
throw ExceptionUtilities.
UnexpectedValue
(node);
299
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
Lowering\LocalRewriter\LocalRewriter_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 (2)
178
_ => throw ExceptionUtilities.
UnexpectedValue
(visitedArguments.Count),
199
throw ExceptionUtilities.
UnexpectedValue
(concatKind);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
84
throw ExceptionUtilities.
UnexpectedValue
(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
262
throw ExceptionUtilities.
UnexpectedValue
(@operator.InfoKind);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
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 (1)
244
_ => throw ExceptionUtilities.
UnexpectedValue
(proxy)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
180
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
682
throw ExceptionUtilities.
UnexpectedValue
(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
794
throw ExceptionUtilities.
UnexpectedValue
(input.Type);
1690
throw ExceptionUtilities.
UnexpectedValue
(refKind);
Operations\CSharpOperationFactory.cs (16)
333
throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind);
416
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
548
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
608
throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind);
799
throw ExceptionUtilities.
UnexpectedValue
(indexer.Kind);
815
throw ExceptionUtilities.
UnexpectedValue
(indexer.Kind);
902
throw ExceptionUtilities.
UnexpectedValue
(memberSymbol.Kind);
1253
throw ExceptionUtilities.
UnexpectedValue
(expr.CollectionTypeKind);
1475
{ Kind: var kind } => throw ExceptionUtilities.
UnexpectedValue
(kind)
2247
{ Kind: var kind } => throw ExceptionUtilities.
UnexpectedValue
(kind)
2340
throw ExceptionUtilities.
UnexpectedValue
(part.Kind);
2356
_ => throw ExceptionUtilities.
UnexpectedValue
(value.Kind),
2453
_ => throw ExceptionUtilities.
UnexpectedValue
(part.Kind)
2461
_ => throw ExceptionUtilities.
UnexpectedValue
(methodName)
2476
throw ExceptionUtilities.
UnexpectedValue
(current.Kind);
2499
_ => throw ExceptionUtilities.
UnexpectedValue
(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
260
throw ExceptionUtilities.
UnexpectedValue
(containingExpression.Kind);
Parser\LanguageParser.cs (6)
1715
throw ExceptionUtilities.
UnexpectedValue
(this.CurrentToken.Kind);
1995
throw ExceptionUtilities.
UnexpectedValue
(keyword.Kind);
7386
throw ExceptionUtilities.
UnexpectedValue
(mode);
11005
throw ExceptionUtilities.
UnexpectedValue
(op);
11588
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
12626
throw ExceptionUtilities.
UnexpectedValue
(type);
Parser\LanguageParser_InterpolatedString.cs (2)
88
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
249
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
Parser\Lexer.cs (2)
288
throw ExceptionUtilities.
UnexpectedValue
(ModeOf(_mode));
386
throw ExceptionUtilities.
UnexpectedValue
(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
119
throw ExceptionUtilities.
UnexpectedValue
(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (1)
73
throw ExceptionUtilities.
UnexpectedValue
(node.KindText);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
413
ExceptionUtilities.
UnexpectedValue
(node.Kind());
SymbolDisplay\SymbolDisplayVisitor.cs (2)
235
throw ExceptionUtilities.
UnexpectedValue
(Format.GlobalNamespaceStyle);
418
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
573
throw ExceptionUtilities.
UnexpectedValue
(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
662
throw ExceptionUtilities.
UnexpectedValue
(symbol.TypeKind);
Symbols\BaseTypeAnalysis.cs (1)
195
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
287
throw ExceptionUtilities.
UnexpectedValue
(descriptor.Flags);
355
throw ExceptionUtilities.
UnexpectedValue
(targetSymbolKind);
663
throw ExceptionUtilities.
UnexpectedValue
(attribute);
Symbols\ConstraintsHelper.cs (4)
287
throw ExceptionUtilities.
UnexpectedValue
(constraintType.TypeKind);
1137
throw ExceptionUtilities.
UnexpectedValue
(error);
1508
throw ExceptionUtilities.
UnexpectedValue
(typeArgument.TypeKind);
1651
throw ExceptionUtilities.
UnexpectedValue
(type2.NullableAnnotation);
Symbols\EnumConversions.cs (1)
42
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
232
_ => throw ExceptionUtilities.
UnexpectedValue
(index),
Symbols\MemberSignatureComparer.cs (1)
874
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
64
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
78
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
147
throw ExceptionUtilities.
UnexpectedValue
(member);
177
throw ExceptionUtilities.
UnexpectedValue
(member);
241
throw ExceptionUtilities.
UnexpectedValue
(member);
302
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
328
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
344
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
470
throw ExceptionUtilities.
UnexpectedValue
(m.Kind);
516
throw ExceptionUtilities.
UnexpectedValue
(s.Kind);
570
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
588
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
857
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
887
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
139
throw ExceptionUtilities.
UnexpectedValue
(memberRefOrMethodDef.Kind);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
268
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1167
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
819
throw ExceptionUtilities.
UnexpectedValue
(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
879
throw ExceptionUtilities.
UnexpectedValue
(_flags & TypeAttributes.VisibilityMask);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1220
_ => throw ExceptionUtilities.
UnexpectedValue
(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
148
_ => throw ExceptionUtilities.
UnexpectedValue
(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (1)
624
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\MethodSymbolExtensions.cs (1)
116
throw ExceptionUtilities.
UnexpectedValue
(hidingMember.Kind);
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\PublicModel\MethodSymbol.cs (1)
74
throw ExceptionUtilities.
UnexpectedValue
(_underlying.MethodKind);
Symbols\RefKindExtensions.cs (2)
34
throw ExceptionUtilities.
UnexpectedValue
(syntaxKind);
50
throw ExceptionUtilities.
UnexpectedValue
(refKind);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
686
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\Source\AttributeLocation.cs (1)
95
throw ExceptionUtilities.
UnexpectedValue
(i);
Symbols\Source\ModifierUtils.cs (2)
354
throw ExceptionUtilities.
UnexpectedValue
(modifier);
407
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Source\ParameterHelpers.cs (1)
800
throw ExceptionUtilities.
UnexpectedValue
(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (2)
1675
_ => throw ExceptionUtilities.
UnexpectedValue
(attribute)
2089
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Source\SourceCustomEventSymbol.cs (1)
121
throw ExceptionUtilities.
UnexpectedValue
(accessor.Kind());
Symbols\Source\SourceEventSymbol.cs (1)
168
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Symbols\Source\SourceLocalSymbol.cs (2)
458
throw ExceptionUtilities.
UnexpectedValue
(_declarationKind);
785
throw ExceptionUtilities.
UnexpectedValue
(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3974
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
4135
throw ExceptionUtilities.
UnexpectedValue
(symbol);
4652
throw ExceptionUtilities.
UnexpectedValue
(meth.MethodKind);
4663
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
4707
throw ExceptionUtilities.
UnexpectedValue
(meth.MethodKind);
4724
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
308
throw ExceptionUtilities.
UnexpectedValue
(matchResult);
525
throw ExceptionUtilities.
UnexpectedValue
(this.TypeKind);
1719
throw ExceptionUtilities.
UnexpectedValue
(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1425
throw ExceptionUtilities.
UnexpectedValue
(type.ManagedKindNoUseSiteDiagnostics);
1533
var unexpected => throw ExceptionUtilities.
UnexpectedValue
(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
395
throw ExceptionUtilities.
UnexpectedValue
(member);
403
throw ExceptionUtilities.
UnexpectedValue
(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
178
throw ExceptionUtilities.
UnexpectedValue
(typeDecl.Kind());
486
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
614
throw ExceptionUtilities.
UnexpectedValue
(baseType.TypeKind);
754
throw ExceptionUtilities.
UnexpectedValue
(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
220
throw ExceptionUtilities.
UnexpectedValue
(type);
342
_ => throw ExceptionUtilities.
UnexpectedValue
(signature.CallingConvention)
493
throw ExceptionUtilities.
UnexpectedValue
(annotation);
526
throw ExceptionUtilities.
UnexpectedValue
(type);
750
_ => throw ExceptionUtilities.
UnexpectedValue
(signature.CallingConvention)
793
_ => throw ExceptionUtilities.
UnexpectedValue
(refKind)
958
throw ExceptionUtilities.
UnexpectedValue
(argument.Kind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (7)
58
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
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 (2)
186
_ => throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind())
289
throw ExceptionUtilities.
UnexpectedValue
(accessor.Kind());
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 (1)
430
throw ExceptionUtilities.
UnexpectedValue
(extensionParameter.RefKind);
Symbols\Source\TypeParameterConstraintClause.cs (1)
114
ExceptionUtilities.
UnexpectedValue
(constraints); // This call asserts.
Symbols\Symbol.cs (4)
305
throw ExceptionUtilities.
UnexpectedValue
(DeclaredAccessibility);
703
throw ExceptionUtilities.
UnexpectedValue
(this.Kind);
1749
throw ExceptionUtilities.
UnexpectedValue
(variable);
1752
throw ExceptionUtilities.
UnexpectedValue
(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90
throw ExceptionUtilities.
UnexpectedValue
(namedType.TypeKind);
734
throw ExceptionUtilities.
UnexpectedValue
(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
521
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
51
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
248
static byte @throw(char c) => throw ExceptionUtilities.
UnexpectedValue
(c);
Symbols\Synthesized\GeneratedNames.cs (1)
482
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
281
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
203
_ => throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Symbols\Synthesized\RefKindVector.cs (2)
51
var bits => throw ExceptionUtilities.
UnexpectedValue
(bits)
64
_ => throw ExceptionUtilities.
UnexpectedValue
(value)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
179
var binder = getAccessor.TryGetBodyBinder() ?? throw ExceptionUtilities.
UnexpectedValue
(getAccessor);
Symbols\Tuples\TupleTypeSymbol.cs (2)
699
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
1090
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\TypeSymbol.cs (3)
1594
throw ExceptionUtilities.
UnexpectedValue
(interfaceMethod.MethodKind);
1975
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
2038
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
Symbols\TypeSymbolExtensions.cs (3)
943
throw ExceptionUtilities.
UnexpectedValue
(current.TypeKind);
1176
throw ExceptionUtilities.
UnexpectedValue
(acc1);
1531
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
163
throw ExceptionUtilities.
UnexpectedValue
(NullableAnnotation);
Symbols\VarianceSafety.cs (3)
86
throw ExceptionUtilities.
UnexpectedValue
(member.TypeKind);
412
throw ExceptionUtilities.
UnexpectedValue
(typeParam.Variance);
461
throw ExceptionUtilities.
UnexpectedValue
(unsafeTypeParameter.Variance);
Syntax\CSharpLineDirectiveMap.cs (1)
220
throw ExceptionUtilities.
UnexpectedValue
(entry.State);
Syntax\CSharpPragmaWarningStateMap.cs (1)
105
var kind => throw ExceptionUtilities.
UnexpectedValue
(kind)
Syntax\CSharpSyntaxTree.cs (1)
285
throw ExceptionUtilities.
UnexpectedValue
(directive.Kind());
Syntax\DirectiveTriviaSyntax.cs (1)
64
throw ExceptionUtilities.
UnexpectedValue
(this.Kind());
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 (1)
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.FloatingValueSet.cs (1)
88
throw ExceptionUtilities.
UnexpectedValue
(relation);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
49
throw ExceptionUtilities.
UnexpectedValue
(relation);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
85
throw ExceptionUtilities.
UnexpectedValue
(relation);
125
throw ExceptionUtilities.
UnexpectedValue
(relation);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
48
throw ExceptionUtilities.
UnexpectedValue
(relation);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
13434
_ => throw ExceptionUtilities.
UnexpectedValue
(expectedDiagnosticSeverity)
13898
throw ExceptionUtilities.
UnexpectedValue
(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27487
throw ExceptionUtilities.
UnexpectedValue
(expectedValue);
27507
throw ExceptionUtilities.
UnexpectedValue
(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
Diagnostics\GetDiagnosticsTests.cs (2)
1146
_ => throw ExceptionUtilities.
UnexpectedValue
(basePropertyDecl.Kind()),
1157
_ => throw ExceptionUtilities.
UnexpectedValue
(baseMethodDecl.Kind()),
PartialEventsAndConstructorsTests.cs (2)
1006
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
1174
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
RefReadonlyParameterTests.cs (2)
87
throw ExceptionUtilities.
UnexpectedValue
(customModifiers);
7080
_ => throw ExceptionUtilities.
UnexpectedValue
(modifier)
Semantics\ExtensionOperatorsTests.cs (17)
11412
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
11940
public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
16071
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
18727
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C2 y) => throw null;
18852
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C1 y) => throw null;
18971
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C2 y) => throw null;
19032
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C2 y) => throw null;
19080
public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(T x, T y) => throw null;
19136
public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1? x, S1? y) => throw null;
19183
public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1? x, S1? y) => throw null;
19218
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
19370
public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(void* x, S1 y) => throw null;
19409
public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, void* y) => throw null;
19448
public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(void* x, S1 y) => throw null;
19492
public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(void* x, S1 y) => throw null;
19534
public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, void* y) => throw null;
19578
public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (5)
5996
throw ExceptionUtilities.
UnexpectedValue
(refKind);
6790
throw ExceptionUtilities.
UnexpectedValue
(refKind);
7529
throw ExceptionUtilities.
UnexpectedValue
(refKind);
8508
throw ExceptionUtilities.
UnexpectedValue
(refKind);
9733
throw ExceptionUtilities.
UnexpectedValue
(refKind);
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 (5)
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);
SourceGeneration\GeneratorDriverFuzzTests.cs (1)
343
var num => throw ExceptionUtilities.
UnexpectedValue
(num)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\ExtendedPartialMethodsTests.cs (2)
2032
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
2184
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
Symbols\PartialPropertiesTests.cs (4)
366
throw ExceptionUtilities.
UnexpectedValue
(comp.GetMembers("C.P"));
403
throw ExceptionUtilities.
UnexpectedValue
(comp.GetMembers("C.P"));
2607
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
2755
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91
_ => throw ExceptionUtilities.
UnexpectedValue
(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
AttributeValidation.cs (1)
47
throw ExceptionUtilities.
UnexpectedValue
(accessibility);
CompilationTestUtils.cs (1)
284
throw ExceptionUtilities.
UnexpectedValue
(node);
Extensions.cs (3)
762
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
829
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
855
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
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 (7)
AbstractTypeParameterChecker.cs (3)
147
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
152
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
157
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
DkmUtilities.cs (1)
321
throw ExceptionUtilities.
UnexpectedValue
(accessibility);
EEMetadataReferenceResolver.cs (1)
77
throw ExceptionUtilities.
UnexpectedValue
(compareResult);
MetadataContextId.cs (1)
36
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
MetadataUtilities.cs (1)
300
throw ExceptionUtilities.
UnexpectedValue
(compareResult);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
114
throw ExceptionUtilities.
UnexpectedValue
(GetPrimitiveSpecialType(type));
Microsoft.CodeAnalysis.Test.Utilities (9)
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
438
_ => throw ExceptionUtilities.
UnexpectedValue
(severity)
2817
throw ExceptionUtilities.
UnexpectedValue
(_actionKind);
3218
throw ExceptionUtilities.
UnexpectedValue
(_analysisKind);
Metadata\ILBuilderVisualizer.cs (1)
500
throw ExceptionUtilities.
UnexpectedValue
(opcode);
Metadata\MetadataReaderUtils.cs (2)
176
throw ExceptionUtilities.
UnexpectedValue
(token.Kind);
229
throw ExceptionUtilities.
UnexpectedValue
(token.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (3)
248
throw ExceptionUtilities.
UnexpectedValue
(branch.Semantics);
341
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
396
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
Microsoft.CodeAnalysis.UnitTests (6)
AnalyzerAssemblyLoaderTests.cs (1)
1664
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
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\TestExtensionsMethods.nonnetstandard.cs (2)
38
_ => throw ExceptionUtilities.
UnexpectedValue
(dictionary),
50
_ => throw ExceptionUtilities.
UnexpectedValue
(dictionary),