1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4889
this.
SwitchArms
= switchArms;
27 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (2)
4502
return GetValEscape(switchExpr.
SwitchArms
.SelectAsArray(a => a.Value), localScopeDepth);
5296
foreach (var arm in ((BoundSwitchExpression)expr).
SwitchArms
)
Binder\Binder_Statements.cs (1)
2393
foreach (var arm in switchExpression.
SwitchArms
)
Binder\RefSafetyAnalysis.cs (1)
405
this.VisitList(node.
SwitchArms
);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1194
var innerConversions = ArrayBuilder<Conversion>.GetInstance(switchExpression.
SwitchArms
.Length);
1195
foreach (var arm in switchExpression.
SwitchArms
)
BoundTree\BoundSwitchExpression.cs (1)
23
this.
SwitchArms
,
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
161
foreach (var arm in node.
SwitchArms
)
FlowAnalysis\NullableWalker_Patterns.cs (6)
884
foreach (var arm in node.
SwitchArms
)
912
int numSwitchArms = node.
SwitchArms
.Length;
918
foreach (var arm in node.
SwitchArms
)
967
|| node is BoundSwitchExpression {
SwitchArms
: { Length: 0 } });
996
int numSwitchArms = node.
SwitchArms
.Length;
1000
var arm = node.
SwitchArms
[i];
Generated\BoundNodes.xml.Generated.cs (10)
4959
if (expression != this.Expression || switchArms != this.
SwitchArms
|| reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
4993
if (!TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || wasTargetTyped != this.WasTargetTyped || expression != this.Expression || switchArms != this.
SwitchArms
|| reachabilityDecisionDag != this.ReachabilityDecisionDag || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(defaultLabel, this.DefaultLabel) || reportedNotExhaustive != this.ReportedNotExhaustive || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10311
this.VisitList(node.
SwitchArms
);
10317
this.VisitList(node.
SwitchArms
);
11566
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
11574
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13674
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13694
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
16116
new TreeDumperNode("switchArms", null, from x in node.
SwitchArms
select Visit(x, null)),
16130
new TreeDumperNode("switchArms", null, from x in node.
SwitchArms
select Visit(x, null)),
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (2)
30
: base(node.Syntax, localRewriter, node.
SwitchArms
.SelectAsArray(arm => arm.Syntax),
91
foreach (BoundSwitchExpressionArm arm in node.
SwitchArms
)
Operations\CSharpOperationFactory.cs (1)
2707
ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.
SwitchArms
);