100 references to UnexpectedValue
Microsoft.CodeAnalysis.CodeStyle (47)
AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
56
_ => throw ExceptionUtilities.
UnexpectedValue
(precedenceKind),
AbstractFormatEngine.OperationApplier.cs (1)
294
throw ExceptionUtilities.
UnexpectedValue
(operation.Option);
AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (3)
79
throw ExceptionUtilities.
UnexpectedValue
(context.Operation);
119
_ => throw ExceptionUtilities.
UnexpectedValue
(operation),
150
_ => throw ExceptionUtilities.
UnexpectedValue
(operation),
AbstractTriviaFormatter.cs (3)
440
throw ExceptionUtilities.
UnexpectedValue
(lineOperation.Option);
580
_ => throw ExceptionUtilities.
UnexpectedValue
(rule.IndentationOperation),
589
_ => throw ExceptionUtilities.
UnexpectedValue
(rule.SpaceOperation),
BaseIndentationFormattingRule.cs (1)
126
throw ExceptionUtilities.
UnexpectedValue
(operation.Option);
CustomDataFlowAnalysis.cs (3)
249
throw ExceptionUtilities.
UnexpectedValue
(branch.Semantics);
342
throw ExceptionUtilities.
UnexpectedValue
(enclosing.Kind);
397
throw ExceptionUtilities.
UnexpectedValue
(@catch.Kind);
DiagnosticSeverityExtensions.cs (2)
29
_ => throw ExceptionUtilities.
UnexpectedValue
(diagnosticSeverity),
40
_ => throw ExceptionUtilities.
UnexpectedValue
(diagnosticSeverity)
EditorConfigNamingStyleParser_NamingStyle.cs (1)
197
_ => throw ExceptionUtilities.
UnexpectedValue
(capitalization),
EditorConfigNamingStyleParser_SymbolSpec.cs (6)
380
throw ExceptionUtilities.
UnexpectedValue
(symbol);
413
throw ExceptionUtilities.
UnexpectedValue
(symbol);
443
throw ExceptionUtilities.
UnexpectedValue
(symbol);
446
throw ExceptionUtilities.
UnexpectedValue
(symbol);
504
throw ExceptionUtilities.
UnexpectedValue
(accessibility);
557
throw ExceptionUtilities.
UnexpectedValue
(modifier);
EditorConfigValueSerializer.cs (1)
85
throw ExceptionUtilities.
UnexpectedValue
(typeof(T));
FileUtilities.cs (1)
184
throw ExceptionUtilities.
UnexpectedValue
(kind);
ISymbolExtensions_Accessibility.cs (3)
174
throw ExceptionUtilities.
UnexpectedValue
(symbol.Kind);
244
throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility);
330
throw ExceptionUtilities.
UnexpectedValue
(declaredAccessibility);
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
269
throw Roslyn.Utilities.ExceptionUtilities.
UnexpectedValue
(specialType);
ObjectReader.cs (6)
146
throw ExceptionUtilities.
UnexpectedValue
(b);
157
throw ExceptionUtilities.
UnexpectedValue
(b);
309
throw ExceptionUtilities.
UnexpectedValue
(code);
379
throw ExceptionUtilities.
UnexpectedValue
(marker);
406
throw ExceptionUtilities.
UnexpectedValue
(kind);
507
throw ExceptionUtilities.
UnexpectedValue
(kind);
ObjectWriter.cs (2)
237
throw ExceptionUtilities.
UnexpectedValue
(value.GetType());
671
throw ExceptionUtilities.
UnexpectedValue
(kind);
ParenthesesDiagnosticAnalyzersHelper.cs (1)
25
_ => throw ExceptionUtilities.
UnexpectedValue
(precedenceKind),
ReportDiagnosticExtensions.cs (3)
46
throw ExceptionUtilities.
UnexpectedValue
(reportDiagnostic);
80
_ => throw ExceptionUtilities.
UnexpectedValue
(reportDiagnostic)
105
throw ExceptionUtilities.
UnexpectedValue
(reportDiagnostic);
SectionMatcher_TryParseSection.cs (2)
145
throw ExceptionUtilities.
UnexpectedValue
(tokenKind);
270
throw ExceptionUtilities.
UnexpectedValue
(lastChar);
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
159
throw ExceptionUtilities.
UnexpectedValue
(diagnosticId);
SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
228
throw ExceptionUtilities.
UnexpectedValue
(_scope);
SymbolKey.ErrorTypeSymbolKey.cs (1)
139
throw ExceptionUtilities.
UnexpectedValue
(type);
SymbolKey.NamespaceSymbolKey.cs (1)
70
_ => throw ExceptionUtilities.
UnexpectedValue
(containerKind),
SymbolKey.SymbolKeyReader.cs (1)
736
throw ExceptionUtilities.
UnexpectedValue
(kind);
TextEncodingKind.cs (1)
54
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
AbstractConflictMarkerCodeFixProvider.cs (2)
197
throw ExceptionUtilities.
UnexpectedValue
(text[position]);
426
throw ExceptionUtilities.
UnexpectedValue
(equivalenceKey);
CodeGenerationOperatorSymbol.cs (2)
83
throw ExceptionUtilities.
UnexpectedValue
(operatorKind);
119
_ => throw ExceptionUtilities.
UnexpectedValue
(operatorKind),
FixAllHelper.cs (1)
26
_ => throw ExceptionUtilities.
UnexpectedValue
(fixAllScope),
SyntaxGeneratorExtensions_Negate.cs (2)
225
throw ExceptionUtilities.
UnexpectedValue
(pattern.RawKind);
373
_ => throw ExceptionUtilities.
UnexpectedValue
(operationKind),
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
CodeFixVerifierHelper.cs (1)
41
throw ExceptionUtilities.
UnexpectedValue
(property);
NamingStylesTestOptionSets.cs (1)
123
throw ExceptionUtilities.
UnexpectedValue
(symbolOrTypeKind);
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
AnalyzedPattern.cs (1)
189
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
ConvertNamespaceAnalysis.cs (1)
22
_ => throw ExceptionUtilities.
UnexpectedValue
(preference),
CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
72
throw ExceptionUtilities.
UnexpectedValue
(binaryLike);
CSharpBlockFacts.cs (1)
35
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
CSharpFileHeaderHelper.cs (1)
48
throw ExceptionUtilities.
UnexpectedValue
(commentTrivia.Kind());
CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
37
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
275
_ => throw ExceptionUtilities.
UnexpectedValue
(expression.Kind()),
CSharpSyntaxFacts.cs (3)
222
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
1332
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
1433
throw ExceptionUtilities.
UnexpectedValue
(trivia.Kind());
CSharpUsePatternCombinatorsAnalyzer.cs (1)
155
var v => throw ExceptionUtilities.
UnexpectedValue
(v)
SpeculationAnalyzer.cs (1)
239
throw ExceptionUtilities.
UnexpectedValue
(originalLambda.Kind());
TokenBasedFormattingRule.cs (1)
251
_ => throw ExceptionUtilities.
UnexpectedValue
(node.Kind()),
Utilities.cs (1)
37
throw ExceptionUtilities.
UnexpectedValue
(assignmentExpressionKind);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
ConvertNamespaceCodeFixProvider.cs (1)
49
_ => throw ExceptionUtilities.
UnexpectedValue
(diagnostic.Id),
ConvertNamespaceTransform.cs (1)
41
throw ExceptionUtilities.
UnexpectedValue
(baseNamespace.Kind());
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (2)
176
throw ExceptionUtilities.
UnexpectedValue
(value);
299
=> throw ExceptionUtilities.
UnexpectedValue
(node.Kind());
CSharpDeclarationComparer.cs (1)
152
throw ExceptionUtilities.
UnexpectedValue
(x.Kind());
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
87
_ => throw ExceptionUtilities.
UnexpectedValue
(node),
CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
90
throw ExceptionUtilities.
UnexpectedValue
(old);
CSharpSyntaxGeneratorInternal.cs (2)
131
_ => throw ExceptionUtilities.
UnexpectedValue
(refKind),
142
_ => throw ExceptionUtilities.
UnexpectedValue
(negatedKind),
CSharpUseLocalFunctionCodeFixProvider.cs (1)
288
throw ExceptionUtilities.
UnexpectedValue
(anonymousFunction);
CSharpUsePatternCombinatorsCodeFixProvider.cs (2)
50
_ => throw ExceptionUtilities.
UnexpectedValue
(kind)
111
var p => throw ExceptionUtilities.
UnexpectedValue
(p)
ITypeSymbolExtensions.cs (1)
63
_ => throw ExceptionUtilities.
UnexpectedValue
(type.NullableAnnotation),
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
146
_ => throw ExceptionUtilities.
UnexpectedValue
(symbol.Signature.CallingConvention),
MisplacedUsingDirectivesCodeFixProvider.cs (1)
313
_ => throw ExceptionUtilities.
UnexpectedValue
(node)
UseExplicitTypeCodeFixProvider.cs (3)
81
throw ExceptionUtilities.
UnexpectedValue
(declarationContext?.Kind());
191
throw ExceptionUtilities.
UnexpectedValue
(designation.Kind());
226
throw ExceptionUtilities.
UnexpectedValue
(typeSymbol);
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
CSharpRemoveRedundantNullableDirectiveTests.cs (2)
229
_ => throw ExceptionUtilities.
UnexpectedValue
(options),
240
_ => throw ExceptionUtilities.
UnexpectedValue
(options),
CSharpRemoveUnnecessaryNullableDirectiveTests.cs (1)
227
_ => throw ExceptionUtilities.
UnexpectedValue
(options),
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
SpeculationAnalyzer.vb (1)
274
Throw ExceptionUtilities.
UnexpectedValue
(originalLambda.Kind)
SyntaxNodeExtensions.vb (1)
209
Throw ExceptionUtilities.
UnexpectedValue
(node)
TriviaDataFactory.CodeShapeAnalyzer.vb (1)
234
throw ExceptionUtilities.
UnexpectedValue
(trivia.Kind)
VisualBasicFileHeaderHelper.vb (1)
26
Throw ExceptionUtilities.
UnexpectedValue
(commentTrivia.Kind())
VisualBasicRemoveUnnecessaryCastDiagnosticAnalyzer.vb (1)
31
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind)
VisualBasicSyntaxFacts.vb (2)
569
Throw ExceptionUtilities.
UnexpectedValue
(node.Kind())
1407
Throw ExceptionUtilities.
UnexpectedValue
(node)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (1)
160
Throw ExceptionUtilities.
UnexpectedValue
(old)
VisualBasicSyntaxGeneratorInternal.vb (1)
141
Throw ExceptionUtilities.
UnexpectedValue
(negatedKind)