1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4888
this.
SwitchArms
= switchArms;
27 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (2)
4526
return GetValEscape(switchExpr.
SwitchArms
.SelectAsArray(a => a.Value), scopeOfTheContainingExpression);
5314
foreach (var arm in ((BoundSwitchExpression)expr).
SwitchArms
)
Binder\Binder_Statements.cs (1)
2390
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)
4958
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))
4992
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))
10274
this.VisitList(node.
SwitchArms
);
10280
this.VisitList(node.
SwitchArms
);
11529
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
11537
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13637
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13657
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
16079
new TreeDumperNode("switchArms", null, from x in node.
SwitchArms
select Visit(x, null)),
16093
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
);