95 references to UnexpectedValue
Microsoft.CodeAnalysis.Workspaces (95)
Classification\AbstractClassificationService.cs (1)
180
throw ExceptionUtilities.
UnexpectedValue
(type);
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
41
_ => throw ExceptionUtilities.
UnexpectedValue
(fixAllContext.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)
110
_ => 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_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)
270
throw ExceptionUtilities.
UnexpectedValue
(specialType);
389
_ => 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\Extensions\DiagnosticSeverityExtensions.cs (1)
19
_ => throw ExceptionUtilities.
UnexpectedValue
(severity),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (2)
28
_ => throw ExceptionUtilities.
UnexpectedValue
(diagnosticSeverity),
39
_ => throw ExceptionUtilities.
UnexpectedValue
(diagnosticSeverity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (3)
167
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
237
throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility);
323
throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
45
throw ExceptionUtilities.
UnexpectedValue
(reportDiagnostic);
79
_ => throw ExceptionUtilities.
UnexpectedValue
(reportDiagnostic)
93
_ => 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 (1)
439
throw ExceptionUtilities.
UnexpectedValue
(lineOperation.Option);
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 (2)
72
throw ExceptionUtilities.
UnexpectedValue
(typeof(T));
89
throw ExceptionUtilities.
UnexpectedValue
(typeof(T));
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)
265
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\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (1)
25
_ => throw ExceptionUtilities.
UnexpectedValue
(fixAllScope),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (2)
75
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
111
_ => 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\ProjectState.cs (2)
135
throw ExceptionUtilities.
UnexpectedValue
(typeof(TDocumentState)));
322
throw ExceptionUtilities.
UnexpectedValue
(typeof(TDocumentState)));
Workspace\Solution\SolutionCompilationState.cs (3)
912
_ => throw ExceptionUtilities.
UnexpectedValue
(typeof(TDocumentState))
1838
_ => throw ExceptionUtilities.
UnexpectedValue
(states)
1847
_ => 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),