1114 references to UnexpectedValue
Microsoft.CodeAnalysis (462)
CodeGen\ArrayMembers.cs (1)
138throw ExceptionUtilities.UnexpectedValue(id);
CodeGen\ILBuilder.cs (1)
1165throw 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)
806throw ExceptionUtilities.UnexpectedValue(handlerScope.Type);
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
517throw ExceptionUtilities.UnexpectedValue(branchCode);
Collections\Rope.cs (5)
102throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 145throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 156throw ExceptionUtilities.UnexpectedValue(nameof(maxLength)); 177throw ExceptionUtilities.UnexpectedValue(v.GetType().Name); 201throw ExceptionUtilities.UnexpectedValue(v.GetType().Name);
CommandLine\AnalyzerConfig.SectionNameMatching.cs (3)
140throw ExceptionUtilities.UnexpectedValue(tokenKind); 306throw ExceptionUtilities.UnexpectedValue(tokenKind); 404throw ExceptionUtilities.UnexpectedValue(lastChar);
Compilation\Compilation.cs (3)
2314throw ExceptionUtilities.UnexpectedValue(platform); 2412throw ExceptionUtilities.UnexpectedValue(outputKind); 2433throw ExceptionUtilities.UnexpectedValue(outputKind);
Compilation\DeterministicKeyBuilder.cs (2)
371throw ExceptionUtilities.UnexpectedValue(m); 394throw ExceptionUtilities.UnexpectedValue(reference);
Compilation\OptimizationLevel.cs (1)
60_ => throw ExceptionUtilities.UnexpectedValue(optimization)
ConstantValue.cs (6)
433throw ExceptionUtilities.UnexpectedValue(discriminator); 483ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.UnexpectedValue(Discriminator), 484_ => throw ExceptionUtilities.UnexpectedValue(Discriminator) 538default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 805default: throw ExceptionUtilities.UnexpectedValue(this.Discriminator); 833_ => throw ExceptionUtilities.UnexpectedValue(Discriminator)
CryptographicHashProvider.cs (4)
60throw ExceptionUtilities.UnexpectedValue(algorithmId); 76throw ExceptionUtilities.UnexpectedValue(algorithmId); 108throw ExceptionUtilities.UnexpectedValue(algorithmId); 270throw ExceptionUtilities.UnexpectedValue(constant.Discriminator);
Diagnostic\Diagnostic.cs (1)
546throw ExceptionUtilities.UnexpectedValue(reportAction);
Diagnostic\DiagnosticDescriptor.cs (2)
262throw ExceptionUtilities.UnexpectedValue(severity); 281throw ExceptionUtilities.UnexpectedValue(severity);
Diagnostic\DiagnosticFormatter.cs (1)
100throw ExceptionUtilities.UnexpectedValue(diagnostic.Severity);
Diagnostic\DiagnosticInfo.cs (1)
121throw ExceptionUtilities.UnexpectedValue(type);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1093throw ExceptionUtilities.UnexpectedValue(compilationEvent.GetType().ToString());
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228throw ExceptionUtilities.UnexpectedValue(_scope);
Emit\CommonPEModuleBuilder.cs (1)
1187throw ExceptionUtilities.UnexpectedValue(platformType);
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
578throw ExceptionUtilities.UnexpectedValue(deletedMember); 661throw ExceptionUtilities.UnexpectedValue(change); 1516throw ExceptionUtilities.UnexpectedValue(item);
Emit\EditAndContinue\SymbolChanges.cs (3)
213throw ExceptionUtilities.UnexpectedValue(generatorChange); 279throw ExceptionUtilities.UnexpectedValue(containerChange); 411throw ExceptionUtilities.UnexpectedValue(edit.Kind);
Emit\HotReloadExceptionCode.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(code)
EnumConstantHelper.cs (1)
111throw ExceptionUtilities.UnexpectedValue(constantValue.Discriminator);
FileSystem\FileUtilities.cs (1)
186throw ExceptionUtilities.UnexpectedValue(kind);
Generated\Operations.Generated.cs (328)
4054_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4069throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4085throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4109_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4124throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4140throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4173_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4191throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4210throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4267_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4291throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4316throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4355_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4381throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4408throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4459_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4489throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4520throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4570_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4583throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4597throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4617internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4631internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 4656_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4669throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4683throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4714_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4730throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4747throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4783_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4804throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4826throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4861_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4877throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4894throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4918_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4931throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4945throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 4976_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 4992throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5009throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5023internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5037internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5066_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5084throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5103throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5121internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5154_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5167throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5181throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5217_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5235throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5254throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5284_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5302throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5321throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5343internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5362internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 5400_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5413throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5427throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5456_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5469throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5483throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5515_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5533throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5552throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5579_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5592throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5606throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5642_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5655throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5669throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5714_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5730throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5747throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5785_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5804throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5824throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5858_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5874throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5891throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5917_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5930throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5944throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 5977_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 5995throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6014throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6039_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6052throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6066throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6096_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6114throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6133throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6152internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6181_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6194throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6208throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6233_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6246throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6260throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6300_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6316throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6333throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6375_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6391throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6408throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6434_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6447throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6461throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6493_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6509throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6526throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6556_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6572throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6589throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6606internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 6632_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6647throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6663throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6688_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6703throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6719throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6744_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6759throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6775throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6805_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6821throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6838throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6864_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6877throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6891throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6918_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6933throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6949throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 6980_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 6993throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7007throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7032_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7045throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7059throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7084_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7097throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7111throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7129internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7148internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7168internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7193_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7206throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7220throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7250_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7266throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7283throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7319_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7332throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7346throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7371_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7384throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7398throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7424_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7440throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7457throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7482_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7495throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7509throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7526internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 7561_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7574throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7588throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7608_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7621throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7635throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7659_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7672throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7686throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7710_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7723throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7737throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7761_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7776throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7792throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7823_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7841throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7860throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7894_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7917throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7941throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 7975_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 7988throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8002throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8040_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8059throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8079throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8112_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8132throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8153throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8177internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8207_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8223throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8240throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8269_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8285throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8302throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8328_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8341throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8355throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8379_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8392throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8406throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8435_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8448throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8462throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8496_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8515throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8535throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8570_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8583throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8597throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8619internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8651_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8667throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8684throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8718_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8734throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8751throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8783_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8802throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8822throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8841internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8867_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8880throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8894throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8916internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 8942_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 8955throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8969throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 8986internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9005internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9031_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9047throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9064throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9098_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9114throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9131throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9157_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9172throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9188throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9217_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9235throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9254throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9289_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9309throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9330throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9344internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9376_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9394throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9413throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9449_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9468throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9488throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9517_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9533throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9550throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9580_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9596throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9613throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9644_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9660throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9677throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9702_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9715throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9729throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9748internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 9777_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9793throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9810throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9838_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9851throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9865throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9889_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9902throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9916throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9947_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 9963throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9980throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 9998internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10024_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10037throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10051throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10083_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10099throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10116throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10150_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10166throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10183throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10212_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10228throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10245throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10270_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10283throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10297throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10317internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10347_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10365throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10384throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10414_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10429throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10445throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10471_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10484throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10498throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10532_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10548throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10565throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10584internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index)); 10608_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10621throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10635throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10665_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10681throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10698throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10730_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10750throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10771throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10800_ => throw ExceptionUtilities.UnexpectedValue((slot, index)), 10813throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10827throw ExceptionUtilities.UnexpectedValue((previousSlot, previousIndex)); 10844internal override IOperation GetCurrent(int slot, int index) => throw ExceptionUtilities.UnexpectedValue((slot, index));
InternalUtilities\SingleInitNullable.cs (1)
80throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
MemberDescriptor.cs (2)
112throw ExceptionUtilities.UnexpectedValue(memberKind); 205throw ExceptionUtilities.UnexpectedValue(typeCode);
MetadataReader\MetadataDecoder.cs (1)
464throw ExceptionUtilities.UnexpectedValue(handle.Kind);
MetadataReader\MetadataHelpers.cs (2)
276throw ExceptionUtilities.UnexpectedValue(c); 373throw ExceptionUtilities.UnexpectedValue(EndOfInput);
MetadataReader\MetadataTypeCodeExtensions.cs (2)
73throw ExceptionUtilities.UnexpectedValue(typeCode); 135throw ExceptionUtilities.UnexpectedValue(specialType);
MetadataReader\PEModule.cs (8)
1294_ => throw ExceptionUtilities.UnexpectedValue(kind) 1314throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1813throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1862throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1876throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1909throw ExceptionUtilities.UnexpectedValue(attributeInfo.SignatureIndex); 1958throw ExceptionUtilities.UnexpectedValue(info.SignatureIndex); 3351throw ExceptionUtilities.UnexpectedValue(methodDefOrRef.Kind);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
135throw ExceptionUtilities.UnexpectedValue(_contentType);
Operations\ControlFlowGraphBuilder.cs (15)
339throw ExceptionUtilities.UnexpectedValue(branch.Kind); 428throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 484throw ExceptionUtilities.UnexpectedValue(@catch.Kind); 604throw ExceptionUtilities.UnexpectedValue(region.Kind); 2283throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind); 3851throw ExceptionUtilities.UnexpectedValue(operation.Kind); 5639throw ExceptionUtilities.UnexpectedValue(relationalValueClause.Relation); 5659throw ExceptionUtilities.UnexpectedValue(caseClause.CaseKind); 6276throw ExceptionUtilities.UnexpectedValue(originalTarget.Kind); 6348throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 6549throw ExceptionUtilities.UnexpectedValue("Mixed argument operations and non-argument operations in ConstructArguments"); 6938throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 6950throw ExceptionUtilities.UnexpectedValue(currentAddition.Left.Kind); 7024throw ExceptionUtilities.UnexpectedValue(operation.PlaceholderKind); 7098throw 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)
2272throw ExceptionUtilities.UnexpectedValue(exportedType); 2900throw ExceptionUtilities.UnexpectedValue(typeRef); 3151_ => throw ExceptionUtilities.UnexpectedValue(reference) 3331throw ExceptionUtilities.UnexpectedValue(rawTokenEncoding); 3406throw ExceptionUtilities.UnexpectedValue(operandType); 4040throw ExceptionUtilities.UnexpectedValue(primitiveType); 4146throw 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)
313throw ExceptionUtilities.UnexpectedValue(compilationReference.Properties.Kind); 391throw ExceptionUtilities.UnexpectedValue(peReference.Properties.Kind);
SignatureComparer.cs (1)
228throw ExceptionUtilities.UnexpectedValue(typeCode);
SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
SourceGeneration\Nodes\NodeStateTable.cs (1)
515_ => throw ExceptionUtilities.UnexpectedValue((inputState, outputState))
SpecialTypeExtensions.cs (2)
271throw ExceptionUtilities.UnexpectedValue(specialType); 387_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
SwitchConstantValueHelper.cs (1)
93throw ExceptionUtilities.UnexpectedValue(first.Discriminator);
Symbols\Attributes\AttributeUsageInfo.cs (1)
229throw ExceptionUtilities.UnexpectedValue(target);
Symbols\Attributes\CommonAttributeData.cs (1)
268throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\PlatformInvokeInformation.cs (1)
82throw ExceptionUtilities.UnexpectedValue(_flags);
Symbols\RefKind.cs (3)
60default: throw ExceptionUtilities.UnexpectedValue(kind); 71default: throw ExceptionUtilities.UnexpectedValue(kind); 84default: throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\SymbolKindExtensions.cs (1)
54throw ExceptionUtilities.UnexpectedValue(kind);
Text\SourceHashAlgorithms.cs (2)
41_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 56_ => throw ExceptionUtilities.UnexpectedValue(algorithm)
Microsoft.CodeAnalysis.CSharp (574)
Binder\Binder.CapturedParametersFinder.cs (1)
136throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Binder\Binder.cs (2)
266_ => throw ExceptionUtilities.UnexpectedValue(context.AnnotationsState) 295throw ExceptionUtilities.UnexpectedValue(Compilation.Options.NullableContextOptions);
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
423throw ExceptionUtilities.UnexpectedValue(topClause.Kind());
Binder\Binder.OperatorResolutionForReporting.cs (2)
215throw ExceptionUtilities.UnexpectedValue(result); 310throw ExceptionUtilities.UnexpectedValue(result);
Binder\Binder.ValueChecks.cs (16)
82_ => throw ExceptionUtilities.UnexpectedValue(accessorKind), 385_ => throw ExceptionUtilities.UnexpectedValue(EscapeLevel) 1141throw ExceptionUtilities.UnexpectedValue(implicitIndexer.IndexerOrSliceAccess.Kind); 1646throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1678throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 1693throw ExceptionUtilities.UnexpectedValue(fieldSymbol.RefKind); 3519throw ExceptionUtilities.UnexpectedValue(kind); 3547throw ExceptionUtilities.UnexpectedValue(kind); 3591throw ExceptionUtilities.UnexpectedValue(kind); 3885throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4182throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4519throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 4829throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); // ref struct collection type with unexpected type kind 5221throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 5863throw ExceptionUtilities.UnexpectedValue(expression.Kind); 5906throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Constraints.cs (4)
287throw ExceptionUtilities.UnexpectedValue(keyword); 336throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 467_ => throw ExceptionUtilities.UnexpectedValue(containingSymbol) 628throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Binder\Binder_Conversions.cs (26)
822throw ExceptionUtilities.UnexpectedValue(v); 959_ => throw ExceptionUtilities.UnexpectedValue(collectionTypeKind), 1057throw ExceptionUtilities.UnexpectedValue(@this._targetType); 1687throw ExceptionUtilities.UnexpectedValue(targetType); 2162throw ExceptionUtilities.UnexpectedValue(element); 2178throw ExceptionUtilities.UnexpectedValue(element); 2730_ => throw ExceptionUtilities.UnexpectedValue(source), 2904throw ExceptionUtilities.UnexpectedValue(conversion.Kind); 3317_ => throw ExceptionUtilities.UnexpectedValue(delegateType), 3457_ => throw ExceptionUtilities.UnexpectedValue(type) 3465_ => throw ExceptionUtilities.UnexpectedValue(type) 3812default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3832default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3852default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3872default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3892default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3911default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3931default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3951default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3971default: throw ExceptionUtilities.UnexpectedValue(destinationType); 3991default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4011default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4035default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4055default: throw ExceptionUtilities.UnexpectedValue(destinationType); 4058throw ExceptionUtilities.UnexpectedValue(value.Discriminator); 4161default: throw ExceptionUtilities.UnexpectedValue(value.Discriminator);
Binder\Binder_Crefs.cs (4)
42throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 134throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 800throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1022throw ExceptionUtilities.UnexpectedValue(candidate.Kind);
Binder\Binder_Deconstruct.cs (2)
385throw ExceptionUtilities.UnexpectedValue(expression.Kind); 850throw ExceptionUtilities.UnexpectedValue(node.Kind());
Binder\Binder_Expressions.cs (13)
1030throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1615throw ExceptionUtilities.UnexpectedValue(managedKind); 2216_ => throw ExceptionUtilities.UnexpectedValue(alias.Target.Kind), 2225throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 2570throw ExceptionUtilities.UnexpectedValue(symbol); 3260throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 3939throw ExceptionUtilities.UnexpectedValue(argumentIndex); 5326throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 5373_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 7197throw ExceptionUtilities.UnexpectedValue(classCreation.Kind); 8285throw ExceptionUtilities.UnexpectedValue(extensionMember.Kind); 8738throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 9586throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Binder_InterpolatedString.cs (2)
178throw ExceptionUtilities.UnexpectedValue(content.Kind()); 571_ => throw ExceptionUtilities.UnexpectedValue(unconvertedExpression.Kind)
Binder\Binder_Invocation.cs (1)
1120throw ExceptionUtilities.UnexpectedValue(expression.Kind);
Binder\Binder_Lookup.cs (2)
258throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1614throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Binder\Binder_Operators.cs (7)
1275_ => throw ExceptionUtilities.UnexpectedValue(current.Right.Kind) 2661throw ExceptionUtilities.UnexpectedValue(kind); 2682throw ExceptionUtilities.UnexpectedValue(underlyingType); 2745throw ExceptionUtilities.UnexpectedValue(newKind.Operator()); 3236default: throw ExceptionUtilities.UnexpectedValue(kind); 4624default: throw ExceptionUtilities.UnexpectedValue(kind); 5288throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Binder_Patterns.cs (3)
197_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 934throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 1465throw 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)
550throw ExceptionUtilities.UnexpectedValue(node.Kind()); 1709throw ExceptionUtilities.UnexpectedValue(implicitIndexerAccess.IndexerOrSliceAccess.Kind); 1761_ => throw ExceptionUtilities.UnexpectedValue(e.Kind) 1782throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 3611_ => throw ExceptionUtilities.UnexpectedValue(expressionBody.Parent.Kind()), 3695throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Binder\Binder_Symbols.cs (3)
167throw ExceptionUtilities.UnexpectedValue(keyword); 740throw ExceptionUtilities.UnexpectedValue(typesArray.Length); 1480throw ExceptionUtilities.UnexpectedValue(members[0].Kind);
Binder\Binder_TupleOperators.cs (2)
116throw ExceptionUtilities.UnexpectedValue(comparison); 156throw ExceptionUtilities.UnexpectedValue(binaryOperator);
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
311throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 477throw ExceptionUtilities.UnexpectedValue(baseMethodDeclarationSyntax.Kind()); 502throw ExceptionUtilities.UnexpectedValue(basePropertyDeclarationSyntax.Kind()); 1190throw ExceptionUtilities.UnexpectedValue(elementKind);
Binder\DecisionDagBuilder.cs (10)
290throw ExceptionUtilities.UnexpectedValue(toAssemble); 294throw ExceptionUtilities.UnexpectedValue(current); 360throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1004throw ExceptionUtilities.UnexpectedValue(n.Kind); 1272throw ExceptionUtilities.UnexpectedValue(n?.Kind); 1356throw ExceptionUtilities.UnexpectedValue(test); 2723throw ExceptionUtilities.UnexpectedValue(e); 2963throw ExceptionUtilities.UnexpectedValue(test); 2983throw ExceptionUtilities.UnexpectedValue(test); 3001_ => throw ExceptionUtilities.UnexpectedValue(negated),
Binder\DecisionDagBuilder_CheckOrReachability.cs (1)
743throw ExceptionUtilities.UnexpectedValue(operandOrOperation);
Binder\ExpressionVariableFinder.cs (3)
259throw ExceptionUtilities.UnexpectedValue(node.Kind()); 438throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 524throw ExceptionUtilities.UnexpectedValue(designation.Kind());
Binder\ForEachLoopBinder.cs (5)
97throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 173throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 356throw ExceptionUtilities.UnexpectedValue(local.RefKind); 426throw ExceptionUtilities.UnexpectedValue(_syntax.Kind()); 1650throw ExceptionUtilities.UnexpectedValue(enumeratorType.TypeKind);
Binder\LookupResultKind.cs (1)
98throw ExceptionUtilities.UnexpectedValue(resultKind);
Binder\PatternExplainer.cs (2)
200throw ExceptionUtilities.UnexpectedValue(currentNode.Kind); 484throw ExceptionUtilities.UnexpectedValue(v);
Binder\RefSafetyAnalysis.cs (1)
915throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex + extensionBlockFormOffset);
Binder\Semantics\AccessCheck.cs (5)
83throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 103throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 215throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 289throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 408throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
Binder\Semantics\Conversions\Conversion.cs (1)
1071throw ExceptionUtilities.UnexpectedValue(conversionResult.Kind);
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
76throw ExceptionUtilities.UnexpectedValue(conversionKind);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
933throw ExceptionUtilities.UnexpectedValue(oppositeConversion.Kind); 3221throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.Variance);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
685throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
370throw ExceptionUtilities.UnexpectedValue(kind); 672throw ExceptionUtilities.UnexpectedValue(kind);
Binder\Semantics\Operators\OperatorFacts.cs (3)
113throw ExceptionUtilities.UnexpectedValue(kind); 246throw ExceptionUtilities.UnexpectedValue(kind & UnaryOperatorKind.OpMask); 272throw 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)
260throw ExceptionUtilities.UnexpectedValue(argAnalysis.Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1089_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType) 1470_ => throw ExceptionUtilities.UnexpectedValue(delegateOrFunctionPointerType),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1473throw ExceptionUtilities.UnexpectedValue(member.Kind); 4409throw ExceptionUtilities.UnexpectedValue(member); 4790throw ExceptionUtilities.UnexpectedValue(member.Kind);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
475throw ExceptionUtilities.UnexpectedValue(result.Result.Kind); 1568throw ExceptionUtilities.UnexpectedValue(kind);
Binder\SwitchBinder_Patterns.cs (2)
130throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 293throw ExceptionUtilities.UnexpectedValue(node);
Binder\WhileBinder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(_syntax.Kind());
Binder\WithCrefTypeParametersBinder.cs (2)
73throw ExceptionUtilities.UnexpectedValue(_crefSyntax.Kind()); 100throw ExceptionUtilities.UnexpectedValue(typeSyntax.Kind());
Binder\WithExternAndUsingAliasesBinder.cs (1)
194throw ExceptionUtilities.UnexpectedValue(_declarationSyntax);
BoundTree\BoundConversion.cs (1)
145ExceptionUtilities.UnexpectedValue(InConversionGroupFlags);
BoundTree\BoundDagEvaluation.cs (1)
61_ => throw ExceptionUtilities.UnexpectedValue(this.Kind)
BoundTree\BoundDagTest.cs (1)
41throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundDecisionDag.cs (3)
42throw ExceptionUtilities.UnexpectedValue(node.Kind); 135throw ExceptionUtilities.UnexpectedValue(dag); 197throw ExceptionUtilities.UnexpectedValue(choice);
BoundTree\BoundDecisionDagNode.cs (1)
51throw ExceptionUtilities.UnexpectedValue(this);
BoundTree\BoundExpressionExtensions.cs (1)
73var s => throw ExceptionUtilities.UnexpectedValue(s?.Kind)
BoundTree\BoundNode.cs (4)
250var a => throw ExceptionUtilities.UnexpectedValue(a), 264throw ExceptionUtilities.UnexpectedValue(value.FlowState); 287var mask => throw ExceptionUtilities.UnexpectedValue(mask) 480throw 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\BoundTreeRewriter.cs (1)
151throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
BoundTree\NullabilityRewriter.cs (1)
121_ => throw ExceptionUtilities.UnexpectedValue(currentBinary.Kind),
BoundTree\VariablePendingInference.cs (1)
110throw ExceptionUtilities.UnexpectedValue(this.VariableSymbol.Kind);
CodeGen\EmitAddress.cs (2)
87throw ExceptionUtilities.UnexpectedValue(expression.Kind); 282throw ExceptionUtilities.UnexpectedValue(local.RefKind);
CodeGen\EmitConversion.cs (5)
45throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 134throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 176throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); // Should be handled by caller. 180throw ExceptionUtilities.UnexpectedValue(conversion.ConversionKind); 207ExceptionUtilities.UnexpectedValue(conversionKind);
CodeGen\EmitExpression.cs (6)
174throw ExceptionUtilities.UnexpectedValue(expression.Kind); 365throw ExceptionUtilities.UnexpectedValue(expression.Kind); 743throw ExceptionUtilities.UnexpectedValue(refKind); 2993throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3014throw ExceptionUtilities.UnexpectedValue(assignmentTarget.Kind); 3201throw ExceptionUtilities.UnexpectedValue(expression.Kind);
CodeGen\EmitOperators.cs (4)
54throw ExceptionUtilities.UnexpectedValue(operatorKind.Operator()); 245throw ExceptionUtilities.UnexpectedValue(expression.OperatorKind.Operator()); 438throw ExceptionUtilities.UnexpectedValue(binOp.OperatorKind.OperatorWithLogical()); 736throw 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()); 1205throw ExceptionUtilities.UnexpectedValue(exceptionSource.Kind);
CodeGen\Optimizer.cs (2)
492throw ExceptionUtilities.UnexpectedValue(context); 1102throw ExceptionUtilities.UnexpectedValue(lhs.Kind);
Compilation\BuiltInOperators.cs (2)
279default: throw ExceptionUtilities.UnexpectedValue(kind.OperandTypes()); 849var v => throw ExceptionUtilities.UnexpectedValue(v),
Compilation\CSharpDiagnosticFilter.cs (2)
170_ => throw ExceptionUtilities.UnexpectedValue(warningsState) 288throw ExceptionUtilities.UnexpectedValue(report);
Compilation\CSharpSemanticModel.cs (2)
3796throw ExceptionUtilities.UnexpectedValue(containingMember.Kind); 4024throw 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)
173ExceptionUtilities.UnexpectedValue(attributeOrParameter);
Compilation\SyntaxTreeSemanticModel.cs (11)
1116ExceptionUtilities.UnexpectedValue(node.Parent); 1177throw ExceptionUtilities.UnexpectedValue(node.Parent.Kind()); 1193ExceptionUtilities.UnexpectedValue(node.Parent); 1620throw ExceptionUtilities.UnexpectedValue(propertyOrEventDecl.Kind()); 1644ExceptionUtilities.UnexpectedValue(containingMemberSyntax.Kind()); 1728throw ExceptionUtilities.UnexpectedValue(declaration.Kind()); 1767throw ExceptionUtilities.UnexpectedValue(name.Kind()); 2211throw ExceptionUtilities.UnexpectedValue(typeParameter.Parent.Kind()); 2492ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2530ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind); 2557ExceptionUtilities.UnexpectedValue(declaredSymbol.Kind);
Compiler\ClsComplianceChecker.cs (6)
757throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1008throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 1249throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility); 1284throw ExceptionUtilities.UnexpectedValue(compliance); 1300throw ExceptionUtilities.UnexpectedValue(compliance); 1350throw ExceptionUtilities.UnexpectedValue(x.Kind);
Compiler\DocumentationCommentCompiler.cs (1)
1319throw ExceptionUtilities.UnexpectedValue(elementKind);
Compiler\MethodCompiler.cs (2)
2040throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); 2172throw ExceptionUtilities.UnexpectedValue(syntaxNode);
Declarations\DeclarationKind.cs (1)
48throw ExceptionUtilities.UnexpectedValue(kind);
Declarations\DeclarationTreeBuilder.cs (2)
120_ => throw ExceptionUtilities.UnexpectedValue(typeDeclaration.Kind) 678_ => throw ExceptionUtilities.UnexpectedValue(node.Kind())
Declarations\MergedTypeDeclaration.cs (1)
95throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind());
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
282throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 378throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind); 460_ => throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind), 787throw ExceptionUtilities.UnexpectedValue(type.Kind);
Emitter\Model\MostCommonNullableValueBuilder.cs (1)
62throw ExceptionUtilities.UnexpectedValue(value);
Emitter\Model\PEModuleBuilder.cs (7)
250throw ExceptionUtilities.UnexpectedValue(member.Kind); 292throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 371throw ExceptionUtilities.UnexpectedValue(member.Kind); 437throw ExceptionUtilities.UnexpectedValue(member.Kind); 444throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 918throw ExceptionUtilities.UnexpectedValue(type); 1316throw ExceptionUtilities.UnexpectedValue(typeSymbol.Kind);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
337throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
571throw ExceptionUtilities.UnexpectedValue(propertyOrEvent.Kind);
Errors\MessageID.cs (1)
728throw ExceptionUtilities.UnexpectedValue(feature);
FlowAnalysis\AbstractFlowPass.cs (6)
871throw ExceptionUtilities.UnexpectedValue(node.Kind); 1022throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1075throw ExceptionUtilities.UnexpectedValue(pattern.Kind); 1567throw ExceptionUtilities.UnexpectedValue(refKind); 2477throw ExceptionUtilities.UnexpectedValue(binary.Kind); 2499throw ExceptionUtilities.UnexpectedValue(binary.Kind);
FlowAnalysis\DefiniteAssignment.cs (1)
2082throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
FlowAnalysis\ExitPointsWalker.cs (1)
148throw ExceptionUtilities.UnexpectedValue(pending.Branch.Kind);
FlowAnalysis\NullableWalker.cs (13)
608throw ExceptionUtilities.UnexpectedValue(placeholder.Kind); 2058throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 4449ExceptionUtilities.UnexpectedValue(node.Kind); 5010_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 5087_ => throw ExceptionUtilities.UnexpectedValue(type.TypeKind) 6116_ => throw ExceptionUtilities.UnexpectedValue(node.OperatorResultKind), 7534throw ExceptionUtilities.UnexpectedValue(member); 8040throw ExceptionUtilities.UnexpectedValue(refKind); 8132throw ExceptionUtilities.UnexpectedValue(refKind); 8284throw ExceptionUtilities.UnexpectedValue(refKind); 12106_ => throw ExceptionUtilities.UnexpectedValue(node.Syntax) 12428throw ExceptionUtilities.UnexpectedValue(binary.Kind); 12443throw ExceptionUtilities.UnexpectedValue(binary.Kind);
FlowAnalysis\NullableWalker_Patterns.cs (6)
244throw ExceptionUtilities.UnexpectedValue(pattern); 530throw ExceptionUtilities.UnexpectedValue(p.Evaluation.Kind); 607throw ExceptionUtilities.UnexpectedValue(test.Kind); 666throw ExceptionUtilities.UnexpectedValue(dagNode.Kind); 819throw ExceptionUtilities.UnexpectedValue(evaluation.Kind); 958_ => throw ExceptionUtilities.UnexpectedValue(e.Kind)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
159throw ExceptionUtilities.UnexpectedValue(pattern.Kind);
LanguageVersion.cs (2)
360throw ExceptionUtilities.UnexpectedValue(version); 443throw ExceptionUtilities.UnexpectedValue(version);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
336throw ExceptionUtilities.UnexpectedValue(method);
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
89throw ExceptionUtilities.UnexpectedValue(local);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
129throw ExceptionUtilities.UnexpectedValue(node.Kind); 598throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Lowering\ClosureConversion\ClosureConversion.cs (1)
785throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (11)
158throw ExceptionUtilities.UnexpectedValue(stmt.Kind); 256throw ExceptionUtilities.UnexpectedValue(node.Kind); 485throw ExceptionUtilities.UnexpectedValue(opKind.Operator()); 807throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup); 823throw ExceptionUtilities.UnexpectedValue(node.Argument); 952throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 979throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 1032throw ExceptionUtilities.UnexpectedValue(elementKind); 1087throw ExceptionUtilities.UnexpectedValue(initializerKind); // no other options at the top level of an initializer 1211throw ExceptionUtilities.UnexpectedValue(op); 1231throw ExceptionUtilities.UnexpectedValue(opFactory);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
107throw ExceptionUtilities.UnexpectedValue(syntaxOpt.Kind());
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
76throw ExceptionUtilities.UnexpectedValue(closureKind);
Lowering\InitializerRewriter.cs (1)
128throw ExceptionUtilities.UnexpectedValue(initializer.Kind);
Lowering\Instrumentation\DebugInfoInjector.cs (3)
106throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind()); 154throw ExceptionUtilities.UnexpectedValue(grandparent.Kind()); 329throw ExceptionUtilities.UnexpectedValue(original.Syntax.Kind());
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
129throw ExceptionUtilities.UnexpectedValue(declarationSyntax.Parent.Kind());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
395throw ExceptionUtilities.UnexpectedValue(original.Left); 497_ => throw ExceptionUtilities.UnexpectedValue(localOrParameterSymbol)
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
81throw ExceptionUtilities.UnexpectedValue(method.ReturnType.OriginalDefinition.SpecialType);
Lowering\LocalRewriter\LocalRewriter.cs (1)
1128throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (12)
89throw ExceptionUtilities.UnexpectedValue(node.Kind); 640throw ExceptionUtilities.UnexpectedValue(otherwise); 672throw ExceptionUtilities.UnexpectedValue(n); 811throw ExceptionUtilities.UnexpectedValue(input.Type); 826_ => throw ExceptionUtilities.UnexpectedValue(input.Type.SpecialType) 865_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 878_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 937_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 949_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 964_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 972_ => throw ExceptionUtilities.UnexpectedValue(stringPatternInput), 1241throw ExceptionUtilities.UnexpectedValue(node.Kind);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
312throw ExceptionUtilities.UnexpectedValue(evaluation); 372throw ExceptionUtilities.UnexpectedValue(test);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
57throw ExceptionUtilities.UnexpectedValue(constantValue);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
187throw ExceptionUtilities.UnexpectedValue(rewrittenLeft.Kind);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
218throw ExceptionUtilities.UnexpectedValue(operatorKind); 266throw ExceptionUtilities.UnexpectedValue(operatorKind); 532throw ExceptionUtilities.UnexpectedValue(operatorKind); 2078throw ExceptionUtilities.UnexpectedValue(operatorKind); 2384throw ExceptionUtilities.UnexpectedValue(numericSpecialType); 2451throw ExceptionUtilities.UnexpectedValue(numericSpecialType);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
891var u => throw ExceptionUtilities.UnexpectedValue(u.Kind) 912throw ExceptionUtilities.UnexpectedValue(argIndex);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
98throw ExceptionUtilities.UnexpectedValue(collectionTypeKind); 476var e => throw ExceptionUtilities.UnexpectedValue(e) 536var v => throw ExceptionUtilities.UnexpectedValue(v) 834throw ExceptionUtilities.UnexpectedValue(node);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
551throw ExceptionUtilities.UnexpectedValue(indexerAccess.Argument.Type); 872throw ExceptionUtilities.UnexpectedValue(originalLHS.Kind);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (2)
101throw ExceptionUtilities.UnexpectedValue(loweringKind); 196throw ExceptionUtilities.UnexpectedValue(loweringKind);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
31_ => throw ExceptionUtilities.UnexpectedValue(node.Operand.Kind) 200throw ExceptionUtilities.UnexpectedValue(current); 1689throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType); 1709throw ExceptionUtilities.UnexpectedValue(typeFrom.SpecialType);
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (1)
159throw ExceptionUtilities.UnexpectedValue(original.Kind);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (4)
153_ => throw ExceptionUtilities.UnexpectedValue(oldNode) 597throw ExceptionUtilities.UnexpectedValue(strategy); 727throw ExceptionUtilities.UnexpectedValue(strategy); 952throw 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)
74throw ExceptionUtilities.UnexpectedValue(temps.Length);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (8)
27throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 62throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 81throw ExceptionUtilities.UnexpectedValue(initializerExpression.Kind); 93throw ExceptionUtilities.UnexpectedValue(initializer.Kind); 465throw ExceptionUtilities.UnexpectedValue(rewrittenArrayAccess.Kind); 547throw ExceptionUtilities.UnexpectedValue(left.Kind); 609throw ExceptionUtilities.UnexpectedValue(lhs.Kind); 748throw 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_StringConcat.cs (2)
178_ => throw ExceptionUtilities.UnexpectedValue(visitedArguments.Count), 199throw ExceptionUtilities.UnexpectedValue(concatKind);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
84throw ExceptionUtilities.UnexpectedValue(part.Kind);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
267throw ExceptionUtilities.UnexpectedValue(@operator.InfoKind);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
974throw ExceptionUtilities.UnexpectedValue(oper.Operator()); 1119throw ExceptionUtilities.UnexpectedValue(kind); 1209throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType); 1219throw ExceptionUtilities.UnexpectedValue(unaryOperatorKind.OperandTypes()); 1279throw ExceptionUtilities.UnexpectedValue(binaryOperatorKind.OperandTypes());
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
88throw ExceptionUtilities.UnexpectedValue(loop.Kind);
Lowering\MethodToClassRewriter.cs (1)
245_ => throw ExceptionUtilities.UnexpectedValue(proxy)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
187throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
299throw ExceptionUtilities.UnexpectedValue(expr.Kind);
Lowering\SyntheticBoundNodeFactory.cs (2)
810throw ExceptionUtilities.UnexpectedValue(input.Type); 1686throw ExceptionUtilities.UnexpectedValue(refKind);
Operations\CSharpOperationFactory.cs (16)
340throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 423throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 555throw ExceptionUtilities.UnexpectedValue(declaration.Kind); 615throw ExceptionUtilities.UnexpectedValue(boundNode.Kind); 814throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 830throw ExceptionUtilities.UnexpectedValue(indexer.Kind); 917throw ExceptionUtilities.UnexpectedValue(memberSymbol.Kind); 1264throw ExceptionUtilities.UnexpectedValue(expr.CollectionTypeKind); 1525{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2288{ Kind: var kind } => throw ExceptionUtilities.UnexpectedValue(kind) 2381throw ExceptionUtilities.UnexpectedValue(part.Kind); 2397_ => throw ExceptionUtilities.UnexpectedValue(value.Kind), 2494_ => throw ExceptionUtilities.UnexpectedValue(part.Kind) 2502_ => throw ExceptionUtilities.UnexpectedValue(methodName) 2517throw ExceptionUtilities.UnexpectedValue(current.Kind); 2540_ => throw ExceptionUtilities.UnexpectedValue(placeholder.ArgumentIndex)
Operations\CSharpOperationFactory_Methods.cs (1)
260throw ExceptionUtilities.UnexpectedValue(containingExpression.Kind);
Parser\LanguageParser.cs (7)
1723throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1997throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 7577throw ExceptionUtilities.UnexpectedValue(mode); 9737throw ExceptionUtilities.UnexpectedValue(decl.designation.Kind); 11298throw ExceptionUtilities.UnexpectedValue(op); 11884_ => throw ExceptionUtilities.UnexpectedValue(node), 12952throw ExceptionUtilities.UnexpectedValue(type);
Parser\LanguageParser_InterpolatedString.cs (2)
185_ => throw ExceptionUtilities.UnexpectedValue(kind), 357_ => throw ExceptionUtilities.UnexpectedValue(kind),
Parser\Lexer.cs (2)
288throw ExceptionUtilities.UnexpectedValue(ModeOf(_mode)); 371throw ExceptionUtilities.UnexpectedValue(info.ValueKind);
Parser\Lexer_RawStringLiteral.cs (1)
88throw ExceptionUtilities.UnexpectedValue(info.Kind);
SourceGeneration\CSharpSyntaxHelper.cs (2)
89throw ExceptionUtilities.UnexpectedValue(node.KindText); 123_ => throw ExceptionUtilities.UnexpectedValue(name.KindText),
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
464ExceptionUtilities.UnexpectedValue(node.Kind());
SymbolDisplay\SymbolDisplayVisitor.cs (2)
235throw ExceptionUtilities.UnexpectedValue(Format.GlobalNamespaceStyle); 418throw ExceptionUtilities.UnexpectedValue(symbol.DeclaredAccessibility);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
573throw ExceptionUtilities.UnexpectedValue(symbol.MethodKind);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
662throw ExceptionUtilities.UnexpectedValue(symbol.TypeKind);
Symbols\BaseTypeAnalysis.cs (1)
195throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Compilation_WellKnownMembers.cs (3)
291throw ExceptionUtilities.UnexpectedValue(descriptor.Flags); 359throw ExceptionUtilities.UnexpectedValue(targetSymbolKind); 679throw ExceptionUtilities.UnexpectedValue(attribute);
Symbols\ConstraintsHelper.cs (4)
287throw ExceptionUtilities.UnexpectedValue(constraintType.TypeKind); 1135throw ExceptionUtilities.UnexpectedValue(error); 1506throw ExceptionUtilities.UnexpectedValue(typeArgument.TypeKind); 1649throw ExceptionUtilities.UnexpectedValue(type2.NullableAnnotation);
Symbols\EnumConversions.cs (1)
42throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
231_ => throw ExceptionUtilities.UnexpectedValue(index),
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
186throw ExceptionUtilities.UnexpectedValue(unexpected);
Symbols\MemberSignatureComparer.cs (1)
850throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\MemberSymbolExtensions.cs (15)
46throw ExceptionUtilities.UnexpectedValue(member.Kind); 64throw ExceptionUtilities.UnexpectedValue(member.Kind); 78throw ExceptionUtilities.UnexpectedValue(member.Kind); 148throw ExceptionUtilities.UnexpectedValue(member); 178throw ExceptionUtilities.UnexpectedValue(member); 242throw ExceptionUtilities.UnexpectedValue(member); 308throw ExceptionUtilities.UnexpectedValue(member.Kind); 334throw ExceptionUtilities.UnexpectedValue(member.Kind); 350throw ExceptionUtilities.UnexpectedValue(member.Kind); 476throw ExceptionUtilities.UnexpectedValue(m.Kind); 522throw ExceptionUtilities.UnexpectedValue(s.Kind); 576throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 594throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 863throw ExceptionUtilities.UnexpectedValue(member.Kind); 893throw 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)
1165throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
698throw ExceptionUtilities.UnexpectedValue(nullableMemberMetadata);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
902throw ExceptionUtilities.UnexpectedValue(_flags & TypeAttributes.VisibilityMask);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1268_ => throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol.Kind)
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
200throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
148_ => throw ExceptionUtilities.UnexpectedValue(underlyingType.SpecialType),
Symbols\MethodSymbol.cs (1)
628throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\MethodSymbolExtensions.cs (1)
116throw ExceptionUtilities.UnexpectedValue(hidingMember.Kind);
Symbols\NullableAnnotationExtensions.cs (3)
72_ => throw ExceptionUtilities.UnexpectedValue(variance) 142_ => throw ExceptionUtilities.UnexpectedValue(annotation) 154_ => throw ExceptionUtilities.UnexpectedValue(annotation)
Symbols\NullableContextKind.cs (2)
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)
75throw ExceptionUtilities.UnexpectedValue(_underlying.MethodKind);
Symbols\RefKindExtensions.cs (2)
34throw ExceptionUtilities.UnexpectedValue(syntaxKind); 50throw ExceptionUtilities.UnexpectedValue(refKind);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
686throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\Source\AttributeLocation.cs (1)
95throw ExceptionUtilities.UnexpectedValue(i);
Symbols\Source\ModifierUtils.cs (2)
354throw ExceptionUtilities.UnexpectedValue(modifier); 407throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Source\ParameterHelpers.cs (1)
826throw ExceptionUtilities.UnexpectedValue(modifier.Kind());
Symbols\Source\SourceAssemblySymbol.cs (2)
1675_ => throw ExceptionUtilities.UnexpectedValue(attribute) 2091throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceCustomEventSymbol.cs (1)
121throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourceEventSymbol.cs (1)
168throw ExceptionUtilities.UnexpectedValue(syntax.Kind());
Symbols\Source\SourceLocalSymbol.cs (2)
556throw ExceptionUtilities.UnexpectedValue(_declarationKind); 855throw ExceptionUtilities.UnexpectedValue(_nodeToBind.Parent);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3920throw ExceptionUtilities.UnexpectedValue(syntax.Kind()); 4087throw ExceptionUtilities.UnexpectedValue(symbol); 4604throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4615throw ExceptionUtilities.UnexpectedValue(member.Kind); 4659throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4676throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
308throw ExceptionUtilities.UnexpectedValue(matchResult); 531throw ExceptionUtilities.UnexpectedValue(this.TypeKind); 1734throw ExceptionUtilities.UnexpectedValue(hidingMember.DeclaredAccessibility);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1437throw ExceptionUtilities.UnexpectedValue(type.ManagedKindNoUseSiteDiagnostics); 1545var unexpected => throw ExceptionUtilities.UnexpectedValue(unexpected)
Symbols\Source\SourceModuleSymbol.cs (2)
395throw ExceptionUtilities.UnexpectedValue(member); 403throw ExceptionUtilities.UnexpectedValue(item);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
179throw ExceptionUtilities.UnexpectedValue(typeDecl.Kind()); 487throw ExceptionUtilities.UnexpectedValue(node.Kind());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
622throw ExceptionUtilities.UnexpectedValue(baseType.TypeKind); 774throw ExceptionUtilities.UnexpectedValue(typeKind);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (7)
187throw ExceptionUtilities.UnexpectedValue(type); 309_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 460throw ExceptionUtilities.UnexpectedValue(annotation); 493throw ExceptionUtilities.UnexpectedValue(type); 715_ => throw ExceptionUtilities.UnexpectedValue(signature.CallingConvention) 758_ => throw ExceptionUtilities.UnexpectedValue(refKind) 926throw ExceptionUtilities.UnexpectedValue(argument.Kind);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (7)
58throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 137throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 168throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 200throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 232throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 439throw ExceptionUtilities.UnexpectedValue(declarationSyntax); 570throw ExceptionUtilities.UnexpectedValue(declarationSyntax);
Symbols\Source\SourceNamespaceSymbol.cs (2)
398throw ExceptionUtilities.UnexpectedValue(otherSymbol); 425throw ExceptionUtilities.UnexpectedValue(declaration.Kind);
Symbols\Source\SourcePropertySymbol.cs (2)
185_ => throw ExceptionUtilities.UnexpectedValue(syntax.Kind()) 288throw ExceptionUtilities.UnexpectedValue(accessor.Kind());
Symbols\Source\SourcePropertySymbolBase.cs (1)
351_ => throw ExceptionUtilities.UnexpectedValue(accessorToBlame)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
298throw ExceptionUtilities.UnexpectedValue(this.ContainingSymbol);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
430throw ExceptionUtilities.UnexpectedValue(extensionParameter.RefKind);
Symbols\Source\TypeParameterConstraintClause.cs (1)
114ExceptionUtilities.UnexpectedValue(constraints); // This call asserts.
Symbols\Symbol.cs (4)
305throw ExceptionUtilities.UnexpectedValue(DeclaredAccessibility); 703throw ExceptionUtilities.UnexpectedValue(this.Kind); 1751throw ExceptionUtilities.UnexpectedValue(variable); 1754throw ExceptionUtilities.UnexpectedValue(variable.Kind);
Symbols\Symbol_Attributes.cs (2)
90throw ExceptionUtilities.UnexpectedValue(namedType.TypeKind); 738throw ExceptionUtilities.UnexpectedValue(attributeTarget.DefaultAttributeLocation);
Symbols\SymbolDistinguisher.cs (1)
81throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolExtensions.cs (1)
522throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
Symbols\SymbolKindExtensions.cs (1)
51throw ExceptionUtilities.UnexpectedValue(kind);
Symbols\Synthesized\GeneratedNameParser.cs (1)
248static byte @throw(char c) => throw ExceptionUtilities.UnexpectedValue(c);
Symbols\Synthesized\GeneratedNames.cs (1)
482var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
281var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
203_ => throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\Synthesized\RefKindVector.cs (2)
51var bits => throw ExceptionUtilities.UnexpectedValue(bits) 64_ => throw ExceptionUtilities.UnexpectedValue(value)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
187var binder = getAccessor.TryGetBodyBinder() ?? throw ExceptionUtilities.UnexpectedValue(getAccessor);
Symbols\Tuples\TupleTypeSymbol.cs (2)
699throw ExceptionUtilities.UnexpectedValue(member.Kind); 1090throw ExceptionUtilities.UnexpectedValue(member.Kind);
Symbols\TypeSymbol.cs (3)
1582throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1963throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind); 2026throw ExceptionUtilities.UnexpectedValue(interfaceMember.Kind);
Symbols\TypeSymbolExtensions.cs (3)
971throw ExceptionUtilities.UnexpectedValue(current.TypeKind); 1204throw ExceptionUtilities.UnexpectedValue(acc1); 1559throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Symbols\TypeWithAnnotations.cs (1)
163throw ExceptionUtilities.UnexpectedValue(NullableAnnotation);
Symbols\VarianceSafety.cs (3)
86throw ExceptionUtilities.UnexpectedValue(member.TypeKind); 412throw ExceptionUtilities.UnexpectedValue(typeParam.Variance); 461throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.Variance);
Syntax\CSharpLineDirectiveMap.cs (1)
220throw ExceptionUtilities.UnexpectedValue(entry.State);
Syntax\CSharpPragmaWarningStateMap.cs (1)
105var kind => throw ExceptionUtilities.UnexpectedValue(kind)
Syntax\CSharpSyntaxTree.cs (1)
285throw ExceptionUtilities.UnexpectedValue(directive.Kind());
Syntax\DirectiveTriviaSyntax.cs (1)
64throw ExceptionUtilities.UnexpectedValue(this.Kind());
Syntax\LambdaUtilities.cs (2)
121throw ExceptionUtilities.UnexpectedValue(newLambda.Kind()); 130_ => throw ExceptionUtilities.UnexpectedValue(nestedFunction),
Syntax\LookupPosition.cs (2)
368throw ExceptionUtilities.UnexpectedValue(statement.Kind()); 449throw 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); 483throw 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 (2)
206throw ExceptionUtilities.UnexpectedValue(type.TypeKind); 286throw ExceptionUtilities.UnexpectedValue(type.TypeKind);
Utilities\ValueSetFactory.BoolValueSetFactory.cs (1)
48_ => throw ExceptionUtilities.UnexpectedValue("random"),
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
88throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
49throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
85throw ExceptionUtilities.UnexpectedValue(relation); 125throw ExceptionUtilities.UnexpectedValue(relation);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
48throw ExceptionUtilities.UnexpectedValue(relation);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
13439_ => throw ExceptionUtilities.UnexpectedValue(expectedDiagnosticSeverity) 13903throw ExceptionUtilities.UnexpectedValue(expectedEffectiveSeverity);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
27487throw ExceptionUtilities.UnexpectedValue(expectedValue); 27507throw ExceptionUtilities.UnexpectedValue(expectedValue);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (32)
Diagnostics\GetDiagnosticsTests.cs (2)
1146_ => throw ExceptionUtilities.UnexpectedValue(basePropertyDecl.Kind()), 1157_ => throw ExceptionUtilities.UnexpectedValue(baseMethodDecl.Kind()),
PartialEventsAndConstructorsTests.cs (2)
1064_ => throw ExceptionUtilities.UnexpectedValue(access), 1232_ => throw ExceptionUtilities.UnexpectedValue(access),
RefReadonlyParameterTests.cs (2)
87throw ExceptionUtilities.UnexpectedValue(customModifiers); 7089_ => throw ExceptionUtilities.UnexpectedValue(modifier)
Semantics\CollectionExpressionTests_WithElement_Extra.cs (1)
1002throw ExceptionUtilities.UnexpectedValue(typeName);
Semantics\ExtensionOperatorsTests.cs (17)
11469public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 11996public static bool operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 16126public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 18824public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 18949public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C1 y) => throw null; 19068public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19129public static C1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(C1 x, C2 y) => throw null; 19177public static bool operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(T x, T y) => throw null; 19233public static S1? operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19280public static S1 operator {{{op switch { "==" => "!=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1? x, S1? y) => throw null; 19315public static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, S1 y) => throw null; 19503public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19571public static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19603public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19647public unsafe static void* operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(void* x, S1 y) => throw null; 19689public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null; 19733public unsafe static S1 operator {{{op switch { ">" => "<", ">=" => "<=", "==" => "!=", "<" => ">", "<=" => ">=", "!=" => "==", _ => throw ExceptionUtilities.UnexpectedValue(op) }}}}(S1 x, void* y) => throw null;
Semantics\ExtensionTests2.cs (6)
9038throw ExceptionUtilities.UnexpectedValue(refKind); 10428throw ExceptionUtilities.UnexpectedValue(refKind); 11786throw ExceptionUtilities.UnexpectedValue(refKind); 12525throw ExceptionUtilities.UnexpectedValue(refKind); 13504throw ExceptionUtilities.UnexpectedValue(refKind); 15097throw ExceptionUtilities.UnexpectedValue(refKind);
Semantics\PatternMatchingTestBase.cs (1)
466var v => throw ExceptionUtilities.UnexpectedValue(v)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
12245default: throw ExceptionUtilities.UnexpectedValue(op);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\NativeIntegerTests.cs (2)
590throw ExceptionUtilities.UnexpectedValue(member.Kind); 624throw ExceptionUtilities.UnexpectedValue(nativeIntegerMember.Kind);
Semantics\OperatorTests.cs (2)
3255_ => throw ExceptionUtilities.UnexpectedValue(node.Text) 8793throw ExceptionUtilities.UnexpectedValue(i);
SourceGeneration\GeneratorDriverFuzzTests.cs (1)
343var num => throw ExceptionUtilities.UnexpectedValue(num)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\ExtendedPartialMethodsTests.cs (2)
2022_ => throw ExceptionUtilities.UnexpectedValue(access), 2174_ => throw ExceptionUtilities.UnexpectedValue(access),
Symbols\PartialPropertiesTests.cs (4)
393throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 430throw ExceptionUtilities.UnexpectedValue(comp.GetMembers("C.P")); 2634_ => throw ExceptionUtilities.UnexpectedValue(access), 2782_ => throw ExceptionUtilities.UnexpectedValue(access),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxTreeTests.cs (1)
91_ => throw ExceptionUtilities.UnexpectedValue(factoryKind)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
AttributeValidation.cs (1)
47throw ExceptionUtilities.UnexpectedValue(accessibility);
CompilationTestUtils.cs (1)
284throw ExceptionUtilities.UnexpectedValue(node);
Extensions.cs (3)
762throw ExceptionUtilities.UnexpectedValue(member.Kind); 829throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 855throw 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)
147throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 152throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 157throw ExceptionUtilities.UnexpectedValue(symbol.Kind);
DkmUtilities.cs (1)
321throw ExceptionUtilities.UnexpectedValue(accessibility);
EEMetadataReferenceResolver.cs (1)
77throw ExceptionUtilities.UnexpectedValue(compareResult);
MetadataContextId.cs (1)
36_ => throw ExceptionUtilities.UnexpectedValue(kind),
MetadataUtilities.cs (1)
300throw ExceptionUtilities.UnexpectedValue(compareResult);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
114throw ExceptionUtilities.UnexpectedValue(GetPrimitiveSpecialType(type));
Microsoft.CodeAnalysis.Test.Utilities (9)
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
438_ => throw ExceptionUtilities.UnexpectedValue(severity) 2820throw ExceptionUtilities.UnexpectedValue(_actionKind); 3221throw ExceptionUtilities.UnexpectedValue(_analysisKind);
Metadata\ILBuilderVisualizer.cs (1)
509throw ExceptionUtilities.UnexpectedValue(opcode);
Metadata\MetadataReaderUtils.cs (2)
176throw ExceptionUtilities.UnexpectedValue(token.Kind); 229throw ExceptionUtilities.UnexpectedValue(token.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (3)
248throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 341throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 396throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
Microsoft.CodeAnalysis.UnitTests (6)
AnalyzerAssemblyLoaderTests.cs (1)
1662_ => throw ExceptionUtilities.UnexpectedValue(kind)
Collections\ImmutableSetTest.nonnetstandard.cs (2)
73_ => throw ExceptionUtilities.UnexpectedValue(set), 89_ => throw ExceptionUtilities.UnexpectedValue(set),
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
76throw ExceptionUtilities.UnexpectedValue(method);
Collections\TestExtensionsMethods.nonnetstandard.cs (2)
38_ => throw ExceptionUtilities.UnexpectedValue(dictionary), 50_ => throw ExceptionUtilities.UnexpectedValue(dictionary),