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