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), scopeOfTheContainingExpression);
5290
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))
10275
this.VisitList(node.
SwitchArms
);
10281
this.VisitList(node.
SwitchArms
);
11530
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
11538
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13638
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
13658
ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.
SwitchArms
);
16080
new TreeDumperNode("switchArms", null, from x in node.
SwitchArms
select Visit(x, null)),
16094
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
);