1112 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);
82
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
126
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
288
throw ExceptionUtilities.
UnexpectedValue
(constant.Discriminator);
Diagnostic\Diagnostic.cs (1)
546
throw ExceptionUtilities.
UnexpectedValue
(reportAction);
Diagnostic\DiagnosticDescriptor.cs (2)
262
throw ExceptionUtilities.
UnexpectedValue
(severity);
281
throw ExceptionUtilities.
UnexpectedValue
(severity);
Diagnostic\DiagnosticFormatter.cs (1)
100
throw ExceptionUtilities.
UnexpectedValue
(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (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)
4056
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4071
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4087
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4111
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4126
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4142
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4175
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4193
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4212
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4269
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4293
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4318
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4357
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4383
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4410
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4461
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4491
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4522
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4572
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4585
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4599
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4619
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4633
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4658
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4671
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4685
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4716
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4732
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4749
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4785
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4806
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4828
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4863
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4879
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4896
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4920
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4933
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4947
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4978
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4994
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5011
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5025
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5039
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5068
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5086
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5105
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5123
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5156
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5169
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5183
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5219
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5237
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5256
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5286
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5304
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5323
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5345
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5364
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5402
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5415
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5429
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5458
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5471
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5485
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5517
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5535
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5554
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5581
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5594
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5608
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5644
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5657
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5671
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5716
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5732
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5749
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5787
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5806
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5826
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5860
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5876
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5893
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5919
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5932
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5946
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5979
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5997
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6016
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6041
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6054
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6068
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6098
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6116
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6135
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6154
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6183
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6196
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6210
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6235
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6248
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6262
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6302
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6318
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6335
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6377
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6393
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6410
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6436
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6449
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6463
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6495
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6511
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6528
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6558
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6574
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6591
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6608
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6634
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6649
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6665
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6690
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6705
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6721
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6746
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6761
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6777
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6807
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6823
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6840
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6866
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6879
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6893
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6920
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6935
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6951
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6982
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6995
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7009
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7034
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7047
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7061
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7086
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7099
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7113
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7131
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7150
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7170
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7195
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7208
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7222
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7252
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7268
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7285
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7321
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7334
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7348
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7373
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7386
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7400
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7426
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7442
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7459
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7484
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7497
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7511
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7528
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7563
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7576
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7590
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7610
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7623
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7637
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7661
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7674
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7688
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7712
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7725
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7739
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7763
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7778
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7794
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7825
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7843
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7862
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7896
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7919
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7943
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7977
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7990
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8004
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8042
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8061
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8081
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8114
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8134
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8155
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8179
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8209
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8225
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8242
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8271
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8287
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8304
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8330
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8343
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8357
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8381
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8394
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8408
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8437
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8450
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8464
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8498
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8517
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8537
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8572
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8585
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8599
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8621
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8653
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8669
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8686
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8720
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8736
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8753
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8785
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8804
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8824
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8843
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8869
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8882
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8896
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8918
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8944
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8957
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8971
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8988
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9007
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9033
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9049
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9066
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9100
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9116
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9133
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9159
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9174
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9190
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9219
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9237
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9256
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9291
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9311
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9332
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9346
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9378
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9396
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9415
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9451
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9470
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9490
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9519
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9535
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9552
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9582
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9598
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9615
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9646
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9662
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9679
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9704
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9717
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9731
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9750
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9779
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9795
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9812
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9840
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9853
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9867
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9891
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9904
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9918
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9949
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9965
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9982
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10000
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10026
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10039
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10053
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10085
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10101
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10118
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10152
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10168
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10185
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10214
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10230
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10247
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10272
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10285
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10299
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10319
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10349
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10367
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10386
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10416
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10431
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10447
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10473
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10486
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10500
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10534
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10550
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10567
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10586
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10610
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10623
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10637
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10667
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10683
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10700
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10732
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10752
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10773
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10802
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10815
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10829
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10846
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
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)
1311
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
1331
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1830
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1879
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1893
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1926
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1975
throw ExceptionUtilities.
UnexpectedValue
(info.SignatureIndex);
3368
throw ExceptionUtilities.
UnexpectedValue
(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135
throw ExceptionUtilities.
UnexpectedValue
(_contentType);
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);
7027
throw ExceptionUtilities.
UnexpectedValue
(operation.PlaceholderKind);
7101
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)
47
_ => throw ExceptionUtilities.
UnexpectedValue
(algorithm),
66
_ => throw ExceptionUtilities.
UnexpectedValue
(algorithm)
Microsoft.CodeAnalysis.CSharp (571)
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);
3524
throw ExceptionUtilities.
UnexpectedValue
(kind);
3552
throw ExceptionUtilities.
UnexpectedValue
(kind);
3596
throw ExceptionUtilities.
UnexpectedValue
(kind);
3890
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4187
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4524
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4834
throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind); // ref struct collection type with unexpected type kind
5226
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
5868
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
5911
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
Binder\Binder_Constraints.cs (4)
287
throw ExceptionUtilities.
UnexpectedValue
(keyword);
336
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
467
_ => throw ExceptionUtilities.
UnexpectedValue
(containingSymbol)
628
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Binder\Binder_Conversions.cs (26)
824
throw ExceptionUtilities.
UnexpectedValue
(v);
961
_ => throw ExceptionUtilities.
UnexpectedValue
(collectionTypeKind),
1059
throw ExceptionUtilities.
UnexpectedValue
(@this._targetType);
1690
throw ExceptionUtilities.
UnexpectedValue
(targetType);
2167
throw ExceptionUtilities.
UnexpectedValue
(element);
2183
throw ExceptionUtilities.
UnexpectedValue
(element);
2735
_ => throw ExceptionUtilities.
UnexpectedValue
(source),
2918
throw ExceptionUtilities.
UnexpectedValue
(conversion.Kind);
3331
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateType),
3471
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
3479
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
3827
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3847
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3867
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3887
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3907
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3926
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3946
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3966
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
3986
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4006
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4026
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4050
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4070
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
4073
throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
4176
default: throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
Binder\Binder_Crefs.cs (4)
42
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
134
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
800
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1022
throw ExceptionUtilities.
UnexpectedValue
(candidate.Kind);
Binder\Binder_Deconstruct.cs (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);
2217
_ => throw ExceptionUtilities.
UnexpectedValue
(alias.Target.Kind),
2226
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
2571
throw ExceptionUtilities.
UnexpectedValue
(symbol);
3261
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
3940
throw ExceptionUtilities.
UnexpectedValue
(argumentIndex);
5328
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
5375
_ => throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind())
7201
throw ExceptionUtilities.
UnexpectedValue
(classCreation.Kind);
8295
throw ExceptionUtilities.
UnexpectedValue
(extensionMember.Kind);
8749
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
9607
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Binder\Binder_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)
1269
_ => throw ExceptionUtilities.
UnexpectedValue
(current.Right.Kind)
2652
throw ExceptionUtilities.
UnexpectedValue
(kind);
2673
throw ExceptionUtilities.
UnexpectedValue
(underlyingType);
2736
throw ExceptionUtilities.
UnexpectedValue
(newKind.Operator());
3227
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
4623
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
5287
throw ExceptionUtilities.
UnexpectedValue
(conversionKind);
Binder\Binder_Patterns.cs (3)
197
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
934
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
1469
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Binder\Binder_Query.cs (3)
146
throw ExceptionUtilities.
UnexpectedValue
(firstClause.Kind());
160
throw ExceptionUtilities.
UnexpectedValue
(query.Body.SelectOrGroup.Kind());
354
throw ExceptionUtilities.
UnexpectedValue
(topClause.Kind());
Binder\Binder_QueryErrors.cs (1)
204
throw ExceptionUtilities.
UnexpectedValue
(queryClause.Kind());
Binder\Binder_Statements.cs (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());
3627
_ => throw ExceptionUtilities.
UnexpectedValue
(expressionBody.Parent.Kind()),
3711
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Binder\Binder_Symbols.cs (3)
167
throw ExceptionUtilities.
UnexpectedValue
(keyword);
742
throw ExceptionUtilities.
UnexpectedValue
(typesArray.Length);
1483
throw ExceptionUtilities.
UnexpectedValue
(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
116
throw ExceptionUtilities.
UnexpectedValue
(comparison);
156
throw ExceptionUtilities.
UnexpectedValue
(binaryOperator);
Binder\Binder_Unsafe.cs (1)
34
_ => throw ExceptionUtilities.
UnexpectedValue
(callerUnsafeMode),
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEventDecl.Kind());
477
throw ExceptionUtilities.
UnexpectedValue
(baseMethodDeclarationSyntax.Kind());
502
throw ExceptionUtilities.
UnexpectedValue
(basePropertyDeclarationSyntax.Kind());
1190
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Binder\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());
1652
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 (1)
130
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
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);
2997
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
3018
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
3205
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)
730
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)
397
throw ExceptionUtilities.
UnexpectedValue
(original.Left);
499
_ => 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 (6)
1723
throw ExceptionUtilities.
UnexpectedValue
(this.CurrentToken.Kind);
1997
throw ExceptionUtilities.
UnexpectedValue
(keyword.Kind);
7577
throw ExceptionUtilities.
UnexpectedValue
(mode);
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 (1)
89
throw ExceptionUtilities.
UnexpectedValue
(node.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);
691
throw ExceptionUtilities.
UnexpectedValue
(attribute);
Symbols\ConstraintsHelper.cs (4)
287
throw ExceptionUtilities.
UnexpectedValue
(constraintType.TypeKind);
1135
throw ExceptionUtilities.
UnexpectedValue
(error);
1506
throw ExceptionUtilities.
UnexpectedValue
(typeArgument.TypeKind);
1649
throw ExceptionUtilities.
UnexpectedValue
(type2.NullableAnnotation);
Symbols\EnumConversions.cs (1)
42
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
232
_ => throw ExceptionUtilities.
UnexpectedValue
(index),
Symbols\MemberSignatureComparer.cs (1)
850
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
64
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
78
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
148
throw ExceptionUtilities.
UnexpectedValue
(member);
178
throw ExceptionUtilities.
UnexpectedValue
(member);
242
throw ExceptionUtilities.
UnexpectedValue
(member);
308
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
334
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
350
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
482
throw ExceptionUtilities.
UnexpectedValue
(m.Kind);
528
throw ExceptionUtilities.
UnexpectedValue
(s.Kind);
582
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
600
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
869
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
899
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
139
throw ExceptionUtilities.
UnexpectedValue
(memberRefOrMethodDef.Kind);
Symbols\Metadata\PE\MetadataDecoder.cs (1)
268
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1187
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
708
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)
97
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);
1772
throw ExceptionUtilities.
UnexpectedValue
(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1457
throw ExceptionUtilities.
UnexpectedValue
(type.ManagedKindNoUseSiteDiagnostics);
1565
var unexpected => throw ExceptionUtilities.
UnexpectedValue
(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
415
throw ExceptionUtilities.
UnexpectedValue
(member);
423
throw ExceptionUtilities.
UnexpectedValue
(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
179
throw ExceptionUtilities.
UnexpectedValue
(typeDecl.Kind());
487
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
622
throw ExceptionUtilities.
UnexpectedValue
(baseType.TypeKind);
774
throw ExceptionUtilities.
UnexpectedValue
(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
187
throw ExceptionUtilities.
UnexpectedValue
(type);
309
_ => throw ExceptionUtilities.
UnexpectedValue
(signature.CallingConvention)
460
throw ExceptionUtilities.
UnexpectedValue
(annotation);
493
throw ExceptionUtilities.
UnexpectedValue
(type);
715
_ => throw ExceptionUtilities.
UnexpectedValue
(signature.CallingConvention)
758
_ => throw ExceptionUtilities.
UnexpectedValue
(refKind)
926
throw ExceptionUtilities.
UnexpectedValue
(argument.Kind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (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)
304
throw ExceptionUtilities.
UnexpectedValue
(DeclaredAccessibility);
709
throw ExceptionUtilities.
UnexpectedValue
(this.Kind);
1762
throw ExceptionUtilities.
UnexpectedValue
(variable);
1765
throw ExceptionUtilities.
UnexpectedValue
(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90
throw ExceptionUtilities.
UnexpectedValue
(namedType.TypeKind);
746
throw ExceptionUtilities.
UnexpectedValue
(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
522
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
51
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
248
static byte @throw(char c) => throw ExceptionUtilities.
UnexpectedValue
(c);
Symbols\Synthesized\GeneratedNames.cs (1)
482
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
Symbols\Synthesized\ReadOnlyListType\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)
1584
throw ExceptionUtilities.
UnexpectedValue
(interfaceMethod.MethodKind);
1982
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
2045
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)
13513
_ => throw ExceptionUtilities.
UnexpectedValue
(expectedDiagnosticSeverity)
13977
throw ExceptionUtilities.
UnexpectedValue
(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (1)
UnsafeEvolutionTests.cs (1)
298
_ => throw ExceptionUtilities.
UnexpectedValue
(symbolGetter),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27487
throw ExceptionUtilities.
UnexpectedValue
(expectedValue);
27507
throw ExceptionUtilities.
UnexpectedValue
(expectedValue);
Microsoft.CodeAnalysis.CSharp.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)
766
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
833
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
859
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)
177
throw ExceptionUtilities.
UnexpectedValue
(token.Kind);
230
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),