1375 references to UnexpectedValue
Microsoft.CodeAnalysis (448)
CodeGen\ArrayMembers.cs (1)
137
throw ExceptionUtilities.
UnexpectedValue
(id);
CodeGen\ILBuilder.cs (1)
1142
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)
804
throw ExceptionUtilities.
UnexpectedValue
(handlerScope.Type);
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
510
throw ExceptionUtilities.
UnexpectedValue
(branchCode);
Collections\Rope.cs (5)
101
throw ExceptionUtilities.
UnexpectedValue
(nameof(maxLength));
144
throw ExceptionUtilities.
UnexpectedValue
(v.GetType().Name);
155
throw ExceptionUtilities.
UnexpectedValue
(nameof(maxLength));
176
throw ExceptionUtilities.
UnexpectedValue
(v.GetType().Name);
200
throw ExceptionUtilities.
UnexpectedValue
(v.GetType().Name);
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
132
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
298
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
396
throw ExceptionUtilities.
UnexpectedValue
(lastChar);
Compilation\Compilation.cs (3)
2252
throw ExceptionUtilities.
UnexpectedValue
(platform);
2350
throw ExceptionUtilities.
UnexpectedValue
(outputKind);
2371
throw ExceptionUtilities.
UnexpectedValue
(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
315
throw ExceptionUtilities.
UnexpectedValue
(m);
339
throw ExceptionUtilities.
UnexpectedValue
(reference);
Compilation\OptimizationLevel.cs (1)
60
_ => throw ExceptionUtilities.
UnexpectedValue
(optimization)
ConstantValue.cs (6)
429
throw ExceptionUtilities.
UnexpectedValue
(discriminator);
479
ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.
UnexpectedValue
(Discriminator),
480
_ => throw ExceptionUtilities.
UnexpectedValue
(Discriminator)
534
default: throw ExceptionUtilities.
UnexpectedValue
(this.Discriminator);
801
default: throw ExceptionUtilities.
UnexpectedValue
(this.Discriminator);
829
_ => throw ExceptionUtilities.
UnexpectedValue
(Discriminator)
CryptographicHashProvider.cs (3)
57
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
73
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
103
throw ExceptionUtilities.
UnexpectedValue
(algorithmId);
Diagnostic\Diagnostic.cs (1)
543
throw ExceptionUtilities.
UnexpectedValue
(reportAction);
Diagnostic\DiagnosticDescriptor.cs (1)
252
throw ExceptionUtilities.
UnexpectedValue
(severity);
Diagnostic\DiagnosticFormatter.cs (1)
98
throw ExceptionUtilities.
UnexpectedValue
(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (1)
125
throw ExceptionUtilities.
UnexpectedValue
(type);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1056
throw ExceptionUtilities.
UnexpectedValue
(compilationEvent.GetType().ToString());
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228
throw ExceptionUtilities.
UnexpectedValue
(_scope);
Emit\CommonPEModuleBuilder.cs (1)
1071
throw ExceptionUtilities.
UnexpectedValue
(platformType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
538
throw ExceptionUtilities.
UnexpectedValue
(change);
Emit\EditAndContinue\SymbolChanges.cs (3)
288
throw ExceptionUtilities.
UnexpectedValue
(generatorChange);
360
throw ExceptionUtilities.
UnexpectedValue
(containerChange);
473
throw ExceptionUtilities.
UnexpectedValue
(edit.Kind);
EnumConstantHelper.cs (1)
111
throw ExceptionUtilities.
UnexpectedValue
(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
184
throw ExceptionUtilities.
UnexpectedValue
(kind);
Generated\Operations.Generated.cs (318)
3643
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
3658
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3674
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3698
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
3713
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3729
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3762
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
3780
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3799
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3856
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
3880
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3905
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3944
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
3970
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
3997
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4048
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4078
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4109
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4159
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4172
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4186
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4206
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4220
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4245
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4258
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4272
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4303
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4319
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4336
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4372
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4393
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4415
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4450
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4466
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4483
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4507
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4520
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4534
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4565
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4581
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4598
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4612
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4626
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4655
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4673
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4692
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4710
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4743
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4756
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4770
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4806
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4824
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4843
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4873
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
4891
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4910
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
4932
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4951
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
4989
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5002
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5016
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5045
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5058
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5072
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5104
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5122
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5141
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5168
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5181
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5195
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5231
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5244
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5258
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5303
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5319
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5336
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5374
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5393
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5413
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5447
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5463
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5480
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5506
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5519
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5533
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5566
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5584
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5603
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5628
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5641
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5655
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5685
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5703
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5722
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5741
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
5770
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5783
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5797
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5822
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5835
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5849
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5889
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5905
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5922
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5964
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
5980
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
5997
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6023
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6036
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6050
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6082
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6098
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6115
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6145
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6161
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6178
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6195
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6221
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6236
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6252
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6277
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6292
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6308
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6333
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6348
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6364
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6394
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6410
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6427
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6453
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6466
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6480
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6507
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6522
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6538
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6569
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6582
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6596
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6621
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6634
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6648
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6673
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6686
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6700
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6718
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6737
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6757
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
6782
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6795
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6809
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6839
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6855
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6872
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6908
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6921
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6935
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6960
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
6973
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
6987
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7013
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7029
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7046
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7071
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7084
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7098
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7115
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7150
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7163
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7177
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7197
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7210
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7224
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7248
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7261
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7275
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7299
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7312
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7326
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7350
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7365
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7381
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7412
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7430
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7449
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7483
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7506
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7530
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7564
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7577
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7591
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7629
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7648
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7668
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7701
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7721
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7742
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7766
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
7796
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7812
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7829
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7858
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7874
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7891
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7917
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7930
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7944
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7968
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
7981
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
7995
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8024
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8037
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8051
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8085
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8104
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8124
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8159
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8172
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8186
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8208
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8240
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8256
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8273
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8307
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8323
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8340
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8372
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8391
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8411
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8430
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8456
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8469
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8483
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8505
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8531
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8544
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8558
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8575
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8594
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8620
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8636
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8653
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8687
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8703
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8720
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8746
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8761
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8777
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8806
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8824
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8843
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8878
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8898
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8919
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
8933
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
8965
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
8983
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9002
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9038
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9057
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9077
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9106
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9122
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9139
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9169
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9185
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9202
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9233
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9249
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9266
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9291
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9304
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9318
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9337
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9366
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9382
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9399
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9427
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9440
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9454
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9478
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9491
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9505
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9536
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9552
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9569
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9587
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9613
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9626
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9640
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9672
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9688
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9705
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9739
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9755
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9772
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9801
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9817
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9834
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9859
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9872
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9886
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9906
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
9936
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
9954
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
9973
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10003
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10018
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10034
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10060
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10073
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10087
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10121
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10137
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10154
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10173
internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.
UnexpectedValue
((slot, index));
10197
_ => throw ExceptionUtilities.
UnexpectedValue
((slot, index)),
10210
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
10224
throw ExceptionUtilities.
UnexpectedValue
((previousSlot, previousIndex));
MemberDescriptor.cs (2)
91
throw ExceptionUtilities.
UnexpectedValue
(memberKind);
184
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
MetadataReader\MetadataDecoder.cs (1)
464
throw ExceptionUtilities.
UnexpectedValue
(handle.Kind);
MetadataReader\MetadataHelpers.cs (2)
251
throw ExceptionUtilities.
UnexpectedValue
(c);
348
throw ExceptionUtilities.
UnexpectedValue
(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
176
throw ExceptionUtilities.
UnexpectedValue
(specialType);
MetadataReader\PEModule.cs (6)
1578
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1627
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1641
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1674
throw ExceptionUtilities.
UnexpectedValue
(attributeInfo.SignatureIndex);
1723
throw ExceptionUtilities.
UnexpectedValue
(info.SignatureIndex);
3061
throw ExceptionUtilities.
UnexpectedValue
(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
134
throw ExceptionUtilities.
UnexpectedValue
(_contentType);
Operations\ControlFlowGraphBuilder.cs (13)
339
throw ExceptionUtilities.
UnexpectedValue
(branch.Kind);
428
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
484
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
604
throw ExceptionUtilities.
UnexpectedValue
(region.Kind);
2264
throw ExceptionUtilities.
UnexpectedValue
(binOp.OperatorKind);
3832
throw ExceptionUtilities.
UnexpectedValue
(operation.Kind);
5540
throw ExceptionUtilities.
UnexpectedValue
(relationalValueClause.Relation);
5560
throw ExceptionUtilities.
UnexpectedValue
(caseClause.CaseKind);
6153
throw ExceptionUtilities.
UnexpectedValue
(originalTarget.Kind);
6676
throw ExceptionUtilities.
UnexpectedValue
(currentAddition.Left.Kind);
6688
throw ExceptionUtilities.
UnexpectedValue
(currentAddition.Left.Kind);
6762
throw ExceptionUtilities.
UnexpectedValue
(operation.PlaceholderKind);
6836
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)
2245
throw ExceptionUtilities.
UnexpectedValue
(exportedType);
2808
throw ExceptionUtilities.
UnexpectedValue
(typeRef);
3064
_ => throw ExceptionUtilities.
UnexpectedValue
(reference)
3244
throw ExceptionUtilities.
UnexpectedValue
(rawTokenEncoding);
3319
throw ExceptionUtilities.
UnexpectedValue
(operandType);
3955
throw ExceptionUtilities.
UnexpectedValue
(primitiveType);
4061
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)
312
throw ExceptionUtilities.
UnexpectedValue
(compilationReference.Properties.Kind);
390
throw ExceptionUtilities.
UnexpectedValue
(peReference.Properties.Kind);
Serialization\ObjectReader.cs (6)
146
throw ExceptionUtilities.
UnexpectedValue
(b);
157
throw ExceptionUtilities.
UnexpectedValue
(b);
309
throw ExceptionUtilities.
UnexpectedValue
(code);
379
throw ExceptionUtilities.
UnexpectedValue
(marker);
406
throw ExceptionUtilities.
UnexpectedValue
(kind);
507
throw ExceptionUtilities.
UnexpectedValue
(kind);
Serialization\ObjectWriter.cs (2)
237
throw ExceptionUtilities.
UnexpectedValue
(value.GetType());
671
throw ExceptionUtilities.
UnexpectedValue
(kind);
Serialization\TextEncodingKind.cs (1)
54
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
SignatureComparer.cs (1)
228
throw ExceptionUtilities.
UnexpectedValue
(typeCode);
SourceGeneration\Nodes\NodeStateTable.cs (1)
410
_ => throw ExceptionUtilities.
UnexpectedValue
((inputState, outputState))
SpecialTypeExtensions.cs (1)
269
throw Roslyn.Utilities.ExceptionUtilities.
UnexpectedValue
(specialType);
SwitchConstantValueHelper.cs (1)
93
throw ExceptionUtilities.
UnexpectedValue
(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229
throw ExceptionUtilities.
UnexpectedValue
(target);
Symbols\Attributes\CommonAttributeData.cs (1)
261
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\PlatformInvokeInformation.cs (1)
82
throw ExceptionUtilities.
UnexpectedValue
(_flags);
Symbols\RefKind.cs (3)
54
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
65
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
77
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\SymbolKindExtensions.cs (1)
54
throw ExceptionUtilities.
UnexpectedValue
(kind);
Text\SourceHashAlgorithms.cs (1)
40
_ => throw ExceptionUtilities.
UnexpectedValue
(algorithm),
Microsoft.CodeAnalysis.CSharp (508)
Binder\Binder.CapturedParametersFinder.cs (1)
136
throw ExceptionUtilities.
UnexpectedValue
(syntaxNode);
Binder\Binder.cs (2)
265
_ => throw ExceptionUtilities.
UnexpectedValue
(context.AnnotationsState)
294
throw ExceptionUtilities.
UnexpectedValue
(Compilation.Options.NullableContextOptions);
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
414
throw ExceptionUtilities.
UnexpectedValue
(topClause.Kind());
Binder\Binder.ValueChecks.cs (15)
71
_ => throw ExceptionUtilities.
UnexpectedValue
(EscapeLevel)
726
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexer.IndexerOrSliceAccess.Kind);
1155
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
1179
throw ExceptionUtilities.
UnexpectedValue
(fieldSymbol.RefKind);
2074
_ => throw ExceptionUtilities.
UnexpectedValue
(symbol)
2382
_ => throw ExceptionUtilities.
UnexpectedValue
(symbol)
2615
_ => throw ExceptionUtilities.
UnexpectedValue
(methodOrPropertySymbol)
2727
throw ExceptionUtilities.
UnexpectedValue
(kind);
2755
throw ExceptionUtilities.
UnexpectedValue
(kind);
2799
throw ExceptionUtilities.
UnexpectedValue
(kind);
3109
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
3359
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
3660
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4108
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
4525
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
Binder\Binder_Constraints.cs (4)
286
throw ExceptionUtilities.
UnexpectedValue
(keyword);
294
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
425
_ => throw ExceptionUtilities.
UnexpectedValue
(containingSymbol)
586
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Binder\Binder_Conversions.cs (21)
402
throw ExceptionUtilities.
UnexpectedValue
(v);
726
_ => throw ExceptionUtilities.
UnexpectedValue
(source),
884
throw ExceptionUtilities.
UnexpectedValue
(conversion.Kind);
1284
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateType),
1411
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
1419
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
1754
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1774
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1794
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1814
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1834
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1853
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1873
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1893
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1913
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1933
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1953
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1977
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
1997
default: throw ExceptionUtilities.
UnexpectedValue
(destinationType);
2000
throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
2103
default: throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator);
Binder\Binder_Crefs.cs (4)
40
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
129
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
601
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
821
throw ExceptionUtilities.
UnexpectedValue
(candidate.Kind);
Binder\Binder_Deconstruct.cs (2)
383
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
847
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Binder\Binder_Expressions.cs (11)
955
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
1430
throw ExceptionUtilities.
UnexpectedValue
(managedKind);
2009
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
2017
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
2252
throw ExceptionUtilities.
UnexpectedValue
(symbol);
2921
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
4459
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
4476
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
5912
throw ExceptionUtilities.
UnexpectedValue
(classCreation.Kind);
7261
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
7863
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Binder\Binder_InterpolatedString.cs (3)
178
throw ExceptionUtilities.
UnexpectedValue
(content.Kind());
425
_ => throw ExceptionUtilities.
UnexpectedValue
(unconvertedExpression.Kind)
1025
throw ExceptionUtilities.
UnexpectedValue
(argumentIndex);
Binder\Binder_Invocation.cs (1)
916
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
Binder\Binder_Lookup.cs (2)
213
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1564
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Binder\Binder_Operators.cs (7)
754
_ => throw ExceptionUtilities.
UnexpectedValue
(current.Right.Kind)
1650
throw ExceptionUtilities.
UnexpectedValue
(kind);
1671
throw ExceptionUtilities.
UnexpectedValue
(underlyingType);
1734
throw ExceptionUtilities.
UnexpectedValue
(newKind.Operator());
2225
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
2977
default: throw ExceptionUtilities.
UnexpectedValue
(kind);
3612
throw ExceptionUtilities.
UnexpectedValue
(conversionKind);
Binder\Binder_Patterns.cs (3)
185
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
913
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
1444
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)
547
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
1674
throw ExceptionUtilities.
UnexpectedValue
(implicitIndexerAccess.IndexerOrSliceAccess.Kind);
1725
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind)
1746
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
3459
_ => throw ExceptionUtilities.
UnexpectedValue
(expressionBody.Parent.Kind()),
3543
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Binder\Binder_Symbols.cs (3)
165
throw ExceptionUtilities.
UnexpectedValue
(keyword);
728
throw ExceptionUtilities.
UnexpectedValue
(typesArray.Length);
1482
throw ExceptionUtilities.
UnexpectedValue
(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
115
throw ExceptionUtilities.
UnexpectedValue
(comparison);
155
throw ExceptionUtilities.
UnexpectedValue
(binaryOperator);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
304
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEventDecl.Kind());
460
throw ExceptionUtilities.
UnexpectedValue
(baseMethodDeclarationSyntax.Kind());
485
throw ExceptionUtilities.
UnexpectedValue
(basePropertyDeclarationSyntax.Kind());
1165
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Binder\DecisionDagBuilder.cs (6)
260
throw ExceptionUtilities.
UnexpectedValue
(tests);
311
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
912
throw ExceptionUtilities.
UnexpectedValue
(n.Kind);
1012
throw ExceptionUtilities.
UnexpectedValue
(n?.Kind);
1096
throw ExceptionUtilities.
UnexpectedValue
(test);
2135
_ => throw ExceptionUtilities.
UnexpectedValue
(negated),
Binder\ExpressionVariableFinder.cs (3)
268
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
382
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
466
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
Binder\ForEachLoopBinder.cs (5)
81
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
157
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
331
throw ExceptionUtilities.
UnexpectedValue
(local.RefKind);
394
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
1401
throw ExceptionUtilities.
UnexpectedValue
(enumeratorType.TypeKind);
Binder\LookupResultKind.cs (1)
98
throw ExceptionUtilities.
UnexpectedValue
(resultKind);
Binder\PatternExplainer.cs (2)
164
throw ExceptionUtilities.
UnexpectedValue
(currentNode.Kind);
444
throw ExceptionUtilities.
UnexpectedValue
(v);
Binder\RefSafetyAnalysis.cs (1)
629
throw ExceptionUtilities.
UnexpectedValue
(placeholder.ArgumentIndex);
Binder\Semantics\AccessCheck.cs (5)
83
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
103
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
215
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
289
throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility);
407
throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility);
Binder\Semantics\Conversions\Conversion.cs (1)
963
throw ExceptionUtilities.
UnexpectedValue
(conversionResult.Kind);
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
72
throw ExceptionUtilities.
UnexpectedValue
(conversionKind);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
897
throw ExceptionUtilities.
UnexpectedValue
(oppositeConversion.Kind);
2999
throw ExceptionUtilities.
UnexpectedValue
(typeParameterSymbol.Variance);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
670
throw ExceptionUtilities.
UnexpectedValue
(kind);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
357
throw ExceptionUtilities.
UnexpectedValue
(kind);
660
throw ExceptionUtilities.
UnexpectedValue
(kind);
Binder\Semantics\Operators\OperatorFacts.cs (2)
184
throw ExceptionUtilities.
UnexpectedValue
(kind & UnaryOperatorKind.OpMask);
210
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)
165
throw ExceptionUtilities.
UnexpectedValue
(argAnalysis.Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
970
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateOrFunctionPointerType)
1351
_ => throw ExceptionUtilities.
UnexpectedValue
(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
1137
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
3837
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
456
throw ExceptionUtilities.
UnexpectedValue
(result.Result.Kind);
1456
throw ExceptionUtilities.
UnexpectedValue
(kind);
Binder\SwitchBinder_Patterns.cs (2)
120
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
283
throw ExceptionUtilities.
UnexpectedValue
(node);
Binder\WhileBinder.cs (1)
62
throw ExceptionUtilities.
UnexpectedValue
(_syntax.Kind());
Binder\WithCrefTypeParametersBinder.cs (2)
72
throw ExceptionUtilities.
UnexpectedValue
(_crefSyntax.Kind());
99
throw ExceptionUtilities.
UnexpectedValue
(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (1)
194
throw ExceptionUtilities.
UnexpectedValue
(_declarationSyntax);
BoundTree\BoundDagEvaluation.cs (1)
45
_ => throw ExceptionUtilities.
UnexpectedValue
(this.Kind)
BoundTree\BoundDagTest.cs (1)
40
throw ExceptionUtilities.
UnexpectedValue
(this);
BoundTree\BoundDecisionDag.cs (3)
36
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
129
throw ExceptionUtilities.
UnexpectedValue
(dag);
191
throw ExceptionUtilities.
UnexpectedValue
(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51
throw ExceptionUtilities.
UnexpectedValue
(this);
BoundTree\BoundExpressionExtensions.cs (1)
55
var s => throw ExceptionUtilities.
UnexpectedValue
(s?.Kind)
BoundTree\BoundNode.cs (4)
237
var a => throw ExceptionUtilities.
UnexpectedValue
(a),
251
throw ExceptionUtilities.
UnexpectedValue
(value.FlowState);
274
var mask => throw ExceptionUtilities.
UnexpectedValue
(mask)
425
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\NullabilityRewriter.cs (1)
66
_ => throw ExceptionUtilities.
UnexpectedValue
(currentBinary.Kind),
BoundTree\VariablePendingInference.cs (1)
108
throw ExceptionUtilities.
UnexpectedValue
(this.VariableSymbol.Kind);
CodeGen\EmitAddress.cs (2)
89
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
279
throw ExceptionUtilities.
UnexpectedValue
(local.RefKind);
CodeGen\EmitConversion.cs (4)
45
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
132
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
173
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind); // Should be handled by caller.
177
throw ExceptionUtilities.
UnexpectedValue
(conversion.ConversionKind);
CodeGen\EmitExpression.cs (5)
169
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
350
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
2736
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
2757
throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind);
2944
throw ExceptionUtilities.
UnexpectedValue
(expression.Kind);
CodeGen\EmitOperators.cs (4)
54
throw ExceptionUtilities.
UnexpectedValue
(operatorKind.Operator());
245
throw ExceptionUtilities.
UnexpectedValue
(expression.OperatorKind.Operator());
418
throw ExceptionUtilities.
UnexpectedValue
(binOp.OperatorKind.OperatorWithLogical());
664
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());
1157
throw ExceptionUtilities.
UnexpectedValue
(exceptionSource.Kind);
CodeGen\Optimizer.cs (2)
493
throw ExceptionUtilities.
UnexpectedValue
(context);
1092
throw ExceptionUtilities.
UnexpectedValue
(lhs.Kind);
Compilation\BuiltInOperators.cs (1)
279
default: throw ExceptionUtilities.
UnexpectedValue
(kind.OperandTypes());
Compilation\CSharpDiagnosticFilter.cs (2)
162
_ => throw ExceptionUtilities.
UnexpectedValue
(warningsState)
257
throw ExceptionUtilities.
UnexpectedValue
(report);
Compilation\CSharpSemanticModel.cs (2)
3767
throw ExceptionUtilities.
UnexpectedValue
(containingMember.Kind);
3994
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)
169
ExceptionUtilities.
UnexpectedValue
(attributeOrParameter);
Compilation\SyntaxTreeSemanticModel.cs (11)
1112
ExceptionUtilities.
UnexpectedValue
(node.Parent);
1173
throw ExceptionUtilities.
UnexpectedValue
(node.Parent.Kind());
1189
ExceptionUtilities.
UnexpectedValue
(node.Parent);
1599
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEventDecl.Kind());
1623
ExceptionUtilities.
UnexpectedValue
(containingMemberSyntax.Kind());
1707
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind());
1746
throw ExceptionUtilities.
UnexpectedValue
(name.Kind());
2150
throw ExceptionUtilities.
UnexpectedValue
(typeParameter.Parent.Kind());
2423
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
2461
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
2488
ExceptionUtilities.
UnexpectedValue
(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (6)
750
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
1001
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
1242
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
1277
throw ExceptionUtilities.
UnexpectedValue
(compliance);
1293
throw ExceptionUtilities.
UnexpectedValue
(compliance);
1343
throw ExceptionUtilities.
UnexpectedValue
(x.Kind);
Compiler\DocumentationCommentCompiler.cs (1)
1174
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
Compiler\MethodCompiler.cs (2)
1925
throw ExceptionUtilities.
UnexpectedValue
(methodBody.Kind);
2059
throw ExceptionUtilities.
UnexpectedValue
(syntaxNode);
CSharpDeclarationComputer.cs (1)
411
ExceptionUtilities.
UnexpectedValue
(node.Kind());
Declarations\DeclarationKind.cs (1)
46
throw ExceptionUtilities.
UnexpectedValue
(kind);
Declarations\DeclarationTreeBuilder.cs (1)
593
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind())
Declarations\MergedTypeDeclaration.cs (1)
93
throw ExceptionUtilities.
UnexpectedValue
(typeDecl.Kind());
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (5)
149
throw ExceptionUtilities.
UnexpectedValue
(def);
480
throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind);
576
throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind);
658
_ => throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind),
973
throw ExceptionUtilities.
UnexpectedValue
(type.Kind);
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
57
throw ExceptionUtilities.
UnexpectedValue
(value);
Emitter\Model\PEModuleBuilder.cs (7)
244
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
286
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
360
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
420
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
427
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
1145
throw ExceptionUtilities.
UnexpectedValue
(typeSymbol.Kind);
1256
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
326
throw ExceptionUtilities.
UnexpectedValue
(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
505
throw ExceptionUtilities.
UnexpectedValue
(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
598
throw ExceptionUtilities.
UnexpectedValue
(feature);
FlowAnalysis\AbstractFlowPass.cs (4)
865
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
1006
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
1048
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
2278
throw ExceptionUtilities.
UnexpectedValue
(binary.Kind);
FlowAnalysis\DefiniteAssignment.cs (1)
1967
throw ExceptionUtilities.
UnexpectedValue
(pattern.Kind);
FlowAnalysis\ExitPointsWalker.cs (1)
148
throw ExceptionUtilities.
UnexpectedValue
(pending.Branch.Kind);
FlowAnalysis\NullableWalker.cs (11)
541
throw ExceptionUtilities.
UnexpectedValue
(placeholder.Kind);
1887
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
3679
ExceptionUtilities.
UnexpectedValue
(node.Kind);
4171
_ => throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
4259
_ => throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
5165
_ => throw ExceptionUtilities.
UnexpectedValue
(node.OperatorResultKind),
6630
throw ExceptionUtilities.
UnexpectedValue
(refKind);
6782
throw ExceptionUtilities.
UnexpectedValue
(refKind);
10159
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Syntax)
10463
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
10499
_ => throw ExceptionUtilities.
UnexpectedValue
(node)
FlowAnalysis\NullableWalker_Patterns.cs (5)
206
throw ExceptionUtilities.
UnexpectedValue
(pattern);
543
throw ExceptionUtilities.
UnexpectedValue
(p.Evaluation.Kind);
620
throw ExceptionUtilities.
UnexpectedValue
(test.Kind);
679
throw ExceptionUtilities.
UnexpectedValue
(dagNode.Kind);
818
_ => throw ExceptionUtilities.
UnexpectedValue
(e.Kind)
LanguageVersion.cs (2)
299
throw ExceptionUtilities.
UnexpectedValue
(version);
372
throw ExceptionUtilities.
UnexpectedValue
(version);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336
throw ExceptionUtilities.
UnexpectedValue
(method);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
125
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
578
throw ExceptionUtilities.
UnexpectedValue
(variable.Kind);
Lowering\ClosureConversion\ClosureConversion.cs (1)
769
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (10)
159
throw ExceptionUtilities.
UnexpectedValue
(stmt.Kind);
251
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
412
throw ExceptionUtilities.
UnexpectedValue
(opKind.Operator());
710
throw ExceptionUtilities.
UnexpectedValue
(BoundKind.MethodGroup);
726
throw ExceptionUtilities.
UnexpectedValue
(node.Argument);
841
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
856
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
900
throw ExceptionUtilities.
UnexpectedValue
(elementKind);
953
throw ExceptionUtilities.
UnexpectedValue
(initializerKind); // no other options at the top level of an initializer
1068
throw ExceptionUtilities.
UnexpectedValue
(op);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
99
throw ExceptionUtilities.
UnexpectedValue
(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
78
throw ExceptionUtilities.
UnexpectedValue
(closureKind);
Lowering\InitializerRewriter.cs (1)
128
throw ExceptionUtilities.
UnexpectedValue
(initializer.Kind);
Lowering\Instrumentation\DebugInfoInjector.cs (2)
113
throw ExceptionUtilities.
UnexpectedValue
(grandparent.Kind());
284
throw ExceptionUtilities.
UnexpectedValue
(original.Syntax.Kind());
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
148
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax.Parent.Kind());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
393
throw ExceptionUtilities.
UnexpectedValue
(original.Left);
492
_ => throw ExceptionUtilities.
UnexpectedValue
(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81
throw ExceptionUtilities.
UnexpectedValue
(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.cs (1)
984
throw ExceptionUtilities.
UnexpectedValue
(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
641
throw ExceptionUtilities.
UnexpectedValue
(otherwise);
673
throw ExceptionUtilities.
UnexpectedValue
(n);
803
throw ExceptionUtilities.
UnexpectedValue
(input.Type);
818
_ => throw ExceptionUtilities.
UnexpectedValue
(input.Type.SpecialType)
857
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
870
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
929
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
941
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
956
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
964
_ => throw ExceptionUtilities.
UnexpectedValue
(stringPatternInput),
1233
throw ExceptionUtilities.
UnexpectedValue
(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
303
throw ExceptionUtilities.
UnexpectedValue
(evaluation);
363
throw ExceptionUtilities.
UnexpectedValue
(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57
throw ExceptionUtilities.
UnexpectedValue
(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
178
throw ExceptionUtilities.
UnexpectedValue
(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
523
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
1979
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
2285
throw ExceptionUtilities.
UnexpectedValue
(numericSpecialType);
2352
throw ExceptionUtilities.
UnexpectedValue
(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
630
var u => throw ExceptionUtilities.
UnexpectedValue
(u.Kind)
651
throw ExceptionUtilities.
UnexpectedValue
(argIndex);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
413
throw ExceptionUtilities.
UnexpectedValue
(indexerAccess.Argument.Type);
729
throw ExceptionUtilities.
UnexpectedValue
(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (2)
101
throw ExceptionUtilities.
UnexpectedValue
(loweringKind);
199
throw ExceptionUtilities.
UnexpectedValue
(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
31
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Operand.Kind)
195
throw ExceptionUtilities.
UnexpectedValue
(current);
1517
throw ExceptionUtilities.
UnexpectedValue
(typeTo.SpecialType);
1537
throw ExceptionUtilities.
UnexpectedValue
(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
156
throw ExceptionUtilities.
UnexpectedValue
(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
324
throw ExceptionUtilities.
UnexpectedValue
(strategy);
430
throw ExceptionUtilities.
UnexpectedValue
(strategy);
686
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)
73
throw ExceptionUtilities.
UnexpectedValue
(temps.Length);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (5)
28
throw ExceptionUtilities.
UnexpectedValue
(initializerExpression.Kind);
63
throw ExceptionUtilities.
UnexpectedValue
(initializerExpression.Kind);
82
throw ExceptionUtilities.
UnexpectedValue
(initializerExpression.Kind);
447
throw ExceptionUtilities.
UnexpectedValue
((rewrittenLeft ?? assignment.Left).Kind);
550
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_StringInterpolation.cs (1)
128
throw ExceptionUtilities.
UnexpectedValue
(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
262
throw ExceptionUtilities.
UnexpectedValue
(@operator.InfoKind);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
798
throw ExceptionUtilities.
UnexpectedValue
(oper.Operator());
943
throw ExceptionUtilities.
UnexpectedValue
(kind);
1033
throw ExceptionUtilities.
UnexpectedValue
(underlyingType.SpecialType);
1043
throw ExceptionUtilities.
UnexpectedValue
(unaryOperatorKind.OperandTypes());
1103
throw ExceptionUtilities.
UnexpectedValue
(binaryOperatorKind.OperandTypes());
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
83
throw ExceptionUtilities.
UnexpectedValue
(loop.Kind);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
567
throw ExceptionUtilities.
UnexpectedValue
(loweredReceiver.Kind);
Lowering\MethodToClassRewriter.cs (1)
426
_ => throw ExceptionUtilities.
UnexpectedValue
(proxy)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
163
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
640
throw ExceptionUtilities.
UnexpectedValue
(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
728
throw ExceptionUtilities.
UnexpectedValue
(input.Type);
1548
throw ExceptionUtilities.
UnexpectedValue
(refKind);
Operations\CSharpOperationFactory.cs (15)
330
throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind);
413
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
545
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
605
throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind);
796
throw ExceptionUtilities.
UnexpectedValue
(indexer.Kind);
811
throw ExceptionUtilities.
UnexpectedValue
(indexer.Kind);
896
throw ExceptionUtilities.
UnexpectedValue
(memberSymbol.Kind);
1408
{ Kind: var kind } => throw ExceptionUtilities.
UnexpectedValue
(kind)
2136
{ Kind: var kind } => throw ExceptionUtilities.
UnexpectedValue
(kind)
2223
throw ExceptionUtilities.
UnexpectedValue
(part.Kind);
2239
_ => throw ExceptionUtilities.
UnexpectedValue
(value.Kind),
2336
_ => throw ExceptionUtilities.
UnexpectedValue
(part.Kind)
2344
_ => throw ExceptionUtilities.
UnexpectedValue
(methodName)
2359
throw ExceptionUtilities.
UnexpectedValue
(current.Kind);
2382
_ => throw ExceptionUtilities.
UnexpectedValue
(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
274
throw ExceptionUtilities.
UnexpectedValue
(containingExpression.Kind);
Parser\LanguageParser.cs (8)
1441
throw ExceptionUtilities.
UnexpectedValue
(this.CurrentToken.Kind);
1689
throw ExceptionUtilities.
UnexpectedValue
(keyword.Kind);
6878
throw ExceptionUtilities.
UnexpectedValue
(mode);
8773
throw ExceptionUtilities.
UnexpectedValue
(decl.designation.Kind);
10194
throw ExceptionUtilities.
UnexpectedValue
(op);
10500
throw ExceptionUtilities.
UnexpectedValue
(tokensToCombine);
10623
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
11606
throw ExceptionUtilities.
UnexpectedValue
(type);
Parser\LanguageParser_InterpolatedString.cs (2)
88
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
249
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
Parser\Lexer.cs (2)
279
throw ExceptionUtilities.
UnexpectedValue
(ModeOf(_mode));
380
throw ExceptionUtilities.
UnexpectedValue
(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
119
throw ExceptionUtilities.
UnexpectedValue
(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
78
throw ExceptionUtilities.
UnexpectedValue
(node.KindText);
112
_ => throw ExceptionUtilities.
UnexpectedValue
(name.KindText),
SymbolDisplay\SymbolDisplayVisitor.cs (2)
184
throw ExceptionUtilities.
UnexpectedValue
(format.GlobalNamespaceStyle);
360
throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
574
throw ExceptionUtilities.
UnexpectedValue
(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
611
throw ExceptionUtilities.
UnexpectedValue
(symbol.TypeKind);
Symbols\BaseTypeAnalysis.cs (1)
172
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
282
throw ExceptionUtilities.
UnexpectedValue
(descriptor.Flags);
350
throw ExceptionUtilities.
UnexpectedValue
(targetSymbolKind);
633
throw ExceptionUtilities.
UnexpectedValue
(attribute);
Symbols\ConstraintsHelper.cs (4)
258
throw ExceptionUtilities.
UnexpectedValue
(constraintType.TypeKind);
1032
throw ExceptionUtilities.
UnexpectedValue
(error);
1393
throw ExceptionUtilities.
UnexpectedValue
(typeArgument.TypeKind);
1535
throw ExceptionUtilities.
UnexpectedValue
(type2.NullableAnnotation);
Symbols\EnumConversions.cs (1)
40
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
186
throw ExceptionUtilities.
UnexpectedValue
(unexpected);
Symbols\MemberSignatureComparer.cs (1)
787
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\MemberSymbolExtensions.cs (11)
44
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
62
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
76
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
94
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
110
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
236
throw ExceptionUtilities.
UnexpectedValue
(m.Kind);
282
throw ExceptionUtilities.
UnexpectedValue
(s.Kind);
336
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
354
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
579
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
609
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)
1116
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
809
throw ExceptionUtilities.
UnexpectedValue
(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
660
throw ExceptionUtilities.
UnexpectedValue
(_flags & TypeAttributes.VisibilityMask);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1134
_ => throw ExceptionUtilities.
UnexpectedValue
(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
146
_ => throw ExceptionUtilities.
UnexpectedValue
(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (1)
618
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\MethodSymbolExtensions.cs (1)
116
throw ExceptionUtilities.
UnexpectedValue
(hidingMemberKind);
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)
73
throw ExceptionUtilities.
UnexpectedValue
(_underlying.MethodKind);
Symbols\RefKindExtensions.cs (2)
34
throw ExceptionUtilities.
UnexpectedValue
(syntaxKind);
49
throw ExceptionUtilities.
UnexpectedValue
(refKind);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
686
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\Source\AttributeLocation.cs (1)
94
throw ExceptionUtilities.
UnexpectedValue
(i);
Symbols\Source\ModifierUtils.cs (2)
329
throw ExceptionUtilities.
UnexpectedValue
(modifier);
382
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Source\ParameterHelpers.cs (1)
588
throw ExceptionUtilities.
UnexpectedValue
(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (2)
1665
_ => throw ExceptionUtilities.
UnexpectedValue
(attribute)
2073
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Source\SourceCustomEventSymbol.cs (1)
121
throw ExceptionUtilities.
UnexpectedValue
(accessor.Kind());
Symbols\Source\SourceEventSymbol.cs (1)
145
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
Symbols\Source\SourceLocalSymbol.cs (2)
459
throw ExceptionUtilities.
UnexpectedValue
(_declarationKind);
769
throw ExceptionUtilities.
UnexpectedValue
(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (3)
3407
throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind());
3814
throw ExceptionUtilities.
UnexpectedValue
(meth.MethodKind);
3825
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
308
throw ExceptionUtilities.
UnexpectedValue
(matchResult);
524
throw ExceptionUtilities.
UnexpectedValue
(this.TypeKind);
1656
throw ExceptionUtilities.
UnexpectedValue
(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
984
throw ExceptionUtilities.
UnexpectedValue
(type.ManagedKindNoUseSiteDiagnostics);
1092
var unexpected => throw ExceptionUtilities.
UnexpectedValue
(unexpected)
Symbols\Source\SourceNamedTypeSymbol.cs (2)
181
throw ExceptionUtilities.
UnexpectedValue
(typeDecl.Kind());
486
throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
614
throw ExceptionUtilities.
UnexpectedValue
(baseType.TypeKind);
750
throw ExceptionUtilities.
UnexpectedValue
(typeKind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (7)
57
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
126
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
157
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
189
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
221
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
428
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
559
throw ExceptionUtilities.
UnexpectedValue
(declarationSyntax);
Symbols\Source\SourceNamespaceSymbol.cs (1)
446
throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind);
Symbols\Source\SourcePropertySymbol.cs (2)
152
_ => throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind())
221
throw ExceptionUtilities.
UnexpectedValue
(accessor.Kind());
Symbols\Source\SourceTypeParameterSymbol.cs (1)
293
throw ExceptionUtilities.
UnexpectedValue
(this.ContainingSymbol);
Symbols\Source\TypeParameterConstraintClause.cs (1)
113
ExceptionUtilities.
UnexpectedValue
(constraints); // This call asserts.
Symbols\Symbol.cs (3)
570
throw ExceptionUtilities.
UnexpectedValue
(this.Kind);
1591
throw ExceptionUtilities.
UnexpectedValue
(variable);
1594
throw ExceptionUtilities.
UnexpectedValue
(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90
throw ExceptionUtilities.
UnexpectedValue
(namedType.TypeKind);
713
throw ExceptionUtilities.
UnexpectedValue
(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
83
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolExtensions.cs (2)
210
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
528
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
43
throw ExceptionUtilities.
UnexpectedValue
(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
240
static byte @throw(char c) => throw ExceptionUtilities.
UnexpectedValue
(c);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
204
_ => throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Symbols\Synthesized\RefKindVector.cs (1)
60
_ => throw ExceptionUtilities.
UnexpectedValue
(value)
Symbols\Tuples\TupleTypeSymbol.cs (2)
706
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
1097
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
Symbols\TypeSymbol.cs (3)
1574
throw ExceptionUtilities.
UnexpectedValue
(interfaceMethod.MethodKind);
1930
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
1978
throw ExceptionUtilities.
UnexpectedValue
(interfaceMember.Kind);
Symbols\TypeSymbolExtensions.cs (3)
853
throw ExceptionUtilities.
UnexpectedValue
(current.TypeKind);
1086
throw ExceptionUtilities.
UnexpectedValue
(acc1);
1417
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
160
throw ExceptionUtilities.
UnexpectedValue
(NullableAnnotation);
Symbols\VarianceSafety.cs (3)
83
throw ExceptionUtilities.
UnexpectedValue
(member.TypeKind);
409
throw ExceptionUtilities.
UnexpectedValue
(typeParam.Variance);
458
throw ExceptionUtilities.
UnexpectedValue
(unsafeTypeParameter.Variance);
Syntax\CSharpLineDirectiveMap.cs (1)
214
throw ExceptionUtilities.
UnexpectedValue
(entry.State);
Syntax\CSharpPragmaWarningStateMap.cs (1)
105
var kind => throw ExceptionUtilities.
UnexpectedValue
(kind)
Syntax\CSharpSyntaxTree.cs (1)
286
throw ExceptionUtilities.
UnexpectedValue
(directive.Kind());
Syntax\DirectiveTriviaSyntax.cs (1)
62
throw ExceptionUtilities.
UnexpectedValue
(this.Kind());
Syntax\LambdaUtilities.cs (2)
119
throw ExceptionUtilities.
UnexpectedValue
(newLambda.Kind());
128
_ => throw ExceptionUtilities.
UnexpectedValue
(nestedFunction),
Syntax\LookupPosition.cs (2)
368
throw ExceptionUtilities.
UnexpectedValue
(statement.Kind());
451
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);
484
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 (1)
276
throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind);
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
48
_ => throw ExceptionUtilities.
UnexpectedValue
("random"),
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
89
throw ExceptionUtilities.
UnexpectedValue
(relation);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
49
throw ExceptionUtilities.
UnexpectedValue
(relation);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
86
throw ExceptionUtilities.
UnexpectedValue
(relation);
127
throw ExceptionUtilities.
UnexpectedValue
(relation);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
49
throw ExceptionUtilities.
UnexpectedValue
(relation);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
12799
_ => throw ExceptionUtilities.
UnexpectedValue
(expectedDiagnosticSeverity)
13220
throw ExceptionUtilities.
UnexpectedValue
(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27525
throw ExceptionUtilities.
UnexpectedValue
(expectedValue);
27545
throw ExceptionUtilities.
UnexpectedValue
(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests_IsUnmanaged.cs (1)
850
throw ExceptionUtilities.
UnexpectedValue
(accessibility);
Diagnostics\GetDiagnosticsTests.cs (2)
960
_ => throw ExceptionUtilities.
UnexpectedValue
(basePropertyDecl.Kind()),
971
_ => throw ExceptionUtilities.
UnexpectedValue
(baseMethodDecl.Kind()),
Semantics\PatternMatchingTestBase.cs (1)
458
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
Binders\PlaceholderLocalBinder.cs (1)
84
throw ExceptionUtilities.
UnexpectedValue
(valueText);
CompilationContext.cs (1)
1157
throw ExceptionUtilities.
UnexpectedValue
(importRecord.TargetKind);
Symbols\EEMethodSymbol.cs (1)
746
throw ExceptionUtilities.
UnexpectedValue
(bodyOpt.Kind);
Symbols\PlaceholderLocalSymbol.cs (1)
80
throw ExceptionUtilities.
UnexpectedValue
(alias.Kind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NativeIntegerTests.cs (2)
585
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
619
throw ExceptionUtilities.
UnexpectedValue
(nativeIntegerMember.Kind);
Semantics\OperatorTests.cs (2)
3254
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Text)
8791
throw Roslyn.Utilities.ExceptionUtilities.
UnexpectedValue
(i);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91
_ => throw ExceptionUtilities.
UnexpectedValue
(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CompilationTestUtils.cs (1)
284
throw ExceptionUtilities.
UnexpectedValue
(node);
Extensions.cs (3)
722
throw ExceptionUtilities.
UnexpectedValue
(member.Kind);
789
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
815
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)
148
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
153
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
158
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
DkmUtilities.cs (1)
327
throw ExceptionUtilities.
UnexpectedValue
(accessibility);
EEMetadataReferenceResolver.cs (1)
79
throw ExceptionUtilities.
UnexpectedValue
(compareResult);
MetadataContextId.cs (1)
37
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
MetadataUtilities.cs (1)
300
throw ExceptionUtilities.
UnexpectedValue
(compareResult);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
115
throw ExceptionUtilities.
UnexpectedValue
(GetPrimitiveSpecialType(type));
Microsoft.CodeAnalysis.Test.Utilities (6)
CustomDataFlowAnalysis.cs (3)
249
throw ExceptionUtilities.
UnexpectedValue
(branch.Semantics);
342
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
397
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
Metadata\ILBuilderVisualizer.cs (1)
495
throw ExceptionUtilities.
UnexpectedValue
(opcode);
Metadata\MetadataReaderUtils.cs (2)
175
throw ExceptionUtilities.
UnexpectedValue
(token.Kind);
228
throw ExceptionUtilities.
UnexpectedValue
(token.Kind);
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableSetTest.nonnetstandard.cs (2)
73
_ => throw ExceptionUtilities.
UnexpectedValue
(set),
89
_ => throw ExceptionUtilities.
UnexpectedValue
(set),
Collections\TestExtensionsMethods.nonnetstandard.cs (2)
38
_ => throw ExceptionUtilities.
UnexpectedValue
(dictionary),
50
_ => throw ExceptionUtilities.
UnexpectedValue
(dictionary),
Microsoft.CodeAnalysis.VisualBasic (370)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
465
Throw ExceptionUtilities.
UnexpectedValue
(branch.Kind)
1854
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
Analysis\FlowAnalysis\DataFlowPass.vb (2)
905
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
1963
Throw ExceptionUtilities.
UnexpectedValue
(expr.Kind) ' TODO: is this reachable at all?
Analysis\FlowAnalysis\EntryPointsWalker.vb (1)
56
Throw ExceptionUtilities.
UnexpectedValue
(stmt.Kind)
Analysis\FlowAnalysis\ExitPointsWalker.vb (1)
120
Throw ExceptionUtilities.
UnexpectedValue
(pending.Branch.Kind) ' there are no other branch statements
Analysis\FlowAnalysis\ReadWriteWalker.vb (2)
73
Throw ExceptionUtilities.
UnexpectedValue
(Me._regionPlace)
90
Throw ExceptionUtilities.
UnexpectedValue
(Me._regionPlace)
Analysis\InitializerRewriter.vb (1)
243
Throw ExceptionUtilities.
UnexpectedValue
(initializer.Kind)
Binding\Binder_Constraints.vb (2)
36
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
96
Throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind)
Binding\Binder_Conversions.vb (8)
38
Throw ExceptionUtilities.
UnexpectedValue
(node.Keyword.Kind)
288
Throw ExceptionUtilities.
UnexpectedValue
(node.Keyword.Kind)
1261
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1326
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1388
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1486
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1550
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1601
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
Binding\Binder_Expressions.vb (10)
906
Throw ExceptionUtilities.
UnexpectedValue
(group.Kind)
1154
Throw ExceptionUtilities.
UnexpectedValue
(result.Kind)
1379
Throw ExceptionUtilities.
UnexpectedValue
(propertyAccess.AccessKind)
1392
Throw ExceptionUtilities.
UnexpectedValue
(expr.GetLateBoundAccessKind())
1495
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1566
Throw ExceptionUtilities.
UnexpectedValue
(conversionSemantics)
1899
Throw ExceptionUtilities.
UnexpectedValue
(containingMember.Kind)
3341
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
3345
Throw ExceptionUtilities.
UnexpectedValue
(lookupResult.Symbols(0).Kind)
3512
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Binding\Binder_Initializers.vb (2)
418
Throw ExceptionUtilities.
UnexpectedValue
(asNew.NewExpression.Kind)
526
Throw ExceptionUtilities.
UnexpectedValue
(asNewSyntax.NewExpression.Kind)
Binding\Binder_Invocation.vb (3)
1022
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
1619
Throw ExceptionUtilities.
UnexpectedValue
(state)
3083
Throw ExceptionUtilities.
UnexpectedValue
(argumentSyntax.Kind)
Binding\Binder_Lambda.vb (1)
501
Throw ExceptionUtilities.
UnexpectedValue
(lambdaSyntax.Kind)
Binding\Binder_Lookup.vb (3)
597
Throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
626
Throw ExceptionUtilities.
UnexpectedValue
(container.TypeKind)
1117
Throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
Binding\Binder_ObjectInitializer.vb (3)
278
Throw ExceptionUtilities.
UnexpectedValue
(coClass.TypeKind)
337
Throw ExceptionUtilities.
UnexpectedValue
(type0.TypeKind)
567
Throw ExceptionUtilities.
UnexpectedValue
(syntaxNode.Initializer.Kind)
Binding\Binder_Operators.vb (1)
1022
Throw ExceptionUtilities.
UnexpectedValue
(operatorKind)
Binding\Binder_Query.vb (9)
153
Throw ExceptionUtilities.
UnexpectedValue
(current.Kind)
1208
Throw ExceptionUtilities.
UnexpectedValue
(clauseSyntax.Kind)
1231
Throw ExceptionUtilities.
UnexpectedValue
(absorbNextOperator.Kind)
1329
Throw ExceptionUtilities.
UnexpectedValue
(absorbNextOperator.Kind)
2224
Throw ExceptionUtilities.
UnexpectedValue
(rangeVariables.Length)
3158
Throw ExceptionUtilities.
UnexpectedValue
(absorbNextOperator.Kind)
3567
Throw ExceptionUtilities.
UnexpectedValue
(outerSide)
3582
Throw ExceptionUtilities.
UnexpectedValue
(innerSide)
4040
Throw ExceptionUtilities.
UnexpectedValue
(item.Aggregation.Kind)
Binding\Binder_SelectCase.vb (3)
185
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
219
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
466
Throw ExceptionUtilities.
UnexpectedValue
(caseClause.Kind)
Binding\Binder_Statements.vb (8)
284
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
1202
Throw ExceptionUtilities.
UnexpectedValue
(asNew.NewExpression.Kind)
2097
Throw ExceptionUtilities.
UnexpectedValue
(localDecl.Kind)
2159
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
4886
Case Else : ExceptionUtilities.
UnexpectedValue
(node.Kind)
4907
Case Else : ExceptionUtilities.
UnexpectedValue
(node.Kind)
5243
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
5282
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
Binding\Binder_Symbols.vb (4)
595
Throw ExceptionUtilities.
UnexpectedValue
(typeSyntax.Kind)
671
Throw ExceptionUtilities.
UnexpectedValue
(typesArray.Length)
800
Throw ExceptionUtilities.
UnexpectedValue
(predefinedType)
1160
Throw ExceptionUtilities.
UnexpectedValue
(typeSyntax.Kind)
Binding\Binder_Utils.vb (5)
37
Throw ExceptionUtilities.
UnexpectedValue
(varianceKeywordOpt.Kind)
751
Throw ExceptionUtilities.
UnexpectedValue
(typeChar)
789
Throw ExceptionUtilities.
UnexpectedValue
(keywordSyntax.Kind)
808
Throw ExceptionUtilities.
UnexpectedValue
(keywordSyntax.Kind)
1537
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Binding\Binder_XmlLiterals.vb (3)
631
Throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind)
951
Throw ExceptionUtilities.
UnexpectedValue
(token.Kind)
1303
Throw ExceptionUtilities.
UnexpectedValue
(token.Kind)
Binding\BinderBuilder.vb (1)
361
Throw ExceptionUtilities.
UnexpectedValue
(binderType)
Binding\BinderFactory.vb (5)
331
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
421
Throw ExceptionUtilities.
UnexpectedValue
(methodSyntax.Kind)
433
Throw ExceptionUtilities.
UnexpectedValue
(usage)
555
Throw ExceptionUtilities.
UnexpectedValue
(parent.Kind)
613
Throw ExceptionUtilities.
UnexpectedValue
(childName.Kind)
Binding\DocumentationCommentCrefBinder.vb (7)
271
Throw ExceptionUtilities.
UnexpectedValue
(crefName.Kind)
371
Throw ExceptionUtilities.
UnexpectedValue
(name.Kind)
512
Throw ExceptionUtilities.
UnexpectedValue
(nameFromCref.Kind)
592
Throw ExceptionUtilities.
UnexpectedValue
(left.Kind)
667
Throw ExceptionUtilities.
UnexpectedValue
(left.Kind)
1070
Throw ExceptionUtilities.
UnexpectedValue
(crefOperator.OperatorToken.Kind)
1115
Throw ExceptionUtilities.
UnexpectedValue
(name.Kind)
Binding\DocumentationCommentCrefBinder_Compat.vb (4)
77
Throw ExceptionUtilities.
UnexpectedValue
(nameFromCref.Kind)
102
Throw ExceptionUtilities.
UnexpectedValue
(left.Kind)
386
Throw ExceptionUtilities.
UnexpectedValue
(node.Keyword.Kind)
410
Throw ExceptionUtilities.
UnexpectedValue
(genericSymbol.Kind)
Binding\InitializerSemanticModel.vb (1)
158
Throw ExceptionUtilities.
UnexpectedValue
(Me.MemberSymbol.Kind)
Binding\LocalBinderBuilder.vb (3)
136
Throw ExceptionUtilities.
UnexpectedValue
(methodBlock.BlockStatement.Kind)
156
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
188
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
Binding\LookupResult.vb (1)
80
Throw ExceptionUtilities.
UnexpectedValue
(resultKind)
Binding\MemberSemanticModel.vb (2)
400
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
1090
Throw ExceptionUtilities.
UnexpectedValue
(queryableSource.Source.Kind)
BoundTree\BoundCaseClause.vb (1)
24
ExceptionUtilities.
UnexpectedValue
(conditionOpt.Kind) ' This is going to assert
BoundTree\BoundExpressionExtensions.vb (4)
254
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
269
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
292
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
307
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
BoundTree\BoundMethodOrPropertyGroup.vb (2)
34
Throw ExceptionUtilities.
UnexpectedValue
(Me.Kind)
51
Throw ExceptionUtilities.
UnexpectedValue
(Me.Kind)
CodeGen\EmitAddress.vb (1)
124
Throw ExceptionUtilities.
UnexpectedValue
(kind)
CodeGen\EmitExpression.vb (4)
166
Throw ExceptionUtilities.
UnexpectedValue
(expression.Kind)
207
Throw ExceptionUtilities.
UnexpectedValue
(expression.Kind)
1844
Throw ExceptionUtilities.
UnexpectedValue
(assignmentTarget.Kind)
1951
Throw ExceptionUtilities.
UnexpectedValue
(expression.Kind)
CodeGen\EmitOperators.vb (3)
80
Throw ExceptionUtilities.
UnexpectedValue
(expression.OperatorKind)
340
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
539
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
CodeGen\EmitStatement.vb (6)
73
Throw ExceptionUtilities.
UnexpectedValue
(statement.Kind)
112
Throw ExceptionUtilities.
UnexpectedValue
(statement.Flavor)
378
Throw ExceptionUtilities.
UnexpectedValue
(exceptionSource.Kind)
612
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
1013
Throw ExceptionUtilities.
UnexpectedValue
(caseClause.Kind)
1016
Throw ExceptionUtilities.
UnexpectedValue
(caseClause.Kind)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
143
Throw ExceptionUtilities.
UnexpectedValue
(context)
652
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
Compilation\ClsComplianceChecker.vb (7)
429
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
598
Throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
624
Throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
829
Throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility)
855
Throw ExceptionUtilities.
UnexpectedValue
(compliance)
927
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
949
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (3)
107
Throw ExceptionUtilities.
UnexpectedValue
(tag)
750
Throw ExceptionUtilities.
UnexpectedValue
(DirectCast(symbol, NamedTypeSymbol).TypeKind)
754
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
147
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
708
Throw ExceptionUtilities.
UnexpectedValue
(attr.Kind)
782
Throw ExceptionUtilities.
UnexpectedValue
(attr.Kind)
Compilation\SemanticModel.vb (1)
1451
Throw ExceptionUtilities.
UnexpectedValue
(boundNodeOfSyntacticParent.Kind)
Compilation\SyntaxTreeSemanticModel.vb (1)
747
Throw ExceptionUtilities.
UnexpectedValue
(implementingMember.Kind)
Compilation\VisualBasicDeterministicKeyBuilder.vb (1)
56
Throw ExceptionUtilities.
UnexpectedValue
(value)
Declarations\DeclarationModifiersExtensions.vb (1)
20
Throw ExceptionUtilities.
UnexpectedValue
(modifiers)
Declarations\DeclarationTreeBuilder.vb (2)
800
Throw ExceptionUtilities.
UnexpectedValue
(kind)
853
Throw ExceptionUtilities.
UnexpectedValue
(modifier.Kind)
Declarations\MergedTypeDeclaration.vb (1)
101
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
123
Throw ExceptionUtilities.
UnexpectedValue
(containingSymbol.Kind)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (5)
120
Throw ExceptionUtilities.
UnexpectedValue
(def)
387
Throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind)
461
Throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind)
493
Throw ExceptionUtilities.
UnexpectedValue
(otherContainer.Kind)
638
Throw ExceptionUtilities.
UnexpectedValue
(type.Kind)
Emit\NoPia\EmbeddedTypesManager.vb (2)
259
Throw ExceptionUtilities.
UnexpectedValue
(IsFrozen)
422
Throw ExceptionUtilities.
UnexpectedValue
(propertyOrEvent.Kind)
Emit\PEModuleBuilder.vb (5)
220
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
259
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
265
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
671
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
706
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
Emit\SymbolTranslator.vb (2)
261
Throw ExceptionUtilities.
UnexpectedValue
(typeSymbol.Kind)
355
Throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility)
Emit\TypeParameterSymbolAdapter.vb (3)
147
Throw ExceptionUtilities.
UnexpectedValue
(kind)
157
Throw ExceptionUtilities.
UnexpectedValue
(kind)
248
Throw ExceptionUtilities.
UnexpectedValue
(AdaptedTypeParameterSymbol.Variance)
Errors\ErrorMessageHelpers.vb (1)
30
Throw ExceptionUtilities.
UnexpectedValue
(access)
LanguageVersion.vb (2)
75
Throw ExceptionUtilities.
UnexpectedValue
(value)
136
Throw ExceptionUtilities.
UnexpectedValue
(version)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (3)
30
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
399
Throw ExceptionUtilities.
UnexpectedValue
(expr.Kind)
540
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
Lowering\AsyncRewriter\AsyncRewriter.vb (3)
65
Throw ExceptionUtilities.
UnexpectedValue
(Me._asyncMethodKind)
337
Throw ExceptionUtilities.
UnexpectedValue
(Me._asyncMethodKind)
471
Throw ExceptionUtilities.
UnexpectedValue
(expression.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
280
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
283
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
559
Throw ExceptionUtilities.
UnexpectedValue
(initializerOpt.Kind)
588
Throw ExceptionUtilities.
UnexpectedValue
(left.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (6)
56
Throw ExceptionUtilities.
UnexpectedValue
(node.OperatorKind)
59
Throw ExceptionUtilities.
UnexpectedValue
(node.OperatorKind)
520
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
547
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
586
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
636
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
60
Throw ExceptionUtilities.
UnexpectedValue
(convTestExpr.Kind)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (5)
99
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
183
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
212
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
231
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
249
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
Lowering\LambdaRewriter\LambdaFrame.vb (1)
114
ExceptionUtilities.
UnexpectedValue
(syntaxOpt.Kind())
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
453
Throw ExceptionUtilities.
UnexpectedValue
(asVariable.IsByRef)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
646
Throw ExceptionUtilities.
UnexpectedValue
(originalSymbol.Kind)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
183
Throw ExceptionUtilities.
UnexpectedValue
(setNode.Kind)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
702
Throw ExceptionUtilities.
UnexpectedValue
(constStep)
Lowering\LocalRewriter\LocalRewriter_If.vb (3)
55
Throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind)
154
Throw ExceptionUtilities.
UnexpectedValue
(instrumentationTargetOpt.Syntax.Kind)
198
Throw ExceptionUtilities.
UnexpectedValue
(instrumentationTargetOpt.Syntax.Kind)
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
425
Throw ExceptionUtilities.
UnexpectedValue
(rewrittenObjectCreationExpression.Kind)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
374
Throw ExceptionUtilities.
UnexpectedValue
(caseClause.Kind)
Lowering\LocalRewriter\LocalRewriter_While.vb (3)
70
Throw ExceptionUtilities.
UnexpectedValue
(statement.Kind)
87
Throw ExceptionUtilities.
UnexpectedValue
(statement.Kind)
110
Throw ExceptionUtilities.
UnexpectedValue
(statement.Kind)
Lowering\WithExpressionRewriter.vb (1)
330
Throw ExceptionUtilities.
UnexpectedValue
(value.Kind)
Operations\VisualBasicOperationFactory.vb (3)
327
Throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind)
494
Throw ExceptionUtilities.
UnexpectedValue
(boundOperator.Kind)
545
Throw ExceptionUtilities.
UnexpectedValue
(binaryOperator.Kind)
Operations\VisualBasicOperationFactory_Methods.vb (7)
35
Throw ExceptionUtilities.
UnexpectedValue
(boundAssignment.Kind)
48
Throw ExceptionUtilities.
UnexpectedValue
(boundAssignment.Kind)
65
Throw ExceptionUtilities.
UnexpectedValue
(boundAssignment.Kind)
76
Throw ExceptionUtilities.
UnexpectedValue
(boundAssignment.Kind)
162
Throw ExceptionUtilities.
UnexpectedValue
(index)
190
Throw ExceptionUtilities.
UnexpectedValue
(boundNode.Kind)
378
Throw ExceptionUtilities.
UnexpectedValue
(conditionOpt.Kind)
Parser\BlockContexts\BlockContext.vb (2)
718
Throw ExceptionUtilities.
UnexpectedValue
(kind)
814
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Parser\BlockContexts\MethodBlockContext.vb (1)
86
Throw ExceptionUtilities.
UnexpectedValue
(BlockKind)
Parser\BlockContexts\SingleLineElseContext.vb (2)
99
Throw ExceptionUtilities.
UnexpectedValue
(token.Kind)
177
Throw ExceptionUtilities.
UnexpectedValue
(context.BlockKind)
Parser\BlockContexts\SingleLineIfBlockContext.vb (1)
101
Throw ExceptionUtilities.
UnexpectedValue
(token.Kind)
Parser\BlockContexts\SingleLineIfOrElseBlockContext.vb (1)
57
Throw ExceptionUtilities.
UnexpectedValue
(context.BlockKind)
Parser\BlockContexts\StatementBlockContext.vb (1)
45
Throw ExceptionUtilities.
UnexpectedValue
(BlockKind)
Parser\ParseExpression.vb (1)
1629
Throw ExceptionUtilities.
UnexpectedValue
(keywordKind)
Parser\Parser.vb (2)
1577
Throw ExceptionUtilities.
UnexpectedValue
(typeKeyword.Kind)
4890
Throw ExceptionUtilities.
UnexpectedValue
(keyword.Kind)
Parser\ParserFeature.vb (2)
109
Throw ExceptionUtilities.
UnexpectedValue
(feature)
182
Throw ExceptionUtilities.
UnexpectedValue
(feature)
Parser\ParseStatement.vb (1)
1193
Throw ExceptionUtilities.
UnexpectedValue
(operatorToken.Kind)
PredefinedPreprocessorSymbols.vb (1)
88
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Preprocessor\ExpressionEvaluator.vb (17)
108
Throw ExceptionUtilities.
UnexpectedValue
(specialType)
265
Throw ExceptionUtilities.
UnexpectedValue
(token.Kind)
321
Throw ExceptionUtilities.
UnexpectedValue
(typeChar)
403
Throw ExceptionUtilities.
UnexpectedValue
(kind)
535
Throw ExceptionUtilities.
UnexpectedValue
(expr.Keyword.Kind)
894
Throw ExceptionUtilities.
UnexpectedValue
(specialType)
933
Throw ExceptionUtilities.
UnexpectedValue
(specialType)
940
Throw ExceptionUtilities.
UnexpectedValue
(expr)
1009
Throw ExceptionUtilities.
UnexpectedValue
(expr)
1156
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1269
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1304
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1384
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1435
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1482
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1537
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
1577
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
Preprocessor\OperatorResolution.vb (2)
65
Throw ExceptionUtilities.
UnexpectedValue
(specialType)
346
Throw ExceptionUtilities.
UnexpectedValue
(opcode)
Preprocessor\TypeHelpers.vb (1)
37
Throw ExceptionUtilities.
UnexpectedValue
(specialType)
Scanner\Directives.vb (2)
220
Throw ExceptionUtilities.
UnexpectedValue
(statement.Kind)
611
Throw ExceptionUtilities.
UnexpectedValue
(curToken.Kind)
Scanner\Scanner.vb (2)
1786
Throw ExceptionUtilities.
UnexpectedValue
(ch)
2116
Throw ExceptionUtilities.
UnexpectedValue
(literalKind)
Scanner\TokenStream.vb (1)
631
Throw ExceptionUtilities.
UnexpectedValue
(state)
Semantics\AccessCheck.vb (3)
125
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
195
Throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility)
271
Throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility)
Semantics\CompileTimeCalculations.vb (5)
159
Case Else : Throw ExceptionUtilities.
UnexpectedValue
(value.Discriminator)
178
Case Else : Throw ExceptionUtilities.
UnexpectedValue
(type)
229
Throw ExceptionUtilities.
UnexpectedValue
(resultType)
542
Throw ExceptionUtilities.
UnexpectedValue
(resultType)
570
Throw ExceptionUtilities.
UnexpectedValue
(resultType)
Semantics\Operators.vb (19)
157
Throw ExceptionUtilities.
UnexpectedValue
(op)
213
Throw ExceptionUtilities.
UnexpectedValue
(op)
488
Throw ExceptionUtilities.
UnexpectedValue
(opCode)
685
Throw ExceptionUtilities.
UnexpectedValue
(opCode)
749
Throw ExceptionUtilities.
UnexpectedValue
(op)
769
Throw ExceptionUtilities.
UnexpectedValue
(op)
794
Throw ExceptionUtilities.
UnexpectedValue
(op)
837
Throw ExceptionUtilities.
UnexpectedValue
(opCode)
1172
Throw ExceptionUtilities.
UnexpectedValue
(op)
1281
Throw ExceptionUtilities.
UnexpectedValue
(op)
1333
Throw ExceptionUtilities.
UnexpectedValue
(op)
1397
Throw ExceptionUtilities.
UnexpectedValue
(op)
1457
Throw ExceptionUtilities.
UnexpectedValue
(op)
1483
Throw ExceptionUtilities.
UnexpectedValue
(op)
1569
Throw ExceptionUtilities.
UnexpectedValue
(op)
1624
Throw ExceptionUtilities.
UnexpectedValue
(op)
1694
Throw ExceptionUtilities.
UnexpectedValue
(opCode)
3007
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
3133
Throw ExceptionUtilities.
UnexpectedValue
(opKind)
Semantics\OverloadResolution.vb (2)
3870
Throw ExceptionUtilities.
UnexpectedValue
(candidate.State)
4722
Throw ExceptionUtilities.
UnexpectedValue
(this.Kind)
Semantics\TypeInference\TypeArgumentInference.vb (4)
1210
Throw ExceptionUtilities.
UnexpectedValue
(argNode.Expression.Kind)
2020
Throw ExceptionUtilities.
UnexpectedValue
(argument.Kind)
2075
Throw ExceptionUtilities.
UnexpectedValue
(argument.Kind)
2238
Throw ExceptionUtilities.
UnexpectedValue
(argument.Kind)
SourceGeneration\VisualBasicSyntaxHelper.vb (1)
88
Throw ExceptionUtilities.
UnexpectedValue
(name.KindText)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
284
Throw ExceptionUtilities.
UnexpectedValue
(symbol.MethodKind)
375
Throw ExceptionUtilities.
UnexpectedValue
(symbol.MethodKind)
474
Throw ExceptionUtilities.
UnexpectedValue
(data.CharacterSet)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
270
Throw ExceptionUtilities.
UnexpectedValue
(symbol.TypeKind)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
242
Throw ExceptionUtilities.
UnexpectedValue
(format.GlobalNamespaceStyle)
338
Throw ExceptionUtilities.
UnexpectedValue
(symbol.DeclaredAccessibility)
Symbols\AccessibilityExtensions.vb (1)
32
Throw ExceptionUtilities.
UnexpectedValue
(a)
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
121
Throw ExceptionUtilities.
UnexpectedValue
(t.TypeKind)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
225
Throw ExceptionUtilities.
UnexpectedValue
(template.TypeKind)
Symbols\ConstraintsHelper.vb (1)
259
Throw ExceptionUtilities.
UnexpectedValue
(constraintType.TypeKind)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
245
Throw ExceptionUtilities.
UnexpectedValue
(methKind)
354
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.vb (1)
50
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Symbols\MemberSignatureComparer.vb (1)
80
Throw ExceptionUtilities.
UnexpectedValue
(sym.Kind)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
115
Throw ExceptionUtilities.
UnexpectedValue
(memberRefOrMethodDef.Kind)
Symbols\Metadata\PE\MetadataDecoder.vb (1)
232
Throw ExceptionUtilities.
UnexpectedValue
(this.Kind)
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
440
Throw ExceptionUtilities.
UnexpectedValue
(opInfo.UnaryOperatorKind)
488
Throw ExceptionUtilities.
UnexpectedValue
(opInfo.BinaryOperatorKind)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
648
Throw ExceptionUtilities.
UnexpectedValue
(x.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
166
Throw ExceptionUtilities.
UnexpectedValue
(type.TypeKind)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
578
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
Symbols\Source\ImplementsHelper.vb (1)
444
Throw ExceptionUtilities.
UnexpectedValue
(implementingSym.Kind)
Symbols\Source\LocalSymbol.vb (1)
576
Throw ExceptionUtilities.
UnexpectedValue
(Me.DeclarationKind)
Symbols\Source\SourceEventSymbol.vb (3)
125
Throw ExceptionUtilities.
UnexpectedValue
(accessor.MethodKind)
360
Throw ExceptionUtilities.
UnexpectedValue
(blockSyntax.Kind)
407
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (6)
177
Throw ExceptionUtilities.
UnexpectedValue
(declaration.Kind)
348
Throw ExceptionUtilities.
UnexpectedValue
(Me.TypeKind)
816
Throw ExceptionUtilities.
UnexpectedValue
(context)
958
Throw ExceptionUtilities.
UnexpectedValue
(type.Kind)
2477
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
2697
Throw ExceptionUtilities.
UnexpectedValue
(methodBaseSyntax.Kind)
Symbols\Source\SourceMemberMethodSymbol.vb (1)
764
Throw ExceptionUtilities.
UnexpectedValue
(ContainingType.TypeKind)
Symbols\Source\SourceMethodSymbol.vb (7)
340
Throw ExceptionUtilities.
UnexpectedValue
(syntax.OperatorToken.Kind)
362
Throw ExceptionUtilities.
UnexpectedValue
(paramCountMismatchERRID)
881
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
1016
Throw ExceptionUtilities.
UnexpectedValue
(operatorStatement.OperatorToken.Kind)
1040
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
2211
Throw ExceptionUtilities.
UnexpectedValue
(decl.Kind)
2233
Throw ExceptionUtilities.
UnexpectedValue
(methodStatement.Kind)
Symbols\Source\SourceNamedTypeSymbol.vb (4)
140
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
452
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
660
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
1400
Throw ExceptionUtilities.
UnexpectedValue
(TypeKind)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
459
Throw ExceptionUtilities.
UnexpectedValue
(memberKind)
631
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
165
Throw ExceptionUtilities.
UnexpectedValue
(argumentSyntax.Kind)
Symbols\Source\SourceNamespaceSymbol.vb (1)
488
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
Symbols\Source\SourceParameterSymbol.vb (1)
471
Throw ExceptionUtilities.
UnexpectedValue
(pinvoke.CharacterSet)
Symbols\SpecialTypeExtensions.vb (3)
310
Throw ExceptionUtilities.
UnexpectedValue
(this)
330
Throw ExceptionUtilities.
UnexpectedValue
(this)
372
Throw ExceptionUtilities.
UnexpectedValue
(this)
Symbols\SubstitutedNamedType.vb (2)
388
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
492
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Symbols\Symbol.vb (1)
552
Throw ExceptionUtilities.
UnexpectedValue
(Me.Kind)
Symbols\Symbol_Attributes.vb (2)
115
Throw ExceptionUtilities.
UnexpectedValue
(namedType.TypeKind)
381
Throw ExceptionUtilities.
UnexpectedValue
(targetOpt.AttributeModifier.Kind)
Symbols\SymbolExtensions.vb (3)
80
Throw ExceptionUtilities.
UnexpectedValue
(target.Kind)
331
Throw ExceptionUtilities.
UnexpectedValue
(sym.Kind)
477
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
Symbols\Tuples\TupleTypeSymbol.vb (2)
798
Throw ExceptionUtilities.
UnexpectedValue
(member.Kind)
916
Throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind)
Symbols\TypeParameterConstraint.vb (1)
82
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Symbols\TypeSymbolExtensions.vb (2)
417
Throw ExceptionUtilities.
UnexpectedValue
(this.TypeKind)
888
Throw ExceptionUtilities.
UnexpectedValue
(current.TypeKind)
Symbols\WellKnownMembers.vb (2)
452
Throw ExceptionUtilities.
UnexpectedValue
(descriptor.Flags)
505
Throw ExceptionUtilities.
UnexpectedValue
(targetSymbolKind)
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (1)
401
Throw ExceptionUtilities.
UnexpectedValue
(trivia(i).Kind)
Syntax\InternalSyntax\SyntaxNodeFactories.vb (3)
443
Throw ExceptionUtilities.
UnexpectedValue
(kind)
544
Throw ExceptionUtilities.
UnexpectedValue
(blockKind)
563
Throw ExceptionUtilities.
UnexpectedValue
(statementKind)
Syntax\InternalSyntax\SyntaxToken.vb (1)
472
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Syntax\LambdaUtilities.vb (6)
94
Throw ExceptionUtilities.
UnexpectedValue
(oldLambda.Kind)
298
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
395
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
415
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
429
Throw ExceptionUtilities.
UnexpectedValue
(lambda.Kind)
594
Throw ExceptionUtilities.
UnexpectedValue
(clause.Kind)
Syntax\SyntaxExtensions.vb (3)
61
Throw ExceptionUtilities.
UnexpectedValue
(newExpressionSyntax.Kind)
76
Throw ExceptionUtilities.
UnexpectedValue
(asClauseSyntax.Kind)
91
Throw ExceptionUtilities.
UnexpectedValue
(asClauseSyntax.Kind)
Syntax\SyntaxFactory.vb (2)
434
Throw ExceptionUtilities.
UnexpectedValue
(blockKind)
453
Throw ExceptionUtilities.
UnexpectedValue
(statementKind)
Syntax\SyntaxNodeExtensions.vb (1)
371
Throw ExceptionUtilities.
UnexpectedValue
(syntax.Kind)
Syntax\SyntaxNodeFactories.vb (1)
739
Throw ExceptionUtilities.
UnexpectedValue
(kind)
Syntax\SyntaxNodePartials.vb (1)
127
Throw ExceptionUtilities.
UnexpectedValue
(Me.Kind)
Utilities\VarianceAmbiguity.vb (1)
154
Throw ExceptionUtilities.
UnexpectedValue
(variance)
VisualBasicDeclarationComputer.vb (1)
232
Throw ExceptionUtilities.
UnexpectedValue
(methodBase.Kind)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
10163
Throw ExceptionUtilities.
UnexpectedValue
(expectedEffectiveSeverity)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
CodeGen\CodeGenTuples.vb (2)
23202
Throw ExceptionUtilities.
UnexpectedValue
(expectedValue)
23220
Throw ExceptionUtilities.
UnexpectedValue
(expectedValue)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
CompilationContext.vb (2)
882
Throw ExceptionUtilities.
UnexpectedValue
(importRecord.TargetKind)
884
Throw ExceptionUtilities.
UnexpectedValue
(importRecord.TargetKind)
Symbols\EEMethodSymbol.vb (1)
605
Throw ExceptionUtilities.
UnexpectedValue
(body.Kind)
Symbols\PlaceholderLocalSymbol.vb (1)
60
Throw ExceptionUtilities.
UnexpectedValue
([alias].Kind)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\BinaryOperators.vb (1)
1439
Throw ExceptionUtilities.
UnexpectedValue
(i)