363 references to UnexpectedValue
Microsoft.CodeAnalysis.CSharp.EditorFeatures (11)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
479
throw ExceptionUtilities.
UnexpectedValue
(selectedNode);
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 (1)
Classification\SyntacticClassifierTests.cs (1)
6539
throw ExceptionUtilities.
UnexpectedValue
(op);
Microsoft.CodeAnalysis.CSharp.Features (84)
ChangeSignature\CSharpChangeSignatureService.cs (2)
639
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind())
916
_ => throw ExceptionUtilities.
UnexpectedValue
(newArgument.Kind())
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\DeclarationName\DeclarationNameInfo.cs (1)
656
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
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);
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
64
var v => throw ExceptionUtilities.
UnexpectedValue
(v.Kind)
104
var p => throw ExceptionUtilities.
UnexpectedValue
(p)
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (1)
84
throw ExceptionUtilities.
UnexpectedValue
(baseDeclaration.Kind());
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
184
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (12)
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());
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 (1)
57
var v => throw ExceptionUtilities.
UnexpectedValue
(v),
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.StatementResult.cs (1)
61
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
ImplementInterface\CSharpImplementImplicitlyCodeRefactoringProvider.cs (1)
57
_ => throw ExceptionUtilities.
UnexpectedValue
(decl),
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
77
_ => throw ExceptionUtilities.
UnexpectedValue
(declarationNode),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
101
_ => throw ExceptionUtilities.
UnexpectedValue
(fieldOrProperty),
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())
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\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
299
_ => throw ExceptionUtilities.
UnexpectedValue
(expression.Kind()),
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\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
40
_ => throw ExceptionUtilities.
UnexpectedValue
(diagnostic.Id),
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
31
_ => throw ExceptionUtilities.
UnexpectedValue
(baseNamespace.Kind()),
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (2)
176
throw ExceptionUtilities.
UnexpectedValue
(value);
299
=> throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
325
_ => throw ExceptionUtilities.
UnexpectedValue
(node)
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\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\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\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
112
_ => throw ExceptionUtilities.
UnexpectedValue
(currentBlockLike),
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),
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
142
throw ExceptionUtilities.
UnexpectedValue
(option);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (7)
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);
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),
Microsoft.CodeAnalysis.CSharp.Workspaces (19)
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()),
Simplification\CSharpSimplificationService.Expander.cs (1)
523
throw ExceptionUtilities.
UnexpectedValue
(replacement.Kind());
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\CSharpSyntaxFacts.cs (3)
229
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
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\Extensions\ITypeSymbolExtensions.cs (1)
61
_ => throw ExceptionUtilities.
UnexpectedValue
(type.NullableAnnotation),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
155
_ => throw ExceptionUtilities.
UnexpectedValue
(symbol.Signature.CallingConvention),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
187
_ => throw ExceptionUtilities.
UnexpectedValue
(negatedKind),
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.EditorFeatures.Test.Utilities (3)
NavigateTo\AbstractNavigateToTests.cs (2)
93
_ => throw ExceptionUtilities.
UnexpectedValue
(composition),
106
_ => throw ExceptionUtilities.
UnexpectedValue
(composition),
SpellCheck\AbstractSpellCheckSpanTests.cs (1)
50
_ => throw ExceptionUtilities.
UnexpectedValue
(key),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
469
throw ExceptionUtilities.
UnexpectedValue
(analysisScope);
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
68
_ => throw ExceptionUtilities.
UnexpectedValue
(t)
112
_ => throw ExceptionUtilities.
UnexpectedValue
(t)
MetadataAsSource\MetadataAsSourceTests.cs (1)
35
_ => throw ExceptionUtilities.
UnexpectedValue
(language),
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.Razor.Features (1)
RazorDocumentExcerptServiceWrapper.cs (1)
26
_ => throw ExceptionUtilities.
UnexpectedValue
(mode),
Microsoft.CodeAnalysis.Features (65)
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),
Common\TaggedText.cs (1)
182
_ => throw ExceptionUtilities.
UnexpectedValue
(taggedTextTag),
Completion\FileSystemCompletionHelper.cs (1)
208
throw ExceptionUtilities.
UnexpectedValue
(pathKind);
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),
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
125
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
96
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (12)
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)
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\EditAndContinueService.cs (1)
285
=> _service.TryGetDebuggingSession(id) ?? throw ExceptionUtilities.
UnexpectedValue
(id);
EditAndContinue\EditSession.cs (1)
647
throw ExceptionUtilities.
UnexpectedValue
(oldDocumentState);
EditAndContinue\EditSessionTelemetry.cs (1)
138
throw ExceptionUtilities.
UnexpectedValue
(summary);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
214
throw ExceptionUtilities.
UnexpectedValue
(args.Kind);
584
throw ExceptionUtilities.
UnexpectedValue
(projectOrDocumentId);
627
throw ExceptionUtilities.
UnexpectedValue
(projectOrDocumentId);
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)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (2)
221
_ => throw ExceptionUtilities.
UnexpectedValue
(document.Project.Language),
580
_ => throw ExceptionUtilities.
UnexpectedValue
(targetSymbol.Language),
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
221
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
622
throw ExceptionUtilities.
UnexpectedValue
(invertIfStyle);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
500
throw ExceptionUtilities.
UnexpectedValue
(group);
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
51
_ => throw ExceptionUtilities.
UnexpectedValue
(m.Kind),
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\ISymbolExtensions_Sorting.cs (1)
191
throw ExceptionUtilities.
UnexpectedValue
((s1.Kind, s2.Kind));
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\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228
throw ExceptionUtilities.
UnexpectedValue
(_scope);
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (1)
420
_ => throw ExceptionUtilities.
UnexpectedValue
(wrappingStyle),
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
387
throw ExceptionUtilities.
UnexpectedValue
(editKind);
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
299
project.Documents.Select(d => (d.GetTextSynchronously(CancellationToken.None), d.FilePath ?? throw ExceptionUtilities.
UnexpectedValue
(null))),
EditAndContinue\Extensions.cs (3)
118
_ => throw ExceptionUtilities.
UnexpectedValue
(language)
125
_ => throw ExceptionUtilities.
UnexpectedValue
(language)
132
_ => throw ExceptionUtilities.
UnexpectedValue
(language)
Microsoft.CodeAnalysis.Features.UnitTests (7)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
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)
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LanguageServerProjectLoader.cs (1)
453
throw ExceptionUtilities.
UnexpectedValue
(loadState);
Logging\LspLogMessageLogger.cs (1)
104
_ => throw ExceptionUtilities.
UnexpectedValue
(logLevel),
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Extensions\ProtocolConversions.cs (2)
582
_ => throw ExceptionUtilities.
UnexpectedValue
(kind),
927
throw ExceptionUtilities.
UnexpectedValue
(codeFence);
Extensions\ProtocolConversions.Diagnostics.cs (1)
228
_ => throw ExceptionUtilities.
UnexpectedValue
(severity),
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)
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 (7)
Host\RemoteWorkspace.SolutionCreator.cs (1)
561
_ => throw ExceptionUtilities.
UnexpectedValue
(document.Kind),
Services\EditAndContinue\EditAndContinueLogReporter.cs (1)
59
_ => throw ExceptionUtilities.
UnexpectedValue
(severity),
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (2)
81
_ => throw ExceptionUtilities.
UnexpectedValue
(type),
164
throw ExceptionUtilities.
UnexpectedValue
(type);
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 (1)
ServiceDescriptors.cs (1)
144
throw ExceptionUtilities.
UnexpectedValue
(serviceType);
Microsoft.CodeAnalysis.Workspaces (105)
Classification\AbstractClassificationService.cs (1)
180
throw ExceptionUtilities.
UnexpectedValue
(type);
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)
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\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\SearchQuery.cs (1)
50
throw ExceptionUtilities.
UnexpectedValue
(kind);
Serialization\SerializationExtensions.cs (1)
33
_ => throw ExceptionUtilities.
UnexpectedValue
(value),
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);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
186
throw ExceptionUtilities.
UnexpectedValue
(kind);
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
54
_ => throw ExceptionUtilities.
UnexpectedValue
(reportDiagnostic)
64
_ => throw ExceptionUtilities.
UnexpectedValue
(severity)
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\FlowAnalysis\CustomDataFlowAnalysis.cs (3)
248
throw ExceptionUtilities.
UnexpectedValue
(branch.Semantics);
341
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
396
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
285
throw ExceptionUtilities.
UnexpectedValue
(operation.Option);
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\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 (6)
114
throw ExceptionUtilities.
UnexpectedValue
(b);
118
throw ExceptionUtilities.
UnexpectedValue
(b);
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\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),
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\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\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\SolutionCompilationState.cs (3)
911
_ => throw ExceptionUtilities.
UnexpectedValue
(typeof(TDocumentState))
1832
_ => throw ExceptionUtilities.
UnexpectedValue
(states)
1841
_ => throw ExceptionUtilities.
UnexpectedValue
(states)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (6)
153
_ => throw ExceptionUtilities.
UnexpectedValue
(state.GetType()),
172
_ => throw ExceptionUtilities.
UnexpectedValue
(state.GetType()),
300
_ => throw ExceptionUtilities.
UnexpectedValue
(state.GetType())
736
_ => throw ExceptionUtilities.
UnexpectedValue
(state.GetType()),
848
throw ExceptionUtilities.
UnexpectedValue
(state.GetType());
953
throw ExceptionUtilities.
UnexpectedValue
(state.GetType());
Workspace\SourceGeneratorExecution.cs (1)
34
_ => throw ExceptionUtilities.
UnexpectedValue
(value),
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 (5)
Options\NamingStyleTestUtilities.cs (1)
78
_ => throw ExceptionUtilities.
UnexpectedValue
(symbolOrTypeKind),
Options\OptionsTestHelpers.cs (1)
143
_ => throw ExceptionUtilities.
UnexpectedValue
(type)
Remote\InProcRemostHostClient.cs (2)
102
throw ExceptionUtilities.
UnexpectedValue
(serviceType);
256
throw ExceptionUtilities.
UnexpectedValue
(descriptor.Moniker);
Workspaces\TestWorkspace`1.cs (1)
230
throw ExceptionUtilities.
UnexpectedValue
(language);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
135
_ => throw ExceptionUtilities.
UnexpectedValue
(solutionKind),
SolutionTests\SolutionTests.cs (1)
501
_ => throw ExceptionUtilities.
UnexpectedValue
(updateType)
Microsoft.VisualStudio.LanguageServices.DevKit (3)
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 (4)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
101
throw ExceptionUtilities.
UnexpectedValue
(optionType);
UnifiedSettings\TestModel\Input.cs (1)
60
_ => throw ExceptionUtilities.
UnexpectedValue
(option)
UnifiedSettings\TestModel\Utilities.cs (1)
51
_ => throw ExceptionUtilities.
UnexpectedValue
(resourceDll)
UnifiedSettings\UnifiedSettingsTests.cs (1)
403
_ => throw ExceptionUtilities.
UnexpectedValue
(languageName)