95 references to UnexpectedValue
Microsoft.CodeAnalysis.Workspaces (95)
Classification\AbstractClassificationService.cs (1)
181throw ExceptionUtilities.UnexpectedValue(type);
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
41_ => throw ExceptionUtilities.UnexpectedValue(fixAllContext.Scope),
CodeFixesAndRefactorings\FixAllLogger.cs (3)
59throw ExceptionUtilities.UnexpectedValue(fixAllState.FixAllKind); 115_ => throw ExceptionUtilities.UnexpectedValue(fixAllKind) 141_ => throw ExceptionUtilities.UnexpectedValue(fixAllKind)
CodeStyle\NotificationOption2_operators.cs (2)
19_ => throw ExceptionUtilities.UnexpectedValue(notificationOption.Severity), 33_ => throw ExceptionUtilities.UnexpectedValue(severity)
Diagnostics\DiagnosticAnalysisResult.cs (1)
208_ => throw ExceptionUtilities.UnexpectedValue(kind)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (2)
92throw ExceptionUtilities.UnexpectedValue(kind); 184throw ExceptionUtilities.UnexpectedValue(diagnostic.Location.Kind);
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
31_ => throw ExceptionUtilities.UnexpectedValue(kind)
Diagnostics\Extensions.cs (3)
89static type => type.AssemblyQualifiedName ?? throw ExceptionUtilities.UnexpectedValue(type)); 178throw ExceptionUtilities.UnexpectedValue(kind); 366throw 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)
50throw ExceptionUtilities.UnexpectedValue(kind);
Serialization\SerializationExtensions.cs (1)
33_ => throw ExceptionUtilities.UnexpectedValue(value),
Serialization\SerializerService_Reference.cs (6)
51throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 82throw ExceptionUtilities.UnexpectedValue(reference); 104throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 113throw ExceptionUtilities.UnexpectedValue(type); 152throw ExceptionUtilities.UnexpectedValue(reference); 172throw ExceptionUtilities.UnexpectedValue(type);
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
19_ => throw ExceptionUtilities.UnexpectedValue(backgroundAnalysisScope),
Shared\Extensions\ISolutionExtensions.cs (1)
74throw ExceptionUtilities.UnexpectedValue(documentKind);
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
185throw ExceptionUtilities.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (1)
79throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
270throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(specialType); 389_ => throw ExceptionUtilities.UnexpectedValue(enumUnderlyingType),
src\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)
55_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 65_ => throw ExceptionUtilities.UnexpectedValue(severity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
20_ => throw ExceptionUtilities.UnexpectedValue(severity),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions_Shared.cs (2)
29_ => throw ExceptionUtilities.UnexpectedValue(diagnosticSeverity), 40_ => throw ExceptionUtilities.UnexpectedValue(diagnosticSeverity)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (3)
168throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 238throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 324throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
46throw ExceptionUtilities.UnexpectedValue(reportDiagnostic); 80_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 94_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (3)
249throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 342throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 397throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
285throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
126throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
440throw ExceptionUtilities.UnexpectedValue(lineOperation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
197_ => throw ExceptionUtilities.UnexpectedValue(capitalization),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (6)
375throw ExceptionUtilities.UnexpectedValue(symbol); 408throw ExceptionUtilities.UnexpectedValue(symbol); 438throw ExceptionUtilities.UnexpectedValue(symbol); 441throw ExceptionUtilities.UnexpectedValue(symbol); 499throw ExceptionUtilities.UnexpectedValue(accessibility); 552throw ExceptionUtilities.UnexpectedValue(modifier);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
71throw ExceptionUtilities.UnexpectedValue(typeof(T)); 88throw ExceptionUtilities.UnexpectedValue(typeof(T));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (6)
114throw ExceptionUtilities.UnexpectedValue(b); 118throw ExceptionUtilities.UnexpectedValue(b); 215throw ExceptionUtilities.UnexpectedValue(code); 237throw ExceptionUtilities.UnexpectedValue(code); 303throw ExceptionUtilities.UnexpectedValue(marker); 320_ => throw ExceptionUtilities.UnexpectedValue(kind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
243throw ExceptionUtilities.UnexpectedValue(value.GetType());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\TextEncodingKind.cs (1)
54_ => throw ExceptionUtilities.UnexpectedValue(kind)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
139throw ExceptionUtilities.UnexpectedValue(type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
70_ => throw ExceptionUtilities.UnexpectedValue(containerKind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
719throw ExceptionUtilities.UnexpectedValue(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (1)
26_ => throw ExceptionUtilities.UnexpectedValue(fixAllScope),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (2)
78throw ExceptionUtilities.UnexpectedValue(operatorKind); 114_ => throw ExceptionUtilities.UnexpectedValue(operatorKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
64throw ExceptionUtilities.UnexpectedValue(strategy);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
253throw ExceptionUtilities.UnexpectedValue(pattern.RawKind); 401_ => throw ExceptionUtilities.UnexpectedValue(operationKind),
Storage\SQLite\v2\Database.cs (1)
64_ => 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)
21public string DatabaseDirectory => Path.GetDirectoryName(DatabaseFile) ?? throw ExceptionUtilities.UnexpectedValue(DatabaseFile);
Workspace\Solution\ProjectState.cs (2)
135throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState))); 322throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)));
Workspace\Solution\SolutionCompilationState.cs (3)
874_ => throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)) 1738_ => throw ExceptionUtilities.UnexpectedValue(states) 1747_ => throw ExceptionUtilities.UnexpectedValue(states)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (6)
149_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 168_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 296_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()) 729_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 838throw ExceptionUtilities.UnexpectedValue(state.GetType()); 943throw ExceptionUtilities.UnexpectedValue(state.GetType());
Workspace\SourceGeneratorExecution.cs (1)
37_ => throw ExceptionUtilities.UnexpectedValue(value),