97 references to GetKeyword
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser.cs (2)
4207
case SyntaxKind.
GetKeyword
:
4478
SyntaxKind.
GetKeyword
=> SyntaxKind.GetAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
177
AddAccessor(symbol, symbol.GetMethod, SyntaxKind.
GetKeyword
);
441
AddKeyword(symbol.MethodKind == MethodKind.PropertyGet ? SyntaxKind.
GetKeyword
:
Symbols\Source\SourcePropertySymbolBase.cs (1)
346
{ MethodKind: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.
GetKeyword
),
Syntax\SyntaxKindFacts.cs (5)
768
case SyntaxKind.
GetKeyword
:
802
case SyntaxKind.
GetKeyword
:
1194
case SyntaxKind.
GetKeyword
:
1285
return SyntaxKind.
GetKeyword
;
1725
case SyntaxKind.
GetKeyword
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
415
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
GetKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\GetKeywordRecommender.cs (3)
14
: base(SyntaxKind.
GetKeyword
)
21
context.TargetToken.IsAccessorDeclarationContext<PropertyDeclarationSyntax>(position, SyntaxKind.
GetKeyword
) ||
22
context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, SyntaxKind.
GetKeyword
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (82)
Generated\Syntax.Test.xml.Generated.cs (4)
596
=> InternalSyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.
GetKeyword
), null, null, null);
3231
Assert.Equal(SyntaxKind.
GetKeyword
, node.Keyword.Kind);
10812
=> SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
GetKeyword
), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
13447
Assert.Equal(SyntaxKind.
GetKeyword
, node.Keyword.Kind());
Parsing\AsyncParsingTests.cs (4)
996
N(SyntaxKind.
GetKeyword
);
1042
N(SyntaxKind.
GetKeyword
);
2451
N(SyntaxKind.
GetKeyword
);
2567
N(SyntaxKind.
GetKeyword
);
Parsing\DeclarationParsingTests.cs (15)
4145
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4199
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4254
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4327
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4381
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4435
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4471
TestClassPropertyWithValue(SyntaxKind.GetAccessorDeclaration, SyntaxKind.
GetKeyword
, SyntaxKind.IdentifierToken);
4632
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4717
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
4978
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
5045
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
5113
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
5189
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
5258
Assert.Equal(SyntaxKind.
GetKeyword
, ps.AccessorList.Accessors[0].Keyword.Kind());
6298
N(SyntaxKind.
GetKeyword
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (20)
72
N(SyntaxKind.
GetKeyword
);
96
N(SyntaxKind.
GetKeyword
);
213
N(SyntaxKind.
GetKeyword
);
408
N(SyntaxKind.
GetKeyword
);
629
N(SyntaxKind.
GetKeyword
);
919
N(SyntaxKind.
GetKeyword
);
1130
N(SyntaxKind.
GetKeyword
);
1301
N(SyntaxKind.
GetKeyword
);
1435
N(SyntaxKind.
GetKeyword
);
1639
N(SyntaxKind.
GetKeyword
);
2004
N(SyntaxKind.
GetKeyword
);
2028
N(SyntaxKind.
GetKeyword
);
2145
N(SyntaxKind.
GetKeyword
);
2340
N(SyntaxKind.
GetKeyword
);
2564
N(SyntaxKind.
GetKeyword
);
2797
N(SyntaxKind.
GetKeyword
);
3008
N(SyntaxKind.
GetKeyword
);
3325
N(SyntaxKind.
GetKeyword
);
3664
N(SyntaxKind.
GetKeyword
);
3968
N(SyntaxKind.
GetKeyword
);
Parsing\FieldKeywordParsingTests.cs (6)
84
N(SyntaxKind.
GetKeyword
);
186
N(SyntaxKind.
GetKeyword
);
237
N(SyntaxKind.
GetKeyword
);
426
N(SyntaxKind.
GetKeyword
);
492
N(SyntaxKind.
GetKeyword
);
2174
N(SyntaxKind.
GetKeyword
);
Parsing\FileModifierParsingTests.cs (2)
978
N(SyntaxKind.
GetKeyword
);
1122
N(SyntaxKind.
GetKeyword
);
Parsing\MemberDeclarationParsingTests.cs (12)
1067
N(SyntaxKind.
GetKeyword
);
1216
N(SyntaxKind.
GetKeyword
);
1242
N(SyntaxKind.
GetKeyword
);
1290
N(SyntaxKind.
GetKeyword
);
1358
N(SyntaxKind.
GetKeyword
);
1730
N(SyntaxKind.
GetKeyword
);
10404
N(SyntaxKind.
GetKeyword
);
17141
N(SyntaxKind.
GetKeyword
);
17262
N(SyntaxKind.
GetKeyword
);
17335
N(SyntaxKind.
GetKeyword
);
18773
N(SyntaxKind.
GetKeyword
);
18869
N(SyntaxKind.
GetKeyword
);
Parsing\ParsingErrorRecoveryTests.cs (5)
6467
Assert.Equal(SyntaxKind.
GetKeyword
, acc.Keyword.Kind());
6502
Assert.Equal(SyntaxKind.
GetKeyword
, acc.Keyword.Kind());
6541
Assert.Equal(SyntaxKind.
GetKeyword
, acc.Keyword.Kind());
6572
Assert.Equal(SyntaxKind.
GetKeyword
, getDecl.Keyword.Kind());
6604
Assert.Equal(SyntaxKind.
GetKeyword
, getDecl.Keyword.Kind());
Parsing\RefFieldParsingTests.cs (1)
314
N(SyntaxKind.
GetKeyword
);
Parsing\ScriptParsingTests.cs (12)
837
N(SyntaxKind.
GetKeyword
);
893
N(SyntaxKind.
GetKeyword
);
942
N(SyntaxKind.
GetKeyword
);
1304
N(SyntaxKind.
GetKeyword
);
1637
N(SyntaxKind.
GetKeyword
);
1684
N(SyntaxKind.
GetKeyword
);
1787
N(SyntaxKind.
GetKeyword
);
1806
N(SyntaxKind.
GetKeyword
);
2077
N(SyntaxKind.
GetKeyword
);
2096
N(SyntaxKind.
GetKeyword
);
2127
N(SyntaxKind.
GetKeyword
);
2155
N(SyntaxKind.
GetKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (1)
866
N(SyntaxKind.
GetKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
261
=> token.IsKind(SyntaxKind.
GetKeyword
)