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