37 references to IsAfterKeyword
Microsoft.CodeAnalysis.CSharp.Features (31)
Completion\KeywordRecommenders\AbstractSpecialTypePreselectingKeywordRecommender.cs (2)
44
if (!syntaxTree.
IsAfterKeyword
(position, SyntaxKind.RefKeyword, cancellationToken) &&
45
!syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ReadOnlyKeyword, cancellationToken))
Completion\KeywordRecommenders\BoolKeywordRecommender.cs (2)
37
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\CharKeywordRecommender.cs (2)
37
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (2)
37
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\DoubleKeywordRecommender.cs (2)
37
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (1)
55
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
Completion\KeywordRecommenders\FloatKeywordRecommender.cs (2)
37
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\IntKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\LongKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ObjectKeywordRecommender.cs (1)
37
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\StringKeywordRecommender.cs (1)
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
Completion\KeywordRecommenders\UIntKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\ULongKeywordRecommender.cs (2)
38
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
39
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (2)
45
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
46
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (6)
730
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ConstKeyword, cancellationToken) ||
731
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.RefKeyword, cancellationToken) ||
732
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.ReadOnlyKeyword, cancellationToken) ||
733
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.CaseKeyword, cancellationToken) ||
734
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.EventKeyword, cancellationToken) ||
735
syntaxTree.
IsAfterKeyword
(position, SyntaxKind.StackAllocKeyword, cancellationToken) ||