48 references to UnexpectedValue
Microsoft.CodeAnalysis.CodeStyle (48)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
55_ => throw ExceptionUtilities.UnexpectedValue(precedenceKind),
src\Analyzers\Core\Analyzers\ParenthesesDiagnosticAnalyzersHelper.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(precedenceKind),
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (3)
73throw ExceptionUtilities.UnexpectedValue(context.Operation); 113_ => throw ExceptionUtilities.UnexpectedValue(operation), 144_ => throw ExceptionUtilities.UnexpectedValue(operation),
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
160throw ExceptionUtilities.UnexpectedValue(diagnosticId);
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228throw ExceptionUtilities.UnexpectedValue(_scope);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
185throw ExceptionUtilities.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
79throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
270throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(specialType); 389_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
55_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 65_ => throw ExceptionUtilities.UnexpectedValue(severity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
20_ => throw ExceptionUtilities.UnexpectedValue(severity),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (2)
29_ => throw ExceptionUtilities.UnexpectedValue(diagnosticSeverity), 40_ => throw ExceptionUtilities.UnexpectedValue(diagnosticSeverity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (3)
168throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 238throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 324throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
46throw ExceptionUtilities.UnexpectedValue(reportDiagnostic); 80_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 94_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (3)
249throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 342throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 397throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
285throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
126throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
440throw ExceptionUtilities.UnexpectedValue(lineOperation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
197_ => throw ExceptionUtilities.UnexpectedValue(capitalization),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (6)
375throw ExceptionUtilities.UnexpectedValue(symbol); 408throw ExceptionUtilities.UnexpectedValue(symbol); 438throw ExceptionUtilities.UnexpectedValue(symbol); 441throw ExceptionUtilities.UnexpectedValue(symbol); 499throw ExceptionUtilities.UnexpectedValue(accessibility); 552throw ExceptionUtilities.UnexpectedValue(modifier);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
87throw ExceptionUtilities.UnexpectedValue(typeof(T));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (6)
114throw ExceptionUtilities.UnexpectedValue(b); 118throw ExceptionUtilities.UnexpectedValue(b); 215throw ExceptionUtilities.UnexpectedValue(code); 237throw ExceptionUtilities.UnexpectedValue(code); 303throw ExceptionUtilities.UnexpectedValue(marker); 320_ => throw ExceptionUtilities.UnexpectedValue(kind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
249throw ExceptionUtilities.UnexpectedValue(value.GetType());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
54_ => throw ExceptionUtilities.UnexpectedValue(kind)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
139throw ExceptionUtilities.UnexpectedValue(type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
70_ => throw ExceptionUtilities.UnexpectedValue(containerKind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
718throw ExceptionUtilities.UnexpectedValue(kind);