1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4889this.SwitchArms = switchArms;
27 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (2)
4502return GetValEscape(switchExpr.SwitchArms.SelectAsArray(a => a.Value), scopeOfTheContainingExpression); 5290foreach (var arm in ((BoundSwitchExpression)expr).SwitchArms)
Binder\Binder_Statements.cs (1)
2393foreach (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)
4959if (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)) 4993if (!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)) 10275this.VisitList(node.SwitchArms); 10281this.VisitList(node.SwitchArms); 11530ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11538ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13638ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13658ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 16080new TreeDumperNode("switchArms", null, from x in node.SwitchArms select Visit(x, null)), 16094new 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);