215 references to SwitchExpressionArm
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Expressions.cs (1)
907
case SyntaxKind.
SwitchExpressionArm
:
Binder\ExpressionVariableFinder.cs (1)
50
case SyntaxKind.
SwitchExpressionArm
:
CodeGen\EmitStatement.cs (2)
802
(local.ScopeDesignatorOpt?.Kind() == SyntaxKind.SwitchSection || local.ScopeDesignatorOpt?.Kind() == SyntaxKind.
SwitchExpressionArm
));
1832
(local.ScopeDesignatorOpt?.Kind() is SyntaxKind.SwitchSection or SyntaxKind.
SwitchExpressionArm
)))
Compilation\MemberSemanticModel.cs (1)
333
else if (kind == SyntaxKind.
SwitchExpressionArm
)
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
83
local.ScopeDesignatorOpt?.Kind() == SyntaxKind.
SwitchExpressionArm
))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
758
local.ScopeDesignatorOpt?.Kind() == SyntaxKind.
SwitchExpressionArm
));
Symbols\Source\SourceLocalSymbol.cs (5)
170
nodeToBind.Kind() == SyntaxKind.
SwitchExpressionArm
||
177
Debug.Assert(!(nodeToBind.Kind() == SyntaxKind.
SwitchExpressionArm
) || nodeBinder is SwitchExpressionArmBinder);
747
nodeToBind.Kind() == SyntaxKind.
SwitchExpressionArm
||
750
Debug.Assert(!(nodeToBind.Kind() == SyntaxKind.
SwitchExpressionArm
) || nodeBinder is SwitchExpressionArmBinder);
797
case SyntaxKind.
SwitchExpressionArm
:
Syntax\SyntaxNodeExtensions.cs (1)
96
case SyntaxKind.
SwitchExpressionArm
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
591
case SyntaxKind.
SwitchExpressionArm
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
337
=> token.Kind() == SyntaxKind.ColonToken && token.Parent.IsKind(SyntaxKind.
SwitchExpressionArm
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
154
&& recursivePattern.IsParentKind(SyntaxKind.
SwitchExpressionArm
, out SwitchExpressionArmSyntax? switchExpressionArm)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
80
if (node.IsKind(SyntaxKind.
SwitchExpressionArm
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
406
SyntaxKind.ExpressionColon or SyntaxKind.
SwitchExpressionArm
))
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\BreakpointSpans.cs (2)
295
case SyntaxKind.
SwitchExpressionArm
:
953
case SyntaxKind.
SwitchExpressionArm
:
EditAndContinue\SyntaxComparer.cs (1)
437
case SyntaxKind.
SwitchExpressionArm
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (189)
Parsing\CollectionExpressionParsingTests.cs (3)
1279
N(SyntaxKind.
SwitchExpressionArm
);
1346
N(SyntaxKind.
SwitchExpressionArm
);
1437
N(SyntaxKind.
SwitchExpressionArm
);
Parsing\FunctionPointerTests.cs (2)
2680
N(SyntaxKind.
SwitchExpressionArm
);
2713
N(SyntaxKind.
SwitchExpressionArm
);
Parsing\LambdaAttributeParsingTests.cs (5)
1710
N(SyntaxKind.
SwitchExpressionArm
);
1748
N(SyntaxKind.
SwitchExpressionArm
);
2007
N(SyntaxKind.
SwitchExpressionArm
);
2062
N(SyntaxKind.
SwitchExpressionArm
);
2121
N(SyntaxKind.
SwitchExpressionArm
);
Parsing\LambdaParameterParsingTests.cs (6)
3675
N(SyntaxKind.
SwitchExpressionArm
);
3696
N(SyntaxKind.
SwitchExpressionArm
);
3712
N(SyntaxKind.
SwitchExpressionArm
);
3927
N(SyntaxKind.
SwitchExpressionArm
);
3951
N(SyntaxKind.
SwitchExpressionArm
);
3975
N(SyntaxKind.
SwitchExpressionArm
);
Parsing\LambdaReturnTypeParsingTests.cs (12)
3455
N(SyntaxKind.
SwitchExpressionArm
);
3511
N(SyntaxKind.
SwitchExpressionArm
);
4286
N(SyntaxKind.
SwitchExpressionArm
);
4307
N(SyntaxKind.
SwitchExpressionArm
);
4347
N(SyntaxKind.
SwitchExpressionArm
);
4368
N(SyntaxKind.
SwitchExpressionArm
);
4415
N(SyntaxKind.
SwitchExpressionArm
);
4450
N(SyntaxKind.
SwitchExpressionArm
);
4484
N(SyntaxKind.
SwitchExpressionArm
);
4522
N(SyntaxKind.
SwitchExpressionArm
);
4582
N(SyntaxKind.
SwitchExpressionArm
);
4628
N(SyntaxKind.
SwitchExpressionArm
);
Parsing\PatternParsingTests.cs (72)
2507
N(SyntaxKind.
SwitchExpressionArm
);
2523
N(SyntaxKind.
SwitchExpressionArm
);
2581
N(SyntaxKind.
SwitchExpressionArm
);
2663
N(SyntaxKind.
SwitchExpressionArm
);
5429
N(SyntaxKind.
SwitchExpressionArm
);
5468
N(SyntaxKind.
SwitchExpressionArm
);
5722
N(SyntaxKind.
SwitchExpressionArm
);
5740
N(SyntaxKind.
SwitchExpressionArm
);
5757
N(SyntaxKind.
SwitchExpressionArm
);
5779
N(SyntaxKind.
SwitchExpressionArm
);
5810
N(SyntaxKind.
SwitchExpressionArm
);
5841
N(SyntaxKind.
SwitchExpressionArm
);
5873
N(SyntaxKind.
SwitchExpressionArm
);
5908
N(SyntaxKind.
SwitchExpressionArm
);
5966
N(SyntaxKind.
SwitchExpressionArm
);
6003
N(SyntaxKind.
SwitchExpressionArm
);
6039
N(SyntaxKind.
SwitchExpressionArm
);
6080
N(SyntaxKind.
SwitchExpressionArm
);
6130
N(SyntaxKind.
SwitchExpressionArm
);
6180
N(SyntaxKind.
SwitchExpressionArm
);
6231
N(SyntaxKind.
SwitchExpressionArm
);
6285
N(SyntaxKind.
SwitchExpressionArm
);
6709
N(SyntaxKind.
SwitchExpressionArm
);
6752
M(SyntaxKind.
SwitchExpressionArm
);
6982
N(SyntaxKind.
SwitchExpressionArm
);
6998
M(SyntaxKind.
SwitchExpressionArm
);
7456
N(SyntaxKind.
SwitchExpressionArm
);
7475
N(SyntaxKind.
SwitchExpressionArm
);
7516
N(SyntaxKind.
SwitchExpressionArm
);
7543
N(SyntaxKind.
SwitchExpressionArm
);
7583
N(SyntaxKind.
SwitchExpressionArm
);
7625
N(SyntaxKind.
SwitchExpressionArm
);
7928
M(SyntaxKind.
SwitchExpressionArm
);
7976
M(SyntaxKind.
SwitchExpressionArm
);
8009
N(SyntaxKind.
SwitchExpressionArm
);
8050
N(SyntaxKind.
SwitchExpressionArm
);
8066
N(SyntaxKind.
SwitchExpressionArm
);
8102
N(SyntaxKind.
SwitchExpressionArm
);
8118
N(SyntaxKind.
SwitchExpressionArm
);
8534
N(SyntaxKind.
SwitchExpressionArm
);
8561
N(SyntaxKind.
SwitchExpressionArm
);
8588
N(SyntaxKind.
SwitchExpressionArm
);
8608
N(SyntaxKind.
SwitchExpressionArm
);
8704
N(SyntaxKind.
SwitchExpressionArm
);
8721
N(SyntaxKind.
SwitchExpressionArm
);
8738
N(SyntaxKind.
SwitchExpressionArm
);
8755
N(SyntaxKind.
SwitchExpressionArm
);
8772
N(SyntaxKind.
SwitchExpressionArm
);
8789
N(SyntaxKind.
SwitchExpressionArm
);
8878
N(SyntaxKind.
SwitchExpressionArm
);
8903
N(SyntaxKind.
SwitchExpressionArm
);
8919
N(SyntaxKind.
SwitchExpressionArm
);
8944
N(SyntaxKind.
SwitchExpressionArm
);
8960
N(SyntaxKind.
SwitchExpressionArm
);
8985
N(SyntaxKind.
SwitchExpressionArm
);
9037
N(SyntaxKind.
SwitchExpressionArm
);
9062
N(SyntaxKind.
SwitchExpressionArm
);
9087
N(SyntaxKind.
SwitchExpressionArm
);
9313
N(SyntaxKind.
SwitchExpressionArm
);
9481
N(SyntaxKind.
SwitchExpressionArm
);
9539
N(SyntaxKind.
SwitchExpressionArm
);
9605
N(SyntaxKind.
SwitchExpressionArm
);
9667
N(SyntaxKind.
SwitchExpressionArm
);
9683
N(SyntaxKind.
SwitchExpressionArm
);
11422
N(SyntaxKind.
SwitchExpressionArm
);
12062
N(SyntaxKind.
SwitchExpressionArm
);
12087
N(SyntaxKind.
SwitchExpressionArm
);
12143
N(SyntaxKind.
SwitchExpressionArm
);
12238
N(SyntaxKind.
SwitchExpressionArm
);
12344
N(SyntaxKind.
SwitchExpressionArm
);
12439
N(SyntaxKind.
SwitchExpressionArm
);
12544
N(SyntaxKind.
SwitchExpressionArm
);
Parsing\SwitchExpressionParsingTests.cs (89)
41
N(SyntaxKind.
SwitchExpressionArm
);
57
N(SyntaxKind.
SwitchExpressionArm
);
108
N(SyntaxKind.
SwitchExpressionArm
);
124
N(SyntaxKind.
SwitchExpressionArm
);
175
N(SyntaxKind.
SwitchExpressionArm
);
191
N(SyntaxKind.
SwitchExpressionArm
);
248
N(SyntaxKind.
SwitchExpressionArm
);
264
N(SyntaxKind.
SwitchExpressionArm
);
346
N(SyntaxKind.
SwitchExpressionArm
);
524
M(SyntaxKind.
SwitchExpressionArm
);
609
M(SyntaxKind.
SwitchExpressionArm
);
698
M(SyntaxKind.
SwitchExpressionArm
);
781
N(SyntaxKind.
SwitchExpressionArm
);
860
N(SyntaxKind.
SwitchExpressionArm
);
948
N(SyntaxKind.
SwitchExpressionArm
);
964
N(SyntaxKind.
SwitchExpressionArm
);
1043
N(SyntaxKind.
SwitchExpressionArm
);
1125
N(SyntaxKind.
SwitchExpressionArm
);
1204
N(SyntaxKind.
SwitchExpressionArm
);
1298
N(SyntaxKind.
SwitchExpressionArm
);
1314
M(SyntaxKind.
SwitchExpressionArm
);
1405
N(SyntaxKind.
SwitchExpressionArm
);
1421
N(SyntaxKind.
SwitchExpressionArm
);
1500
N(SyntaxKind.
SwitchExpressionArm
);
1579
N(SyntaxKind.
SwitchExpressionArm
);
1662
N(SyntaxKind.
SwitchExpressionArm
);
1739
N(SyntaxKind.
SwitchExpressionArm
);
1813
N(SyntaxKind.
SwitchExpressionArm
);
1889
N(SyntaxKind.
SwitchExpressionArm
);
1965
N(SyntaxKind.
SwitchExpressionArm
);
2045
N(SyntaxKind.
SwitchExpressionArm
);
2131
N(SyntaxKind.
SwitchExpressionArm
);
2147
N(SyntaxKind.
SwitchExpressionArm
);
2198
N(SyntaxKind.
SwitchExpressionArm
);
2214
N(SyntaxKind.
SwitchExpressionArm
);
2265
N(SyntaxKind.
SwitchExpressionArm
);
2281
N(SyntaxKind.
SwitchExpressionArm
);
2323
N(SyntaxKind.
SwitchExpressionArm
);
2339
N(SyntaxKind.
SwitchExpressionArm
);
2387
N(SyntaxKind.
SwitchExpressionArm
);
2403
N(SyntaxKind.
SwitchExpressionArm
);
2445
N(SyntaxKind.
SwitchExpressionArm
);
2461
N(SyntaxKind.
SwitchExpressionArm
);
2515
N(SyntaxKind.
SwitchExpressionArm
);
2531
N(SyntaxKind.
SwitchExpressionArm
);
2597
N(SyntaxKind.
SwitchExpressionArm
);
2613
N(SyntaxKind.
SwitchExpressionArm
);
2690
N(SyntaxKind.
SwitchExpressionArm
);
2706
N(SyntaxKind.
SwitchExpressionArm
);
2750
N(SyntaxKind.
SwitchExpressionArm
);
2766
N(SyntaxKind.
SwitchExpressionArm
);
2818
N(SyntaxKind.
SwitchExpressionArm
);
2834
N(SyntaxKind.
SwitchExpressionArm
);
2886
N(SyntaxKind.
SwitchExpressionArm
);
2930
N(SyntaxKind.
SwitchExpressionArm
);
3009
N(SyntaxKind.
SwitchExpressionArm
);
3053
N(SyntaxKind.
SwitchExpressionArm
);
3132
N(SyntaxKind.
SwitchExpressionArm
);
3176
N(SyntaxKind.
SwitchExpressionArm
);
3261
N(SyntaxKind.
SwitchExpressionArm
);
3305
N(SyntaxKind.
SwitchExpressionArm
);
3390
N(SyntaxKind.
SwitchExpressionArm
);
3449
N(SyntaxKind.
SwitchExpressionArm
);
3555
N(SyntaxKind.
SwitchExpressionArm
);
3614
N(SyntaxKind.
SwitchExpressionArm
);
3702
N(SyntaxKind.
SwitchExpressionArm
);
3716
N(SyntaxKind.
SwitchExpressionArm
);
3765
N(SyntaxKind.
SwitchExpressionArm
);
3779
N(SyntaxKind.
SwitchExpressionArm
);
3828
N(SyntaxKind.
SwitchExpressionArm
);
3847
N(SyntaxKind.
SwitchExpressionArm
);
3907
N(SyntaxKind.
SwitchExpressionArm
);
3926
N(SyntaxKind.
SwitchExpressionArm
);
3986
N(SyntaxKind.
SwitchExpressionArm
);
4010
N(SyntaxKind.
SwitchExpressionArm
);
4081
N(SyntaxKind.
SwitchExpressionArm
);
4105
N(SyntaxKind.
SwitchExpressionArm
);
4165
N(SyntaxKind.
SwitchExpressionArm
);
4253
N(SyntaxKind.
SwitchExpressionArm
);
4298
N(SyntaxKind.
SwitchExpressionArm
);
4352
N(SyntaxKind.
SwitchExpressionArm
);
4417
N(SyntaxKind.
SwitchExpressionArm
);
4468
N(SyntaxKind.
SwitchExpressionArm
);
4529
N(SyntaxKind.
SwitchExpressionArm
);
4587
N(SyntaxKind.
SwitchExpressionArm
);
4652
N(SyntaxKind.
SwitchExpressionArm
);
4714
N(SyntaxKind.
SwitchExpressionArm
);
4784
N(SyntaxKind.
SwitchExpressionArm
);
4851
N(SyntaxKind.
SwitchExpressionArm
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
591
case SyntaxKind.
SwitchExpressionArm
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
337
=> token.Kind() == SyntaxKind.ColonToken && token.Parent.IsKind(SyntaxKind.
SwitchExpressionArm
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
154
&& recursivePattern.IsParentKind(SyntaxKind.
SwitchExpressionArm
, out SwitchExpressionArmSyntax? switchExpressionArm)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
80
if (node.IsKind(SyntaxKind.
SwitchExpressionArm
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
406
SyntaxKind.ExpressionColon or SyntaxKind.
SwitchExpressionArm
))