194 references to ExceptionUtilities
Microsoft.CodeAnalysis.Workspaces (194)
Classification\AbstractClassificationService.cs (1)
181throw ExceptionUtilities.UnexpectedValue(type);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
44throw ExceptionUtilities.Unreachable();
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (1)
238throw ExceptionUtilities.Unreachable();
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)
CodeFixesAndRefactorings\FixAllProviderInfo.cs (1)
140=> throw ExceptionUtilities.Unreachable();
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\DiagnosticData.cs (1)
330throw ExceptionUtilities.Unreachable();
Diagnostics\Extensions.cs (3)
89static type => type.AssemblyQualifiedName ?? throw ExceptionUtilities.UnexpectedValue(type)); 169throw ExceptionUtilities.UnexpectedValue(kind); 359throw 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)
53throw ExceptionUtilities.Unreachable();
FindSymbols\SearchQuery.cs (1)
50throw ExceptionUtilities.UnexpectedValue(kind);
FindSymbols\StreamingProgressCollector.cs (1)
67throw ExceptionUtilities.Unreachable();
Options\OptionSet.cs (1)
84=> throw ExceptionUtilities.Unreachable();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
167_ => throw ExceptionUtilities.Unreachable(),
Rename\ConflictEngine\ConflictResolver.cs (1)
321throw ExceptionUtilities.Unreachable();
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
259throw ExceptionUtilities.Unreachable(); 468throw ExceptionUtilities.Unreachable(); 650throw ExceptionUtilities.Unreachable(); 692throw ExceptionUtilities.Unreachable(); 727throw ExceptionUtilities.Unreachable(); 771throw ExceptionUtilities.Unreachable(); 855throw ExceptionUtilities.Unreachable();
Serialization\SerializationExtensions.cs (1)
33_ => throw ExceptionUtilities.UnexpectedValue(value),
Serialization\SerializedPortableExecutableReference.cs (1)
45throw ExceptionUtilities.Unreachable();
Serialization\SerializerService.cs (3)
79throw ExceptionUtilities.UnexpectedValue(kind); 158throw ExceptionUtilities.UnexpectedValue(kind); 258_ => throw ExceptionUtilities.UnexpectedValue(kind),
Serialization\SerializerService_Reference.cs (6)
52throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 74throw ExceptionUtilities.UnexpectedValue(reference); 96throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 105throw ExceptionUtilities.UnexpectedValue(type); 144throw ExceptionUtilities.UnexpectedValue(reference); 162throw ExceptionUtilities.UnexpectedValue(type);
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
19_ => throw ExceptionUtilities.UnexpectedValue(backgroundAnalysisScope),
Shared\Extensions\ISolutionExtensions.cs (1)
74throw ExceptionUtilities.UnexpectedValue(documentKind);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
224throw ExceptionUtilities.Unreachable();
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (2)
270throw ExceptionUtilities.Unreachable(); 283throw ExceptionUtilities.Unreachable();
Shared\Utilities\SemanticMap.Walker.cs (1)
38throw ExceptionUtilities.Unreachable();
Shared\Utilities\XmlFragmentParser.cs (2)
212throw ExceptionUtilities.Unreachable(); 218throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
649throw ExceptionUtilities.Unreachable(); 659throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (3)
314_ => throw ExceptionUtilities.Unreachable(), 376throw ExceptionUtilities.Unreachable(); 429throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
185throw ExceptionUtilities.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
43throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn] 53throw ExceptionUtilities.Unreachable(); // to satisfy [DoesNotReturn]
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
142if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException) 218if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
51=> throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\InternalUtilities\SingleInitNullable.cs (2)
76return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 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\Collections\MutableIntervalTree`1.Node.cs (1)
57throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (2)
145throw ExceptionUtilities.UnexpectedValue(tokenKind); 270throw ExceptionUtilities.UnexpectedValue(lastChar);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
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)
174throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 244throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 330throw 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\Extensions\SyntaxNodeExtensions.cs (1)
192throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (4)
249throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 342throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 361throw ExceptionUtilities.Unreachable(); 397throw ExceptionUtilities.UnexpectedValue(@catch.Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.OperationTreeAnalysisData.cs (10)
60=> throw ExceptionUtilities.Unreachable(); 63=> throw ExceptionUtilities.Unreachable(); 65=> throw ExceptionUtilities.Unreachable(); 67=> throw ExceptionUtilities.Unreachable(); 69=> throw ExceptionUtilities.Unreachable(); 73=> throw ExceptionUtilities.Unreachable(); 75=> throw ExceptionUtilities.Unreachable(); 77=> throw ExceptionUtilities.Unreachable(); 79=> throw ExceptionUtilities.Unreachable(); 81=> throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
455throw ExceptionUtilities.Unreachable(); 563throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
67throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
181throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
105_commonRoot = startToken.GetCommonRoot(endToken) ?? throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
285throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (2)
70throw ExceptionUtilities.Unreachable(); 112throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
98throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
126throw ExceptionUtilities.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
440throw ExceptionUtilities.UnexpectedValue(lineOperation.Option); 580_ => throw ExceptionUtilities.UnexpectedValue(rule.IndentationOperation), 589_ => throw ExceptionUtilities.UnexpectedValue(rule.SpaceOperation),
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\NamingStyles\Serialization\SymbolSpecification.cs (1)
378_ => throw ExceptionUtilities.Unreachable()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
87throw ExceptionUtilities.UnexpectedValue(typeof(T)); 118serializeValue: value => map.TryGetKey(value, out var key) ? key : throw ExceptionUtilities.UnexpectedValue(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (7)
114throw ExceptionUtilities.UnexpectedValue(b); 118throw ExceptionUtilities.UnexpectedValue(b); 142public string ReadRequiredString() => ReadString() ?? throw ExceptionUtilities.Unreachable(); 215throw ExceptionUtilities.UnexpectedValue(code); 237throw ExceptionUtilities.UnexpectedValue(code); 303throw ExceptionUtilities.UnexpectedValue(marker); 320_ => throw ExceptionUtilities.UnexpectedValue(kind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
249throw 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)
718throw ExceptionUtilities.UnexpectedValue(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (4)
351=> throw ExceptionUtilities.Unreachable(); 354=> throw ExceptionUtilities.Unreachable(); 357=> throw ExceptionUtilities.Unreachable(); 386throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
445throw ExceptionUtilities.Unreachable(); 449throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
176throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
326throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
83throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
165throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskFactoryExtensions.cs (2)
29throw ExceptionUtilities.Unreachable(); 47throw ExceptionUtilities.Unreachable();
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),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
41throw ExceptionUtilities.Unreachable();
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\Interop\SqlStatement.cs (1)
53throw ExceptionUtilities.Unreachable();
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (1)
105_ => throw ExceptionUtilities.UnexpectedValue(this.Table),
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (1)
21public string DatabaseDirectory => Path.GetDirectoryName(DatabaseFile) ?? throw ExceptionUtilities.UnexpectedValue(DatabaseFile);
Workspace\Solution\Document.cs (2)
377throw ExceptionUtilities.Unreachable(); 474throw ExceptionUtilities.Unreachable();
Workspace\Solution\DocumentState.cs (2)
210throw ExceptionUtilities.Unreachable(); 232throw ExceptionUtilities.Unreachable();
Workspace\Solution\Project.cs (1)
426throw ExceptionUtilities.UnexpectedValue(info.Kind);
Workspace\Solution\ProjectState.cs (2)
137throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState))); 292throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)));
Workspace\Solution\ProjectState_Checksum.cs (1)
81throw ExceptionUtilities.Unreachable();
Workspace\Solution\Solution.cs (1)
645throw ExceptionUtilities.Unreachable();
Workspace\Solution\SolutionCompilationState.cs (6)
885_ => throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)) 1251throw ExceptionUtilities.Unreachable(); 1271throw ExceptionUtilities.Unreachable(); 1596throw ExceptionUtilities.Unreachable(); 1721_ => throw ExceptionUtilities.UnexpectedValue(states) 1730_ => throw ExceptionUtilities.UnexpectedValue(states)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (10)
149_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 168_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 269throw ExceptionUtilities.Unreachable(); 296_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()) 352throw ExceptionUtilities.Unreachable(); 397throw ExceptionUtilities.Unreachable(); 467throw ExceptionUtilities.Unreachable(); 729_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 839throw ExceptionUtilities.UnexpectedValue(state.GetType()); 944throw ExceptionUtilities.UnexpectedValue(state.GetType());
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
157throw ExceptionUtilities.Unreachable();
Workspace\Solution\SolutionState_Checksum.cs (1)
162throw ExceptionUtilities.Unreachable();
Workspace\Solution\TextDocumentState_Checksum.cs (1)
48throw ExceptionUtilities.Unreachable();
Workspace\Solution\TextDocumentStates.cs (1)
99=> States.TryGetValue(documentId, out var state) ? state : throw ExceptionUtilities.Unreachable();
Workspace\SourceGeneratorExecution.cs (1)
37_ => throw ExceptionUtilities.UnexpectedValue(value),
Workspace\Workspace.cs (1)
544throw ExceptionUtilities.Unreachable();
Workspace\Workspace_Editor.cs (1)
708throw ExceptionUtilities.Unreachable();
Workspace\WorkspaceDiagnostic.cs (1)
24default: throw ExceptionUtilities.UnexpectedValue(Kind);