30 references to BlockKeyword
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Main.Generated.vb (2)
2871Dim newBlockKeyword = DirectCast(VisitToken(node.BlockKeyword).Node, InternalSyntax.KeywordSyntax) 2872If node.BlockKeyword.Node IsNot newBlockKeyword Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (2)
13878return Update(Me.Kind, exitKeyword, Me.BlockKeyword) 13936If kind <> Me.Kind OrElse exitKeyword <> Me.ExitKeyword OrElse blockKeyword <> Me.BlockKeyword Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
IsStatementTerminatingTokenVisitor.vb (1)
58Return TargetTokenMatches(node.BlockKeyword)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (4)
144If exitStatement.BlockKeyword.IsMissing Then 151ElseIf Not blockKinds.Any(Function(bk) KeywordAndBlockKindMatch(bk, exitStatement.BlockKeyword.Kind)) Then 200.WithLeadingTrivia(exitStatement.BlockKeyword.LeadingTrivia) _ 201.WithTrailingTrivia(exitStatement.BlockKeyword.TrailingTrivia)
ExtractMethod\VisualBasicSelectionValidator.vb (1)
604Function(e As ExitStatementSyntax) e.BlockKeyword.Kind <> SyntaxKind.SubKeyword,
Highlighting\KeywordHighlightingHelpers.vb (1)
21If .BlockKeyword.Kind = blockKind Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (18)
Generated\Syntax.Test.xml.Generated.vb (18)
19503Assert.NotNull(objectUnderTest.blockKeyword) 19504Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19512Assert.NotNull(objectUnderTest.blockKeyword) 19513Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19521Assert.NotNull(objectUnderTest.blockKeyword) 19522Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19530Assert.NotNull(objectUnderTest.blockKeyword) 19531Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19539Assert.NotNull(objectUnderTest.blockKeyword) 19540Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19548Assert.NotNull(objectUnderTest.blockKeyword) 19549Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19557Assert.NotNull(objectUnderTest.blockKeyword) 19558Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19566Assert.NotNull(objectUnderTest.blockKeyword) 19567Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword) 19575Assert.NotNull(objectUnderTest.blockKeyword) 19576Dim withObj = objectUnderTest.WithExitKeyword(objectUnderTest.ExitKeyword).WithBlockKeyword(objectUnderTest.BlockKeyword)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
IsStatementTerminatingTokenVisitor.vb (1)
58Return TargetTokenMatches(node.BlockKeyword)