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), localScopeDepth); 5296foreach (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)) 10311this.VisitList(node.SwitchArms); 10317this.VisitList(node.SwitchArms); 11566ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 11574ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13674ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 13694ImmutableArray<BoundSwitchExpressionArm> switchArms = this.VisitList(node.SwitchArms); 16116new TreeDumperNode("switchArms", null, from x in node.SwitchArms select Visit(x, null)), 16130new 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);