722 references to ExceptionUtilities
Microsoft.CodeAnalysis.CSharp.EditorFeatures (12)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
479throw ExceptionUtilities.UnexpectedValue(selectedNode); 620_ => throw ExceptionUtilities.Unreachable(),
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (4)
164_ => throw ExceptionUtilities.UnexpectedValue(embeddedStatementOwner), 877_ => throw ExceptionUtilities.UnexpectedValue(node), 949_ => throw ExceptionUtilities.UnexpectedValue(embeddedStatementOwner) 972_ => throw ExceptionUtilities.UnexpectedValue(node),
StringCopyPaste\KnownSourcePasteProcessor.cs (2)
114throw ExceptionUtilities.UnexpectedValue(content.Kind); 324throw ExceptionUtilities.UnexpectedValue(content.Kind);
StringCopyPaste\StringCopyPasteData.cs (1)
72_ => throw ExceptionUtilities.UnexpectedValue(stringExpression.Kind()),
StringCopyPaste\StringCopyPasteHelpers.cs (1)
64throw ExceptionUtilities.UnexpectedValue(stringExpression);
StringCopyPaste\StringInfo.cs (2)
67_ => throw ExceptionUtilities.UnexpectedValue(stringExpression) 152throw ExceptionUtilities.UnexpectedValue(literal.Kind());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Classification\SyntacticClassifierTests.cs (1)
6539throw ExceptionUtilities.UnexpectedValue(op);
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (2)
1862_ => throw ExceptionUtilities.Unreachable(), 1923_ => throw ExceptionUtilities.Unreachable(),
EditAndContinue\ActiveStatementTrackingServiceTests.cs (1)
55_ => throw ExceptionUtilities.Unreachable()
Formatting\CodeCleanupTests.cs (1)
865_ => throw ExceptionUtilities.Unreachable()
Structure\CommentStructureTests.cs (1)
49throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.Features (147)
ChangeSignature\CSharpChangeSignatureService.cs (2)
639_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()) 916_ => throw ExceptionUtilities.UnexpectedValue(newArgument.Kind())
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
212localFunction = root.GetCurrentNode(localFunction) ?? throw ExceptionUtilities.Unreachable(); 213container = root.GetCurrentNode(container) ?? throw ExceptionUtilities.Unreachable();
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (4)
69throw ExceptionUtilities.Unreachable(); 87throw ExceptionUtilities.Unreachable(); 98throw ExceptionUtilities.Unreachable(); 268throw ExceptionUtilities.Unreachable();
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (5)
186throw ExceptionUtilities.UnexpectedValue(v); 256var p => throw ExceptionUtilities.UnexpectedValue(p) 285var v => throw ExceptionUtilities.UnexpectedValue(v), 287var v => throw ExceptionUtilities.UnexpectedValue(v), 298var v => throw ExceptionUtilities.UnexpectedValue(v)
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
48_ => throw ExceptionUtilities.UnexpectedValue(declaration.Kind()) 63_ => throw ExceptionUtilities.UnexpectedValue(declaration.Kind())
Completion\CompletionProviders\CompletionUtilities.cs (1)
240throw ExceptionUtilities.Unreachable();
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
656_ => throw ExceptionUtilities.UnexpectedValue(kind), 685throw ExceptionUtilities.Unreachable();
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
99throw ExceptionUtilities.Unreachable();
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
96throw ExceptionUtilities.UnexpectedValue(token);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
153_ => throw ExceptionUtilities.UnexpectedValue(kind), 170_ => throw ExceptionUtilities.UnexpectedValue(kind),
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
154throw ExceptionUtilities.UnexpectedValue(opPosition);
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
35?? throw ExceptionUtilities.UnexpectedValue(token);
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
55?? throw ExceptionUtilities.UnexpectedValue(token);
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
114throw ExceptionUtilities.Unreachable(); 130_ => throw ExceptionUtilities.Unreachable(),
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
64var v => throw ExceptionUtilities.UnexpectedValue(v.Kind) 104var p => throw ExceptionUtilities.UnexpectedValue(p)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (2)
92throw ExceptionUtilities.Unreachable(); 290throw ExceptionUtilities.Unreachable();
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (2)
152throw ExceptionUtilities.Unreachable(); 173throw ExceptionUtilities.Unreachable();
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (1)
84throw ExceptionUtilities.UnexpectedValue(baseDeclaration.Kind());
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
291throw ExceptionUtilities.Unreachable();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
251throw ExceptionUtilities.Unreachable();
ConvertToExtension\ExtensionMethodEqualityComparer.cs (2)
60=> throw ExceptionUtilities.Unreachable(); 111=> throw ExceptionUtilities.Unreachable();
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
184_ => throw ExceptionUtilities.UnexpectedValue(kind),
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
153_ => throw ExceptionUtilities.Unreachable()
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (13)
314_ => throw ExceptionUtilities.UnexpectedValue(part), 330_ => throw ExceptionUtilities.UnexpectedValue(part), 340_ => throw ExceptionUtilities.UnexpectedValue(part), 348_ => throw ExceptionUtilities.UnexpectedValue(part), 378_ => throw ExceptionUtilities.UnexpectedValue(methodOrLambda) 884default: throw ExceptionUtilities.UnexpectedValue(oldNode.Kind()); 1261throw ExceptionUtilities.Unreachable(); 1990=> TryGetDisplayNameImpl(node, editKind) ?? throw ExceptionUtilities.UnexpectedValue(node.Kind()); 2223throw ExceptionUtilities.UnexpectedValue(node.Kind()); 2359throw ExceptionUtilities.UnexpectedValue(_kind); 2653throw ExceptionUtilities.UnexpectedValue(oldNode.Kind()); 2702throw ExceptionUtilities.UnexpectedValue(node.Kind()); 2816throw ExceptionUtilities.UnexpectedValue(statement.Kind());
EditAndContinue\SyntaxComparer.cs (5)
771default: throw ExceptionUtilities.UnexpectedValue(node); 1029throw ExceptionUtilities.UnexpectedValue(nestedFunction.Kind()); 1109throw ExceptionUtilities.UnexpectedValue(leftBlock.Parent.Kind()); 1314throw ExceptionUtilities.UnexpectedValue(commonForEach.Kind()); 1364throw ExceptionUtilities.UnexpectedValue(designation.Kind());
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
57var v => throw ExceptionUtilities.UnexpectedValue(v), 295throw ExceptionUtilities.Unreachable();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
76_ => throw ExceptionUtilities.UnexpectedValue(node),
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (3)
69_ => throw ExceptionUtilities.UnexpectedValue(location) 117_ => throw ExceptionUtilities.UnexpectedValue(location), 127_ => throw ExceptionUtilities.UnexpectedValue(method)
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
51throw ExceptionUtilities.Unreachable();
ExtractMethod\CSharpSelectionResult.StatementResult.cs (2)
61_ => throw ExceptionUtilities.UnexpectedValue(node), 103throw ExceptionUtilities.Unreachable();
ExtractMethod\CSharpSelectionValidator.cs (1)
159throw ExceptionUtilities.Unreachable();
GenerateType\CSharpGenerateTypeService.cs (2)
296throw ExceptionUtilities.Unreachable(); 678throw ExceptionUtilities.Unreachable();
ImplementInterface\CSharpImplementImplicitlyCodeRefactoringProvider.cs (1)
57_ => throw ExceptionUtilities.UnexpectedValue(decl),
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
77_ => throw ExceptionUtilities.UnexpectedValue(declarationNode),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (2)
233throw ExceptionUtilities.Unreachable(); 265throw ExceptionUtilities.Unreachable();
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (2)
101_ => throw ExceptionUtilities.UnexpectedValue(fieldOrProperty), 128throw ExceptionUtilities.Unreachable();
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
57throw ExceptionUtilities.UnexpectedValue(parentOfStatementsToSurround);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (3)
284_ => throw ExceptionUtilities.UnexpectedValue(node), 537_ => throw ExceptionUtilities.UnexpectedValue(blockLike), 545_ => throw ExceptionUtilities.UnexpectedValue(blockLike),
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (3)
90_ => throw ExceptionUtilities.UnexpectedValue(node), 114_ => throw ExceptionUtilities.UnexpectedValue(kind), 228_ => throw ExceptionUtilities.UnexpectedValue(node),
MoveToNamespace\CSharpMoveToNamespaceService.cs (2)
33_ => throw ExceptionUtilities.UnexpectedValue(container) 43_ => throw ExceptionUtilities.UnexpectedValue(baseNamespace.Kind()),
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (2)
384_ => throw ExceptionUtilities.UnexpectedValue(after.Kind()) 393_ => throw ExceptionUtilities.UnexpectedValue(opToken.Kind())
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
130throw ExceptionUtilities.Unreachable();
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
139throw ExceptionUtilities.Unreachable();
SimplifyTypeNames\SimplifyTypeNamesCodeFixProvider.cs (1)
43throw ExceptionUtilities.UnexpectedValue(diagnosticId);
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
68throw ExceptionUtilities.UnexpectedValue(binaryLike);
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
21_ => throw ExceptionUtilities.UnexpectedValue(preference),
src\Analyzers\CSharp\Analyzers\FileHeaders\CSharpFileHeaderHelper.cs (1)
42throw ExceptionUtilities.UnexpectedValue(commentTrivia.Kind());
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
35_ => throw ExceptionUtilities.UnexpectedValue(node),
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
33_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
299_ => throw ExceptionUtilities.UnexpectedValue(expression.Kind()),
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
197_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (1)
179_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1204_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
36throw ExceptionUtilities.UnexpectedValue(assignmentExpressionKind);
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
192var v => throw ExceptionUtilities.UnexpectedValue(v)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
154var v => throw ExceptionUtilities.UnexpectedValue(v)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
76_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
40_ => throw ExceptionUtilities.UnexpectedValue(diagnostic.Id),
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
31_ => throw ExceptionUtilities.UnexpectedValue(baseNamespace.Kind()), 299(_, _) => throw ExceptionUtilities.Unreachable());
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (2)
176throw ExceptionUtilities.UnexpectedValue(value); 299=> throw ExceptionUtilities.UnexpectedValue(node.Kind());
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
68_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
77throw ExceptionUtilities.Unreachable();
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
102_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
325_ => throw ExceptionUtilities.UnexpectedValue(node)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\CSharpRemoveAsyncModifierCodeFixProvider.cs (1)
43_ => throw ExceptionUtilities.Unreachable()
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
82_ => throw ExceptionUtilities.UnexpectedValue(node),
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
82throw ExceptionUtilities.UnexpectedValue(old);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
244throw ExceptionUtilities.Unreachable();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
532throw ExceptionUtilities.Unreachable();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (3)
79_ => throw ExceptionUtilities.Unreachable(), 85_ => throw ExceptionUtilities.Unreachable(), 112_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (3)
55_ => throw ExceptionUtilities.Unreachable(), 61_ => throw ExceptionUtilities.Unreachable(), 87_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (3)
80throw ExceptionUtilities.UnexpectedValue(declarationContext?.Kind()); 209throw ExceptionUtilities.UnexpectedValue(designation.Kind()); 245throw ExceptionUtilities.UnexpectedValue(typeSymbol);
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
129_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
54_ => throw ExceptionUtilities.Unreachable()
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
281throw ExceptionUtilities.UnexpectedValue(anonymousFunction);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
44_ => throw ExceptionUtilities.UnexpectedValue(kind) 105var p => throw ExceptionUtilities.UnexpectedValue(p)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
149_ => throw ExceptionUtilities.Unreachable()
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
508throw ExceptionUtilities.Unreachable();
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
112_ => throw ExceptionUtilities.UnexpectedValue(currentBlockLike),
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
102throw ExceptionUtilities.Unreachable(); 136throw ExceptionUtilities.Unreachable();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
413ExceptionUtilities.UnexpectedValue(node.Kind());
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (2)
121throw ExceptionUtilities.UnexpectedValue(newLambda.Kind()); 130_ => throw ExceptionUtilities.UnexpectedValue(nestedFunction),
TaskList\CSharpTaskListService.cs (1)
58throw ExceptionUtilities.Unreachable();
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
142throw ExceptionUtilities.UnexpectedValue(option);
Wrapping\SeparatedSyntaxList\CSharpCollectionExpressionWrapper.cs (3)
25protected override string Align_wrapped_items => throw ExceptionUtilities.Unreachable(); 26protected override string Indent_wrapped_items => throw ExceptionUtilities.Unreachable(); 27protected override string Unwrap_and_indent_all_items => throw ExceptionUtilities.Unreachable();
Wrapping\SeparatedSyntaxList\CSharpInitializerExpressionWrapper.cs (3)
25protected override string Align_wrapped_items => throw ExceptionUtilities.Unreachable(); 26protected override string Indent_wrapped_items => throw ExceptionUtilities.Unreachable(); 27protected override string Unwrap_and_indent_all_items => throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (20)
ConvertIfToSwitch\ConvertIfToSwitchTests.cs (1)
477_ => throw ExceptionUtilities.Unreachable(),
EditAndContinue\Helpers\EditingTestBase.cs (4)
55=> string.Format(FeaturesResources.member_kind_and_name, TryGetResource(keyword) ?? throw ExceptionUtilities.UnexpectedValue(keyword), symbolDisplayName); 60TryGetResource(keyword) ?? throw ExceptionUtilities.UnexpectedValue(keyword), 62TryGetResource(containerKeyword) ?? throw ExceptionUtilities.UnexpectedValue(containerKeyword), 66=> TryGetResource(keyword) ?? throw ExceptionUtilities.UnexpectedValue(keyword);
EnableNullable\EnableNullableTests.cs (1)
661_ => throw ExceptionUtilities.Unreachable(),
src\Analyzers\CSharp\Tests\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveTests.cs (2)
429_ => throw ExceptionUtilities.UnexpectedValue(options), 440_ => throw ExceptionUtilities.UnexpectedValue(options),
src\Analyzers\CSharp\Tests\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveTests.cs (1)
238_ => throw ExceptionUtilities.UnexpectedValue(options),
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (11)
443_ => throw ExceptionUtilities.Unreachable(), 503_ => throw ExceptionUtilities.Unreachable(), 990_ => throw ExceptionUtilities.Unreachable(), 1089_ => throw ExceptionUtilities.Unreachable(), 1179_ => throw ExceptionUtilities.Unreachable(), 1294_ => throw ExceptionUtilities.Unreachable(), 2536_ => throw ExceptionUtilities.Unreachable(), 2751_ => throw ExceptionUtilities.Unreachable() 2876_ => throw ExceptionUtilities.Unreachable(), 3037_ => throw ExceptionUtilities.Unreachable(), 7903_ => throw ExceptionUtilities.Unreachable(),
Microsoft.CodeAnalysis.CSharp.Workspaces (33)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
72throw ExceptionUtilities.UnexpectedValue(node.Kind()); 217throw ExceptionUtilities.UnexpectedValue(refKind); 879throw ExceptionUtilities.UnexpectedValue(member.Kind());
FindSymbols\FindSymbolsUtilities.cs (1)
66_ => throw ExceptionUtilities.UnexpectedValue(typeDeclaration.Kind()),
Recommendations\CSharpRecommendationServiceRunner.cs (1)
37_ => throw ExceptionUtilities.UnexpectedValue(lambdaSyntax.Kind()),
Rename\CSharpRenameRewriterLanguageService.cs (2)
428throw ExceptionUtilities.Unreachable(); 925throw ExceptionUtilities.Unreachable();
Simplification\CSharpSimplificationService.Expander.cs (1)
523throw ExceptionUtilities.UnexpectedValue(replacement.Kind());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions_Parsing.cs (1)
140_ => throw ExceptionUtilities.Unreachable(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
469throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
395throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
219throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
266_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
43_ => throw ExceptionUtilities.UnexpectedValue(node),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
45_ => throw ExceptionUtilities.Unreachable(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
229_ => throw ExceptionUtilities.UnexpectedValue(node.Kind()), 625=> throw ExceptionUtilities.Unreachable(); 1271_ => throw ExceptionUtilities.UnexpectedValue(node), 1376throw ExceptionUtilities.UnexpectedValue(trivia.Kind());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
252throw ExceptionUtilities.UnexpectedValue(originalLambda.Kind());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
152throw ExceptionUtilities.UnexpectedValue(x.Kind());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
267? (integerMinValueString ?? throw ExceptionUtilities.Unreachable())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Editing\CSharpImportAdder.cs (1)
144throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
61_ => throw ExceptionUtilities.UnexpectedValue(type.NullableAnnotation), 136throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
155_ => throw ExceptionUtilities.UnexpectedValue(symbol.Signature.CallingConvention),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
30_ => throw ExceptionUtilities.Unreachable(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpAddImportsService.cs (1)
168var rewritten = (CompilationUnitSyntax)(base.VisitCompilationUnit(node) ?? throw ExceptionUtilities.Unreachable());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (2)
187_ => throw ExceptionUtilities.UnexpectedValue(negatedKind), 191=> throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (3)
142_ => throw ExceptionUtilities.UnexpectedValue(functionDeclaration), 151_ => throw ExceptionUtilities.UnexpectedValue(functionDeclaration), 248_ => throw ExceptionUtilities.UnexpectedValue(body),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
Formatting\FormattingTests_Patterns.cs (4)
57_ => throw ExceptionUtilities.Unreachable(), 144_ => throw ExceptionUtilities.Unreachable(), 199_ => throw ExceptionUtilities.Unreachable(), 285_ => throw ExceptionUtilities.Unreachable(),
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Classification\FormattedClassification.cs (1)
98_ => throw ExceptionUtilities.Unreachable(),
NavigateTo\AbstractNavigateToTests.cs (2)
93_ => throw ExceptionUtilities.UnexpectedValue(composition), 106_ => throw ExceptionUtilities.UnexpectedValue(composition),
Options\OptionSerializerTests.cs (1)
51throw ExceptionUtilities.Unreachable();
QuickInfo\ToolTipAssert.cs (2)
51throw ExceptionUtilities.Unreachable(); 204throw ExceptionUtilities.Unreachable();
SpellCheck\AbstractSpellCheckSpanTests.cs (1)
50_ => throw ExceptionUtilities.UnexpectedValue(key),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (56)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
469throw ExceptionUtilities.UnexpectedValue(analysisScope); 763throw ExceptionUtilities.Unreachable();
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
68_ => throw ExceptionUtilities.UnexpectedValue(t) 112_ => throw ExceptionUtilities.UnexpectedValue(t)
MetadataAsSource\MetadataAsSourceTests.cs (52)
35_ => throw ExceptionUtilities.UnexpectedValue(language), 96_ => throw ExceptionUtilities.Unreachable(), 158_ => throw ExceptionUtilities.Unreachable(), 222_ => throw ExceptionUtilities.Unreachable(), 296_ => throw ExceptionUtilities.Unreachable(), 366_ => throw ExceptionUtilities.Unreachable(), 436_ => throw ExceptionUtilities.Unreachable(), 515_ => throw ExceptionUtilities.Unreachable(), 594_ => throw ExceptionUtilities.Unreachable(), 668_ => throw ExceptionUtilities.Unreachable(), 742_ => throw ExceptionUtilities.Unreachable(), 816_ => throw ExceptionUtilities.Unreachable(), 882_ => throw ExceptionUtilities.Unreachable(), 956_ => throw ExceptionUtilities.Unreachable(), 1029_ => throw ExceptionUtilities.Unreachable(), 1170_ => throw ExceptionUtilities.Unreachable(), 1238_ => throw ExceptionUtilities.Unreachable(), 1317_ => throw ExceptionUtilities.Unreachable(), 1393_ => throw ExceptionUtilities.Unreachable(), 1463_ => throw ExceptionUtilities.Unreachable(), 1538_ => throw ExceptionUtilities.Unreachable(), 1614_ => throw ExceptionUtilities.Unreachable(), 1693_ => throw ExceptionUtilities.Unreachable(), 1769_ => throw ExceptionUtilities.Unreachable(), 2209_ => throw ExceptionUtilities.Unreachable(), 2487_ => throw ExceptionUtilities.Unreachable(), 2615_ => throw ExceptionUtilities.Unreachable(), 2710_ => throw ExceptionUtilities.Unreachable(), 2803_ => throw ExceptionUtilities.Unreachable(), 3007_ => throw ExceptionUtilities.Unreachable(), 3127_ => throw ExceptionUtilities.Unreachable(), 3222_ => throw ExceptionUtilities.Unreachable(), 3229_ => throw ExceptionUtilities.Unreachable(), 3376_ => throw ExceptionUtilities.Unreachable(), 3636_ => throw ExceptionUtilities.Unreachable(), 3709_ => throw ExceptionUtilities.Unreachable(), 3787_ => throw ExceptionUtilities.Unreachable(), 3864_ => throw ExceptionUtilities.Unreachable(), 3947_ => throw ExceptionUtilities.Unreachable(), 4032_ => throw ExceptionUtilities.Unreachable(), 4105_ => throw ExceptionUtilities.Unreachable(), 4178_ => throw ExceptionUtilities.Unreachable(), 4185_ => throw ExceptionUtilities.Unreachable(), 4258_ => throw ExceptionUtilities.Unreachable(), 4333_ => throw ExceptionUtilities.Unreachable(), 4430_ => throw ExceptionUtilities.Unreachable(), 4527_ => throw ExceptionUtilities.Unreachable(), 4624_ => throw ExceptionUtilities.Unreachable(), 4709_ => throw ExceptionUtilities.Unreachable(), 4812_ => throw ExceptionUtilities.Unreachable(), 4913_ => throw ExceptionUtilities.Unreachable(), 5015_ => throw ExceptionUtilities.Unreachable(),
Microsoft.CodeAnalysis.ExternalAccess.FSharp (6)
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (1)
46throw ExceptionUtilities.UnexpectedValue(kind);
Internal\Editor\FSharpEditorInlineRenameService.cs (1)
56throw ExceptionUtilities.UnexpectedValue(kind);
Internal\FSharpGlyphHelpers.cs (2)
324throw ExceptionUtilities.UnexpectedValue(glyph); 639throw ExceptionUtilities.UnexpectedValue(glyph);
Internal\NavigateTo\FSharpNavigateToMatchKindHelpers.cs (1)
64throw ExceptionUtilities.UnexpectedValue(kind);
Internal\SignatureHelp\FSharpSignatureHelpTriggerReasonHelpers.cs (1)
35throw ExceptionUtilities.UnexpectedValue(triggerReason);
Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests (6)
FSharpGlyphTests.cs (2)
345throw ExceptionUtilities.UnexpectedValue(glyph); 660throw ExceptionUtilities.UnexpectedValue(glyph);
FSharpHighlightSpanKindTests.cs (1)
52throw ExceptionUtilities.UnexpectedValue(kind);
FSharpInlineRenameReplacementKindTests.cs (1)
57throw ExceptionUtilities.UnexpectedValue(kind);
FSharpNavigateToMatchKindTests.cs (1)
76throw ExceptionUtilities.UnexpectedValue(kind);
FSharpSignatureHelpTriggerReasonTests.cs (1)
47throw ExceptionUtilities.UnexpectedValue(triggerReason);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
69throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorDocumentExcerptServiceWrapper.cs (1)
26_ => throw ExceptionUtilities.UnexpectedValue(mode),
Microsoft.CodeAnalysis.Features (131)
AddImport\AbstractAddImportFeatureService.cs (1)
627_ => throw ExceptionUtilities.Unreachable(),
BraceCompletion\AbstractBraceCompletionService.cs (1)
107throw ExceptionUtilities.Unreachable();
ChangeSignature\AbstractChangeSignatureService.cs (1)
196_ => throw ExceptionUtilities.Unreachable(),
ChangeSignature\Parameter.cs (1)
64throw ExceptionUtilities.Unreachable();
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
303var analyzerConfigDirectory = PathUtilities.GetDirectoryName(analyzerConfigPath) ?? throw ExceptionUtilities.Unreachable();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.FixAllProvider.cs (1)
61throw ExceptionUtilities.Unreachable();
CodeFixes\Suppression\SuppressionHelpers.cs (1)
61throw ExceptionUtilities.UnexpectedValue(diagnostic.Severity);
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
46_ => throw ExceptionUtilities.UnexpectedValue(this.FixAllState.Scope),
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (2)
119_ => throw ExceptionUtilities.UnexpectedValue(fixAllKind) 163_ => throw ExceptionUtilities.UnexpectedValue(fixAllKind)
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
52_ => throw ExceptionUtilities.UnexpectedValue(operationKind),
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (1)
45_ => throw ExceptionUtilities.UnexpectedValue(_operationKind),
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (1)
123throw ExceptionUtilities.Unreachable();
Common\TaggedText.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(taggedTextTag),
Completion\FileSystemCompletionHelper.cs (1)
208throw ExceptionUtilities.UnexpectedValue(pathKind);
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
115throw ExceptionUtilities.Unreachable();
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
117_ => throw ExceptionUtilities.Unreachable()
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
77_ => throw ExceptionUtilities.UnexpectedValue(symbol.Kind),
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
424var v => throw ExceptionUtilities.UnexpectedValue(v)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
180_ => throw ExceptionUtilities.UnexpectedValue(scope), 431_ => throw ExceptionUtilities.UnexpectedValue(scope),
Debugging\DebugInformationReaderProvider.cs (3)
33=> throw ExceptionUtilities.Unreachable(); 36=> throw ExceptionUtilities.Unreachable(); 39=> throw ExceptionUtilities.Unreachable();
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
48=> analyzer.GetType().Assembly.GetName().Name ?? throw ExceptionUtilities.Unreachable();
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
125_ => throw ExceptionUtilities.UnexpectedValue(kind),
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (2)
96_ => throw ExceptionUtilities.UnexpectedValue(kind), 190throw ExceptionUtilities.Unreachable();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (3)
48throw ExceptionUtilities.Unreachable(); 113throw ExceptionUtilities.Unreachable(); 159throw ExceptionUtilities.Unreachable();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
163throw ExceptionUtilities.Unreachable();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
73throw ExceptionUtilities.Unreachable();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (13)
306=> TryGetDisplayName(node, editKind) ?? throw ExceptionUtilities.UnexpectedValue(node.GetType().Name); 319_ => throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 373throw ExceptionUtilities.UnexpectedValue(node.GetType().Name); 891_ => throw ExceptionUtilities.UnexpectedValue(kind) 2642throw ExceptionUtilities.UnexpectedValue(oldMember.Kind); 3197throw ExceptionUtilities.UnexpectedValue(edit.Kind); 3439_ => throw ExceptionUtilities.UnexpectedValue(editKind) 3637throw ExceptionUtilities.Unreachable(); 3855throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 3894throw ExceptionUtilities.UnexpectedValue(oldSymbol.Kind); 3966throw ExceptionUtilities.UnexpectedValue(oldSymbol.Kind); 6614_ => throw ExceptionUtilities.UnexpectedValue(localOrParameter.Kind), 6666_ => throw ExceptionUtilities.UnexpectedValue(kinds)
EditAndContinue\DebuggingSession.cs (2)
842throw ExceptionUtilities.Unreachable(); 919throw ExceptionUtilities.Unreachable();
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (3)
53throw ExceptionUtilities.Unreachable(); 98throw ExceptionUtilities.Unreachable(); 219throw ExceptionUtilities.Unreachable();
EditAndContinue\EditAndContinueService.cs (2)
179throw ExceptionUtilities.Unreachable(); 285=> _service.TryGetDebuggingSession(id) ?? throw ExceptionUtilities.UnexpectedValue(id);
EditAndContinue\EditSession.cs (3)
647throw ExceptionUtilities.UnexpectedValue(oldDocumentState); 823throw ExceptionUtilities.Unreachable(); 1430throw ExceptionUtilities.Unreachable();
EditAndContinue\EditSessionTelemetry.cs (1)
138throw ExceptionUtilities.UnexpectedValue(summary);
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
42=> throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\AbstractUnitTestingDocumentDifferenceService.cs (1)
55throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
209throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
214throw ExceptionUtilities.UnexpectedValue(args.Kind); 584throw ExceptionUtilities.UnexpectedValue(projectOrDocumentId); 627throw ExceptionUtilities.UnexpectedValue(projectOrDocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (1)
59throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncProjectWorkItemQueue.cs (1)
61throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
258throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
208throw ExceptionUtilities.Unreachable(); 230throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (2)
62throw ExceptionUtilities.Unreachable(); 154throw ExceptionUtilities.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (4)
144throw ExceptionUtilities.Unreachable(); 229throw ExceptionUtilities.Unreachable(); 283throw ExceptionUtilities.Unreachable(); 313throw ExceptionUtilities.Unreachable();
ExternalAccess\VSTypeScript\VSTypeScriptGlyphHelpers.cs (2)
94_ => throw ExceptionUtilities.UnexpectedValue(glyph), 178_ => throw ExceptionUtilities.UnexpectedValue(glyph),
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (1)
116_ => throw ExceptionUtilities.UnexpectedValue(_result.MatchKind),
ExternalAccess\Watch\Api\WatchHotReloadService.cs (1)
225_ => throw ExceptionUtilities.UnexpectedValue(results.ModuleUpdates.Status)
ExtractMethod\MethodExtractor.Analyzer.cs (2)
569_ => throw ExceptionUtilities.UnexpectedValue(symbol) 581_ => throw ExceptionUtilities.UnexpectedValue(symbol)
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
127=> throw ExceptionUtilities.Unreachable();
FindUsages\IRemoteFindUsagesService.cs (2)
128throw ExceptionUtilities.Unreachable(); 140throw ExceptionUtilities.Unreachable();
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (2)
221_ => throw ExceptionUtilities.Unreachable(), 261_ => throw ExceptionUtilities.Unreachable(),
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
221_ => throw ExceptionUtilities.UnexpectedValue(document.Project.Language), 580_ => throw ExceptionUtilities.UnexpectedValue(targetSymbol.Language),
InheritanceMargin\InheritanceMarginItem.cs (1)
53=> throw ExceptionUtilities.Unreachable();
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
966_ => throw ExceptionUtilities.Unreachable(),
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
306throw ExceptionUtilities.Unreachable(); 353throw ExceptionUtilities.Unreachable(); 521throw ExceptionUtilities.Unreachable();
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
221_ => throw ExceptionUtilities.UnexpectedValue(kind),
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (2)
370throw ExceptionUtilities.Unreachable(); 622throw ExceptionUtilities.UnexpectedValue(invertIfStyle);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
36var invokeMethod = anonymousType.DelegateInvokeMethod ?? throw ExceptionUtilities.Unreachable();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
500throw ExceptionUtilities.UnexpectedValue(group);
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
51_ => throw ExceptionUtilities.UnexpectedValue(m.Kind),
MetadataAsSource\MetadataAsSourceFileService.cs (1)
117throw ExceptionUtilities.Unreachable();
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
51=> TryGetTopLevelContainingNamedType(symbol) ?? throw ExceptionUtilities.UnexpectedValue(symbol);
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
210throw ExceptionUtilities.UnexpectedValue(container);
MoveToNamespace\MoveToNamespaceCodeAction.cs (1)
92_ => throw ExceptionUtilities.UnexpectedValue(analysisResult.Container)
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (1)
222throw ExceptionUtilities.UnexpectedValue(declaredSymbolInfo.Kind);
NavigateTo\INavigateToSearchResult.cs (1)
56_ => throw ExceptionUtilities.UnexpectedValue(matchKind),
NavigateTo\NavigateToSearcher.cs (1)
170throw ExceptionUtilities.UnexpectedValue(searchScope);
NavigationBar\IRemoteNavigationBarItemService.cs (1)
105_ => throw ExceptionUtilities.UnexpectedValue(this.Kind),
PullMemberUp\MembersPuller.cs (2)
69_ => throw ExceptionUtilities.UnexpectedValue(pullMembersUpOptions.Destination), 464throw ExceptionUtilities.UnexpectedValue(member);
Shared\Extensions\DocumentExtensions.cs (2)
103throw ExceptionUtilities.Unreachable(); 116throw ExceptionUtilities.Unreachable();
Shared\Extensions\ISymbolExtensions_Sorting.cs (1)
191throw ExceptionUtilities.UnexpectedValue((s1.Kind, s2.Kind));
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
77throw ExceptionUtilities.Unreachable(); 100throw ExceptionUtilities.Unreachable();
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
64_ => throw ExceptionUtilities.UnexpectedValue(precedenceKind),
src\Analyzers\Core\Analyzers\ParenthesesDiagnosticAnalyzersHelper.cs (1)
30_ => throw ExceptionUtilities.UnexpectedValue(precedenceKind),
src\Analyzers\Core\Analyzers\QualifyMemberAccess\AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (3)
70throw ExceptionUtilities.UnexpectedValue(context.Operation); 110_ => throw ExceptionUtilities.UnexpectedValue(operation), 141_ => throw ExceptionUtilities.UnexpectedValue(operation),
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
147throw ExceptionUtilities.UnexpectedValue(diagnosticId);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
199throw ExceptionUtilities.UnexpectedValue(text[position]); 440throw ExceptionUtilities.UnexpectedValue(equivalenceKey);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
58throw ExceptionUtilities.UnexpectedValue(state.MethodGenerationKind);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
423throw ExceptionUtilities.Unreachable();
src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (1)
26throw ExceptionUtilities.Unreachable();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
43=> switchExpression.Value.Type ?? throw ExceptionUtilities.Unreachable();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
60=> switchOperation.Value.Type ?? throw ExceptionUtilities.Unreachable();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
378throw ExceptionUtilities.Unreachable();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
94throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228throw ExceptionUtilities.UnexpectedValue(_scope);
Structure\Syntax\AbstractBlockStructureProvider.cs (1)
71throw ExceptionUtilities.Unreachable();
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (1)
420_ => throw ExceptionUtilities.UnexpectedValue(wrappingStyle),
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
387throw ExceptionUtilities.UnexpectedValue(editKind);
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
299project.Documents.Select(d => (d.GetTextSynchronously(CancellationToken.None), d.FilePath ?? throw ExceptionUtilities.UnexpectedValue(null))), 512throw ExceptionUtilities.Unreachable();
EditAndContinue\Extensions.cs (4)
98=> project.WithCompilationOptions(transform((TCompilationOptions)(project.CompilationOptions ?? throw ExceptionUtilities.Unreachable()))); 118_ => throw ExceptionUtilities.UnexpectedValue(language) 125_ => throw ExceptionUtilities.UnexpectedValue(language) 132_ => throw ExceptionUtilities.UnexpectedValue(language)
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (11)
380_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 396_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 408_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 476_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 494_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 554_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 570_ => throw ExceptionUtilities.UnexpectedValue(settingKind) 2272_ => throw ExceptionUtilities.Unreachable(), 2306_ => throw ExceptionUtilities.Unreachable(), 2334_ => throw ExceptionUtilities.Unreachable(), 2360_ => throw ExceptionUtilities.Unreachable(),
Microsoft.CodeAnalysis.LanguageServer (6)
FileBasedPrograms\VirtualProjectXmlProvider.cs (1)
131throw ExceptionUtilities.UnexpectedValue(response);
HostWorkspace\LanguageServerProjectLoader.cs (1)
453throw ExceptionUtilities.UnexpectedValue(loadState);
HostWorkspace\WorkspaceProject.cs (2)
228throw ExceptionUtilities.Unreachable(); 255throw ExceptionUtilities.Unreachable();
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
64throw ExceptionUtilities.Unreachable();
Logging\LspLogMessageLogger.cs (1)
104_ => throw ExceptionUtilities.UnexpectedValue(logLevel),
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Extensions\ProtocolConversions.cs (2)
582_ => throw ExceptionUtilities.UnexpectedValue(kind), 927throw ExceptionUtilities.UnexpectedValue(codeFence);
Extensions\ProtocolConversions.Diagnostics.cs (1)
228_ => throw ExceptionUtilities.UnexpectedValue(severity),
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
103throw ExceptionUtilities.Unreachable();
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
420throw ExceptionUtilities.Unreachable();
Handler\CodeActions\CodeActionHelpers.cs (2)
419_ => throw ExceptionUtilities.UnexpectedValue(categoryName) 442_ => throw ExceptionUtilities.UnexpectedValue(priority)
Handler\Telemetry\RequestTelemetryLogger.cs (1)
89_ => throw ExceptionUtilities.UnexpectedValue(result)
RoslynLanguageServer.cs (2)
109_ => throw ExceptionUtilities.Unreachable() 155throw ExceptionUtilities.Unreachable();
WellKnownLspServerKinds.cs (3)
62_ => throw ExceptionUtilities.UnexpectedValue(server), 89_ => throw ExceptionUtilities.UnexpectedValue(server), 104_ => throw ExceptionUtilities.UnexpectedValue(server),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
341_ => throw ExceptionUtilities.UnexpectedValue(analyzerDiagnosticsScope),
OnAutoInsert\OnAutoInsertTests.cs (1)
354throw ExceptionUtilities.UnexpectedValue(languageName);
SpellCheck\SpellCheckTests.cs (1)
602_ => throw ExceptionUtilities.UnexpectedValue(kind),
Microsoft.CodeAnalysis.Remote.ServiceHub (20)
Host\RemoteWorkspace.cs (3)
108throw ExceptionUtilities.Unreachable(); 136throw ExceptionUtilities.Unreachable(); 267throw ExceptionUtilities.Unreachable();
Host\RemoteWorkspace.SolutionCreator.cs (2)
144throw ExceptionUtilities.Unreachable(); 561_ => throw ExceptionUtilities.UnexpectedValue(document.Kind),
Services\BrokeredServiceBase.cs (2)
123throw ExceptionUtilities.Unreachable(); 172throw ExceptionUtilities.Unreachable();
Services\BrokeredServiceBase.FactoryBase.cs (2)
78throw ExceptionUtilities.Unreachable(); 123=> throw ExceptionUtilities.Unreachable();
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (1)
70throw ExceptionUtilities.Unreachable();
Services\EditAndContinue\EditAndContinueLogReporter.cs (1)
59_ => throw ExceptionUtilities.UnexpectedValue(severity),
Services\EditAndContinue\RemoteEditAndContinueService.cs (1)
135throw ExceptionUtilities.Unreachable();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (2)
81_ => throw ExceptionUtilities.UnexpectedValue(type), 164throw ExceptionUtilities.UnexpectedValue(type);
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (2)
64throw ExceptionUtilities.Unreachable(); 67throw ExceptionUtilities.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
43throw ExceptionUtilities.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (3)
53_ => throw ExceptionUtilities.UnexpectedValue(type), 61_ => throw ExceptionUtilities.UnexpectedValue(scope) 71throw ExceptionUtilities.UnexpectedValue(scope);
Microsoft.CodeAnalysis.Remote.Workspaces (5)
RemoteCallback.cs (2)
142throw ExceptionUtilities.Unreachable(); 188throw ExceptionUtilities.Unreachable();
ServiceDescriptors.cs (2)
144throw ExceptionUtilities.UnexpectedValue(serviceType); 152_ => throw ExceptionUtilities.Unreachable()
SolutionAssetProvider.cs (1)
58throw ExceptionUtilities.Unreachable();
Microsoft.CodeAnalysis.Workspaces (191)
Classification\AbstractClassificationService.cs (1)
180throw ExceptionUtilities.UnexpectedValue(type);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
43throw ExceptionUtilities.Unreachable();
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (1)
238throw ExceptionUtilities.Unreachable();
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
40_ => throw ExceptionUtilities.UnexpectedValue(fixAllContext.State.Scope),
CodeFixesAndRefactorings\FixAllLogger.cs (3)
58throw ExceptionUtilities.UnexpectedValue(fixAllState.FixAllKind); 114_ => throw ExceptionUtilities.UnexpectedValue(fixAllKind) 140_ => throw ExceptionUtilities.UnexpectedValue(fixAllKind)
CodeFixesAndRefactorings\FixAllProviderInfo.cs (1)
141=> throw ExceptionUtilities.Unreachable();
CodeStyle\NotificationOption2_operators.cs (2)
17_ => throw ExceptionUtilities.UnexpectedValue(notificationOption.Severity), 31_ => throw ExceptionUtilities.UnexpectedValue(severity)
Diagnostics\DiagnosticAnalysisResult.cs (1)
111_ => throw ExceptionUtilities.UnexpectedValue(kind)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (2)
91throw ExceptionUtilities.UnexpectedValue(kind); 178throw ExceptionUtilities.UnexpectedValue(diagnostic.Location.Kind);
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
28_ => throw ExceptionUtilities.UnexpectedValue(kind)
Diagnostics\DiagnosticData.cs (1)
357throw ExceptionUtilities.Unreachable();
Diagnostics\Extensions.cs (3)
94static type => type.AssemblyQualifiedName ?? throw ExceptionUtilities.UnexpectedValue(type)); 181throw ExceptionUtilities.UnexpectedValue(kind); 364throw ExceptionUtilities.UnexpectedValue(documentAnalysisScope.Kind);
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (2)
65_ => throw ExceptionUtilities.UnexpectedValue(kind) 75_ => throw ExceptionUtilities.UnexpectedValue(kind)
FindSymbols\FindReferences\FindReferenceCache.cs (1)
88_ => throw ExceptionUtilities.UnexpectedValue(semanticModel.Language)
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
52throw ExceptionUtilities.Unreachable();
FindSymbols\SearchQuery.cs (1)
50throw ExceptionUtilities.UnexpectedValue(kind);
FindSymbols\StreamingProgressCollector.cs (1)
65throw ExceptionUtilities.Unreachable();
Options\OptionSet.cs (1)
83=> throw ExceptionUtilities.Unreachable();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
167_ => throw ExceptionUtilities.Unreachable(),
Rename\ConflictEngine\ConflictResolver.cs (1)
315throw ExceptionUtilities.Unreachable();
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
257throw ExceptionUtilities.Unreachable(); 469throw ExceptionUtilities.Unreachable(); 627throw ExceptionUtilities.Unreachable(); 670throw ExceptionUtilities.Unreachable(); 705throw ExceptionUtilities.Unreachable(); 749throw ExceptionUtilities.Unreachable(); 836throw ExceptionUtilities.Unreachable();
Serialization\SerializationExtensions.cs (1)
33_ => throw ExceptionUtilities.UnexpectedValue(value),
Serialization\SerializedPortableExecutableReference.cs (1)
45throw ExceptionUtilities.Unreachable();
Serialization\SerializerService.cs (3)
79throw ExceptionUtilities.UnexpectedValue(kind); 158throw ExceptionUtilities.UnexpectedValue(kind); 258_ => throw ExceptionUtilities.UnexpectedValue(kind),
Serialization\SerializerService_Reference.cs (6)
52throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 89throw ExceptionUtilities.UnexpectedValue(reference); 111throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 120throw ExceptionUtilities.UnexpectedValue(type); 159throw ExceptionUtilities.UnexpectedValue(reference); 179throw ExceptionUtilities.UnexpectedValue(type);
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
18_ => throw ExceptionUtilities.UnexpectedValue(backgroundAnalysisScope),
Shared\Extensions\ISolutionExtensions.cs (1)
74throw ExceptionUtilities.UnexpectedValue(documentKind);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
219throw ExceptionUtilities.Unreachable();
Shared\Utilities\SemanticMap.Walker.cs (1)
37throw ExceptionUtilities.Unreachable();
Shared\Utilities\XmlFragmentParser.cs (2)
211throw ExceptionUtilities.Unreachable(); 217throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
186throw ExceptionUtilities.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51=> throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (2)
77return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 80throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
271throw ExceptionUtilities.UnexpectedValue(specialType); 387_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
src\Compilers\Core\Portable\Text\SourceHashAlgorithms.cs (2)
41_ => throw ExceptionUtilities.UnexpectedValue(algorithm), 56_ => throw ExceptionUtilities.UnexpectedValue(algorithm)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1077throw ExceptionUtilities.Unreachable(); 1087throw ExceptionUtilities.Unreachable();
src\Dependencies\Collections\TemporaryArray`1.cs (3)
317_ => throw ExceptionUtilities.Unreachable(), 379throw ExceptionUtilities.Unreachable(); 432throw ExceptionUtilities.Unreachable();
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
45throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 55throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
145if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException) 221if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
275throw ExceptionUtilities.Unreachable(); 288throw ExceptionUtilities.Unreachable();
src\Dependencies\Threading\ProducerConsumer.cs (1)
388throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
54_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 64_ => throw ExceptionUtilities.UnexpectedValue(severity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.Node.cs (1)
57throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (2)
145throw ExceptionUtilities.UnexpectedValue(tokenKind); 270throw ExceptionUtilities.UnexpectedValue(lastChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
19_ => throw ExceptionUtilities.UnexpectedValue(severity),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (1)
19_ => throw ExceptionUtilities.UnexpectedValue(diagnosticSeverity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (2)
21_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 35_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
192throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (4)
248throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 341throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 360throw ExceptionUtilities.Unreachable(); 396throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.OperationTreeAnalysisData.cs (10)
57=> throw ExceptionUtilities.Unreachable(); 60=> throw ExceptionUtilities.Unreachable(); 62=> throw ExceptionUtilities.Unreachable(); 64=> throw ExceptionUtilities.Unreachable(); 66=> throw ExceptionUtilities.Unreachable(); 70=> throw ExceptionUtilities.Unreachable(); 72=> throw ExceptionUtilities.Unreachable(); 74=> throw ExceptionUtilities.Unreachable(); 76=> throw ExceptionUtilities.Unreachable(); 78=> throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
454throw ExceptionUtilities.Unreachable(); 562throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
65throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
181throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
105_commonRoot = startToken.GetCommonRoot(endToken) ?? throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
285throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (2)
69throw ExceptionUtilities.Unreachable(); 111throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
95throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
126throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
439throw ExceptionUtilities.UnexpectedValue(lineOperation.Option); 579_ => throw ExceptionUtilities.UnexpectedValue(rule.IndentationOperation), 588_ => throw ExceptionUtilities.UnexpectedValue(rule.SpaceOperation),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
127_ => throw ExceptionUtilities.UnexpectedValue(capitalization),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (6)
324throw ExceptionUtilities.UnexpectedValue(symbol); 357throw ExceptionUtilities.UnexpectedValue(symbol); 387throw ExceptionUtilities.UnexpectedValue(symbol); 390throw ExceptionUtilities.UnexpectedValue(symbol); 448throw ExceptionUtilities.UnexpectedValue(accessibility); 501throw ExceptionUtilities.UnexpectedValue(modifier);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
373_ => throw ExceptionUtilities.Unreachable()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (3)
73throw ExceptionUtilities.UnexpectedValue(typeof(T)); 90throw ExceptionUtilities.UnexpectedValue(typeof(T)); 121serializeValue: value => map.TryGetKey(value, out var key) ? key : throw ExceptionUtilities.UnexpectedValue(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (7)
114throw ExceptionUtilities.UnexpectedValue(b); 118throw ExceptionUtilities.UnexpectedValue(b); 142public string ReadRequiredString() => ReadString() ?? throw ExceptionUtilities.Unreachable(); 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)
267throw 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)
138throw ExceptionUtilities.UnexpectedValue(type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
69_ => throw ExceptionUtilities.UnexpectedValue(containerKind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
719throw ExceptionUtilities.UnexpectedValue(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (4)
354=> throw ExceptionUtilities.Unreachable(); 357=> throw ExceptionUtilities.Unreachable(); 360=> throw ExceptionUtilities.Unreachable(); 389throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
446throw ExceptionUtilities.Unreachable(); 450throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
83throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Diagnostics\DiagnosticSeverityExtensions.cs (1)
28_ => throw ExceptionUtilities.UnexpectedValue(diagnosticSeverity),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Diagnostics\ReportDiagnosticExtensions.cs (1)
44throw ExceptionUtilities.UnexpectedValue(reportDiagnostic);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (3)
171throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 241throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 327throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (1)
25_ => throw ExceptionUtilities.UnexpectedValue(fixAllScope),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (2)
70throw ExceptionUtilities.UnexpectedValue(operatorKind); 106_ => throw ExceptionUtilities.UnexpectedValue(operatorKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
68throw ExceptionUtilities.UnexpectedValue(strategy);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
251throw ExceptionUtilities.UnexpectedValue(pattern.RawKind); 399_ => throw ExceptionUtilities.UnexpectedValue(operationKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
41throw ExceptionUtilities.Unreachable();
Storage\SQLite\v2\Database.cs (1)
62_ => throw ExceptionUtilities.UnexpectedValue(database),
Storage\SQLite\v2\Interop\SqlConnection.cs (3)
381_ => throw ExceptionUtilities.UnexpectedValue(database), 389_ => throw ExceptionUtilities.UnexpectedValue(table), 396_ => throw ExceptionUtilities.UnexpectedValue(column),
Storage\SQLite\v2\Interop\SqlStatement.cs (1)
52throw ExceptionUtilities.Unreachable();
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (1)
105_ => throw ExceptionUtilities.UnexpectedValue(this.Table),
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (1)
21public string DatabaseDirectory => Path.GetDirectoryName(DatabaseFile) ?? throw ExceptionUtilities.UnexpectedValue(DatabaseFile);
Workspace\Solution\Document.cs (2)
376throw ExceptionUtilities.Unreachable(); 512throw ExceptionUtilities.Unreachable();
Workspace\Solution\DocumentState.cs (2)
208throw ExceptionUtilities.Unreachable(); 230throw ExceptionUtilities.Unreachable();
Workspace\Solution\Project.cs (1)
462throw ExceptionUtilities.UnexpectedValue(info.Kind);
Workspace\Solution\ProjectState.cs (2)
124throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState))); 312throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)));
Workspace\Solution\ProjectState_Checksum.cs (1)
81throw ExceptionUtilities.Unreachable();
Workspace\Solution\Solution.cs (1)
667throw ExceptionUtilities.Unreachable();
Workspace\Solution\SolutionCompilationState.cs (6)
911_ => throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)) 1315throw ExceptionUtilities.Unreachable(); 1335throw ExceptionUtilities.Unreachable(); 1707throw ExceptionUtilities.Unreachable(); 1832_ => throw ExceptionUtilities.UnexpectedValue(states) 1841_ => throw ExceptionUtilities.UnexpectedValue(states)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (10)
153_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 172_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 273throw ExceptionUtilities.Unreachable(); 300_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()) 356throw ExceptionUtilities.Unreachable(); 401throw ExceptionUtilities.Unreachable(); 471throw ExceptionUtilities.Unreachable(); 736_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 848throw ExceptionUtilities.UnexpectedValue(state.GetType()); 953throw ExceptionUtilities.UnexpectedValue(state.GetType());
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
147throw ExceptionUtilities.Unreachable();
Workspace\Solution\SolutionState_Checksum.cs (1)
151throw ExceptionUtilities.Unreachable();
Workspace\Solution\TextDocumentState_Checksum.cs (1)
48throw ExceptionUtilities.Unreachable();
Workspace\Solution\TextDocumentStates.cs (1)
101=> States.TryGetValue(documentId, out var state) ? state : throw ExceptionUtilities.Unreachable();
Workspace\SourceGeneratorExecution.cs (1)
34_ => throw ExceptionUtilities.UnexpectedValue(value),
Workspace\Workspace.cs (1)
556throw ExceptionUtilities.Unreachable();
Workspace\Workspace_Editor.cs (1)
709throw ExceptionUtilities.Unreachable();
Workspace\WorkspaceDiagnostic.cs (1)
20default: throw ExceptionUtilities.UnexpectedValue(Kind);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (1)
120_ => throw ExceptionUtilities.UnexpectedValue(buildHostKind)
MSBuild\MSBuildWorkspace.cs (1)
461_ => throw ExceptionUtilities.UnexpectedValue(project.Language)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Options\NamingStyleTestUtilities.cs (1)
78_ => throw ExceptionUtilities.UnexpectedValue(symbolOrTypeKind),
Options\OptionsTestHelpers.cs (1)
143_ => throw ExceptionUtilities.UnexpectedValue(type)
Remote\InProcRemostHostClient.cs (3)
102throw ExceptionUtilities.UnexpectedValue(serviceType); 119=> throw ExceptionUtilities.Unreachable(); 256throw ExceptionUtilities.UnexpectedValue(descriptor.Moniker);
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (1)
83private void MainThreadStart() => throw ExceptionUtilities.Unreachable();
Workspaces\TestWorkspace`1.cs (1)
230throw ExceptionUtilities.UnexpectedValue(language);
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
135_ => throw ExceptionUtilities.UnexpectedValue(solutionKind),
SolutionTests\SolutionTests.cs (1)
501_ => throw ExceptionUtilities.UnexpectedValue(updateType)
UtilityTest\ExceptionHelpersTests.cs (1)
43throw ExceptionUtilities.Unreachable();
UtilityTest\SpecializedTasksTests.cs (11)
216throw ExceptionUtilities.Unreachable(); 276throw ExceptionUtilities.Unreachable(); 343throw ExceptionUtilities.Unreachable(); 367var fault = ExceptionUtilities.Unreachable(); 389var fault = ExceptionUtilities.Unreachable(); 411var fault = ExceptionUtilities.Unreachable(); 444var fault = ExceptionUtilities.Unreachable(); 469var fault = ExceptionUtilities.Unreachable(); 494var fault = ExceptionUtilities.Unreachable(); 523var fault = ExceptionUtilities.Unreachable(); 538var fault = ExceptionUtilities.Unreachable();
Microsoft.VisualStudio.LanguageServices.DevKit (6)
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (2)
64throw ExceptionUtilities.Unreachable(); 67throw ExceptionUtilities.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
43throw ExceptionUtilities.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (3)
53_ => throw ExceptionUtilities.UnexpectedValue(type), 61_ => throw ExceptionUtilities.UnexpectedValue(scope) 71throw ExceptionUtilities.UnexpectedValue(scope);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
159_ => throw ExceptionUtilities.UnexpectedValue(severity),
Roslyn.VisualStudio.Next.UnitTests (6)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
101throw ExceptionUtilities.UnexpectedValue(optionType);
UnifiedSettings\TestModel\Input.cs (2)
42_ => throw ExceptionUtilities.Unreachable() 60_ => throw ExceptionUtilities.UnexpectedValue(option)
UnifiedSettings\TestModel\Utilities.cs (2)
41throw ExceptionUtilities.Unreachable(); 51_ => throw ExceptionUtilities.UnexpectedValue(resourceDll)
UnifiedSettings\UnifiedSettingsTests.cs (1)
403_ => throw ExceptionUtilities.UnexpectedValue(languageName)