1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4777
this.
SwitchArms
= switchArms;
29 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (2)
3805
return GetValEscape(switchExpr.
SwitchArms
.SelectAsArray(a => a.Value), scopeOfTheContainingExpression);
4276
foreach (var arm in ((BoundSwitchExpression)expr).
SwitchArms
)
Binder\Binder_Conversions.cs (3)
457
var builder = ArrayBuilder<BoundSwitchExpressionArm>.GetInstance(source.
SwitchArms
.Length);
458
for (int i = 0, n = source.
SwitchArms
.Length; i < n; i++)
460
var oldCase = source.
SwitchArms
[i];
Binder\Binder_Statements.cs (1)
2357
foreach (var arm in switchExpression.
SwitchArms
)
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1112
var innerConversions = ArrayBuilder<Conversion>.GetInstance(switchExpression.
SwitchArms
.Length);
1113
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)
844
foreach (var arm in node.
SwitchArms
)
872
int numSwitchArms = node.
SwitchArms
.Length;
878
foreach (var arm in node.
SwitchArms
)
922
|| node is BoundSwitchExpression {
SwitchArms
: { Length: 0 } });
951
int numSwitchArms = node.
SwitchArms
.Length;
955
var arm = node.
SwitchArms
[i];
Generated\BoundNodes.xml.Generated.cs (10)
4847
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))
4881
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))
9917
this.VisitList(node.
SwitchArms
);
9923
this.VisitList(node.
SwitchArms
);
11134
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
11142
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13170
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13190
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
15519
new TreeDumperNode("switchArms", null, from x in node.
SwitchArms
select Visit(x, null)),
15533
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)
2562
ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.
SwitchArms
);