67 references to EndKeyword
Microsoft.CodeAnalysis.VisualBasic (4)
Generated\Syntax.xml.Main.Generated.vb (2)
1502
Dim newEndKeyword = DirectCast(VisitToken(node.
EndKeyword
).Node, InternalSyntax.KeywordSyntax)
1503
If node.
EndKeyword
.Node IsNot newEndKeyword Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (2)
326
return Update(Me.Kind, Me.
EndKeyword
, blockKeyword)
366
If kind <> Me.Kind OrElse endKeyword <> Me.
EndKeyword
OrElse blockKeyword <> Me.BlockKeyword Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (1)
126
node.EndSubOrFunctionStatement.
EndKeyword
,
VisualBasicMakeMethodSynchronousCodeFixProvider.vb (1)
81
node.EndSubOrFunctionStatement.
EndKeyword
,
Microsoft.CodeAnalysis.VisualBasic.Features (6)
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (1)
26
(targetToken.IsChildToken(Of EndBlockStatementSyntax)(Function(endBlock) endBlock.
EndKeyword
) OrElse
Debugging\ProximityExpressionsGetter.vb (1)
70
token = parentEndBlock.
EndKeyword
.GetPreviousToken()
ExtractMethod\VisualBasicSelectionValidator.vb (2)
624
Dim match = If(TryCast(container, MethodBlockBaseSyntax)?.EndBlockStatement.
EndKeyword
= nextToken, False) OrElse
625
If(TryCast(container, MultiLineLambdaExpressionSyntax)?.EndSubOrFunctionStatement.
EndKeyword
= nextToken, False)
VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (1)
126
node.EndSubOrFunctionStatement.
EndKeyword
,
VisualBasicMakeMethodSynchronousCodeFixProvider.vb (1)
81
node.EndSubOrFunctionStatement.
EndKeyword
,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (48)
Generated\Syntax.Test.xml.Generated.vb (46)
18469
Assert.NotNull(objectUnderTest.
endKeyword
)
18471
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18478
Assert.NotNull(objectUnderTest.
endKeyword
)
18480
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18487
Assert.NotNull(objectUnderTest.
endKeyword
)
18489
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18496
Assert.NotNull(objectUnderTest.
endKeyword
)
18498
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18505
Assert.NotNull(objectUnderTest.
endKeyword
)
18507
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18514
Assert.NotNull(objectUnderTest.
endKeyword
)
18516
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18523
Assert.NotNull(objectUnderTest.
endKeyword
)
18525
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18532
Assert.NotNull(objectUnderTest.
endKeyword
)
18534
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18541
Assert.NotNull(objectUnderTest.
endKeyword
)
18543
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18550
Assert.NotNull(objectUnderTest.
endKeyword
)
18552
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18559
Assert.NotNull(objectUnderTest.
endKeyword
)
18561
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18568
Assert.NotNull(objectUnderTest.
endKeyword
)
18570
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18577
Assert.NotNull(objectUnderTest.
endKeyword
)
18579
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18586
Assert.NotNull(objectUnderTest.
endKeyword
)
18588
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18595
Assert.NotNull(objectUnderTest.
endKeyword
)
18597
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18604
Assert.NotNull(objectUnderTest.
endKeyword
)
18606
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18613
Assert.NotNull(objectUnderTest.
endKeyword
)
18615
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18622
Assert.NotNull(objectUnderTest.
endKeyword
)
18624
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18631
Assert.NotNull(objectUnderTest.
endKeyword
)
18633
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18640
Assert.NotNull(objectUnderTest.
endKeyword
)
18642
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18649
Assert.NotNull(objectUnderTest.
endKeyword
)
18651
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18658
Assert.NotNull(objectUnderTest.
endKeyword
)
18660
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
18667
Assert.NotNull(objectUnderTest.
endKeyword
)
18669
Dim withObj = objectUnderTest.WithEndKeyword(objectUnderTest.
EndKeyword
).WithBlockKeyword(objectUnderTest.BlockKeyword)
TestSyntaxNodes.vb (2)
818
Assert.Equal(SyntaxKind.EndKeyword, endTry.
EndKeyword
.Kind)
819
Assert.Equal("End", endTry.
EndKeyword
.ToString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (1)
152
RewriteEndIfStatementOrDirectiveSyntax(newStatement, newStatement.
EndKeyword
, newStatement.BlockKeyword),
CodeGeneration\VisualBasicSyntaxGenerator.vb (4)
2380
sb.EndBlockStatement.
EndKeyword
,
2415
ml.EndSubOrFunctionStatement.
EndKeyword
,
2465
mb.EndBlockStatement.
EndKeyword
,
2500
ml.EndSubOrFunctionStatement.
EndKeyword
,
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (2)
2430
endKeyword:=moduleBlock.EndModuleStatement.
EndKeyword
,
2450
endKeyword:=classBlock.EndClassStatement.
EndKeyword
,