183 references to IsKind
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (2)
Utilities\AssertEx.vb (2)
27
If expectedToken.
IsKind
(SyntaxKind.StatementTerminatorToken) AndAlso actualToken.
IsKind
(SyntaxKind.StatementTerminatorToken) Then
Microsoft.CodeAnalysis.VisualBasic (24)
Generated\Syntax.xml.Main.Generated.vb (19)
6569
If (Not blockKeyword.
IsKind
(GetEndBlockStatementBlockKeywordKind(kind))) Then
9491
If (Not subOrFunctionKeyword.
IsKind
(GetMethodStatementSubOrFunctionKeywordKind(kind))) Then
9993
If (Not subOrFunctionKeyword.
IsKind
(GetDeclareStatementSubOrFunctionKeywordKind(kind))) Then
10389
If (Not subOrFunctionKeyword.
IsKind
(GetDelegateStatementSubOrFunctionKeywordKind(kind))) Then
11225
If (Not accessorKeyword.
IsKind
(GetAccessorStatementAccessorKeywordKind(kind))) Then
13241
If (Not labelToken.
IsKind
(GetLabelLabelTokenKind(kind))) Then
13678
If (Not blockKeyword.
IsKind
(GetExitStatementBlockKeywordKind(kind))) Then
13860
If (Not blockKeyword.
IsKind
(GetContinueStatementBlockKeywordKind(kind))) Then
17443
If (Not operatorToken.
IsKind
(GetRelationalCaseClauseOperatorTokenKind(kind))) Then
18768
If (Not whileOrUntilKeyword.
IsKind
(GetWhileOrUntilClauseWhileOrUntilKeywordKind(kind))) Then
23184
If (Not operatorToken.
IsKind
(GetAssignmentStatementOperatorTokenKind(kind))) Then
23979
If (Not addHandlerOrRemoveHandlerKeyword.
IsKind
(GetAddRemoveHandlerStatementAddHandlerOrRemoveHandlerKeywordKind(kind))) Then
26015
If (Not operatorToken.
IsKind
(GetTypeOfExpressionOperatorTokenKind(kind))) Then
26254
If (Not operatorToken.
IsKind
(GetMemberAccessExpressionOperatorTokenKind(kind))) Then
34062
If (Not operatorToken.
IsKind
(GetBinaryExpressionOperatorTokenKind(kind))) Then
34824
If (Not operatorToken.
IsKind
(GetUnaryExpressionOperatorTokenKind(kind))) Then
36892
If (Not subOrFunctionKeyword.
IsKind
(GetLambdaHeaderSubOrFunctionKeywordKind(kind))) Then
38618
If (Not skipOrTakeKeyword.
IsKind
(GetPartitionWhileClauseSkipOrTakeKeywordKind(kind))) Then
39073
If (Not skipOrTakeKeyword.
IsKind
(GetPartitionClauseSkipOrTakeKeywordKind(kind))) Then
Syntax\SyntaxFactory.vb (2)
923
If rewrittenToken.
IsKind
(SyntaxKind.LessThanToken) AndAlso String.Equals("<", rewrittenToken.Text, StringComparison.Ordinal) Then
927
If rewrittenToken.
IsKind
(SyntaxKind.GreaterThanToken) AndAlso String.Equals(">", rewrittenToken.Text, StringComparison.Ordinal) Then
VisualBasicExtensions.vb (3)
291
If token.
IsKind
(SyntaxKind.IdentifierToken) Then
333
If token.
IsKind
(SyntaxKind.IntegerLiteralToken) Then
385
If(token.
IsKind
(SyntaxKind.IdentifierToken),
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (9)
NodeBasedFormattingRule.vb (2)
140
If (Item1PreviousToken.
IsKind
(SyntaxKind.GreaterThanToken) AndAlso
153
If nextTokenAfterCase.
IsKind
(SyntaxKind.CaseKeyword) Then
ParenthesizedExpressionSyntaxExtensions.vb (1)
186
If firstToken.
IsKind
(SyntaxKind.LessThanToken) AndAlso
SyntaxTreeExtensions.vb (4)
191
If token.
IsKind
(SyntaxKind.StringLiteralToken) Then
219
Dim lastChar = If(token.
IsKind
(SyntaxKind.CharacterLiteralToken), "'", """")
227
If token.
IsKind
(SyntaxKind.CharacterLiteralToken) Then
304
If token.
IsKind
(SyntaxKind.None) Then
VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
28
If modifier.
IsKind
(SyntaxKind.ByValKeyword) Then
VisualBasicSyntaxFacts.vb (1)
1260
Return attributeNode.Target.AttributeModifier.
IsKind
(attributeTarget)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (24)
ModifierCollectionFacts.vb (3)
53
If _accessibilityKeyword.
IsKind
(SyntaxKind.ProtectedKeyword) Then
63
If targetToken.
IsKind
(SyntaxKind.ProtectedKeyword) AndAlso _accessibilityKeyword.
IsKind
(SyntaxKind.FriendKeyword) Then
SyntaxTokenExtensions.vb (4)
97
If targetToken.
IsKind
(SyntaxKind.HashToken) AndAlso targetToken.TrailingTrivia.Any(Function(t)
100
Return childTokens.Count() = 1 AndAlso childTokens.First().
IsKind
(SyntaxKind.EndKeyword)
108
Return targetToken.
IsKind
(SyntaxKind.EndKeyword) AndAlso
109
targetToken.GetPreviousToken().
IsKind
(SyntaxKind.HashToken) AndAlso
SyntaxTreeExtensions.vb (5)
27
If Not token.
IsKind
(SyntaxKind.EmptyToken) AndAlso token.Span.End < position Then
469
If targetToken.
IsKind
(SyntaxKind.DotToken) AndAlso
778
If Not targetToken.
IsKind
(SyntaxKind.DotToken) OrElse
1079
If tokenOnLeftOfPosition.
IsKind
(SyntaxKind.OpenParenToken) Then
1084
Return tokenOnLeftOfPosition.
IsKind
(SyntaxKind.CommaToken) AndAlso
VisualBasicIndentationService.Indenter.vb (6)
157
If containingToken.
IsKind
(SyntaxKind.InterpolatedStringTextToken) OrElse
158
containingToken.
IsKind
(SyntaxKind.InterpolatedStringText) OrElse
159
(containingToken.
IsKind
(SyntaxKind.CloseBraceToken) AndAlso token.Parent.IsKind(SyntaxKind.Interpolation)) Then
181
If Not lastVisibleTokenOnPreviousLine.
IsKind
(SyntaxKind.OpenBraceToken) AndAlso
182
Not lastVisibleTokenOnPreviousLine.
IsKind
(SyntaxKind.CommaToken) Then
204
If visibleTokenOnCurrentLine.
IsKind
(SyntaxKind.CloseBraceToken) Then
VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
41
Dim tokenList = SyntaxFactory.TokenList(node.Modifiers.Where(Function(m) Not m.
IsKind
(SyntaxKind.ByValKeyword)))
VisualBasicSyntaxContext.vb (3)
259
If targetToken.
IsKind
(SyntaxKind.HashToken) AndAlso targetToken.Span.End = position Then
293
Return (TargetToken.
IsKind
(SyntaxKind.CloseParenToken) AndAlso
300
(TargetToken.
IsKind
(SyntaxKind.IdentifierToken) AndAlso
VisualBasicTypeInferenceService.TypeInferrer.vb (2)
204
ElseIf previousToken.
IsKind
(SyntaxKind.CommaToken) Then
759
If previoustoken <> Nothing AndAlso Not previoustoken.
IsKind
(SyntaxKind.YieldKeyword) Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (6)
DocumentationComments\XmlTagCompletionCommandHandler.vb (1)
41
If token.
IsKind
(SyntaxKind.GreaterThanToken) AndAlso
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (1)
26
Dim isNextToXmlEmbeddedExpression = tokenNextToLambda.
IsKind
(SyntaxKind.PercentGreaterThanToken) AndAlso tokenNextToLambda.Parent.IsKind(SyntaxKind.XmlEmbeddedExpression)
EndConstructGeneration\EndConstructStatementVisitor_Properties.vb (2)
132
If propertyDeclaration.Modifiers.Any(Function(m) m.
IsKind
(SyntaxKind.WriteOnlyKeyword)) Then
164
If propertyDeclaration.Modifiers.Any(Function(m) m.
IsKind
(SyntaxKind.ReadOnlyKeyword)) Then
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
245
If nextToken.
IsKind
(SyntaxKind.EndOfFileToken) AndAlso nextTokenLine = caretLine Then
LineCommit\CommitCommandHandler.vb (1)
205
If token.
IsKind
(SyntaxKind.StringLiteralToken) AndAlso token.FullSpan.Contains(oldCaretPositionInOldSnapshot.Value) Then
Microsoft.CodeAnalysis.VisualBasic.Features (69)
BraceCompletion\BracketBraceCompletionService.vb (1)
35
Return token.
IsKind
(SyntaxKind.OpenBraceToken)
BraceCompletion\CurlyBraceCompletionService.vb (2)
39
Return token.
IsKind
(SyntaxKind.OpenBraceToken)
43
Return token.
IsKind
(SyntaxKind.CloseBraceToken)
BraceCompletion\InterpolatedStringBraceCompletionService.vb (2)
41
Return token.
IsKind
(SyntaxKind.DollarSignDoubleQuoteToken)
45
Return token.
IsKind
(SyntaxKind.DoubleQuoteToken)
BraceCompletion\InterpolationBraceCompletionService.vb (3)
41
(token.
IsKind
(SyntaxKind.CloseBraceToken) AndAlso token.Parent.IsKind(SyntaxKind.Interpolation))
45
Return token.
IsKind
(SyntaxKind.CloseBraceToken)
69
(token.
IsKind
(SyntaxKind.CloseBraceToken) AndAlso token.Parent.IsKind(SyntaxKind.Interpolation))
BraceCompletion\LessAndGreaterThanCompletionService.vb (2)
29
Return token.
IsKind
(SyntaxKind.LessThanToken)
33
Return token.
IsKind
(SyntaxKind.LessThanGreaterThanToken)
BraceCompletion\ParenthesisBraceCompletionService.vb (2)
29
Return token.
IsKind
(SyntaxKind.OpenParenToken)
33
Return token.
IsKind
(SyntaxKind.CloseParenToken)
BraceCompletion\StringLiteralBraceCompletionService.vb (2)
39
Return token.
IsKind
(SyntaxKind.StringLiteralToken)
43
Return token.
IsKind
(SyntaxKind.StringLiteralToken)
ChangeSignature\ChangeSignatureFormattingRule.vb (1)
37
If previousToken.
IsKind
(SyntaxKind.CommaToken) AndAlso
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (2)
222
ElseIf eventExpression.DescendantTokens().Where(Function(n) n.
IsKind
(SyntaxKind.MyBaseKeyword)).Any Then
341
ElseIf keywordEventContainer.Keyword.
IsKind
(SyntaxKind.MyBaseKeyword) Then
Completion\CompletionProviders\AwaitCompletionProvider.vb (1)
85
If Not dotToken.
IsKind
(SyntaxKind.DotToken) Then
Completion\CompletionProviders\CompletionListTagCompletionProvider.vb (1)
41
If syntaxContext.TargetToken.
IsKind
(SyntaxKind.DotToken) Then
Completion\CompletionProviders\EnumCompletionProvider.vb (1)
54
If syntaxContext.TargetToken.
IsKind
(SyntaxKind.DotToken) Then
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
89
Dim textSuffix = If(rightToken.
IsKind
(SyntaxKind.ColonEqualsToken), Nothing, s_colonEquals)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (4)
69
If token.
IsKind
(SyntaxKind.XmlTextLiteralToken) AndAlso
100
ElseIf token.
IsKind
(SyntaxKind.XmlNameToken) AndAlso token.GetPreviousToken().
IsKind
(SyntaxKind.LessThanSlashToken) Then
137
Dim xmlNameOnly = token.
IsKind
(SyntaxKind.LessThanToken) OrElse token.Parent.IsKind(SyntaxKind.XmlName)
Completion\KeywordRecommenders\Declarations\AttributeScopesKeywordRecommender.vb (1)
30
If targetToken.
IsKind
(SyntaxKind.LessThanToken) AndAlso
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (1)
25
If targetToken.
IsKind
(SyntaxKind.EndKeyword) AndAlso
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (3)
22
If Not targetToken.
IsKind
(SyntaxKind.OpenParenToken) Then
45
If targetToken.
IsKind
(SyntaxKind.OpenParenToken) AndAlso targetToken.Parent.IsKind(SyntaxKind.TypeArgumentList) Then
52
If targetToken.
IsKind
(SyntaxKind.OpenParenToken) AndAlso targetToken.Parent.IsKind(SyntaxKind.TypeArgumentList) Then
Completion\KeywordRecommenders\Declarations\OverloadableOperatorRecommender.vb (1)
24
If Not targetToken.
IsKind
(SyntaxKind.OperatorKeyword) OrElse
Completion\KeywordRecommenders\Expressions\NewKeywordRecommender.vb (1)
37
Function(m) m.
IsKind
(SyntaxKind.WriteOnlyKeyword))) Then
Completion\KeywordRecommenders\OnErrorStatements\ErrorKeywordRecommender.vb (1)
20
If targetToken.
IsKind
(SyntaxKind.OnKeyword) AndAlso IsOnErrorStatement(targetToken.Parent) Then
Completion\KeywordRecommenders\OnErrorStatements\NextKeywordRecommender.vb (1)
26
Return If(targetToken.
IsKind
(SyntaxKind.ResumeKeyword) AndAlso Not context.IsInLambda AndAlso targetToken.Parent.IsKind(SyntaxKind.OnErrorResumeNextStatement, SyntaxKind.ResumeStatement, SyntaxKind.ResumeNextStatement),
Completion\KeywordRecommenders\OptionStatements\CompareBinaryTextRecommender.vb (1)
26
Return If(context.TargetToken.
IsKind
(SyntaxKind.CompareKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\ExplicitOptionsRecommender.vb (1)
26
Return If(context.TargetToken.
IsKind
(SyntaxKind.ExplicitKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\InferOptionsRecommender.vb (1)
26
Return If(context.TargetToken.
IsKind
(SyntaxKind.InferKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\OptionNamesRecommender.vb (1)
28
Return If(context.TargetToken.
IsKind
(SyntaxKind.OptionKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\OptionStatements\StrictOptionsRecommender.vb (1)
26
Return If(context.TargetToken.
IsKind
(SyntaxKind.StrictKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty)
Completion\KeywordRecommenders\PreprocessorDirectives\WarningDirectiveKeywordRecommender.vb (2)
23
If context.TargetToken.
IsKind
(SyntaxKind.EnableKeyword) Then
25
ElseIf context.TargetToken.
IsKind
(SyntaxKind.DisableKeyword) Then
Completion\KeywordRecommenders\Statements\DoKeywordRecommender.vb (1)
37
If targetToken.
IsKind
(SyntaxKind.ExitKeyword) Then
Completion\KeywordRecommenders\Statements\EachKeywordRecommender.vb (1)
28
If targetToken.
IsKind
(SyntaxKind.ForKeyword) AndAlso targetToken.Parent.IsKind(SyntaxKind.ForStatement) Then
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (1)
53
If context.TargetToken.
IsKind
(SyntaxKind.ThenKeyword) AndAlso
Completion\KeywordRecommenders\Statements\ForKeywordRecommender.vb (1)
34
If targetToken.
IsKind
(SyntaxKind.ExitKeyword) Then
Completion\KeywordRecommenders\Statements\SelectKeywordRecommender.vb (1)
23
If targetToken.
IsKind
(SyntaxKind.ExitKeyword) AndAlso
Completion\KeywordRecommenders\Statements\TryKeywordRecommender.vb (1)
28
If targetToken.
IsKind
(SyntaxKind.ExitKeyword) AndAlso
Completion\KeywordRecommenders\Statements\WhileLoopKeywordRecommender.vb (1)
34
If(targetToken.
IsKind
(SyntaxKind.ExitKeyword),
ConvertAutoPropertyToFullProperty\VisualBasicConvertAutoPropertyToFullProperty.vb (1)
70
If modifier.
IsKind
(SyntaxKind.ReadOnlyKeyword) Then
Debugging\BreakpointResolver.vb (2)
42
If methodBlock.BlockStatement.Modifiers.Any(Function(t) t.
IsKind
(SyntaxKind.PartialKeyword)) Then
89
Return If(SyntaxFactory.ParseToken(text, offset).
IsKind
(SyntaxKind.OpenParenToken),
Debugging\DataTipInfoGetter.vb (2)
19
If token.
IsKind
(SyntaxKind.CommaToken) Then
31
Return If(token.
IsKind
(SyntaxKind.IdentifierToken),
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1242
Not memberAccess.Name.Identifier.
IsKind
(SyntaxKind.IdentifierToken) Then
GenerateMember\GenerateParameterizedMember\VisualBasicCommonGenerationServiceMethods.vb (1)
16
If optionStatement?.ValueKeyword.
IsKind
(SyntaxKind.OnKeyword) Then
GenerateType\VisualBasicGenerateTypeService.vb (6)
141
Not token.
IsKind
(SyntaxKind.DotToken) Then
152
If token.
IsKind
(SyntaxKind.DotToken) AndAlso
167
If simpleName.IsLeftSideOfDot() OrElse nextToken.
IsKind
(SyntaxKind.DotToken) Then
184
If nextToken.
IsKind
(SyntaxKind.DotToken) Then
210
If nextToken.
IsKind
(SyntaxKind.DotToken) Then
233
If Not nextToken.
IsKind
(SyntaxKind.DotToken) AndAlso
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (1)
152
If token.
IsKind
(SyntaxKind.DotToken) AndAlso
RemoveSharedFromModuleMembers\VisualBasicRemoveSharedFromModuleMembersCodeFixProvider.vb (1)
42
If Not tokenToRemove.
IsKind
(SyntaxKind.SharedKeyword) Then
SignatureHelp\CollectionInitializerSignatureHelpProvider.vb (1)
38
Return Not token.
IsKind
(SyntaxKind.None) AndAlso
Structure\VisualBasicStructureHelpers.vb (3)
98
If startToken.
IsKind
(SyntaxKind.None) OrElse endToken.
IsKind
(SyntaxKind.None) Then
145
If(eventStatement.CustomKeyword.
IsKind
(SyntaxKind.None), eventStatement.DeclarationKeyword, eventStatement.CustomKeyword))
VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
41
Dim tokenList = SyntaxFactory.TokenList(node.Modifiers.Where(Function(m) Not m.
IsKind
(SyntaxKind.ByValKeyword)))
VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
28
If modifier.
IsKind
(SyntaxKind.ByValKeyword) Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
TestSyntaxNodes.vb (1)
1484
Dim tokens = expr.DescendantTokens().Where(Function(t) t.
IsKind
(SyntaxKind.IdentifierToken)).ToList()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (41)
CaseCorrection\VisualBasicCaseCorrectionService.vb (1)
42
Dim candidates = root.DescendantTokens(span).Where(Function(tk As SyntaxToken) tk.Width > 0 OrElse tk.
IsKind
(SyntaxKind.EndOfFileToken))
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
276
If token.IsMissing OrElse Not (SyntaxFacts.IsOperator(token.Kind) OrElse token.
IsKind
(SyntaxKind.ColonEqualsToken)) Then
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
424
ComputePositionAndTriviaForRemoveAttributeFromAttributeList(attributeToRemove, Function(t As SyntaxToken) t.
IsKind
(SyntaxKind.CommaToken), positionOfRemovedNode, trivia)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
1477
Dim mods = SyntaxFactory.TokenList(propertyStatement.Modifiers.Where(Function(tk) tk.
IsKind
(SyntaxKind.ReadOnlyKeyword) Or tk.
IsKind
(SyntaxKind.DefaultKeyword)))
1720
Return attr.Target IsNot Nothing AndAlso attr.Target.AttributeModifier.
IsKind
(SyntaxKind.AssemblyKeyword)
Formatting\Rules\NodeBasedFormattingRule.vb (2)
140
If (Item1PreviousToken.
IsKind
(SyntaxKind.GreaterThanToken) AndAlso
153
If nextTokenAfterCase.
IsKind
(SyntaxKind.CaseKeyword) Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (4)
191
If token.
IsKind
(SyntaxKind.StringLiteralToken) Then
219
Dim lastChar = If(token.
IsKind
(SyntaxKind.CharacterLiteralToken), "'", """")
227
If token.
IsKind
(SyntaxKind.CharacterLiteralToken) Then
304
If token.
IsKind
(SyntaxKind.None) Then
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb\SyntaxTokenExtensions.vb (4)
97
If targetToken.
IsKind
(SyntaxKind.HashToken) AndAlso targetToken.TrailingTrivia.Any(Function(t)
100
Return childTokens.Count() = 1 AndAlso childTokens.First().
IsKind
(SyntaxKind.EndKeyword)
108
Return targetToken.
IsKind
(SyntaxKind.EndKeyword) AndAlso
109
targetToken.GetPreviousToken().
IsKind
(SyntaxKind.HashToken) AndAlso
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (5)
27
If Not token.
IsKind
(SyntaxKind.EmptyToken) AndAlso token.Span.End < position Then
469
If targetToken.
IsKind
(SyntaxKind.DotToken) AndAlso
778
If Not targetToken.
IsKind
(SyntaxKind.DotToken) OrElse
1079
If tokenOnLeftOfPosition.
IsKind
(SyntaxKind.OpenParenToken) Then
1084
Return tokenOnLeftOfPosition.
IsKind
(SyntaxKind.CommaToken) AndAlso
ModifierCollectionFacts.vb (3)
53
If _accessibilityKeyword.
IsKind
(SyntaxKind.ProtectedKeyword) Then
63
If targetToken.
IsKind
(SyntaxKind.ProtectedKeyword) AndAlso _accessibilityKeyword.
IsKind
(SyntaxKind.FriendKeyword) Then
ParenthesizedExpressionSyntaxExtensions.vb (1)
186
If firstToken.
IsKind
(SyntaxKind.LessThanToken) AndAlso
Recommendations\VisualBasicRecommendationServiceRunner.vb (3)
57
ElseIf _context.TargetToken.
IsKind
(SyntaxKind.ForKeyword) Then
144
If Not _context.TargetToken.
IsKind
(SyntaxKind.OpenParenToken) OrElse
295
Dim unwrapNullable = _context.TargetToken.GetPreviousToken().
IsKind
(SyntaxKind.QuestionToken)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
285
If newToken.
IsKind
(SyntaxKind.NewKeyword) Then
VisualBasicIndentationService.Indenter.vb (6)
157
If containingToken.
IsKind
(SyntaxKind.InterpolatedStringTextToken) OrElse
158
containingToken.
IsKind
(SyntaxKind.InterpolatedStringText) OrElse
159
(containingToken.
IsKind
(SyntaxKind.CloseBraceToken) AndAlso token.Parent.IsKind(SyntaxKind.Interpolation)) Then
181
If Not lastVisibleTokenOnPreviousLine.
IsKind
(SyntaxKind.OpenBraceToken) AndAlso
182
Not lastVisibleTokenOnPreviousLine.
IsKind
(SyntaxKind.CommaToken) Then
204
If visibleTokenOnCurrentLine.
IsKind
(SyntaxKind.CloseBraceToken) Then
VisualBasicSyntaxContext.vb (3)
259
If targetToken.
IsKind
(SyntaxKind.HashToken) AndAlso targetToken.Span.End = position Then
293
Return (TargetToken.
IsKind
(SyntaxKind.CloseParenToken) AndAlso
300
(TargetToken.
IsKind
(SyntaxKind.IdentifierToken) AndAlso
VisualBasicSyntaxFacts.vb (1)
1260
Return attributeNode.Target.AttributeModifier.
IsKind
(attributeTarget)
VisualBasicTypeInferenceService.TypeInferrer.vb (2)
204
ElseIf previousToken.
IsKind
(SyntaxKind.CommaToken) Then
759
If previoustoken <> Nothing AndAlso Not previoustoken.
IsKind
(SyntaxKind.YieldKeyword) Then
Microsoft.VisualStudio.LanguageServices.VisualBasic (7)
Help\VisualBasicHelpContextService.Visitor.vb (7)
500
If node.AscendingOrDescendingKeyword.
IsKind
(SyntaxKind.AscendingKeyword) Then
639
If node.OperatorToken.
IsKind
(SyntaxKind.MinusToken) Then
643
If node.OperatorToken.
IsKind
(SyntaxKind.AddressOfKeyword) Then
795
If token.
IsKind
(kind1) AndAlso list.Any(Function(t) t.
IsKind
(kind2)) Then
800
If token.
IsKind
(kind2) AndAlso list.Any(Function(t) t.
IsKind
(kind1)) Then