1 write to SwitchArms
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4946this.SwitchArms = switchArms;
30 references to SwitchArms
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder.ValueChecks.cs (2)
4773return GetValEscape(switchExpr.SwitchArms.SelectAsArray(a => a.Value)); 5567foreach (var arm in ((BoundSwitchExpression)expr).SwitchArms)
Binder\Binder_Conversions.cs (3)
2497var builder = ArrayBuilder<BoundSwitchExpressionArm>.GetInstance(source.SwitchArms.Length); 2498for (int i = 0, n = source.SwitchArms.Length; i < n; i++) 2500var oldCase = source.SwitchArms[i];
Binder\Binder_Statements.cs (1)
2439foreach (var arm in switchExpression.SwitchArms)
Binder\RefSafetyAnalysis.cs (1)
467this.VisitList(node.SwitchArms);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1209var innerConversions = ArrayBuilder<Conversion>.GetInstance(switchExpression.SwitchArms.Length); 1210foreach (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)
986foreach (var arm in node.SwitchArms) 1014int numSwitchArms = node.SwitchArms.Length; 1020foreach (var arm in node.SwitchArms) 1069|| node is BoundSwitchExpression { SwitchArms: { Length: 0 } }); 1098int numSwitchArms = node.SwitchArms.Length; 1102var arm = node.SwitchArms[i];
Generated\BoundNodes.xml.Generated.cs (10)
5018if (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)) 5052if (!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)) 10559this.VisitList(node.SwitchArms); 10565this.VisitList(node.SwitchArms); 11936ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11945ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 14130ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 14150ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 16602new TreeDumperNode("switchArms", null, from x in node.SwitchArms select Visit(x, null)), 16616new 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)
2773ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<BoundSwitchExpressionArm, ISwitchExpressionArmOperation>(boundSwitchExpression.SwitchArms);