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