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