9 references to BlockKindToKeywordKind
Microsoft.CodeAnalysis.VisualBasic.Features (9)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.AddKeywordCodeAction.vb (1)
35
Return String.Format(VBFeaturesResources.Insert_0, SyntaxFacts.GetText(
BlockKindToKeywordKind
(_createBlockKind)))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.ReplaceKeywordCodeAction.vb (1)
34
Return String.Format(FeaturesResources.Change_0_to_1, _invalidToken.ValueText, SyntaxFacts.GetText(
BlockKindToKeywordKind
(_createBlockKind)))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.ReplaceTokenKeywordCodeAction.vb (2)
28
Return String.Format(FeaturesResources.Change_0_to_1, _invalidToken.ValueText, SyntaxFacts.GetText(
BlockKindToKeywordKind
(_blockKind)))
34
Dim rootWithoutToken = root.ReplaceToken(_invalidToken, SyntaxFactory.Token(
BlockKindToKeywordKind
(_blockKind)))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (5)
159
Dim kinds = New List(Of SyntaxKind)(enclosingblocks.Select(Function(b) b.Kind()).Where(Function(kind)
BlockKindToKeywordKind
(kind) <> Nothing OrElse kind = SyntaxKind.FinallyBlock))
176
Return kinds.TakeWhile(Function(k) k <> SyntaxKind.FinallyBlock).GroupBy(Function(k)
BlockKindToKeywordKind
(k)).Select(Function(g) g.First())
196
Dim keywordKind =
BlockKindToKeywordKind
(createBlockKind)
213
Dim keywordKind =
BlockKindToKeywordKind
(createBlockKind)
231
Return keywordKind =
BlockKindToKeywordKind
(blockKind)