194 references to ExceptionUtilities
Microsoft.CodeAnalysis.Workspaces (194)
Classification\AbstractClassificationService.cs (1)
181
throw
ExceptionUtilities
.UnexpectedValue(type);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
44
throw
ExceptionUtilities
.Unreachable();
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (1)
238
throw
ExceptionUtilities
.Unreachable();
CodeFixesAndRefactorings\DefaultFixAllProviderHelpers.cs (1)
41
_ => throw
ExceptionUtilities
.UnexpectedValue(fixAllContext.Scope),
CodeFixesAndRefactorings\FixAllLogger.cs (3)
59
throw
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)
92
throw
ExceptionUtilities
.UnexpectedValue(kind);
184
throw
ExceptionUtilities
.UnexpectedValue(diagnostic.Location.Kind);
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
31
_ => throw
ExceptionUtilities
.UnexpectedValue(kind)
Diagnostics\DiagnosticData.cs (1)
330
throw
ExceptionUtilities
.Unreachable();
Diagnostics\Extensions.cs (3)
89
static type => type.AssemblyQualifiedName ?? throw
ExceptionUtilities
.UnexpectedValue(type));
178
throw
ExceptionUtilities
.UnexpectedValue(kind);
366
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\FindReferences\StreamingFindReferencesProgress.cs (1)
53
throw
ExceptionUtilities
.Unreachable();
FindSymbols\SearchQuery.cs (1)
50
throw
ExceptionUtilities
.UnexpectedValue(kind);
FindSymbols\StreamingProgressCollector.cs (1)
67
throw
ExceptionUtilities
.Unreachable();
Options\OptionSet.cs (1)
84
=> throw
ExceptionUtilities
.Unreachable();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
167
_ => throw
ExceptionUtilities
.Unreachable(),
Rename\ConflictEngine\ConflictResolver.cs (1)
321
throw
ExceptionUtilities
.Unreachable();
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
259
throw
ExceptionUtilities
.Unreachable();
468
throw
ExceptionUtilities
.Unreachable();
650
throw
ExceptionUtilities
.Unreachable();
692
throw
ExceptionUtilities
.Unreachable();
727
throw
ExceptionUtilities
.Unreachable();
771
throw
ExceptionUtilities
.Unreachable();
855
throw
ExceptionUtilities
.Unreachable();
Serialization\SerializationExtensions.cs (1)
33
_ => throw
ExceptionUtilities
.UnexpectedValue(value),
Serialization\SerializedPortableExecutableReference.cs (1)
45
throw
ExceptionUtilities
.Unreachable();
Serialization\SerializerService.cs (3)
79
throw
ExceptionUtilities
.UnexpectedValue(kind);
158
throw
ExceptionUtilities
.UnexpectedValue(kind);
258
_ => throw
ExceptionUtilities
.UnexpectedValue(kind),
Serialization\SerializerService_Reference.cs (6)
51
throw
ExceptionUtilities
.UnexpectedValue(reference.GetType());
82
throw
ExceptionUtilities
.UnexpectedValue(reference);
104
throw
ExceptionUtilities
.UnexpectedValue(reference.GetType());
113
throw
ExceptionUtilities
.UnexpectedValue(type);
152
throw
ExceptionUtilities
.UnexpectedValue(reference);
172
throw
ExceptionUtilities
.UnexpectedValue(type);
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (1)
19
_ => throw
ExceptionUtilities
.UnexpectedValue(backgroundAnalysisScope),
Shared\Extensions\ISolutionExtensions.cs (1)
74
throw
ExceptionUtilities
.UnexpectedValue(documentKind);
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
224
throw
ExceptionUtilities
.Unreachable();
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (2)
270
throw
ExceptionUtilities
.Unreachable();
283
throw
ExceptionUtilities
.Unreachable();
Shared\Utilities\SemanticMap.Walker.cs (1)
38
throw
ExceptionUtilities
.Unreachable();
Shared\Utilities\XmlFragmentParser.cs (2)
212
throw
ExceptionUtilities
.Unreachable();
218
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
649
throw
ExceptionUtilities
.Unreachable();
659
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (3)
314
_ => throw
ExceptionUtilities
.Unreachable(),
376
throw
ExceptionUtilities
.Unreachable();
429
throw
ExceptionUtilities
.Unreachable();
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
185
throw
ExceptionUtilities
.UnexpectedValue(kind);
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
43
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
53
throw
ExceptionUtilities
.Unreachable(); // to satisfy [DoesNotReturn]
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (2)
142
if (
ExceptionUtilities
.IsCurrentOperationBeingCancelled(exception, contextCancellationToken) || exception is OperationCanceledIgnoringCallerTokenException)
218
if (
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)
76
return ReadIfInitialized() ?? throw
ExceptionUtilities
.Unreachable();
79
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 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)
57
throw
ExceptionUtilities
.Unreachable();
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)
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)
168
throw
ExceptionUtilities
.UnexpectedValue(symbol.Kind);
238
throw
ExceptionUtilities
.UnexpectedValue(declaredAccessibility);
324
throw
ExceptionUtilities
.UnexpectedValue(declaredAccessibility);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (3)
46
throw
ExceptionUtilities
.UnexpectedValue(reportDiagnostic);
80
_ => throw
ExceptionUtilities
.UnexpectedValue(reportDiagnostic)
94
_ => throw
ExceptionUtilities
.UnexpectedValue(reportDiagnostic),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
192
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (4)
249
throw
ExceptionUtilities
.UnexpectedValue(branch.Semantics);
342
throw
ExceptionUtilities
.UnexpectedValue(enclosing.Kind);
361
throw
ExceptionUtilities
.Unreachable();
397
throw
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)
455
throw
ExceptionUtilities
.Unreachable();
563
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageResult.cs (1)
67
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
181
throw
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)
285
throw
ExceptionUtilities
.UnexpectedValue(operation.Option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (2)
70
throw
ExceptionUtilities
.Unreachable();
112
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
98
throw
ExceptionUtilities
.Unreachable();
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)
440
throw
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)
375
throw
ExceptionUtilities
.UnexpectedValue(symbol);
408
throw
ExceptionUtilities
.UnexpectedValue(symbol);
438
throw
ExceptionUtilities
.UnexpectedValue(symbol);
441
throw
ExceptionUtilities
.UnexpectedValue(symbol);
499
throw
ExceptionUtilities
.UnexpectedValue(accessibility);
552
throw
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)
87
throw
ExceptionUtilities
.UnexpectedValue(typeof(T));
118
serializeValue: value => map.TryGetKey(value, out var key) ? key : throw
ExceptionUtilities
.UnexpectedValue(value));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (7)
114
throw
ExceptionUtilities
.UnexpectedValue(b);
118
throw
ExceptionUtilities
.UnexpectedValue(b);
142
public string ReadRequiredString() => ReadString() ?? throw
ExceptionUtilities
.Unreachable();
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)
249
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)
139
throw
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)
719
throw
ExceptionUtilities
.UnexpectedValue(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (4)
357
=> throw
ExceptionUtilities
.Unreachable();
360
=> throw
ExceptionUtilities
.Unreachable();
363
=> throw
ExceptionUtilities
.Unreachable();
392
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
445
throw
ExceptionUtilities
.Unreachable();
449
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
176
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
326
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
83
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
165
throw
ExceptionUtilities
.Unreachable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskFactoryExtensions.cs (2)
29
throw
ExceptionUtilities
.Unreachable();
47
throw
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)
78
throw
ExceptionUtilities
.UnexpectedValue(operatorKind);
114
_ => throw
ExceptionUtilities
.UnexpectedValue(operatorKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
64
throw
ExceptionUtilities
.UnexpectedValue(strategy);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
253
throw
ExceptionUtilities
.UnexpectedValue(pattern.RawKind);
401
_ => throw
ExceptionUtilities
.UnexpectedValue(operationKind),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (1)
41
throw
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)
53
throw
ExceptionUtilities
.Unreachable();
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\Document.cs (2)
377
throw
ExceptionUtilities
.Unreachable();
474
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\DocumentState.cs (2)
210
throw
ExceptionUtilities
.Unreachable();
232
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\Project.cs (1)
431
throw
ExceptionUtilities
.UnexpectedValue(info.Kind);
Workspace\Solution\ProjectState.cs (2)
142
throw
ExceptionUtilities
.UnexpectedValue(typeof(TDocumentState)));
297
throw
ExceptionUtilities
.UnexpectedValue(typeof(TDocumentState)));
Workspace\Solution\ProjectState_Checksum.cs (1)
81
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\Solution.cs (1)
657
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\SolutionCompilationState.cs (6)
874
_ => throw
ExceptionUtilities
.UnexpectedValue(typeof(TDocumentState))
1240
throw
ExceptionUtilities
.Unreachable();
1260
throw
ExceptionUtilities
.Unreachable();
1590
throw
ExceptionUtilities
.Unreachable();
1715
_ => throw
ExceptionUtilities
.UnexpectedValue(states)
1724
_ => throw
ExceptionUtilities
.UnexpectedValue(states)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (10)
149
_ => throw
ExceptionUtilities
.UnexpectedValue(state.GetType()),
168
_ => throw
ExceptionUtilities
.UnexpectedValue(state.GetType()),
269
throw
ExceptionUtilities
.Unreachable();
296
_ => throw
ExceptionUtilities
.UnexpectedValue(state.GetType())
352
throw
ExceptionUtilities
.Unreachable();
397
throw
ExceptionUtilities
.Unreachable();
467
throw
ExceptionUtilities
.Unreachable();
729
_ => throw
ExceptionUtilities
.UnexpectedValue(state.GetType()),
838
throw
ExceptionUtilities
.UnexpectedValue(state.GetType());
943
throw
ExceptionUtilities
.UnexpectedValue(state.GetType());
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
157
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\SolutionState_Checksum.cs (1)
162
throw
ExceptionUtilities
.Unreachable();
Workspace\Solution\TextDocumentState_Checksum.cs (1)
48
throw
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)
544
throw
ExceptionUtilities
.Unreachable();
Workspace\Workspace_Editor.cs (1)
708
throw
ExceptionUtilities
.Unreachable();
Workspace\WorkspaceDiagnostic.cs (1)
24
default: throw
ExceptionUtilities
.UnexpectedValue(Kind);