1 instantiation of BoundSwitchExpressionArm
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4932
var result = new
BoundSwitchExpressionArm
(this.Syntax, locals, pattern, whenClause, value, label, this.HasErrors);
50 references to BoundSwitchExpressionArm
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder.ValueChecks.cs (1)
5314
foreach (
var
arm in ((BoundSwitchExpression)expr).SwitchArms)
Binder\Binder_Expressions.cs (1)
843
internal virtual
BoundSwitchExpressionArm
BindSwitchExpressionArm(SwitchExpressionArmSyntax node, TypeSymbol switchGoverningType, BindingDiagnosticBag diagnostics)
Binder\Binder_Statements.cs (1)
2390
foreach (
var
arm in switchExpression.SwitchArms)
Binder\BuckStopsHereBinder.cs (1)
204
internal override
BoundSwitchExpressionArm
BindSwitchExpressionArm(SwitchExpressionArmSyntax node, TypeSymbol switchGoverningType, BindingDiagnosticBag diagnostics)
Binder\DecisionDagBuilder.cs (3)
101
ImmutableArray<
BoundSwitchExpressionArm
> switchArms,
169
ImmutableArray<
BoundSwitchExpressionArm
> switchArms)
174
foreach (
BoundSwitchExpressionArm
arm in switchArms)
Binder\RefSafetyAnalysis.cs (1)
415
public override BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1195
foreach (
var
arm in switchExpression.SwitchArms)
Binder\SwitchExpressionArmBinder.cs (2)
29
internal
BoundSwitchExpressionArm
BindSwitchExpressionArm(SwitchExpressionArmSyntax node, BindingDiagnosticBag diagnostics)
36
internal override
BoundSwitchExpressionArm
BindSwitchExpressionArm(SwitchExpressionArmSyntax node, TypeSymbol switchGoverningType, BindingDiagnosticBag diagnostics)
Binder\SwitchExpressionBinder.cs (9)
32
ImmutableArray<
BoundSwitchExpressionArm
> switchArms = BindSwitchExpressionArms(node, originalBinder, boundInputExpression, diagnostics);
57
ImmutableArray<
BoundSwitchExpressionArm
> switchArms,
66
foreach (
BoundSwitchExpressionArm
arm in switchArms)
139
private TypeSymbol? InferResultType(ImmutableArray<
BoundSwitchExpressionArm
> switchCases, BindingDiagnosticBag diagnostics)
143
foreach (
var
@case in switchCases)
161
foreach (
var
@case in switchCases)
175
private ImmutableArray<
BoundSwitchExpressionArm
> BindSwitchExpressionArms(SwitchExpressionSyntax node, Binder originalBinder, BoundExpression inputExpression, BindingDiagnosticBag diagnostics)
177
var builder = ArrayBuilder<
BoundSwitchExpressionArm
>.GetInstance();
183
var
boundArm = armBinder.BindSwitchExpressionArm(arm, inputType, diagnostics);
BoundTree\BoundNode.cs (1)
617
public override BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node)
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
161
foreach (
var
arm in node.SwitchArms)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
366
public override BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node)
FlowAnalysis\NullableWalker_Patterns.cs (4)
884
foreach (
var
arm in node.SwitchArms)
918
foreach (
var
arm in node.SwitchArms)
1000
var
arm = node.SwitchArms[i];
1044
LocalState getStateForArm(
BoundSwitchExpressionArm
arm, PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)> labelStateMap)
Generated\BoundNodes.xml.Generated.cs (19)
4879
protected BoundSwitchExpression(BoundKind kind, SyntaxNode syntax, BoundExpression expression, ImmutableArray<
BoundSwitchExpressionArm
> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type, bool hasErrors = false)
4895
public ImmutableArray<
BoundSwitchExpressionArm
> SwitchArms { get; }
4928
public
BoundSwitchExpressionArm
Update(ImmutableArray<LocalSymbol> locals, BoundPattern pattern, BoundExpression? whenClause, BoundExpression value, LabelSymbol label)
4932
var
result = new BoundSwitchExpressionArm(this.Syntax, locals, pattern, whenClause, value, label, this.HasErrors);
4942
public BoundUnconvertedSwitchExpression(SyntaxNode syntax, BoundExpression expression, ImmutableArray<
BoundSwitchExpressionArm
> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type, bool hasErrors = false)
4956
public BoundUnconvertedSwitchExpression Update(BoundExpression expression, ImmutableArray<
BoundSwitchExpressionArm
> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol? type)
4970
public BoundConvertedSwitchExpression(SyntaxNode syntax, TypeSymbol? naturalTypeOpt, bool wasTargetTyped, BoundExpression expression, ImmutableArray<
BoundSwitchExpressionArm
> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol type, bool hasErrors = false)
4990
public BoundConvertedSwitchExpression Update(TypeSymbol? naturalTypeOpt, bool wasTargetTyped, BoundExpression expression, ImmutableArray<
BoundSwitchExpressionArm
> switchArms, BoundDecisionDag reachabilityDecisionDag, LabelSymbol? defaultLabel, bool reportedNotExhaustive, TypeSymbol type)
9087
return VisitSwitchExpressionArm((
BoundSwitchExpressionArm
)node, arg);
9431
public virtual R VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node, A arg) => this.DefaultVisit(node, arg);
9667
public virtual BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node) => this.DefaultVisit(node);
10264
public override BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node)
11519
public override BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node)
11529
ImmutableArray<
BoundSwitchExpressionArm
> switchArms = this.VisitList(node.SwitchArms);
11537
ImmutableArray<
BoundSwitchExpressionArm
> switchArms = this.VisitList(node.SwitchArms);
13625
public override BoundNode? VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node)
13637
ImmutableArray<
BoundSwitchExpressionArm
> switchArms = this.VisitList(node.SwitchArms);
13657
ImmutableArray<
BoundSwitchExpressionArm
> switchArms = this.VisitList(node.SwitchArms);
16066
public override TreeDumperNode VisitSwitchExpressionArm(
BoundSwitchExpressionArm
node, object? arg) => new TreeDumperNode("switchExpressionArm", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
91
foreach (
BoundSwitchExpressionArm
arm in node.SwitchArms)
Operations\CSharpOperationFactory.cs (3)
275
return CreateBoundSwitchExpressionArmOperation((
BoundSwitchExpressionArm
)boundNode);
2707
ImmutableArray<ISwitchExpressionArmOperation> arms = CreateFromArray<
BoundSwitchExpressionArm
, ISwitchExpressionArmOperation>(boundSwitchExpression.SwitchArms);
2730
private ISwitchExpressionArmOperation CreateBoundSwitchExpressionArmOperation(
BoundSwitchExpressionArm
boundSwitchExpressionArm)