1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4888this.SwitchArms = switchArms;
27 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (2)
4526return GetValEscape(switchExpr.SwitchArms.SelectAsArray(a => a.Value), scopeOfTheContainingExpression); 5314foreach (var arm in ((BoundSwitchExpression)expr).SwitchArms)
Binder\Binder_Statements.cs (1)
2390foreach (var arm in switchExpression.SwitchArms)
Binder\RefSafetyAnalysis.cs (1)
405this.VisitList(node.SwitchArms);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1194var innerConversions = ArrayBuilder<Conversion>.GetInstance(switchExpression.SwitchArms.Length); 1195foreach (var arm in switchExpression.SwitchArms)
BoundTree\BoundSwitchExpression.cs (1)
23this.SwitchArms,
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
161foreach (var arm in node.SwitchArms)
FlowAnalysis\NullableWalker_Patterns.cs (6)
884foreach (var arm in node.SwitchArms) 912int numSwitchArms = node.SwitchArms.Length; 918foreach (var arm in node.SwitchArms) 967|| node is BoundSwitchExpression { SwitchArms: { Length: 0 } }); 996int numSwitchArms = node.SwitchArms.Length; 1000var arm = node.SwitchArms[i];
Generated\BoundNodes.xml.Generated.cs (10)
4958if (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)) 4992if (!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)) 10274this.VisitList(node.SwitchArms); 10280this.VisitList(node.SwitchArms); 11529ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11537ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13637ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13657ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 16079new TreeDumperNode("switchArms", null, from x in node.SwitchArms select Visit(x, null)), 16093new 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), 91foreach (BoundSwitchExpressionArm arm in node.SwitchArms)
Operations\CSharpOperationFactory.cs (1)
2707ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.SwitchArms);