722 references to ExceptionUtilities
Microsoft.CodeAnalysis.CSharp.EditorFeatures (12)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
479
throw
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)
114
throw
ExceptionUtilities
.UnexpectedValue(content.Kind);
324
throw
ExceptionUtilities
.UnexpectedValue(content.Kind);
StringCopyPaste\StringCopyPasteData.cs (1)
72
_ => throw
ExceptionUtilities
.UnexpectedValue(stringExpression.Kind()),
StringCopyPaste\StringCopyPasteHelpers.cs (1)
64
throw
ExceptionUtilities
.UnexpectedValue(stringExpression);
StringCopyPaste\StringInfo.cs (2)
67
_ => throw
ExceptionUtilities
.UnexpectedValue(stringExpression)
152
throw
ExceptionUtilities
.UnexpectedValue(literal.Kind());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Classification\SyntacticClassifierTests.cs (1)
6539
throw
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)
49
throw
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)
212
localFunction = root.GetCurrentNode(localFunction) ?? throw
ExceptionUtilities
.Unreachable();
213
container = root.GetCurrentNode(container) ?? throw
ExceptionUtilities
.Unreachable();
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (4)
69
throw
ExceptionUtilities
.Unreachable();
87
throw
ExceptionUtilities
.Unreachable();
98
throw
ExceptionUtilities
.Unreachable();
268
throw
ExceptionUtilities
.Unreachable();
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (5)
186
throw
ExceptionUtilities
.UnexpectedValue(v);
256
var p => throw
ExceptionUtilities
.UnexpectedValue(p)
285
var v => throw
ExceptionUtilities
.UnexpectedValue(v),
287
var v => throw
ExceptionUtilities
.UnexpectedValue(v),
298
var 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)
240
throw
ExceptionUtilities
.Unreachable();
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
656
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
685
throw
ExceptionUtilities
.Unreachable();
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
99
throw
ExceptionUtilities
.Unreachable();
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
96
throw
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)
154
throw
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)
114
throw
ExceptionUtilities
.Unreachable();
130
_ => throw
ExceptionUtilities
.Unreachable(),
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
64
var v => throw
ExceptionUtilities
.UnexpectedValue(v.Kind)
104
var p => throw
ExceptionUtilities
.UnexpectedValue(p)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (2)
92
throw
ExceptionUtilities
.Unreachable();
290
throw
ExceptionUtilities
.Unreachable();
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (2)
152
throw
ExceptionUtilities
.Unreachable();
173
throw
ExceptionUtilities
.Unreachable();
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (1)
84
throw
ExceptionUtilities
.UnexpectedValue(baseDeclaration.Kind());
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
291
throw
ExceptionUtilities
.Unreachable();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
251
throw
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)
884
default: throw
ExceptionUtilities
.UnexpectedValue(oldNode.Kind());
1261
throw
ExceptionUtilities
.Unreachable();
1990
=> TryGetDisplayNameImpl(node, editKind) ?? throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
2223
throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
2359
throw
ExceptionUtilities
.UnexpectedValue(_kind);
2653
throw
ExceptionUtilities
.UnexpectedValue(oldNode.Kind());
2702
throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
2816
throw
ExceptionUtilities
.UnexpectedValue(statement.Kind());
EditAndContinue\SyntaxComparer.cs (5)
771
default: throw
ExceptionUtilities
.UnexpectedValue(node);
1029
throw
ExceptionUtilities
.UnexpectedValue(nestedFunction.Kind());
1109
throw
ExceptionUtilities
.UnexpectedValue(leftBlock.Parent.Kind());
1314
throw
ExceptionUtilities
.UnexpectedValue(commonForEach.Kind());
1364
throw
ExceptionUtilities
.UnexpectedValue(designation.Kind());
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
57
var v => throw
ExceptionUtilities
.UnexpectedValue(v),
295
throw
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)
51
throw
ExceptionUtilities
.Unreachable();
ExtractMethod\CSharpSelectionResult.StatementResult.cs (2)
61
_ => throw
ExceptionUtilities
.UnexpectedValue(node),
103
throw
ExceptionUtilities
.Unreachable();
ExtractMethod\CSharpSelectionValidator.cs (1)
159
throw
ExceptionUtilities
.Unreachable();
GenerateType\CSharpGenerateTypeService.cs (2)
296
throw
ExceptionUtilities
.Unreachable();
678
throw
ExceptionUtilities
.Unreachable();
ImplementInterface\CSharpImplementImplicitlyCodeRefactoringProvider.cs (1)
57
_ => throw
ExceptionUtilities
.UnexpectedValue(decl),
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
77
_ => throw
ExceptionUtilities
.UnexpectedValue(declarationNode),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (2)
233
throw
ExceptionUtilities
.Unreachable();
265
throw
ExceptionUtilities
.Unreachable();
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (2)
101
_ => throw
ExceptionUtilities
.UnexpectedValue(fieldOrProperty),
128
throw
ExceptionUtilities
.Unreachable();
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
57
throw
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)
130
throw
ExceptionUtilities
.Unreachable();
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
139
throw
ExceptionUtilities
.Unreachable();
SimplifyTypeNames\SimplifyTypeNamesCodeFixProvider.cs (1)
43
throw
ExceptionUtilities
.UnexpectedValue(diagnosticId);
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
68
throw
ExceptionUtilities
.UnexpectedValue(binaryLike);
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
21
_ => throw
ExceptionUtilities
.UnexpectedValue(preference),
src\Analyzers\CSharp\Analyzers\FileHeaders\CSharpFileHeaderHelper.cs (1)
42
throw
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)
36
throw
ExceptionUtilities
.UnexpectedValue(assignmentExpressionKind);
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
192
var v => throw
ExceptionUtilities
.UnexpectedValue(v)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
154
var 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)
176
throw
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)
77
throw
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)
82
throw
ExceptionUtilities
.UnexpectedValue(old);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
244
throw
ExceptionUtilities
.Unreachable();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
532
throw
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)
80
throw
ExceptionUtilities
.UnexpectedValue(declarationContext?.Kind());
209
throw
ExceptionUtilities
.UnexpectedValue(designation.Kind());
245
throw
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)
281
throw
ExceptionUtilities
.UnexpectedValue(anonymousFunction);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
44
_ => throw
ExceptionUtilities
.UnexpectedValue(kind)
105
var 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)
508
throw
ExceptionUtilities
.Unreachable();
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
112
_ => throw
ExceptionUtilities
.UnexpectedValue(currentBlockLike),
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
102
throw
ExceptionUtilities
.Unreachable();
136
throw
ExceptionUtilities
.Unreachable();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
413
ExceptionUtilities
.UnexpectedValue(node.Kind());
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (2)
121
throw
ExceptionUtilities
.UnexpectedValue(newLambda.Kind());
130
_ => throw
ExceptionUtilities
.UnexpectedValue(nestedFunction),
TaskList\CSharpTaskListService.cs (1)
58
throw
ExceptionUtilities
.Unreachable();
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
142
throw
ExceptionUtilities
.UnexpectedValue(option);
Wrapping\SeparatedSyntaxList\CSharpCollectionExpressionWrapper.cs (3)
25
protected override string Align_wrapped_items => throw
ExceptionUtilities
.Unreachable();
26
protected override string Indent_wrapped_items => throw
ExceptionUtilities
.Unreachable();
27
protected override string Unwrap_and_indent_all_items => throw
ExceptionUtilities
.Unreachable();
Wrapping\SeparatedSyntaxList\CSharpInitializerExpressionWrapper.cs (3)
25
protected override string Align_wrapped_items => throw
ExceptionUtilities
.Unreachable();
26
protected override string Indent_wrapped_items => throw
ExceptionUtilities
.Unreachable();
27
protected 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);
60
TryGetResource(keyword) ?? throw
ExceptionUtilities
.UnexpectedValue(keyword),
62
TryGetResource(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)
72
throw
ExceptionUtilities
.UnexpectedValue(node.Kind());
217
throw
ExceptionUtilities
.UnexpectedValue(refKind);
879
throw
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)
428
throw
ExceptionUtilities
.Unreachable();
925
throw
ExceptionUtilities
.Unreachable();
Simplification\CSharpSimplificationService.Expander.cs (1)
523
throw
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)
469
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
395
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
219
throw
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),
1376
throw
ExceptionUtilities
.UnexpectedValue(trivia.Kind());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
252
throw
ExceptionUtilities
.UnexpectedValue(originalLambda.Kind());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
152
throw
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)
144
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
61
_ => throw
ExceptionUtilities
.UnexpectedValue(type.NullableAnnotation),
136
throw
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)
168
var 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)
51
throw
ExceptionUtilities
.Unreachable();
QuickInfo\ToolTipAssert.cs (2)
51
throw
ExceptionUtilities
.Unreachable();
204
throw
ExceptionUtilities
.Unreachable();
SpellCheck\AbstractSpellCheckSpanTests.cs (1)
50
_ => throw
ExceptionUtilities
.UnexpectedValue(key),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (56)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
469
throw
ExceptionUtilities
.UnexpectedValue(analysisScope);
763
throw
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)
46
throw
ExceptionUtilities
.UnexpectedValue(kind);
Internal\Editor\FSharpEditorInlineRenameService.cs (1)
56
throw
ExceptionUtilities
.UnexpectedValue(kind);
Internal\FSharpGlyphHelpers.cs (2)
324
throw
ExceptionUtilities
.UnexpectedValue(glyph);
639
throw
ExceptionUtilities
.UnexpectedValue(glyph);
Internal\NavigateTo\FSharpNavigateToMatchKindHelpers.cs (1)
64
throw
ExceptionUtilities
.UnexpectedValue(kind);
Internal\SignatureHelp\FSharpSignatureHelpTriggerReasonHelpers.cs (1)
35
throw
ExceptionUtilities
.UnexpectedValue(triggerReason);
Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests (6)
FSharpGlyphTests.cs (2)
345
throw
ExceptionUtilities
.UnexpectedValue(glyph);
660
throw
ExceptionUtilities
.UnexpectedValue(glyph);
FSharpHighlightSpanKindTests.cs (1)
52
throw
ExceptionUtilities
.UnexpectedValue(kind);
FSharpInlineRenameReplacementKindTests.cs (1)
57
throw
ExceptionUtilities
.UnexpectedValue(kind);
FSharpNavigateToMatchKindTests.cs (1)
76
throw
ExceptionUtilities
.UnexpectedValue(kind);
FSharpSignatureHelpTriggerReasonTests.cs (1)
47
throw
ExceptionUtilities
.UnexpectedValue(triggerReason);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
69
throw
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)
107
throw
ExceptionUtilities
.Unreachable();
ChangeSignature\AbstractChangeSignatureService.cs (1)
196
_ => throw
ExceptionUtilities
.Unreachable(),
ChangeSignature\Parameter.cs (1)
64
throw
ExceptionUtilities
.Unreachable();
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
303
var analyzerConfigDirectory = PathUtilities.GetDirectoryName(analyzerConfigPath) ?? throw
ExceptionUtilities
.Unreachable();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.FixAllProvider.cs (1)
61
throw
ExceptionUtilities
.Unreachable();
CodeFixes\Suppression\SuppressionHelpers.cs (1)
61
throw
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)
123
throw
ExceptionUtilities
.Unreachable();
Common\TaggedText.cs (1)
182
_ => throw
ExceptionUtilities
.UnexpectedValue(taggedTextTag),
Completion\FileSystemCompletionHelper.cs (1)
208
throw
ExceptionUtilities
.UnexpectedValue(pathKind);
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
115
throw
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)
424
var 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),
190
throw
ExceptionUtilities
.Unreachable();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (3)
48
throw
ExceptionUtilities
.Unreachable();
113
throw
ExceptionUtilities
.Unreachable();
159
throw
ExceptionUtilities
.Unreachable();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
163
throw
ExceptionUtilities
.Unreachable();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
73
throw
ExceptionUtilities
.Unreachable();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (13)
306
=> TryGetDisplayName(node, editKind) ?? throw
ExceptionUtilities
.UnexpectedValue(node.GetType().Name);
319
_ => throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind)
373
throw
ExceptionUtilities
.UnexpectedValue(node.GetType().Name);
891
_ => throw
ExceptionUtilities
.UnexpectedValue(kind)
2642
throw
ExceptionUtilities
.UnexpectedValue(oldMember.Kind);
3197
throw
ExceptionUtilities
.UnexpectedValue(edit.Kind);
3439
_ => throw
ExceptionUtilities
.UnexpectedValue(editKind)
3637
throw
ExceptionUtilities
.Unreachable();
3855
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
3894
throw
ExceptionUtilities
.UnexpectedValue(oldSymbol.Kind);
3966
throw
ExceptionUtilities
.UnexpectedValue(oldSymbol.Kind);
6614
_ => throw
ExceptionUtilities
.UnexpectedValue(localOrParameter.Kind),
6666
_ => throw
ExceptionUtilities
.UnexpectedValue(kinds)
EditAndContinue\DebuggingSession.cs (2)
842
throw
ExceptionUtilities
.Unreachable();
919
throw
ExceptionUtilities
.Unreachable();
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (3)
53
throw
ExceptionUtilities
.Unreachable();
98
throw
ExceptionUtilities
.Unreachable();
219
throw
ExceptionUtilities
.Unreachable();
EditAndContinue\EditAndContinueService.cs (2)
179
throw
ExceptionUtilities
.Unreachable();
285
=> _service.TryGetDebuggingSession(id) ?? throw
ExceptionUtilities
.UnexpectedValue(id);
EditAndContinue\EditSession.cs (3)
647
throw
ExceptionUtilities
.UnexpectedValue(oldDocumentState);
823
throw
ExceptionUtilities
.Unreachable();
1430
throw
ExceptionUtilities
.Unreachable();
EditAndContinue\EditSessionTelemetry.cs (1)
138
throw
ExceptionUtilities
.UnexpectedValue(summary);
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
42
=> throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\AbstractUnitTestingDocumentDifferenceService.cs (1)
55
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
209
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
214
throw
ExceptionUtilities
.UnexpectedValue(args.Kind);
584
throw
ExceptionUtilities
.UnexpectedValue(projectOrDocumentId);
627
throw
ExceptionUtilities
.UnexpectedValue(projectOrDocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (1)
59
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncProjectWorkItemQueue.cs (1)
61
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
258
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
208
throw
ExceptionUtilities
.Unreachable();
230
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (2)
62
throw
ExceptionUtilities
.Unreachable();
154
throw
ExceptionUtilities
.Unreachable();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (4)
144
throw
ExceptionUtilities
.Unreachable();
229
throw
ExceptionUtilities
.Unreachable();
283
throw
ExceptionUtilities
.Unreachable();
313
throw
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)
128
throw
ExceptionUtilities
.Unreachable();
140
throw
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)
306
throw
ExceptionUtilities
.Unreachable();
353
throw
ExceptionUtilities
.Unreachable();
521
throw
ExceptionUtilities
.Unreachable();
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
221
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (2)
370
throw
ExceptionUtilities
.Unreachable();
622
throw
ExceptionUtilities
.UnexpectedValue(invertIfStyle);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (1)
36
var invokeMethod = anonymousType.DelegateInvokeMethod ?? throw
ExceptionUtilities
.Unreachable();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
500
throw
ExceptionUtilities
.UnexpectedValue(group);
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
51
_ => throw
ExceptionUtilities
.UnexpectedValue(m.Kind),
MetadataAsSource\MetadataAsSourceFileService.cs (1)
117
throw
ExceptionUtilities
.Unreachable();
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
51
=> TryGetTopLevelContainingNamedType(symbol) ?? throw
ExceptionUtilities
.UnexpectedValue(symbol);
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
210
throw
ExceptionUtilities
.UnexpectedValue(container);
MoveToNamespace\MoveToNamespaceCodeAction.cs (1)
92
_ => throw
ExceptionUtilities
.UnexpectedValue(analysisResult.Container)
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (1)
222
throw
ExceptionUtilities
.UnexpectedValue(declaredSymbolInfo.Kind);
NavigateTo\INavigateToSearchResult.cs (1)
56
_ => throw
ExceptionUtilities
.UnexpectedValue(matchKind),
NavigateTo\NavigateToSearcher.cs (1)
170
throw
ExceptionUtilities
.UnexpectedValue(searchScope);
NavigationBar\IRemoteNavigationBarItemService.cs (1)
105
_ => throw
ExceptionUtilities
.UnexpectedValue(this.Kind),
PullMemberUp\MembersPuller.cs (2)
69
_ => throw
ExceptionUtilities
.UnexpectedValue(pullMembersUpOptions.Destination),
464
throw
ExceptionUtilities
.UnexpectedValue(member);
Shared\Extensions\DocumentExtensions.cs (2)
103
throw
ExceptionUtilities
.Unreachable();
116
throw
ExceptionUtilities
.Unreachable();
Shared\Extensions\ISymbolExtensions_Sorting.cs (1)
191
throw
ExceptionUtilities
.UnexpectedValue((s1.Kind, s2.Kind));
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
77
throw
ExceptionUtilities
.Unreachable();
100
throw
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)
70
throw
ExceptionUtilities
.UnexpectedValue(context.Operation);
110
_ => throw
ExceptionUtilities
.UnexpectedValue(operation),
141
_ => throw
ExceptionUtilities
.UnexpectedValue(operation),
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
147
throw
ExceptionUtilities
.UnexpectedValue(diagnosticId);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
199
throw
ExceptionUtilities
.UnexpectedValue(text[position]);
440
throw
ExceptionUtilities
.UnexpectedValue(equivalenceKey);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
58
throw
ExceptionUtilities
.UnexpectedValue(state.MethodGenerationKind);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
423
throw
ExceptionUtilities
.Unreachable();
src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (1)
26
throw
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)
378
throw
ExceptionUtilities
.Unreachable();
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
94
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228
throw
ExceptionUtilities
.UnexpectedValue(_scope);
Structure\Syntax\AbstractBlockStructureProvider.cs (1)
71
throw
ExceptionUtilities
.Unreachable();
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (1)
420
_ => throw
ExceptionUtilities
.UnexpectedValue(wrappingStyle),
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
387
throw
ExceptionUtilities
.UnexpectedValue(editKind);
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
299
project.Documents.Select(d => (d.GetTextSynchronously(CancellationToken.None), d.FilePath ?? throw
ExceptionUtilities
.UnexpectedValue(null))),
512
throw
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)
131
throw
ExceptionUtilities
.UnexpectedValue(response);
HostWorkspace\LanguageServerProjectLoader.cs (1)
453
throw
ExceptionUtilities
.UnexpectedValue(loadState);
HostWorkspace\WorkspaceProject.cs (2)
228
throw
ExceptionUtilities
.Unreachable();
255
throw
ExceptionUtilities
.Unreachable();
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
64
throw
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),
927
throw
ExceptionUtilities
.UnexpectedValue(codeFence);
Extensions\ProtocolConversions.Diagnostics.cs (1)
228
_ => throw
ExceptionUtilities
.UnexpectedValue(severity),
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
103
throw
ExceptionUtilities
.Unreachable();
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
420
throw
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()
155
throw
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)
354
throw
ExceptionUtilities
.UnexpectedValue(languageName);
SpellCheck\SpellCheckTests.cs (1)
602
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
Microsoft.CodeAnalysis.Remote.ServiceHub (20)
Host\RemoteWorkspace.cs (3)
108
throw
ExceptionUtilities
.Unreachable();
136
throw
ExceptionUtilities
.Unreachable();
267
throw
ExceptionUtilities
.Unreachable();
Host\RemoteWorkspace.SolutionCreator.cs (2)
144
throw
ExceptionUtilities
.Unreachable();
561
_ => throw
ExceptionUtilities
.UnexpectedValue(document.Kind),
Services\BrokeredServiceBase.cs (2)
123
throw
ExceptionUtilities
.Unreachable();
172
throw
ExceptionUtilities
.Unreachable();
Services\BrokeredServiceBase.FactoryBase.cs (2)
78
throw
ExceptionUtilities
.Unreachable();
123
=> throw
ExceptionUtilities
.Unreachable();
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (1)
70
throw
ExceptionUtilities
.Unreachable();
Services\EditAndContinue\EditAndContinueLogReporter.cs (1)
59
_ => throw
ExceptionUtilities
.UnexpectedValue(severity),
Services\EditAndContinue\RemoteEditAndContinueService.cs (1)
135
throw
ExceptionUtilities
.Unreachable();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (2)
81
_ => throw
ExceptionUtilities
.UnexpectedValue(type),
164
throw
ExceptionUtilities
.UnexpectedValue(type);
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (2)
64
throw
ExceptionUtilities
.Unreachable();
67
throw
ExceptionUtilities
.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
43
throw
ExceptionUtilities
.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (3)
53
_ => throw
ExceptionUtilities
.UnexpectedValue(type),
61
_ => throw
ExceptionUtilities
.UnexpectedValue(scope)
71
throw
ExceptionUtilities
.UnexpectedValue(scope);
Microsoft.CodeAnalysis.Remote.Workspaces (5)
RemoteCallback.cs (2)
142
throw
ExceptionUtilities
.Unreachable();
188
throw
ExceptionUtilities
.Unreachable();
ServiceDescriptors.cs (2)
144
throw
ExceptionUtilities
.UnexpectedValue(serviceType);
152
_ => throw
ExceptionUtilities
.Unreachable()
SolutionAssetProvider.cs (1)
58
throw
ExceptionUtilities
.Unreachable();
Microsoft.CodeAnalysis.Workspaces (191)
Classification\AbstractClassificationService.cs (1)
180
throw
ExceptionUtilities
.UnexpectedValue(type);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
43
throw
ExceptionUtilities
.Unreachable();
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (1)
238
throw
ExceptionUtilities
.Unreachable();
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
40
_ => throw
ExceptionUtilities
.UnexpectedValue(fixAllContext.State.Scope),
CodeFixesAndRefactorings\FixAllLogger.cs (3)
58
throw
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)
91
throw
ExceptionUtilities
.UnexpectedValue(kind);
178
throw
ExceptionUtilities
.UnexpectedValue(diagnostic.Location.Kind);
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
28
_ => throw
ExceptionUtilities
.UnexpectedValue(kind)
Diagnostics\DiagnosticData.cs (1)
357
throw
ExceptionUtilities
.Unreachable();
Diagnostics\Extensions.cs (3)
94
static type => type.AssemblyQualifiedName ?? throw
ExceptionUtilities
.UnexpectedValue(type));
181
throw
ExceptionUtilities
.UnexpectedValue(kind);
364
throw
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)
52
throw
ExceptionUtilities
.Unreachable();
FindSymbols\SearchQuery.cs (1)
50
throw
ExceptionUtilities
.UnexpectedValue(kind);
FindSymbols\StreamingProgressCollector.cs (1)
65
throw
ExceptionUtilities
.Unreachable();
Options\OptionSet.cs (1)
83
=> throw
ExceptionUtilities
.Unreachable();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
167
_ => throw
ExceptionUtilities
.Unreachable(),
Rename\ConflictEngine\ConflictResolver.cs (1)
315
throw
ExceptionUtilities
.Unreachable();
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
257
throw
ExceptionUtilities
.Unreachable();
469
throw
ExceptionUtilities
.Unreachable();
627
throw
ExceptionUtilities
.Unreachable();
670
throw
ExceptionUtilities
.Unreachable();
705
throw
ExceptionUtilities
.Unreachable();
749
throw
ExceptionUtilities
.Unreachable();
836
throw
ExceptionUtilities
.Unreachable();
Serialization\SerializationExtensions.cs (1)
33
_ => throw
ExceptionUtilities
.UnexpectedValue(value),
Serialization\SerializedPortableExecutableReference.cs (1)
45
throw
ExceptionUtilities
.Unreachable();
Serialization\SerializerService.cs (3)
79
throw
ExceptionUtilities
.UnexpectedValue(kind);
158
throw
ExceptionUtilities
.UnexpectedValue(kind);
258
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
Serialization\SerializerService_Reference.cs (6)
52
throw
ExceptionUtilities
.UnexpectedValue(reference.GetType());
89
throw
ExceptionUtilities
.UnexpectedValue(reference);
111
throw
ExceptionUtilities
.UnexpectedValue(reference.GetType());
120
throw
ExceptionUtilities
.UnexpectedValue(type);
159
throw
ExceptionUtilities
.UnexpectedValue(reference);
179
throw
ExceptionUtilities
.UnexpectedValue(type);
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
18
_ => throw
ExceptionUtilities
.UnexpectedValue(backgroundAnalysisScope),
Shared\Extensions\ISolutionExtensions.cs (1)
74
throw
ExceptionUtilities
.UnexpectedValue(documentKind);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
219
throw
ExceptionUtilities
.Unreachable();
Shared\Utilities\SemanticMap.Walker.cs (1)
37
throw
ExceptionUtilities
.Unreachable();
Shared\Utilities\XmlFragmentParser.cs (2)
211
throw
ExceptionUtilities
.Unreachable();
217
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
186
throw
ExceptionUtilities
.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51
=> throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (2)
77
return ReadIfInitialized() ?? throw
ExceptionUtilities
.Unreachable();
80
throw
ExceptionUtilities
.UnexpectedValue(unexpectedValue);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
182
_ => throw
ExceptionUtilities
.UnexpectedValue(kind)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
271
throw
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)
1077
throw
ExceptionUtilities
.Unreachable();
1087
throw
ExceptionUtilities
.Unreachable();
src\Dependencies\Collections\TemporaryArray`1.cs (3)
317
_ => throw
ExceptionUtilities
.Unreachable(),
379
throw
ExceptionUtilities
.Unreachable();
432
throw
ExceptionUtilities
.Unreachable();
src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
45
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
55
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
145
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
221
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
275
throw
ExceptionUtilities
.Unreachable();
288
throw
ExceptionUtilities
.Unreachable();
src\Dependencies\Threading\ProducerConsumer.cs (1)
388
throw
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)
57
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (2)
145
throw
ExceptionUtilities
.UnexpectedValue(tokenKind);
270
throw
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)
192
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (4)
248
throw
ExceptionUtilities
.UnexpectedValue(branch.Semantics);
341
throw
ExceptionUtilities
.UnexpectedValue(enclosing.Kind);
360
throw
ExceptionUtilities
.Unreachable();
396
throw
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)
454
throw
ExceptionUtilities
.Unreachable();
562
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
65
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
181
throw
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)
285
throw
ExceptionUtilities
.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (2)
69
throw
ExceptionUtilities
.Unreachable();
111
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
95
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
126
throw
ExceptionUtilities
.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
439
throw
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)
324
throw
ExceptionUtilities
.UnexpectedValue(symbol);
357
throw
ExceptionUtilities
.UnexpectedValue(symbol);
387
throw
ExceptionUtilities
.UnexpectedValue(symbol);
390
throw
ExceptionUtilities
.UnexpectedValue(symbol);
448
throw
ExceptionUtilities
.UnexpectedValue(accessibility);
501
throw
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)
73
throw
ExceptionUtilities
.UnexpectedValue(typeof(T));
90
throw
ExceptionUtilities
.UnexpectedValue(typeof(T));
121
serializeValue: value => map.TryGetKey(value, out var key) ? key : throw
ExceptionUtilities
.UnexpectedValue(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (7)
114
throw
ExceptionUtilities
.UnexpectedValue(b);
118
throw
ExceptionUtilities
.UnexpectedValue(b);
142
public string ReadRequiredString() => ReadString() ?? throw
ExceptionUtilities
.Unreachable();
215
throw
ExceptionUtilities
.UnexpectedValue(code);
237
throw
ExceptionUtilities
.UnexpectedValue(code);
303
throw
ExceptionUtilities
.UnexpectedValue(marker);
320
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
267
throw
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)
138
throw
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)
719
throw
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();
389
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
446
throw
ExceptionUtilities
.Unreachable();
450
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
83
throw
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)
44
throw
ExceptionUtilities
.UnexpectedValue(reportDiagnostic);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (3)
171
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
241
throw
ExceptionUtilities
.UnexpectedValue(declaredAccessibility);
327
throw
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)
70
throw
ExceptionUtilities
.UnexpectedValue(operatorKind);
106
_ => throw
ExceptionUtilities
.UnexpectedValue(operatorKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
68
throw
ExceptionUtilities
.UnexpectedValue(strategy);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
251
throw
ExceptionUtilities
.UnexpectedValue(pattern.RawKind);
399
_ => throw
ExceptionUtilities
.UnexpectedValue(operationKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
41
throw
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)
52
throw
ExceptionUtilities
.Unreachable();
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (1)
105
_ => throw
ExceptionUtilities
.UnexpectedValue(this.Table),
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (1)
21
public string DatabaseDirectory => Path.GetDirectoryName(DatabaseFile) ?? throw
ExceptionUtilities
.UnexpectedValue(DatabaseFile);
Workspace\Solution\Document.cs (2)
376
throw
ExceptionUtilities
.Unreachable();
512
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\DocumentState.cs (2)
208
throw
ExceptionUtilities
.Unreachable();
230
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\Project.cs (1)
462
throw
ExceptionUtilities
.UnexpectedValue(info.Kind);
Workspace\Solution\ProjectState.cs (2)
124
throw
ExceptionUtilities
.UnexpectedValue(typeof(TDocumentState)));
312
throw
ExceptionUtilities
.UnexpectedValue(typeof(TDocumentState)));
Workspace\Solution\ProjectState_Checksum.cs (1)
81
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\Solution.cs (1)
667
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\SolutionCompilationState.cs (6)
911
_ => throw
ExceptionUtilities
.UnexpectedValue(typeof(TDocumentState))
1315
throw
ExceptionUtilities
.Unreachable();
1335
throw
ExceptionUtilities
.Unreachable();
1707
throw
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()),
273
throw
ExceptionUtilities
.Unreachable();
300
_ => throw
ExceptionUtilities
.UnexpectedValue(state.GetType())
356
throw
ExceptionUtilities
.Unreachable();
401
throw
ExceptionUtilities
.Unreachable();
471
throw
ExceptionUtilities
.Unreachable();
736
_ => throw
ExceptionUtilities
.UnexpectedValue(state.GetType()),
848
throw
ExceptionUtilities
.UnexpectedValue(state.GetType());
953
throw
ExceptionUtilities
.UnexpectedValue(state.GetType());
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
147
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\SolutionState_Checksum.cs (1)
151
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\TextDocumentState_Checksum.cs (1)
48
throw
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)
556
throw
ExceptionUtilities
.Unreachable();
Workspace\Workspace_Editor.cs (1)
709
throw
ExceptionUtilities
.Unreachable();
Workspace\WorkspaceDiagnostic.cs (1)
20
default: 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)
102
throw
ExceptionUtilities
.UnexpectedValue(serviceType);
119
=> throw
ExceptionUtilities
.Unreachable();
256
throw
ExceptionUtilities
.UnexpectedValue(descriptor.Moniker);
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (1)
83
private void MainThreadStart() => throw
ExceptionUtilities
.Unreachable();
Workspaces\TestWorkspace`1.cs (1)
230
throw
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)
43
throw
ExceptionUtilities
.Unreachable();
UtilityTest\SpecializedTasksTests.cs (11)
216
throw
ExceptionUtilities
.Unreachable();
276
throw
ExceptionUtilities
.Unreachable();
343
throw
ExceptionUtilities
.Unreachable();
367
var fault =
ExceptionUtilities
.Unreachable();
389
var fault =
ExceptionUtilities
.Unreachable();
411
var fault =
ExceptionUtilities
.Unreachable();
444
var fault =
ExceptionUtilities
.Unreachable();
469
var fault =
ExceptionUtilities
.Unreachable();
494
var fault =
ExceptionUtilities
.Unreachable();
523
var fault =
ExceptionUtilities
.Unreachable();
538
var fault =
ExceptionUtilities
.Unreachable();
Microsoft.VisualStudio.LanguageServices.DevKit (6)
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (2)
64
throw
ExceptionUtilities
.Unreachable();
67
throw
ExceptionUtilities
.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
43
throw
ExceptionUtilities
.Unreachable();
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (3)
53
_ => throw
ExceptionUtilities
.UnexpectedValue(type),
61
_ => throw
ExceptionUtilities
.UnexpectedValue(scope)
71
throw
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)
101
throw
ExceptionUtilities
.UnexpectedValue(optionType);
UnifiedSettings\TestModel\Input.cs (2)
42
_ => throw
ExceptionUtilities
.Unreachable()
60
_ => throw
ExceptionUtilities
.UnexpectedValue(option)
UnifiedSettings\TestModel\Utilities.cs (2)
41
throw
ExceptionUtilities
.Unreachable();
51
_ => throw
ExceptionUtilities
.UnexpectedValue(resourceDll)
UnifiedSettings\UnifiedSettingsTests.cs (1)
403
_ => throw
ExceptionUtilities
.UnexpectedValue(languageName)