113 references to SwitchExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (1)
667case SyntaxKind.SwitchExpression:
Compilation\MemberSemanticModel.cs (1)
319else if (kind == SyntaxKind.SwitchExpression)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
507Debug.Assert(awaitSyntaxOpt.IsKind(SyntaxKind.AwaitExpression) || awaitSyntaxOpt.IsKind(SyntaxKind.SwitchExpression));
Parser\LanguageParser.cs (3)
10116case SyntaxKind.SwitchExpression: 10398opKind = SyntaxKind.SwitchExpression; 10531else if (opKind == SyntaxKind.SwitchExpression)
Syntax\LambdaUtilities.cs (1)
427case SyntaxKind.SwitchExpression:
Syntax\SyntaxNodeExtensions.cs (1)
95case SyntaxKind.SwitchExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
ExpressionSyntaxExtensions.cs (1)
861case SyntaxKind.SwitchExpression:
FormattingHelpers.cs (1)
340=> token.Kind() == SyntaxKind.CommaToken && token.Parent.IsKind(SyntaxKind.SwitchExpression);
IndentBlockFormattingRule.cs (1)
221if (node.IsLambdaBodyBlock() || node.IsAnonymousMethodBlock() || node.IsKind(SyntaxKind.PropertyPatternClause) || node.IsKind(SyntaxKind.SwitchExpression))
NewLineUserSettingFormattingRule.cs (2)
197if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.SwitchExpression)) 419if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.SwitchExpression))
SuppressFormattingRule.cs (1)
87if (node.IsKind(SyntaxKind.SwitchExpression))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1377if (leftToken.Kind() is SyntaxKind.OpenBraceToken or SyntaxKind.CommaToken && leftToken.Parent.IsKind(SyntaxKind.SwitchExpression))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
202SyntaxKind.SwitchExpression)
Microsoft.CodeAnalysis.CSharp.Features (6)
EditAndContinue\BreakpointSpans.cs (1)
196case SyntaxKind.SwitchExpression when
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
426case SyntaxKind.SwitchExpression: 890case SyntaxKind.SwitchExpression: 1893case SyntaxKind.SwitchExpression:
EditAndContinue\SyntaxComparer.cs (1)
433case SyntaxKind.SwitchExpression:
LambdaUtilities.cs (1)
427case SyntaxKind.SwitchExpression:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (82)
Parsing\FunctionPointerTests.cs (1)
2672N(SyntaxKind.SwitchExpression);
Parsing\LambdaAttributeParsingTests.cs (5)
1667N(SyntaxKind.SwitchExpression); 1707N(SyntaxKind.SwitchExpression); 2014N(SyntaxKind.SwitchExpression); 2069N(SyntaxKind.SwitchExpression); 2128N(SyntaxKind.SwitchExpression);
Parsing\LambdaParameterParsingTests.cs (2)
3579N(SyntaxKind.SwitchExpression); 3831N(SyntaxKind.SwitchExpression);
Parsing\LambdaReturnTypeParsingTests.cs (7)
3374N(SyntaxKind.SwitchExpression); 3430N(SyntaxKind.SwitchExpression); 4205N(SyntaxKind.SwitchExpression); 4266N(SyntaxKind.SwitchExpression); 4334N(SyntaxKind.SwitchExpression); 4403N(SyntaxKind.SwitchExpression); 4501N(SyntaxKind.SwitchExpression);
Parsing\PatternParsingTests.cs (49)
2474N(SyntaxKind.SwitchExpression); 2511N(SyntaxKind.SwitchExpression); 2585N(SyntaxKind.SwitchExpression); 2667N(SyntaxKind.SwitchExpression); 5455N(SyntaxKind.SwitchExpression); 5499N(SyntaxKind.SwitchExpression); 5753N(SyntaxKind.SwitchExpression); 5997N(SyntaxKind.SwitchExpression); 6740N(SyntaxKind.SwitchExpression); 6783N(SyntaxKind.SwitchExpression); 7013N(SyntaxKind.SwitchExpression); 7485N(SyntaxKind.SwitchExpression); 7487N(SyntaxKind.SwitchExpression); 7547N(SyntaxKind.SwitchExpression); 7574N(SyntaxKind.SwitchExpression); 7614N(SyntaxKind.SwitchExpression); 7656N(SyntaxKind.SwitchExpression); 7696N(SyntaxKind.SwitchExpression); 7721N(SyntaxKind.SwitchExpression); 7739N(SyntaxKind.SwitchExpression); 7760N(SyntaxKind.SwitchExpression); 7786N(SyntaxKind.SwitchExpression); 7816N(SyntaxKind.SwitchExpression); 7840N(SyntaxKind.SwitchExpression); 7860N(SyntaxKind.SwitchExpression); 7880N(SyntaxKind.SwitchExpression); 7900N(SyntaxKind.SwitchExpression); 7924N(SyntaxKind.SwitchExpression); 7959N(SyntaxKind.SwitchExpression); 8007N(SyntaxKind.SwitchExpression); 8040N(SyntaxKind.SwitchExpression); 8081N(SyntaxKind.SwitchExpression); 8133N(SyntaxKind.SwitchExpression); 8565N(SyntaxKind.SwitchExpression); 8735N(SyntaxKind.SwitchExpression); 8909N(SyntaxKind.SwitchExpression); 9068N(SyntaxKind.SwitchExpression); 9344N(SyntaxKind.SwitchExpression); 9512N(SyntaxKind.SwitchExpression); 9570N(SyntaxKind.SwitchExpression); 9636N(SyntaxKind.SwitchExpression); 9698N(SyntaxKind.SwitchExpression); 11453N(SyntaxKind.SwitchExpression); 12093N(SyntaxKind.SwitchExpression); 12174N(SyntaxKind.SwitchExpression); 12269N(SyntaxKind.SwitchExpression); 12375N(SyntaxKind.SwitchExpression); 12470N(SyntaxKind.SwitchExpression); 12575N(SyntaxKind.SwitchExpression);
Parsing\RecordParsing.cs (2)
1570N(SyntaxKind.SwitchExpression); 1784N(SyntaxKind.SwitchExpression);
Parsing\StatementAttributeParsingTests.cs (1)
6241N(SyntaxKind.SwitchExpression);
Parsing\SwitchExpressionParsingTests.cs (15)
32N(SyntaxKind.SwitchExpression); 99N(SyntaxKind.SwitchExpression); 166N(SyntaxKind.SwitchExpression); 239N(SyntaxKind.SwitchExpression); 337N(SyntaxKind.SwitchExpression); 473N(SyntaxKind.SwitchExpression); 540N(SyntaxKind.SwitchExpression); 598N(SyntaxKind.SwitchExpression); 662N(SyntaxKind.SwitchExpression); 720N(SyntaxKind.SwitchExpression); 790N(SyntaxKind.SwitchExpression); 872N(SyntaxKind.SwitchExpression); 965N(SyntaxKind.SwitchExpression); 1025N(SyntaxKind.SwitchExpression); 1095N(SyntaxKind.SwitchExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\ClassificationHelpers.cs (1)
132case SyntaxKind.SwitchExpression:
FormattingHelpers.cs (1)
340=> token.Kind() == SyntaxKind.CommaToken && token.Parent.IsKind(SyntaxKind.SwitchExpression);
IndentBlockFormattingRule.cs (1)
221if (node.IsLambdaBodyBlock() || node.IsAnonymousMethodBlock() || node.IsKind(SyntaxKind.PropertyPatternClause) || node.IsKind(SyntaxKind.SwitchExpression))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
861case SyntaxKind.SwitchExpression:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1377if (leftToken.Kind() is SyntaxKind.OpenBraceToken or SyntaxKind.CommaToken && leftToken.Parent.IsKind(SyntaxKind.SwitchExpression))
NewLineUserSettingFormattingRule.cs (2)
197if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.SwitchExpression)) 419if (currentToken.IsKind(SyntaxKind.OpenBraceToken) && currentToken.Parent.IsKind(SyntaxKind.SwitchExpression))
SuppressFormattingRule.cs (1)
87if (node.IsKind(SyntaxKind.SwitchExpression))
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1209case CSharp.SyntaxKind.SwitchExpression: