1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4943
this.
SwitchArms
= switchArms;
30 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder.ValueChecks.cs (2)
4764
return GetValEscape(switchExpr.
SwitchArms
.SelectAsArray(a => a.Value));
5518
foreach (var arm in ((BoundSwitchExpression)expr).
SwitchArms
)
Binder\Binder_Conversions.cs (3)
2419
var builder = ArrayBuilder<BoundSwitchExpressionArm>.GetInstance(source.
SwitchArms
.Length);
2420
for (int i = 0, n = source.
SwitchArms
.Length; i < n; i++)
2422
var oldCase = source.
SwitchArms
[i];
Binder\Binder_Statements.cs (1)
2439
foreach (var arm in switchExpression.
SwitchArms
)
Binder\RefSafetyAnalysis.cs (1)
466
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)
984
foreach (var arm in node.
SwitchArms
)
1012
int numSwitchArms = node.
SwitchArms
.Length;
1018
foreach (var arm in node.
SwitchArms
)
1067
|| node is BoundSwitchExpression {
SwitchArms
: { Length: 0 } });
1096
int numSwitchArms = node.
SwitchArms
.Length;
1100
var arm = node.
SwitchArms
[i];
Generated\BoundNodes.xml.Generated.cs (10)
5013
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))
5047
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))
10427
this.VisitList(node.
SwitchArms
);
10433
this.VisitList(node.
SwitchArms
);
11787
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
11796
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13960
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13980
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
16403
new TreeDumperNode("switchArms", null, from x in node.
SwitchArms
select Visit(x, null)),
16417
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)
2748
ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.
SwitchArms
);