1114 references to UnexpectedValue
Microsoft.CodeAnalysis (462)
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)
140
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
306
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
404
throw ExceptionUtilities.
UnexpectedValue
(lastChar);
Compilation\Compilation.cs (3)
2314
throw ExceptionUtilities.
UnexpectedValue
(platform);
2412
throw ExceptionUtilities.
UnexpectedValue
(outputKind);
2433
throw ExceptionUtilities.
UnexpectedValue
(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
371
throw ExceptionUtilities.
UnexpectedValue
(m);
394
throw ExceptionUtilities.
UnexpectedValue
(reference);
Compilation\OptimizationLevel.cs (1)
60
_ => throw ExceptionUtilities.
UnexpectedValue
(optimization)
ConstantValue.cs (6)
433
throw ExceptionUtilities.
UnexpectedValue
(discriminator);
483
ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.
UnexpectedValue
(Discriminator),
484
_ => throw ExceptionUtilities.
UnexpectedValue
(Discriminator)
538
default: throw ExceptionUtilities.
UnexpectedValue
(this.Discriminator);
805
default: throw ExceptionUtilities.
UnexpectedValue
(this.Discriminator);
833
_ => throw ExceptionUtilities.
UnexpectedValue
(Discriminator)
CryptographicHashProvider.cs (4)
60
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
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)
1187
throw ExceptionUtilities.
UnexpectedValue
(platformType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
578
throw ExceptionUtilities.
UnexpectedValue
(deletedMember);
661
throw ExceptionUtilities.
UnexpectedValue
(change);
1516
throw ExceptionUtilities.
UnexpectedValue
(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
213
throw ExceptionUtilities.
UnexpectedValue
(generatorChange);
279
throw ExceptionUtilities.
UnexpectedValue
(containerChange);
411
throw ExceptionUtilities.
UnexpectedValue
(edit.Kind);
Emit\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 (328)
4054
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4069
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4085
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4109
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4124
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4140
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4173
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4191
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4210
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4267
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4291
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4316
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4355
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4381
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4408
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4459
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4489
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4520
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4570
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4583
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4597
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4617
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4631
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4656
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4669
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4683
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4714
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4730
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4747
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4783
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4804
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4826
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4861
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4877
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4894
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4918
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4931
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4945
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4976
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4992
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5009
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5023
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5037
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5066
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5084
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5103
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5121
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5154
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5167
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5181
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5217
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5235
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5254
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5284
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5302
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5321
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5343
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5362
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5400
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5413
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5427
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5456
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5469
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5483
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5515
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5533
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5552
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5579
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5592
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5606
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5642
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5655
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5669
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5714
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5730
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5747
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5785
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5804
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5824
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5858
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5874
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5891
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5917
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5930
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5944
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5977
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5995
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6014
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6039
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6052
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6066
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6096
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6114
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6133
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6152
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6181
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6194
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6208
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6233
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6246
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6260
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6300
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6316
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6333
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6375
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6391
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6408
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6434
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6447
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6461
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6493
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6509
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6526
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6556
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6572
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6589
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6606
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6632
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6647
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6663
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6688
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6703
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6719
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6744
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6759
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6775
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6805
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6821
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6838
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6864
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6877
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6891
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6918
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6933
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6949
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6980
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6993
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7007
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7032
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7045
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7059
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7084
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7097
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7111
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7129
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7148
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7168
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7193
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7206
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7220
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7250
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7266
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7283
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7319
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7332
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7346
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7371
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7384
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7398
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7424
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7440
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7457
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7482
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7495
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7509
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7526
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7561
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7574
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7588
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7608
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7621
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7635
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7659
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7672
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7686
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7710
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7723
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7737
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7761
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7776
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7792
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7823
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7841
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7860
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7894
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7917
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7941
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7975
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7988
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8002
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8040
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8059
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8079
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8112
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8132
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8153
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8177
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8207
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8223
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8240
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8269
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8285
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8302
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8328
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8341
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8355
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8379
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8392
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8406
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8435
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8448
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8462
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8496
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8515
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8535
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8570
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8583
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8597
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8619
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8651
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8667
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8684
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8718
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8734
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8751
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8783
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8802
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8822
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8841
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8867
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8880
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8894
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8916
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8942
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8955
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8969
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8986
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9005
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9031
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9047
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9064
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9098
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9114
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9131
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9157
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9172
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9188
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9217
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9235
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9254
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9289
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9309
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9330
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9344
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9376
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9394
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9413
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9449
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9468
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9488
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9517
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9533
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9550
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9580
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9596
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9613
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9644
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9660
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9677
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9702
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9715
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9729
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9748
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9777
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9793
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9810
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9838
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9851
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9865
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9889
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9902
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9916
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9947
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9963
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9980
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9998
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10024
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10037
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10051
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10083
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10099
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10116
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10150
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10166
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10183
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10212
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10228
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10245
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10270
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10283
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10297
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10317
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10347
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10365
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10384
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10414
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10429
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10445
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10471
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10484
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10498
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10532
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10548
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10565
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10584
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10608
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10621
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10635
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10665
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10681
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10698
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10730
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10750
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10771
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10800
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10813
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10827
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10844
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
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)
276
throw ExceptionUtilities.
UnexpectedValue
(c);
373
throw ExceptionUtilities.
UnexpectedValue
(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
135
throw ExceptionUtilities.
UnexpectedValue
(specialType);
MetadataReader\PEModule.cs (8)
1294
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
1314
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1813
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1862
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1876
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1909
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1958
throw ExceptionUtilities.
UnexpectedValue
(info.SignatureIndex);
3351
throw ExceptionUtilities.
UnexpectedValue
(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135
throw ExceptionUtilities.
UnexpectedValue
(_contentType);
Operations\ControlFlowGraphBuilder.cs (15)
339
throw ExceptionUtilities.
UnexpectedValue
(branch.Kind);
428
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
484
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
604
throw ExceptionUtilities.
UnexpectedValue
(region.Kind);
2283
throw ExceptionUtilities.
UnexpectedValue
(binOp.OperatorKind);
3851
throw ExceptionUtilities.
UnexpectedValue
(operation.Kind);
5639
throw ExceptionUtilities.
UnexpectedValue
(relationalValueClause.Relation);
5659
throw ExceptionUtilities.
UnexpectedValue
(caseClause.CaseKind);
6276
throw ExceptionUtilities.
UnexpectedValue
(originalTarget.Kind);
6348
throw ExceptionUtilities.
UnexpectedValue
(lhs.Kind);
6549
throw ExceptionUtilities.
UnexpectedValue
("Mixed argument operations and non-argument operations in ConstructArguments");
6938
throw ExceptionUtilities.
UnexpectedValue
(currentAddition.Left.Kind);
6950
throw ExceptionUtilities.
UnexpectedValue
(currentAddition.Left.Kind);
7024
throw ExceptionUtilities.
UnexpectedValue
(operation.PlaceholderKind);
7098
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)
2272
throw ExceptionUtilities.
UnexpectedValue
(exportedType);
2900
throw ExceptionUtilities.
UnexpectedValue
(typeRef);
3151
_ => throw ExceptionUtilities.
UnexpectedValue
(reference)
3331
throw ExceptionUtilities.
UnexpectedValue
(rawTokenEncoding);
3406
throw ExceptionUtilities.
UnexpectedValue
(operandType);
4040
throw ExceptionUtilities.
UnexpectedValue
(primitiveType);
4146
throw ExceptionUtilities.
UnexpectedValue
(primitiveType);
PEWriter\MetadataWriter.PortablePdb.cs (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 (574)
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)
423
throw ExceptionUtilities.
UnexpectedValue
(topClause.Kind());
Binder\Binder.OperatorResolutionForReporting.cs (2)
215
throw ExceptionUtilities.
UnexpectedValue
(result);
310
throw ExceptionUtilities.
UnexpectedValue
(result);
Binder\Binder.ValueChecks.cs (16)
82
_ => throw ExceptionUtilities.
UnexpectedValue
(accessorKind),
385
_ => throw ExceptionUtilities.
UnexpectedValue
(EscapeLevel)
1141
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexer.IndexerOrSliceAccess.Kind);
1646
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
1678
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
1693
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
3519
throw ExceptionUtilities.
UnexpectedValue
(kind);
3547
throw ExceptionUtilities.
UnexpectedValue
(kind);
3591
throw ExceptionUtilities.
UnexpectedValue
(kind);
3885
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4182
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4519
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4829
throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind); // ref struct collection type with unexpected type kind
5221
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
5863
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
5906
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 (26)
822
throw ExceptionUtilities.
UnexpectedValue
(v);
959
_ => throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind),
1057
throw ExceptionUtilities.
UnexpectedValue
(@this._targetType);
1687
throw ExceptionUtilities.
UnexpectedValue
(targetType);
2162
throw ExceptionUtilities.
UnexpectedValue
(element);
2178
throw ExceptionUtilities.
UnexpectedValue
(element);
2730
_ => throw ExceptionUtilities.
UnexpectedValue
(source),
2904
throw ExceptionUtilities.
UnexpectedValue
(conversion.Kind);
3317
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateType),
3457
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
3465
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
3812
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3832
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3852
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3872
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3892
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3911
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3931
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3951
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3971
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3991
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4011
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4035
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4055
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4058
throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
4161
default: throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
Binder\Binder_Crefs.cs (4)
42
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
134
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
800
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1022
throw ExceptionUtilities.
UnexpectedValue
(candidate.Kind);
Binder\Binder_Deconstruct.cs (2)
385
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
850
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Binder\Binder_Expressions.cs (13)
1030
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
1615
throw ExceptionUtilities.
UnexpectedValue
(managedKind);
2216
_ => throw ExceptionUtilities.
UnexpectedValue
(alias.Target.Kind),
2225
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
2570
throw ExceptionUtilities.
UnexpectedValue
(symbol);
3260
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
3939
throw ExceptionUtilities.
UnexpectedValue
(argumentIndex);
5326
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
5373
_ => throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind())
7197
throw ExceptionUtilities.
UnexpectedValue
(classCreation.Kind);
8285
throw ExceptionUtilities.
UnexpectedValue
(extensionMember.Kind);
8738
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
9586
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)
1120
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
Binder\Binder_Lookup.cs (2)
258
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1614
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Binder\Binder_Operators.cs (7)
1275
_ => throw ExceptionUtilities.
UnexpectedValue
(current.Right.Kind)
2661
throw ExceptionUtilities.
UnexpectedValue
(kind);
2682
throw ExceptionUtilities.
UnexpectedValue
(underlyingType);
2745
throw ExceptionUtilities.
UnexpectedValue
(newKind.Operator());
3236
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
4624
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
5288
throw ExceptionUtilities.
UnexpectedValue
(conversionKind);
Binder\Binder_Patterns.cs (3)
197
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
934
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
1465
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());
1709
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
1761
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind)
1782
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
3611
_ => throw ExceptionUtilities.
UnexpectedValue
(expressionBody.Parent.Kind()),
3695
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Binder\Binder_Symbols.cs (3)
167
throw ExceptionUtilities.
UnexpectedValue
(keyword);
740
throw ExceptionUtilities.
UnexpectedValue
(typesArray.Length);
1480
throw ExceptionUtilities.
UnexpectedValue
(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
116
throw ExceptionUtilities.
UnexpectedValue
(comparison);
156
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());
1190
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Binder\DecisionDagBuilder.cs (10)
290
throw ExceptionUtilities.
UnexpectedValue
(toAssemble);
294
throw ExceptionUtilities.
UnexpectedValue
(current);
360
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
1004
throw ExceptionUtilities.
UnexpectedValue
(n.Kind);
1272
throw ExceptionUtilities.
UnexpectedValue
(n?.Kind);
1356
throw ExceptionUtilities.
UnexpectedValue
(test);
2723
throw ExceptionUtilities.
UnexpectedValue
(e);
2963
throw ExceptionUtilities.
UnexpectedValue
(test);
2983
throw ExceptionUtilities.
UnexpectedValue
(test);
3001
_ => throw ExceptionUtilities.
UnexpectedValue
(negated),
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
743
throw ExceptionUtilities.
UnexpectedValue
(operandOrOperation);
Binder\ExpressionVariableFinder.cs (3)
259
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
438
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
524
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());
1650
throw ExceptionUtilities.
UnexpectedValue
(enumeratorType.TypeKind);
Binder\LookupResultKind.cs (1)
98
throw ExceptionUtilities.
UnexpectedValue
(resultKind);
Binder\PatternExplainer.cs (2)
200
throw ExceptionUtilities.
UnexpectedValue
(currentNode.Kind);
484
throw ExceptionUtilities.
UnexpectedValue
(v);
Binder\RefSafetyAnalysis.cs (1)
915
throw ExceptionUtilities.
UnexpectedValue
(placeholder.ArgumentIndex + extensionBlockFormOffset);
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)
1089
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateOrFunctionPointerType)
1470
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1473
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
4409
throw ExceptionUtilities.
UnexpectedValue
(member);
4790
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
475
throw ExceptionUtilities.
UnexpectedValue
(result.Result.Kind);
1568
throw ExceptionUtilities.
UnexpectedValue
(kind);
Binder\SwitchBinder_Patterns.cs (2)
130
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
293
throw ExceptionUtilities.
UnexpectedValue
(node);
Binder\WhileBinder.cs (1)
62
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
Binder\WithCrefTypeParametersBinder.cs (2)
73
throw ExceptionUtilities.
UnexpectedValue
(_crefSyntax.Kind());
100
throw ExceptionUtilities.
UnexpectedValue
(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (1)
194
throw ExceptionUtilities.
UnexpectedValue
(_declarationSyntax);
BoundTree\BoundConversion.cs (1)
145
ExceptionUtilities.
UnexpectedValue
(InConversionGroupFlags);
BoundTree\BoundDagEvaluation.cs (1)
61
_ => throw ExceptionUtilities.
UnexpectedValue
(this.Kind)
BoundTree\BoundDagTest.cs (1)
41
throw ExceptionUtilities.
UnexpectedValue
(this);
BoundTree\BoundDecisionDag.cs (3)
42
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
135
throw ExceptionUtilities.
UnexpectedValue
(dag);
197
throw ExceptionUtilities.
UnexpectedValue
(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51
throw ExceptionUtilities.
UnexpectedValue
(this);
BoundTree\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 (5)
45
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
134
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
176
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind); // Should be handled by caller.
180
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
207
ExceptionUtilities.
UnexpectedValue
(conversionKind);
CodeGen\EmitExpression.cs (6)
174
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
365
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
743
throw ExceptionUtilities.
UnexpectedValue
(refKind);
2993
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
3014
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
3201
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());
1205
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)
3796
throw ExceptionUtilities.
UnexpectedValue
(containingMember.Kind);
4024
throw ExceptionUtilities.
UnexpectedValue
(boundNodeForSyntacticParent.Kind);
Compilation\InitializerSemanticModel.cs (3)
105
throw ExceptionUtilities.
UnexpectedValue
(rootSyntax.Kind());
182
throw ExceptionUtilities.
UnexpectedValue
(this.MemberSymbol.Kind);
286
throw ExceptionUtilities.
UnexpectedValue
(MemberSymbol.Kind);
Compilation\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());
2492
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
2530
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
2557
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)
1319
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Compiler\MethodCompiler.cs (2)
2040
throw ExceptionUtilities.
UnexpectedValue
(methodBody.Kind);
2172
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)
282
throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind);
378
throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind);
460
_ => throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind),
787
throw ExceptionUtilities.
UnexpectedValue
(type.Kind);
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62
throw ExceptionUtilities.
UnexpectedValue
(value);
Emitter\Model\PEModuleBuilder.cs (7)
250
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
292
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
371
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
437
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
444
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
918
throw ExceptionUtilities.
UnexpectedValue
(type);
1316
throw ExceptionUtilities.
UnexpectedValue
(typeSymbol.Kind);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
337
throw ExceptionUtilities.
UnexpectedValue
(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
571
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
728
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);
1567
throw ExceptionUtilities.
UnexpectedValue
(refKind);
2477
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
2499
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
FlowAnalysis\DefiniteAssignment.cs (1)
2082
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
FlowAnalysis\ExitPointsWalker.cs (1)
148
throw ExceptionUtilities.
UnexpectedValue
(pending.Branch.Kind);
FlowAnalysis\NullableWalker.cs (13)
608
throw ExceptionUtilities.
UnexpectedValue
(placeholder.Kind);
2058
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
4449
ExceptionUtilities.
UnexpectedValue
(node.Kind);
5010
_ => throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
5087
_ => throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
6116
_ => throw ExceptionUtilities.
UnexpectedValue
(node.OperatorResultKind),
7534
throw ExceptionUtilities.
UnexpectedValue
(member);
8040
throw ExceptionUtilities.
UnexpectedValue
(refKind);
8132
throw ExceptionUtilities.
UnexpectedValue
(refKind);
8284
throw ExceptionUtilities.
UnexpectedValue
(refKind);
12106
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Syntax)
12428
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
12443
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
FlowAnalysis\NullableWalker_Patterns.cs (6)
244
throw ExceptionUtilities.
UnexpectedValue
(pattern);
530
throw ExceptionUtilities.
UnexpectedValue
(p.Evaluation.Kind);
607
throw ExceptionUtilities.
UnexpectedValue
(test.Kind);
666
throw ExceptionUtilities.
UnexpectedValue
(dagNode.Kind);
819
throw ExceptionUtilities.
UnexpectedValue
(evaluation.Kind);
958
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
159
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
LanguageVersion.cs (2)
360
throw ExceptionUtilities.
UnexpectedValue
(version);
443
throw ExceptionUtilities.
UnexpectedValue
(version);
Lowering\AsyncRewriter\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)
158
throw ExceptionUtilities.
UnexpectedValue
(stmt.Kind);
256
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
485
throw ExceptionUtilities.
UnexpectedValue
(opKind.Operator());
807
throw ExceptionUtilities.
UnexpectedValue
(BoundKind.MethodGroup);
823
throw ExceptionUtilities.
UnexpectedValue
(node.Argument);
952
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
979
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
1032
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
1087
throw ExceptionUtilities.
UnexpectedValue
(initializerKind); // no other options at the top level of an initializer
1211
throw ExceptionUtilities.
UnexpectedValue
(op);
1231
throw ExceptionUtilities.
UnexpectedValue
(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107
throw ExceptionUtilities.
UnexpectedValue
(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
76
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)
395
throw ExceptionUtilities.
UnexpectedValue
(original.Left);
497
_ => throw ExceptionUtilities.
UnexpectedValue
(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81
throw ExceptionUtilities.
UnexpectedValue
(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.cs (1)
1128
throw ExceptionUtilities.
UnexpectedValue
(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
640
throw ExceptionUtilities.
UnexpectedValue
(otherwise);
672
throw ExceptionUtilities.
UnexpectedValue
(n);
811
throw ExceptionUtilities.
UnexpectedValue
(input.Type);
826
_ => throw ExceptionUtilities.
UnexpectedValue
(input.Type.SpecialType)
865
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
878
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
937
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
949
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
964
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
972
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
1241
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
312
throw ExceptionUtilities.
UnexpectedValue
(evaluation);
372
throw ExceptionUtilities.
UnexpectedValue
(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57
throw ExceptionUtilities.
UnexpectedValue
(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
187
throw ExceptionUtilities.
UnexpectedValue
(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
218
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
266
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
532
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
2078
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
2384
throw ExceptionUtilities.
UnexpectedValue
(numericSpecialType);
2451
throw ExceptionUtilities.
UnexpectedValue
(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
891
var u => throw ExceptionUtilities.
UnexpectedValue
(u.Kind)
912
throw ExceptionUtilities.
UnexpectedValue
(argIndex);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
98
throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind);
476
var e => throw ExceptionUtilities.
UnexpectedValue
(e)
536
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
834
throw ExceptionUtilities.
UnexpectedValue
(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
551
throw ExceptionUtilities.
UnexpectedValue
(indexerAccess.Argument.Type);
872
throw ExceptionUtilities.
UnexpectedValue
(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (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);
1689
throw ExceptionUtilities.
UnexpectedValue
(typeTo.SpecialType);
1709
throw ExceptionUtilities.
UnexpectedValue
(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
159
throw ExceptionUtilities.
UnexpectedValue
(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (4)
153
_ => throw ExceptionUtilities.
UnexpectedValue
(oldNode)
597
throw ExceptionUtilities.
UnexpectedValue
(strategy);
727
throw ExceptionUtilities.
UnexpectedValue
(strategy);
952
throw ExceptionUtilities.
UnexpectedValue
(startStrategy);
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
64
throw ExceptionUtilities.
UnexpectedValue
(constantValue);
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
81
throw ExceptionUtilities.
UnexpectedValue
(node);
299
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
Lowering\LocalRewriter\LocalRewriter_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)
267
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)
245
_ => throw ExceptionUtilities.
UnexpectedValue
(proxy)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
187
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
299
throw ExceptionUtilities.
UnexpectedValue
(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
810
throw ExceptionUtilities.
UnexpectedValue
(input.Type);
1686
throw ExceptionUtilities.
UnexpectedValue
(refKind);
Operations\CSharpOperationFactory.cs (16)
340
throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind);
423
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
555
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
615
throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind);
814
throw ExceptionUtilities.
UnexpectedValue
(indexer.Kind);
830
throw ExceptionUtilities.
UnexpectedValue
(indexer.Kind);
917
throw ExceptionUtilities.
UnexpectedValue
(memberSymbol.Kind);
1264
throw ExceptionUtilities.
UnexpectedValue
(expr.CollectionTypeKind);
1525
{ Kind: var kind } => throw ExceptionUtilities.
UnexpectedValue
(kind)
2288
{ Kind: var kind } => throw ExceptionUtilities.
UnexpectedValue
(kind)
2381
throw ExceptionUtilities.
UnexpectedValue
(part.Kind);
2397
_ => throw ExceptionUtilities.
UnexpectedValue
(value.Kind),
2494
_ => throw ExceptionUtilities.
UnexpectedValue
(part.Kind)
2502
_ => throw ExceptionUtilities.
UnexpectedValue
(methodName)
2517
throw ExceptionUtilities.
UnexpectedValue
(current.Kind);
2540
_ => throw ExceptionUtilities.
UnexpectedValue
(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
260
throw ExceptionUtilities.
UnexpectedValue
(containingExpression.Kind);
Parser\LanguageParser.cs (7)
1723
throw ExceptionUtilities.
UnexpectedValue
(this.CurrentToken.Kind);
1997
throw ExceptionUtilities.
UnexpectedValue
(keyword.Kind);
7577
throw ExceptionUtilities.
UnexpectedValue
(mode);
9737
throw ExceptionUtilities.
UnexpectedValue
(decl.designation.Kind);
11298
throw ExceptionUtilities.
UnexpectedValue
(op);
11884
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
12952
throw ExceptionUtilities.
UnexpectedValue
(type);
Parser\LanguageParser_InterpolatedString.cs (2)
185
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
357
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
Parser\Lexer.cs (2)
288
throw ExceptionUtilities.
UnexpectedValue
(ModeOf(_mode));
371
throw ExceptionUtilities.
UnexpectedValue
(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
88
throw ExceptionUtilities.
UnexpectedValue
(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
89
throw ExceptionUtilities.
UnexpectedValue
(node.KindText);
123
_ => throw ExceptionUtilities.
UnexpectedValue
(name.KindText),
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
464
ExceptionUtilities.
UnexpectedValue
(node.Kind());
SymbolDisplay\SymbolDisplayVisitor.cs (2)
235
throw ExceptionUtilities.
UnexpectedValue
(Format.GlobalNamespaceStyle);
418
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
573
throw ExceptionUtilities.
UnexpectedValue
(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
662
throw ExceptionUtilities.
UnexpectedValue
(symbol.TypeKind);
Symbols\BaseTypeAnalysis.cs (1)
195
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
291
throw ExceptionUtilities.
UnexpectedValue
(descriptor.Flags);
359
throw ExceptionUtilities.
UnexpectedValue
(targetSymbolKind);
679
throw ExceptionUtilities.
UnexpectedValue
(attribute);
Symbols\ConstraintsHelper.cs (4)
287
throw ExceptionUtilities.
UnexpectedValue
(constraintType.TypeKind);
1135
throw ExceptionUtilities.
UnexpectedValue
(error);
1506
throw ExceptionUtilities.
UnexpectedValue
(typeArgument.TypeKind);
1649
throw ExceptionUtilities.
UnexpectedValue
(type2.NullableAnnotation);
Symbols\EnumConversions.cs (1)
42
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
231
_ => throw ExceptionUtilities.
UnexpectedValue
(index),
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
186
throw ExceptionUtilities.
UnexpectedValue
(unexpected);
Symbols\MemberSignatureComparer.cs (1)
850
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
64
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
78
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
148
throw ExceptionUtilities.
UnexpectedValue
(member);
178
throw ExceptionUtilities.
UnexpectedValue
(member);
242
throw ExceptionUtilities.
UnexpectedValue
(member);
308
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
334
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
350
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
476
throw ExceptionUtilities.
UnexpectedValue
(m.Kind);
522
throw ExceptionUtilities.
UnexpectedValue
(s.Kind);
576
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
594
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
863
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
893
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)
1165
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
698
throw ExceptionUtilities.
UnexpectedValue
(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
902
throw ExceptionUtilities.
UnexpectedValue
(_flags & TypeAttributes.VisibilityMask);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1268
_ => throw ExceptionUtilities.
UnexpectedValue
(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
148
_ => throw ExceptionUtilities.
UnexpectedValue
(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (1)
628
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)
75
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)
826
throw ExceptionUtilities.
UnexpectedValue
(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (2)
1675
_ => throw ExceptionUtilities.
UnexpectedValue
(attribute)
2091
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)
556
throw ExceptionUtilities.
UnexpectedValue
(_declarationKind);
855
throw ExceptionUtilities.
UnexpectedValue
(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3920
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
4087
throw ExceptionUtilities.
UnexpectedValue
(symbol);
4604
throw ExceptionUtilities.
UnexpectedValue
(meth.MethodKind);
4615
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
4659
throw ExceptionUtilities.
UnexpectedValue
(meth.MethodKind);
4676
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
308
throw ExceptionUtilities.
UnexpectedValue
(matchResult);
531
throw ExceptionUtilities.
UnexpectedValue
(this.TypeKind);
1734
throw ExceptionUtilities.
UnexpectedValue
(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1437
throw ExceptionUtilities.
UnexpectedValue
(type.ManagedKindNoUseSiteDiagnostics);
1545
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)
179
throw ExceptionUtilities.
UnexpectedValue
(typeDecl.Kind());
487
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
622
throw ExceptionUtilities.
UnexpectedValue
(baseType.TypeKind);
774
throw ExceptionUtilities.
UnexpectedValue
(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
187
throw ExceptionUtilities.
UnexpectedValue
(type);
309
_ => throw ExceptionUtilities.
UnexpectedValue
(signature.CallingConvention)
460
throw ExceptionUtilities.
UnexpectedValue
(annotation);
493
throw ExceptionUtilities.
UnexpectedValue
(type);
715
_ => throw ExceptionUtilities.
UnexpectedValue
(signature.CallingConvention)
758
_ => throw ExceptionUtilities.
UnexpectedValue
(refKind)
926
throw ExceptionUtilities.
UnexpectedValue
(argument.Kind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (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)
185
_ => throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind())
288
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);
1751
throw ExceptionUtilities.
UnexpectedValue
(variable);
1754
throw ExceptionUtilities.
UnexpectedValue
(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90
throw ExceptionUtilities.
UnexpectedValue
(namedType.TypeKind);
738
throw ExceptionUtilities.
UnexpectedValue
(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
522
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
51
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
248
static byte @throw(char c) => throw ExceptionUtilities.
UnexpectedValue
(c);
Symbols\Synthesized\GeneratedNames.cs (1)
482
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
Symbols\Synthesized\ReadOnlyListType\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)
187
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)
1582
throw ExceptionUtilities.
UnexpectedValue
(interfaceMethod.MethodKind);
1963
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
2026
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
Symbols\TypeSymbolExtensions.cs (3)
971
throw ExceptionUtilities.
UnexpectedValue
(current.TypeKind);
1204
throw ExceptionUtilities.
UnexpectedValue
(acc1);
1559
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
163
throw ExceptionUtilities.
UnexpectedValue
(NullableAnnotation);
Symbols\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)
13439
_ => throw ExceptionUtilities.
UnexpectedValue
(expectedDiagnosticSeverity)
13903
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 (32)
Diagnostics\GetDiagnosticsTests.cs (2)
1146
_ => throw ExceptionUtilities.
UnexpectedValue
(basePropertyDecl.Kind()),
1157
_ => throw ExceptionUtilities.
UnexpectedValue
(baseMethodDecl.Kind()),
PartialEventsAndConstructorsTests.cs (2)
1064
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
1232
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
RefReadonlyParameterTests.cs (2)
87
throw ExceptionUtilities.
UnexpectedValue
(customModifiers);
7089
_ => throw ExceptionUtilities.
UnexpectedValue
(modifier)
Semantics\CollectionExpressionTests_WithElement_Extra.cs (1)
1002
throw ExceptionUtilities.
UnexpectedValue
(typeName);
Semantics\ExtensionOperatorsTests.cs (17)
11469
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
11996
public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
16126
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
18824
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C2 y) => throw null;
18949
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C1 y) => throw null;
19068
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C2 y) => throw null;
19129
public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(C1 x, C2 y) => throw null;
19177
public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(T x, T y) => throw null;
19233
public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1? x, S1? y) => throw null;
19280
public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1? x, S1? y) => throw null;
19315
public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, S1 y) => throw null;
19503
public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(void* x, S1 y) => throw null;
19571
public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, void* y) => throw null;
19603
public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(void* x, S1 y) => throw null;
19647
public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(void* x, S1 y) => throw null;
19689
public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, void* y) => throw null;
19733
public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.
UnexpectedValue
(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (6)
9038
throw ExceptionUtilities.
UnexpectedValue
(refKind);
10428
throw ExceptionUtilities.
UnexpectedValue
(refKind);
11786
throw ExceptionUtilities.
UnexpectedValue
(refKind);
12525
throw ExceptionUtilities.
UnexpectedValue
(refKind);
13504
throw ExceptionUtilities.
UnexpectedValue
(refKind);
15097
throw ExceptionUtilities.
UnexpectedValue
(refKind);
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)
2022
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
2174
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
Symbols\PartialPropertiesTests.cs (4)
393
throw ExceptionUtilities.
UnexpectedValue
(comp.GetMembers("C.P"));
430
throw ExceptionUtilities.
UnexpectedValue
(comp.GetMembers("C.P"));
2634
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
2782
_ => throw ExceptionUtilities.
UnexpectedValue
(access),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91
_ => throw ExceptionUtilities.
UnexpectedValue
(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (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)
2820
throw ExceptionUtilities.
UnexpectedValue
(_actionKind);
3221
throw ExceptionUtilities.
UnexpectedValue
(_analysisKind);
Metadata\ILBuilderVisualizer.cs (1)
509
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)
1662
_ => 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),