37 references to SetKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (2)
3836case SyntaxKind.SetKeyword: 4105SyntaxKind.SetKeyword => SyntaxKind.SetAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
179var keywordForSetAccessor = IsInitOnly(symbol.SetMethod) ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword; 452IsInitOnly(symbol) ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword);
Syntax\SyntaxKindFacts.cs (5)
742case SyntaxKind.SetKeyword: 775case SyntaxKind.SetKeyword: 1162case SyntaxKind.SetKeyword: 1253return SyntaxKind.SetKeyword; 1691case SyntaxKind.SetKeyword:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\SetKeywordRecommender.cs (3)
14: base(SyntaxKind.SetKeyword) 21context.TargetToken.IsAccessorDeclarationContext<PropertyDeclarationSyntax>(position, SyntaxKind.SetKeyword) || 22context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, SyntaxKind.SetKeyword);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (24)
Parsing\AsyncParsingTests.cs (2)
1001N(SyntaxKind.SetKeyword); 1047N(SyntaxKind.SetKeyword);
Parsing\DeclarationParsingTests.cs (15)
4152Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4206Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4261Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4334Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4388Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4441Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4472TestClassPropertyWithValue(SyntaxKind.SetAccessorDeclaration, SyntaxKind.SetKeyword, SyntaxKind.IdentifierToken); 4639Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4724Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 4985Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 5052Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 5120Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 5196Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 5265Assert.Equal(SyntaxKind.SetKeyword, ps.AccessorList.Accessors[1].Keyword.Kind()); 6513N(SyntaxKind.SetKeyword);
Parsing\FileModifierParsingTests.cs (2)
983N(SyntaxKind.SetKeyword); 1127N(SyntaxKind.SetKeyword);
Parsing\MemberDeclarationParsingTests.cs (3)
1160N(SyntaxKind.SetKeyword); 1189N(SyntaxKind.SetKeyword); 10420N(SyntaxKind.SetKeyword);
Parsing\ParsingErrorRecoveryTests.cs (1)
5805Assert.Equal(SyntaxKind.SetKeyword, setDecl.Keyword.Kind());
Parsing\TopLevelStatementsParsingTests.cs (1)
871N(SyntaxKind.SetKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
268=> token.IsKind(SyntaxKind.SetKeyword)