65 references to GetKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (2)
3835
case SyntaxKind.
GetKeyword
:
4104
SyntaxKind.
GetKeyword
=> SyntaxKind.GetAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
178
AddAccessor(symbol, symbol.GetMethod, SyntaxKind.
GetKeyword
);
451
AddKeyword(symbol.MethodKind == MethodKind.PropertyGet ? SyntaxKind.
GetKeyword
:
Syntax\SyntaxKindFacts.cs (5)
740
case SyntaxKind.
GetKeyword
:
774
case SyntaxKind.
GetKeyword
:
1161
case SyntaxKind.
GetKeyword
:
1251
return SyntaxKind.
GetKeyword
;
1689
case SyntaxKind.
GetKeyword
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
418
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 (51)
Generated\Syntax.Test.xml.Generated.cs (4)
578
=> 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);
3148
Assert.Equal(SyntaxKind.
GetKeyword
, node.Keyword.Kind);
10554
=> SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.
GetKeyword
), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
13124
Assert.Equal(SyntaxKind.
GetKeyword
, node.Keyword.Kind());
Parsing\AsyncParsingTests.cs (4)
996
N(SyntaxKind.
GetKeyword
);
1042
N(SyntaxKind.
GetKeyword
);
2462
N(SyntaxKind.
GetKeyword
);
2578
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\FileModifierParsingTests.cs (2)
978
N(SyntaxKind.
GetKeyword
);
1122
N(SyntaxKind.
GetKeyword
);
Parsing\MemberDeclarationParsingTests.cs (7)
1073
N(SyntaxKind.
GetKeyword
);
1222
N(SyntaxKind.
GetKeyword
);
1248
N(SyntaxKind.
GetKeyword
);
1296
N(SyntaxKind.
GetKeyword
);
1364
N(SyntaxKind.
GetKeyword
);
1736
N(SyntaxKind.
GetKeyword
);
10415
N(SyntaxKind.
GetKeyword
);
Parsing\ParsingErrorRecoveryTests.cs (5)
5663
Assert.Equal(SyntaxKind.
GetKeyword
, acc.Keyword.Kind());
5698
Assert.Equal(SyntaxKind.
GetKeyword
, acc.Keyword.Kind());
5737
Assert.Equal(SyntaxKind.
GetKeyword
, acc.Keyword.Kind());
5768
Assert.Equal(SyntaxKind.
GetKeyword
, getDecl.Keyword.Kind());
5800
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)
264
=> token.IsKind(SyntaxKind.
GetKeyword
)