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