70 references to SetKeyword
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser.cs (2)
4208
case SyntaxKind.
SetKeyword
:
4479
SyntaxKind.
SetKeyword
=> SyntaxKind.SetAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
178
var keywordForSetAccessor = IsInitOnly(symbol.SetMethod) ? SyntaxKind.InitKeyword : SyntaxKind.
SetKeyword
;
442
IsInitOnly(symbol) ? SyntaxKind.InitKeyword : SyntaxKind.
SetKeyword
);
Symbols\Source\SourcePropertySymbolBase.cs (1)
347
{ MethodKind: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.
SetKeyword
),
Syntax\SyntaxKindFacts.cs (5)
770
case SyntaxKind.
SetKeyword
:
803
case SyntaxKind.
SetKeyword
:
1195
case SyntaxKind.
SetKeyword
:
1287
return SyntaxKind.
SetKeyword
;
1727
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 (56)
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\DeclarationParsingTests_MissingIdentifiers.cs (19)
77
N(SyntaxKind.
SetKeyword
);
101
N(SyntaxKind.
SetKeyword
);
218
N(SyntaxKind.
SetKeyword
);
413
N(SyntaxKind.
SetKeyword
);
634
N(SyntaxKind.
SetKeyword
);
924
N(SyntaxKind.
SetKeyword
);
1135
N(SyntaxKind.
SetKeyword
);
1440
N(SyntaxKind.
SetKeyword
);
1644
N(SyntaxKind.
SetKeyword
);
2009
N(SyntaxKind.
SetKeyword
);
2033
N(SyntaxKind.
SetKeyword
);
2150
N(SyntaxKind.
SetKeyword
);
2345
N(SyntaxKind.
SetKeyword
);
2569
N(SyntaxKind.
SetKeyword
);
2802
N(SyntaxKind.
SetKeyword
);
3013
N(SyntaxKind.
SetKeyword
);
3330
N(SyntaxKind.
SetKeyword
);
3669
N(SyntaxKind.
SetKeyword
);
3973
N(SyntaxKind.
SetKeyword
);
Parsing\FieldKeywordParsingTests.cs (10)
89
N(SyntaxKind.
SetKeyword
);
294
N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.
SetKeyword
);
564
N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.
SetKeyword
);
715
N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.
SetKeyword
);
808
N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.
SetKeyword
);
1505
N(SyntaxKind.
SetKeyword
);
1583
N(SyntaxKind.
SetKeyword
);
1647
N(SyntaxKind.
SetKeyword
);
1774
N(SyntaxKind.
SetKeyword
);
1864
N(SyntaxKind.
SetKeyword
);
Parsing\FileModifierParsingTests.cs (2)
983
N(SyntaxKind.
SetKeyword
);
1127
N(SyntaxKind.
SetKeyword
);
Parsing\MemberDeclarationParsingTests.cs (6)
1154
N(SyntaxKind.
SetKeyword
);
1183
N(SyntaxKind.
SetKeyword
);
10409
N(SyntaxKind.
SetKeyword
);
17146
N(SyntaxKind.
SetKeyword
);
17267
N(SyntaxKind.
SetKeyword
);
17340
N(SyntaxKind.
SetKeyword
);
Parsing\ParsingErrorRecoveryTests.cs (1)
6609
Assert.Equal(SyntaxKind.
SetKeyword
, setDecl.Keyword.Kind());
Parsing\TopLevelStatementsParsingTests.cs (1)
871
N(SyntaxKind.
SetKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
265
=> token.IsKind(SyntaxKind.
SetKeyword
)