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