2 instantiations of BoundCaseBlock
Microsoft.CodeAnalysis.VisualBasic (2)
Generated\BoundNodes.xml.Generated.vb (1)
5066
Dim result = New
BoundCaseBlock
(Me.Syntax, caseStatement, body, Me.HasErrors)
Lowering\SyntheticBoundNodeFactory.vb (1)
740
Dim boundCaseBlock = New
BoundCaseBlock
(_syntax, boundCaseStatement, Block(ImmutableArray.Create(Of BoundStatement)(statements)))
45 references to BoundCaseBlock
Microsoft.CodeAnalysis.VisualBasic (45)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
1806
Private Sub VisitCaseBlocks(caseBlocks As ImmutableArray(Of
BoundCaseBlock
))
1851
Public Overrides Function VisitCaseBlock(node As
BoundCaseBlock
) As BoundNode
Binding\Binder_SelectCase.vb (9)
44
Dim caseBlocks As ImmutableArray(Of
BoundCaseBlock
) = selectBinder.BindCaseBlocks(
107
) As ImmutableArray(Of
BoundCaseBlock
)
110
Dim caseBlocksBuilder = ArrayBuilder(Of
BoundCaseBlock
).GetInstance()
120
Return ImmutableArray(Of
BoundCaseBlock
).Empty
128
) As
BoundCaseBlock
375
caseBlockBuilder As ArrayBuilder(Of
BoundCaseBlock
),
378
) As ImmutableArray(Of
BoundCaseBlock
)
553
Private Function RecommendSwitchTable(selectExpr As BoundRValuePlaceholder, caseBlocks As ArrayBuilder(Of
BoundCaseBlock
), diagnostics As BindingDiagnosticBag) As Boolean
659
Private Function ReportInvalidSelectCaseRange(caseBlocks As ArrayBuilder(Of
BoundCaseBlock
), diagnostics As BindingDiagnosticBag) As Boolean
CodeGen\EmitStatement.vb (3)
952
Private Function CreateCaseBlockLabels(caseBlocks As ImmutableArray(Of
BoundCaseBlock
)) As ImmutableArray(Of GeneratedLabelSymbol)
970
caseBlocks As ImmutableArray(Of
BoundCaseBlock
),
1184
Private Sub EmitCaseBlocks(caseBlocks As ImmutableArray(Of
BoundCaseBlock
), caseBlockLabels As ImmutableArray(Of GeneratedLabelSymbol), exitLabel As LabelSymbol)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
1035
Dim caseBlocks As ImmutableArray(Of
BoundCaseBlock
) = Me.VisitList(node.CaseBlocks)
1047
Public Overrides Function VisitCaseBlock(node As
BoundCaseBlock
) As BoundNode
Generated\BoundNodes.xml.Generated.vb (12)
4966
Public Sub New(syntax As SyntaxNode, expressionStatement As BoundExpressionStatement, exprPlaceholderOpt As BoundRValuePlaceholder, caseBlocks As ImmutableArray(Of
BoundCaseBlock
), recommendSwitchTable As Boolean, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False)
4995
Private ReadOnly _CaseBlocks As ImmutableArray(Of
BoundCaseBlock
)
4996
Public ReadOnly Property CaseBlocks As ImmutableArray(Of
BoundCaseBlock
)
5021
Public Function Update(expressionStatement As BoundExpressionStatement, exprPlaceholderOpt As BoundRValuePlaceholder, caseBlocks As ImmutableArray(Of
BoundCaseBlock
), recommendSwitchTable As Boolean, exitLabel As LabelSymbol) As BoundSelectStatement
5064
Public Function Update(caseStatement As BoundCaseStatement, body As BoundBlock) As
BoundCaseBlock
9529
Return VisitCaseBlock(CType(node,
BoundCaseBlock
), arg)
10071
Public Overridable Function VisitCaseBlock(node As
BoundCaseBlock
, arg As A) As R
10774
Public Overridable Function VisitCaseBlock(node As
BoundCaseBlock
) As BoundNode
11592
Public Overrides Function VisitCaseBlock(node As
BoundCaseBlock
) As BoundNode
12616
Dim caseBlocks As ImmutableArray(Of
BoundCaseBlock
) = Me.VisitList(node.CaseBlocks)
12620
Public Overrides Function VisitCaseBlock(node As
BoundCaseBlock
) As BoundNode
13922
Public Overrides Function VisitCaseBlock(node As
BoundCaseBlock
, arg As Object) As TreeDumperNode
Lowering\Instrumentation\CompoundInstrumenter.vb (2)
207
Public Overrides Function InstrumentCaseBlockConditionalGoto(original As
BoundCaseBlock
, condGoto As BoundStatement) As BoundStatement
211
Public Overrides Function InstrumentCaseElseBlock(original As
BoundCaseBlock
, rewritten As BoundBlock) As BoundStatement
Lowering\Instrumentation\DebugInfoInjector.vb (2)
305
Public Overrides Function InstrumentCaseBlockConditionalGoto(original As
BoundCaseBlock
, condGoto As BoundStatement) As BoundStatement
309
Public Overrides Function InstrumentCaseElseBlock(original As
BoundCaseBlock
, rewritten As BoundBlock) As BoundStatement
Lowering\Instrumentation\Instrumenter.vb (2)
320
Public Overridable Function InstrumentCaseBlockConditionalGoto(original As
BoundCaseBlock
, condGoto As BoundStatement) As BoundStatement
325
Public Overridable Function InstrumentCaseElseBlock(original As
BoundCaseBlock
, rewritten As BoundBlock) As BoundStatement
Lowering\LocalRewriter\LocalRewriter_If.vb (2)
152
condGoto = _instrumenterOpt.InstrumentCaseBlockConditionalGoto(DirectCast(instrumentationTargetOpt,
BoundCaseBlock
), condGoto)
196
condGoto = _instrumenterOpt.InstrumentCaseBlockConditionalGoto(DirectCast(instrumentationTargetOpt,
BoundCaseBlock
), condGoto)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (5)
67
caseBlocks As ImmutableArray(Of
BoundCaseBlock
),
200
caseBlocks As ImmutableArray(Of
BoundCaseBlock
),
256
caseBlocks As ImmutableArray(Of
BoundCaseBlock
),
381
Public Overrides Function VisitCaseBlock(node As
BoundCaseBlock
) As BoundNode
382
Dim rewritten = DirectCast(MyBase.VisitCaseBlock(node),
BoundCaseBlock
)
Lowering\SyntheticBoundNodeFactory.vb (4)
691
Public Function [Select](ex As BoundExpression, sections As IEnumerable(Of
BoundCaseBlock
)) As BoundStatement
692
Dim sectionsArray = ImmutableArray.CreateRange(Of
BoundCaseBlock
)(sections)
709
Private Sub CheckSwitchSections(sections As ImmutableArray(Of
BoundCaseBlock
))
730
Public Function SwitchSection(values As List(Of Integer), ParamArray statements As BoundStatement()) As
BoundCaseBlock