187 references to ExceptionUtilities
Microsoft.CodeAnalysis.Workspaces (187)
Classification\AbstractClassificationService.cs (1)
180throw ExceptionUtilities.UnexpectedValue(type);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
43throw ExceptionUtilities.Unreachable();
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (1)
238throw ExceptionUtilities.Unreachable();
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
41_ => throw ExceptionUtilities.UnexpectedValue(fixAllContext.Scope),
CodeFixesAndRefactorings\FixAllLogger.cs (3)
58throw 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)
91throw ExceptionUtilities.UnexpectedValue(kind); 178throw ExceptionUtilities.UnexpectedValue(diagnostic.Location.Kind);
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
28_ => throw ExceptionUtilities.UnexpectedValue(kind)
Diagnostics\DiagnosticData.cs (1)
341throw ExceptionUtilities.Unreachable();
Diagnostics\Extensions.cs (3)
94static type => type.AssemblyQualifiedName ?? throw ExceptionUtilities.UnexpectedValue(type)); 181throw ExceptionUtilities.UnexpectedValue(kind); 364throw 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)
52throw ExceptionUtilities.Unreachable();
FindSymbols\SearchQuery.cs (1)
50throw ExceptionUtilities.UnexpectedValue(kind);
FindSymbols\StreamingProgressCollector.cs (1)
65throw ExceptionUtilities.Unreachable();
Options\OptionSet.cs (1)
83=> throw ExceptionUtilities.Unreachable();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
167_ => throw ExceptionUtilities.Unreachable(),
Rename\ConflictEngine\ConflictResolver.cs (1)
320throw ExceptionUtilities.Unreachable();
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
255throw ExceptionUtilities.Unreachable(); 464throw ExceptionUtilities.Unreachable(); 647throw ExceptionUtilities.Unreachable(); 689throw ExceptionUtilities.Unreachable(); 724throw ExceptionUtilities.Unreachable(); 768throw ExceptionUtilities.Unreachable(); 852throw ExceptionUtilities.Unreachable();
Serialization\SerializationExtensions.cs (1)
33_ => throw ExceptionUtilities.UnexpectedValue(value),
Serialization\SerializedPortableExecutableReference.cs (1)
45throw ExceptionUtilities.Unreachable();
Serialization\SerializerService_Reference.cs (6)
52throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 89throw ExceptionUtilities.UnexpectedValue(reference); 111throw ExceptionUtilities.UnexpectedValue(reference.GetType()); 120throw ExceptionUtilities.UnexpectedValue(type); 159throw ExceptionUtilities.UnexpectedValue(reference); 179throw ExceptionUtilities.UnexpectedValue(type);
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
18_ => throw ExceptionUtilities.UnexpectedValue(backgroundAnalysisScope),
Shared\Extensions\ISolutionExtensions.cs (1)
74throw ExceptionUtilities.UnexpectedValue(documentKind);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
218throw ExceptionUtilities.Unreachable();
Shared\Utilities\SemanticMap.Walker.cs (1)
37throw ExceptionUtilities.Unreachable();
Shared\Utilities\XmlFragmentParser.cs (2)
211throw ExceptionUtilities.Unreachable(); 217throw ExceptionUtilities.Unreachable();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
720throw ExceptionUtilities.Unreachable(); 730throw 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)
186throw 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)
140if (ExceptionUtilities.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException) 216if (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)
77return ReadIfInitialized() ?? throw ExceptionUtilities.Unreachable(); 80throw ExceptionUtilities.UnexpectedValue(unexpectedValue);
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
182_ => throw ExceptionUtilities.UnexpectedValue(kind)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (2)
270throw 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\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
277throw ExceptionUtilities.Unreachable(); 290throw 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)
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)
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)
167throw ExceptionUtilities.UnexpectedValue(symbol.Kind); 237throw ExceptionUtilities.UnexpectedValue(declaredAccessibility); 323throw ExceptionUtilities.UnexpectedValue(declaredAccessibility);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
45throw ExceptionUtilities.UnexpectedValue(reportDiagnostic); 79_ => throw ExceptionUtilities.UnexpectedValue(reportDiagnostic) 93_ => 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)
248throw ExceptionUtilities.UnexpectedValue(branch.Semantics); 341throw ExceptionUtilities.UnexpectedValue(enclosing.Kind); 360throw ExceptionUtilities.Unreachable(); 396throw 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)
454throw ExceptionUtilities.Unreachable(); 562throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
65throw 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)
69throw ExceptionUtilities.Unreachable(); 111throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
95throw 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)
439throw 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)
324throw ExceptionUtilities.UnexpectedValue(symbol); 357throw ExceptionUtilities.UnexpectedValue(symbol); 387throw ExceptionUtilities.UnexpectedValue(symbol); 390throw ExceptionUtilities.UnexpectedValue(symbol); 448throw ExceptionUtilities.UnexpectedValue(accessibility); 501throw 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 (3)
72throw ExceptionUtilities.UnexpectedValue(typeof(T)); 89throw ExceptionUtilities.UnexpectedValue(typeof(T)); 120serializeValue: 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)
265throw 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)
138throw 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)
719throw 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(); 389throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
446throw ExceptionUtilities.Unreachable(); 450throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
349throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
83throw ExceptionUtilities.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (1)
25_ => throw ExceptionUtilities.UnexpectedValue(fixAllScope),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (2)
75throw ExceptionUtilities.UnexpectedValue(operatorKind); 111_ => throw ExceptionUtilities.UnexpectedValue(operatorKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
68throw ExceptionUtilities.UnexpectedValue(strategy);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
251throw ExceptionUtilities.UnexpectedValue(pattern.RawKind); 399_ => throw ExceptionUtilities.UnexpectedValue(operationKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
41throw 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)
52throw 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)
376throw ExceptionUtilities.Unreachable(); 512throw ExceptionUtilities.Unreachable();
Workspace\Solution\DocumentState.cs (2)
208throw ExceptionUtilities.Unreachable(); 230throw ExceptionUtilities.Unreachable();
Workspace\Solution\Project.cs (1)
430throw ExceptionUtilities.UnexpectedValue(info.Kind);
Workspace\Solution\ProjectState.cs (2)
135throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState))); 322throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)));
Workspace\Solution\ProjectState_Checksum.cs (1)
81throw ExceptionUtilities.Unreachable();
Workspace\Solution\Solution.cs (1)
665throw ExceptionUtilities.Unreachable();
Workspace\Solution\SolutionCompilationState.cs (6)
912_ => throw ExceptionUtilities.UnexpectedValue(typeof(TDocumentState)) 1318throw ExceptionUtilities.Unreachable(); 1338throw ExceptionUtilities.Unreachable(); 1713throw ExceptionUtilities.Unreachable(); 1838_ => throw ExceptionUtilities.UnexpectedValue(states) 1847_ => throw ExceptionUtilities.UnexpectedValue(states)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (10)
153_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 172_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 273throw ExceptionUtilities.Unreachable(); 300_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()) 356throw ExceptionUtilities.Unreachable(); 401throw ExceptionUtilities.Unreachable(); 471throw ExceptionUtilities.Unreachable(); 736_ => throw ExceptionUtilities.UnexpectedValue(state.GetType()), 848throw ExceptionUtilities.UnexpectedValue(state.GetType()); 953throw ExceptionUtilities.UnexpectedValue(state.GetType());
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
148throw ExceptionUtilities.Unreachable();
Workspace\Solution\SolutionState_Checksum.cs (1)
151throw ExceptionUtilities.Unreachable();
Workspace\Solution\TextDocumentState_Checksum.cs (1)
48throw ExceptionUtilities.Unreachable();
Workspace\Solution\TextDocumentStates.cs (1)
100=> States.TryGetValue(documentId, out var state) ? state : throw ExceptionUtilities.Unreachable();
Workspace\SourceGeneratorExecution.cs (1)
34_ => throw ExceptionUtilities.UnexpectedValue(value),
Workspace\Workspace.cs (1)
552throw ExceptionUtilities.Unreachable();
Workspace\Workspace_Editor.cs (1)
708throw ExceptionUtilities.Unreachable();
Workspace\WorkspaceDiagnostic.cs (1)
20default: throw ExceptionUtilities.UnexpectedValue(Kind);