2 types derived from LabelSymbol
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\LabelSymbol.vb (1)
145Inherits LabelSymbol
Symbols\Source\SourceLabelSymbol.vb (1)
17Inherits LabelSymbol
1 instantiation of LabelSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\LabelSymbol.vb (1)
148MyBase.New(name)
159 references to LabelSymbol
Microsoft.CodeAnalysis.VisualBasic (159)
Analysis\FlowAnalysis\AbstractFlowPass.NestedTypes.vb (1)
90Public ReadOnly Property Label As LabelSymbol
Analysis\FlowAnalysis\AbstractFlowPass.vb (16)
46Private ReadOnly _labels As New Dictionary(Of LabelSymbol, LabelStateAndNesting) 49Private _labelsSeen As New HashSet(Of LabelSymbol) 283Private Function LabelState(label As LabelSymbol) As LocalState 396Private Sub ResolveBreaks(breakState As LocalState, breakLabel As LabelSymbol) 422Private Sub ResolveContinues(continueLabel As LabelSymbol) 459Private Shared Function GetBranchTargetLabel(branch As BoundStatement, gotoOnly As Boolean) As LabelSymbol 479Protected Overridable Sub ResolveBranch(pending As PendingBranch, label As LabelSymbol, target As BoundLabelStatement, ByRef labelStateChanged As Boolean) 502Dim label As LabelSymbol = GetBranchTargetLabel(pending.Branch, False) 519Public ReadOnly LabelsSeen As HashSet(Of LabelSymbol) 521Public Sub New(ByRef _pendingBranches As ArrayBuilder(Of PendingBranch), ByRef _labelsSeen As HashSet(Of LabelSymbol)) 526_labelsSeen = New HashSet(Of LabelSymbol) 572Private Function ResolveBranches(labelsFilter As HashSet(Of LabelSymbol)) As Boolean 579Dim labelSymbol As LabelSymbol = Nothing 599Optional labelsFilter As HashSet(Of LabelSymbol) = Nothing, 601<Out()> Optional ByRef labelSymbol As LabelSymbol = Nothing, 2515Dim label As LabelSymbol = node.Label
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (2)
36Private ReadOnly _labelsInside As New HashSet(Of LabelSymbol)() 92Protected Overrides Sub ResolveBranch(pending As AbstractFlowPass(Of DataFlowPass.LocalState).PendingBranch, label As LabelSymbol, target As BoundLabelStatement, ByRef labelStateChanged As Boolean)
Analysis\FlowAnalysis\ExitPointsWalker.vb (2)
50Private _labelsInside As ArrayBuilder(Of LabelSymbol) = ArrayBuilder(Of LabelSymbol).GetInstance()
Binding\BackstopBinder.vb (4)
207Public Overrides Function GetContinueLabel(continueSyntaxKind As SyntaxKind) As LabelSymbol 211Public Overrides Function GetExitLabel(exitSyntaxKind As SyntaxKind) As LabelSymbol 215Public Overrides Function GetReturnLabel() As LabelSymbol 257Friend Overrides Function LookupLabelByNameToken(labelName As SyntaxToken) As LabelSymbol
Binding\Binder_Expressions.vb (2)
3584Dim symbol As LabelSymbol = Nothing 3587symbol = DirectCast(result.Symbols.First(), LabelSymbol)
Binding\Binder_Lambda.vb (3)
1110Public Overrides Function GetContinueLabel(continueSyntaxKind As SyntaxKind) As LabelSymbol 1114Public Overrides Function GetExitLabel(exitSyntaxKind As SyntaxKind) As LabelSymbol 1118Public Overrides Function GetReturnLabel() As LabelSymbol
Binding\Binder_Statements.vb (6)
829Dim symbol As LabelSymbol = Nothing 851Private Function IsValidLabelForGoto(label As LabelSymbol, labelSyntax As LabelSyntax, diagnostics As BindingDiagnosticBag) As Boolean 4904Dim targetLabel As LabelSymbol = GetExitLabel(node.Kind) 4930Dim targetLabel As LabelSymbol = GetContinueLabel(node.Kind) 5259Dim symbol As LabelSymbol = Nothing 5298Dim symbol As LabelSymbol = Nothing
Binding\Binder.vb (4)
242Friend Overridable Function LookupLabelByNameToken(labelName As SyntaxToken) As LabelSymbol 835Public Overridable Function GetExitLabel(exitSyntaxKind As SyntaxKind) As LabelSymbol 844Public Overridable Function GetContinueLabel(continueSyntaxKind As SyntaxKind) As LabelSymbol 854Public Overridable Function GetReturnLabel() As LabelSymbol
Binding\BlockStatementBinders.vb (5)
17Private ReadOnly _continueLabel As LabelSymbol ' the label to jump to for a continue (or Nothing for none) 19Private ReadOnly _exitLabel As LabelSymbol ' the label to jump to for an exit (or Nothing for none) 44Public Overrides Function GetContinueLabel(continueSyntaxKind As SyntaxKind) As LabelSymbol 52Public Overrides Function GetExitLabel(exitSyntaxKind As SyntaxKind) As LabelSymbol 60Public Overrides Function GetReturnLabel() As LabelSymbol
Binding\ExecutableCodeBinder.vb (2)
102Friend Overrides Function LookupLabelByNameToken(labelName As SyntaxToken) As LabelSymbol 105For Each labelSymbol As LabelSymbol In Me.LabelsMap(name)
Binding\FinallyBlockBinder.vb (1)
22Public Overrides Function GetExitLabel(exitSyntaxKind As SyntaxKind) As LabelSymbol
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (2)
60Dim again As LabelSymbol = F.GenerateLabel("again") 61Dim start As LabelSymbol = F.GenerateLabel("start")
BoundTree\BoundOnErrorStatement.vb (1)
20Public Sub New(syntax As SyntaxNode, label As LabelSymbol, labelExpressionOpt As BoundExpression, Optional hasErrors As Boolean = False)
BoundTree\BoundResumeStatement.vb (1)
23Public Sub New(syntax As SyntaxNode, label As LabelSymbol, labelExpressionOpt As BoundExpression, Optional hasErrors As Boolean = False)
CodeGen\EmitStatement.vb (7)
868Private ReadOnly _label As LabelSymbol 871Private Sub New(label As LabelSymbol) 891Public Shared Function NodeContainsLabel(node As BoundNode, label As LabelSymbol) As Boolean 972ByRef fallThroughLabel As LabelSymbol 1041Private Sub EmitSwitchTableHeader(selectExpression As BoundExpression, caseLabels As KeyValuePair(Of ConstantValue, Object)(), fallThroughLabel As LabelSymbol) 1087Private Sub EmitStringSwitchJumpTable(caseLabels As KeyValuePair(Of ConstantValue, Object)(), fallThroughLabel As LabelSymbol, key As LocalDefinition, syntaxNode As SyntaxNode) 1186Private Sub EmitCaseBlocks(caseBlocks As ImmutableArray(Of BoundCaseBlock), caseBlockLabels As ImmutableArray(Of GeneratedLabelSymbol), exitLabel As LabelSymbol)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
1179Private Sub RecordBranch(label As LabelSymbol) 1192Private Sub RecordLabel(label As LabelSymbol)
Compilation\SemanticModel.vb (1)
2527Dim label As LabelSymbol = binder.LookupLabelByNameToken(declarationSyntax.LabelToken)
Generated\BoundNodes.xml.Generated.vb (74)
2773Public Sub New(syntax As SyntaxNode, expressionOpt As BoundExpression, functionLocalOpt As LocalSymbol, exitLabelOpt As LabelSymbol, Optional hasErrors As Boolean = False) 2800Private ReadOnly _ExitLabelOpt As LabelSymbol 2801Public ReadOnly Property ExitLabelOpt As LabelSymbol 2812Public Function Update(expressionOpt As BoundExpression, functionLocalOpt As LocalSymbol, exitLabelOpt As LabelSymbol) As BoundReturnStatement 4957Public 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) 5000Private ReadOnly _ExitLabel As LabelSymbol 5001Public ReadOnly Property ExitLabel As LabelSymbol 5012Public Function Update(expressionStatement As BoundExpressionStatement, exprPlaceholderOpt As BoundRValuePlaceholder, caseBlocks As ImmutableArray(Of BoundCaseBlock), recommendSwitchTable As Boolean, exitLabel As LabelSymbol) As BoundSelectStatement 5272Protected Sub New(kind As BoundKind, syntax as SyntaxNode, continueLabel As LabelSymbol, exitLabel As LabelSymbol, hasErrors As Boolean) 5282Protected Sub New(kind As BoundKind, syntax as SyntaxNode, continueLabel As LabelSymbol, exitLabel As LabelSymbol) 5293Private ReadOnly _ContinueLabel As LabelSymbol 5294Public ReadOnly Property ContinueLabel As LabelSymbol 5300Private ReadOnly _ExitLabel As LabelSymbol 5301Public ReadOnly Property ExitLabel As LabelSymbol 5311Public Sub New(syntax As SyntaxNode, topConditionOpt As BoundExpression, bottomConditionOpt As BoundExpression, topConditionIsUntil As Boolean, bottomConditionIsUntil As Boolean, body As BoundStatement, continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5366Public Function Update(topConditionOpt As BoundExpression, bottomConditionOpt As BoundExpression, topConditionIsUntil As Boolean, bottomConditionIsUntil As Boolean, body As BoundStatement, continueLabel As LabelSymbol, exitLabel As LabelSymbol) As BoundDoLoopStatement 5379Public Sub New(syntax As SyntaxNode, condition As BoundExpression, body As BoundStatement, continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5411Public Function Update(condition As BoundExpression, body As BoundStatement, continueLabel As LabelSymbol, exitLabel As LabelSymbol) As BoundWhileStatement 5424Protected Sub New(kind As BoundKind, syntax as SyntaxNode, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5555Public Sub New(syntax As SyntaxNode, initialValue As BoundExpression, limitValue As BoundExpression, stepValue As BoundExpression, checked As Boolean, operatorsOpt As BoundForToUserDefinedOperators, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5614Public Function Update(initialValue As BoundExpression, limitValue As BoundExpression, stepValue As BoundExpression, checked As Boolean, operatorsOpt As BoundForToUserDefinedOperators, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol) As BoundForToStatement 5627Public Sub New(syntax As SyntaxNode, collection As BoundExpression, enumeratorInfo As ForEachEnumeratorInfo, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol, Optional hasErrors As Boolean = False) 5661Public Function Update(collection As BoundExpression, enumeratorInfo As ForEachEnumeratorInfo, declaredOrInferredLocalOpt As LocalSymbol, controlVariable As BoundExpression, body As BoundStatement, nextVariablesOpt As ImmutableArray(Of BoundExpression), continueLabel As LabelSymbol, exitLabel As LabelSymbol) As BoundForEachStatement 5674Public Sub New(syntax As SyntaxNode, label As LabelSymbol, hasErrors As Boolean) 5682Public Sub New(syntax As SyntaxNode, label As LabelSymbol) 5691Private ReadOnly _Label As LabelSymbol 5692Public ReadOnly Property Label As LabelSymbol 5703Public Function Update(label As LabelSymbol) As BoundExitStatement 5716Public Sub New(syntax As SyntaxNode, label As LabelSymbol, hasErrors As Boolean) 5724Public Sub New(syntax As SyntaxNode, label As LabelSymbol) 5733Private ReadOnly _Label As LabelSymbol 5734Public ReadOnly Property Label As LabelSymbol 5745Public Function Update(label As LabelSymbol) As BoundContinueStatement 5758Public Sub New(syntax As SyntaxNode, tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol, Optional hasErrors As Boolean = False) 5792Private ReadOnly _ExitLabelOpt As LabelSymbol 5793Public ReadOnly Property ExitLabelOpt As LabelSymbol 5804Public Function Update(tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol) As BoundTryStatement 6514Public Sub New(syntax As SyntaxNode, label As LabelSymbol, hasErrors As Boolean) 6522Public Sub New(syntax As SyntaxNode, label As LabelSymbol) 6531Private ReadOnly _Label As LabelSymbol 6532Public ReadOnly Property Label As LabelSymbol 6543Public Function Update(label As LabelSymbol) As BoundLabelStatement 6556Public Sub New(syntax As SyntaxNode, label As LabelSymbol, type As TypeSymbol, hasErrors As Boolean) 6564Public Sub New(syntax As SyntaxNode, label As LabelSymbol, type As TypeSymbol) 6573Private ReadOnly _Label As LabelSymbol 6574Public ReadOnly Property Label As LabelSymbol 6585Public Function Update(label As LabelSymbol, type As TypeSymbol) As BoundLabel 6598Public Sub New(syntax As SyntaxNode, label As LabelSymbol, labelExpressionOpt As BoundLabel, Optional hasErrors As Boolean = False) 6608Private ReadOnly _Label As LabelSymbol 6609Public ReadOnly Property Label As LabelSymbol 6627Public Function Update(label As LabelSymbol, labelExpressionOpt As BoundLabel) As BoundGotoStatement 6674Public Sub New(syntax As SyntaxNode, condition As BoundExpression, jumpIfTrue As Boolean, label As LabelSymbol, Optional hasErrors As Boolean = False) 6700Private ReadOnly _Label As LabelSymbol 6701Public ReadOnly Property Label As LabelSymbol 6712Public Function Update(condition As BoundExpression, jumpIfTrue As Boolean, label As LabelSymbol) As BoundConditionalGoto 8323Public Sub New(syntax As SyntaxNode, resumeKind As ResumeStatementKind, labelOpt As LabelSymbol, labelExpressionOpt As BoundExpression, Optional hasErrors As Boolean = False) 8343Private ReadOnly _LabelOpt As LabelSymbol 8344Public ReadOnly Property LabelOpt As LabelSymbol 8362Public Function Update(resumeKind As ResumeStatementKind, labelOpt As LabelSymbol, labelExpressionOpt As BoundExpression) As BoundResumeStatement 8375Public Sub New(syntax As SyntaxNode, onErrorKind As OnErrorStatementKind, labelOpt As LabelSymbol, labelExpressionOpt As BoundExpression, Optional hasErrors As Boolean = False) 8395Private ReadOnly _LabelOpt As LabelSymbol 8396Public ReadOnly Property LabelOpt As LabelSymbol 8414Public Function Update(onErrorKind As OnErrorStatementKind, labelOpt As LabelSymbol, labelExpressionOpt As BoundExpression) As BoundOnErrorStatement
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (2)
36Private ReadOnly _exprReturnLabel As LabelSymbol 43Private ReadOnly _exitLabel As LabelSymbol
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
24Private _exitLabel As LabelSymbol
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
63Friend labelBlock As Dictionary(Of LabelSymbol, BoundNode) = New Dictionary(Of LabelSymbol, BoundNode)(ReferenceEqualityComparer.Instance)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
69exitLabel As LabelSymbol
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
72exitLabelOpt As LabelSymbol
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (2)
30Public ResumeNextLabel As LabelSymbol 31Public ResumeLabel As LabelSymbol
Lowering\LocalRewriter\LocalRewriter_While.vb (2)
50continueLabel As LabelSymbol, 51exitLabel As LabelSymbol,
Lowering\LocalRewriter\LocalRewriter.vb (1)
530Private Shared Function GenerateLabel(baseName As String) As LabelSymbol
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (4)
43Protected Dispatches As New Dictionary(Of LabelSymbol, List(Of Integer)) 188Dispatches = New Dictionary(Of LabelSymbol, List(Of Integer))() 336Dim oldDispatches As Dictionary(Of LabelSymbol, List(Of Integer)) = Me.Dispatches 374oldDispatches = New Dictionary(Of LabelSymbol, List(Of Integer))()
Lowering\SyntheticBoundNodeFactory.vb (3)
745Public Function [Goto](label As LabelSymbol, Optional setWasCompilerGenerated As Boolean = True) As BoundGotoStatement 755Public Function Label(labelSym As LabelSymbol) As BoundLabelStatement 1092Optional exitLabel As LabelSymbol = Nothing) As BoundStatement
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
16Friend ReadOnly ExitLabel As LabelSymbol
Symbols\SymbolVisitor.vb (1)
40Public Overridable Sub VisitLabel(symbol As LabelSymbol)
Symbols\SymbolVisitor`1.vb (1)
39Public Overridable Function VisitLabel(symbol As LabelSymbol) As TResult
Symbols\SymbolVisitor`2.vb (1)
90Public Overridable Function VisitLabel(symbol As LabelSymbol, arg As TArgument) As TResult