142 references to SyntaxKindSet
Microsoft.CodeAnalysis.CSharp.Features (138)
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (3)
106return syntaxTree.IsMemberDeclarationContext(position, context: null, SyntaxKindSet.AllMemberModifiers, SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: true, cancellationToken) || 108syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) ||
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
59validTypeDeclarations: SyntaxKindSet.ClassRecordTypeDeclarations, 64validTypeDeclarations: SyntaxKindSet.InterfaceOnlyTypeDeclarations, 69validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\AsyncKeywordRecommender.cs (3)
42|| context.SyntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) 44validModifiers: SyntaxKindSet.AllMemberModifiers, 45validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\BoolKeywordRecommender.cs (3)
45syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 48validModifiers: SyntaxKindSet.AllMemberModifiers, 49validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ByteKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\CharKeywordRecommender.cs (3)
45syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 48validModifiers: SyntaxKindSet.AllMemberModifiers, 49validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
40validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (1)
49validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (3)
45syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 48validModifiers: SyntaxKindSet.AllMemberModifiers, 49validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
38validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\DoubleKeywordRecommender.cs (3)
45syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 48validModifiers: SyntaxKindSet.AllMemberModifiers, 49validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (3)
63syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 65validModifiers: SyntaxKindSet.AllMemberModifiers, 66validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
33validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (4)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 47context.IsMemberDeclarationContext(validModifiers: s_validClassModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken) || 48context.IsMemberDeclarationContext(validModifiers: s_validStructModifiers, validTypeDeclarations: SyntaxKindSet.StructOnlyTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken) || 49context.IsMemberAttributeContext(SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, cancellationToken);
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (2)
37if (context.IsMemberDeclarationContext(validModifiers: s_validNonInterfaceMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 46else if (context.IsMemberDeclarationContext(validModifiers: s_validInterfaceMemberModifiers, validTypeDeclarations: SyntaxKindSet.InterfaceOnlyTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
59validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\FileKeywordRecommender.cs (2)
16private static readonly ISet<SyntaxKind> s_validModifiers = SyntaxKindSet.AllMemberModifiers 28&& context.IsTypeDeclarationContext(s_validModifiers, SyntaxKindSet.AllTypeDeclarations, canBePartial: true, cancellationToken);
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (2)
36(context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 37context.IsMemberDeclarationContext(validModifiers: s_validModifiers, validTypeDeclarations: SyntaxKindSet.StructOnlyTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken));
Completion\KeywordRecommenders\FloatKeywordRecommender.cs (3)
45syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 48validModifiers: SyntaxKindSet.AllMemberModifiers, 49validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (2)
37if (context.IsMemberDeclarationContext(validModifiers: s_validNonInterfaceMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 46else if (context.IsMemberDeclarationContext(validModifiers: s_validInterfaceMemberModifiers, validTypeDeclarations: SyntaxKindSet.InterfaceOnlyTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
34validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (5)
41if (context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 42context.IsMemberDeclarationContext(validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 52if (context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
Completion\KeywordRecommenders\IntKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\LongKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\MethodKeywordRecommender.cs (1)
22if (context.IsMemberAttributeContext(SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, cancellationToken))
Completion\KeywordRecommenders\NewKeywordRecommender.cs (3)
64if (context.IsTypeDeclarationContext(validModifiers: ValidTypeModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 79context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 82validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ObjectKeywordRecommender.cs (3)
44syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 47validModifiers: SyntaxKindSet.AllMemberModifiers, 48validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
35validTypeDeclarations: SyntaxKindSet.ClassStructRecordTypeDeclarations,
Completion\KeywordRecommenders\PartialKeywordRecommender.cs (3)
39if (context.IsMemberDeclarationContext(validModifiers: s_validMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 59validModifiers: SyntaxKindSet.AllTypeModifiers, 60validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (5)
42if (context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 43context.IsMemberDeclarationContext(validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 64if (context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
Completion\KeywordRecommenders\PropertyKeywordRecommender.cs (1)
19=> context.IsMemberAttributeContext(SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, cancellationToken);
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (4)
40if (context.IsMemberDeclarationContext(validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken)) 50if (context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (5)
28if (context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 30validModifiers: SyntaxKindSet.AllMemberModifiers, 31validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, 43if (context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (4)
35context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 38validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, 50return context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers, 51validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: true, cancellationToken);
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
40validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (6)
21/// Same as <see cref="SyntaxKindSet.AllMemberModifiers"/> with ref specific exclusions 43/// Same as <see cref="SyntaxKindSet.AllGlobalMemberModifiers"/> with ref-specific exclusions 61/// Same as <see cref="SyntaxKindSet.AllGlobalMemberModifiers"/> with ref-specific exclusions for C# script 120validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, 195return context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers, 196validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: true, cancellationToken);
Completion\KeywordRecommenders\RequiredKeywordRecommender.cs (2)
16private static readonly ISet<SyntaxKind> s_validModifiers = SyntaxKindSet.AllMemberModifiers.Where(s => s is not (SyntaxKind.RequiredKeyword or SyntaxKind.StaticKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.ConstKeyword)).ToSet(); 18private static readonly ISet<SyntaxKind> s_validTypeDeclarations = SyntaxKindSet.ClassStructRecordTypeDeclarations;
Completion\KeywordRecommenders\ReturnKeywordRecommender.cs (1)
31context.IsMemberAttributeContext(SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, cancellationToken) ||
Completion\KeywordRecommenders\SByteKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
59validTypeDeclarations: SyntaxKindSet.ClassRecordTypeDeclarations, 64validTypeDeclarations: SyntaxKindSet.InterfaceOnlyTypeDeclarations, 69validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ShortKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (3)
97validTypeDeclarations: SyntaxKindSet.ClassStructRecordTypeDeclarations, 102validTypeDeclarations: SyntaxKindSet.InterfaceOnlyTypeDeclarations, 111validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\StringKeywordRecommender.cs (3)
48syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 51validModifiers: SyntaxKindSet.AllMemberModifiers, 52validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
38validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\UIntKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\ULongKeywordRecommender.cs (3)
46syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 49validModifiers: SyntaxKindSet.AllMemberModifiers, 50validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (2)
74context.IsTypeDeclarationContext(validModifiers: s_validTypeModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken) || 78validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\UShortKeywordRecommender.cs (3)
53syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 56validModifiers: SyntaxKindSet.AllMemberModifiers, 57validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
46validTypeDeclarations: SyntaxKindSet.ClassRecordTypeDeclarations, 51validTypeDeclarations: SyntaxKindSet.InterfaceOnlyTypeDeclarations,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (4)
57context.SyntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 109=> context.SyntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 110context.IsMemberDeclarationContext(validModifiers: s_validClassInterfaceRecordModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceRecordTypeDeclarations, canBePartial: true, cancellationToken) || 111context.IsMemberDeclarationContext(validModifiers: s_validStructModifiers, validTypeDeclarations: SyntaxKindSet.StructOnlyTypeDeclarations, canBePartial: false, cancellationToken);
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (2)
34context.SyntaxTree.IsGlobalMemberDeclarationContext(context.Position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 37validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (2)
38SyntaxKindSet.AllMemberModifiers, SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: true, cancellationToken);
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
54validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,
Snippets\CSharpConstructorSnippetProvider.cs (1)
42validTypeDeclarations: SyntaxKindSet.ClassStructRecordTypeDeclarations,
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpSyntaxContext.cs (1)
327token.SpanStart, contextOpt: null, validModifiers: null, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
754syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || 759validModifiers: SyntaxKindSet.AllMemberModifiers, 760validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations,