18 references to Label
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\Binder_Statements.vb (2)
5269Dim boundLabelExpression As BoundExpression = BindExpression(onError.Label, diagnostics) 5275Return New BoundOnErrorStatement(node, symbol, boundLabel, hasErrors:=Not IsValidLabelForGoto(symbol, onError.Label, diagnostics))
Generated\Syntax.xml.Main.Generated.vb (2)
3182Dim newLabel = DirectCast(Visit(node.Label), LabelSyntax) 3183If node.Label IsNot newLabel Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (6)
16398return Update(Me.Kind, onKeyword, Me.ErrorKeyword, Me.GoToKeyword, Me.Minus, Me.Label) 16416return Update(Me.Kind, Me.OnKeyword, errorKeyword, Me.GoToKeyword, Me.Minus, Me.Label) 16434return Update(Me.Kind, Me.OnKeyword, Me.ErrorKeyword, goToKeyword, Me.Minus, Me.Label) 16458return Update(Me.Kind, Me.OnKeyword, Me.ErrorKeyword, Me.GoToKeyword, minus, Me.Label) 16491Return Me.Label 16529If kind <> Me.Kind OrElse onKeyword <> Me.OnKeyword OrElse errorKeyword <> Me.ErrorKeyword OrElse goToKeyword <> Me.GoToKeyword OrElse minus <> Me.Minus OrElse label IsNot Me.Label Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
SyntaxTreeExtensions.vb (1)
291If onErrorGotoStatement.Label.LabelToken = targetToken AndAlso targetToken.IntersectsWith(position) Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.vb (6)
19757Assert.NotNull(objectUnderTest.label) 19758Dim withObj = objectUnderTest.WithOnKeyword(objectUnderTest.OnKeyword).WithErrorKeyword(objectUnderTest.ErrorKeyword).WithGoToKeyword(objectUnderTest.GoToKeyword).WithMinus(objectUnderTest.Minus).WithLabel(objectUnderTest.Label) 19768Assert.NotNull(objectUnderTest.label) 19769Dim withObj = objectUnderTest.WithOnKeyword(objectUnderTest.OnKeyword).WithErrorKeyword(objectUnderTest.ErrorKeyword).WithGoToKeyword(objectUnderTest.GoToKeyword).WithMinus(objectUnderTest.Minus).WithLabel(objectUnderTest.Label) 19779Assert.NotNull(objectUnderTest.label) 19780Dim withObj = objectUnderTest.WithOnKeyword(objectUnderTest.OnKeyword).WithErrorKeyword(objectUnderTest.ErrorKeyword).WithGoToKeyword(objectUnderTest.GoToKeyword).WithMinus(objectUnderTest.Minus).WithLabel(objectUnderTest.Label)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (1)
291If onErrorGotoStatement.Label.LabelToken = targetToken AndAlso targetToken.IntersectsWith(position) Then