65 references to GetKeyword
Microsoft.CodeAnalysis.CSharp (9)
Parser\LanguageParser.cs (2)
3835case SyntaxKind.GetKeyword: 4104SyntaxKind.GetKeyword => SyntaxKind.GetAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
178AddAccessor(symbol, symbol.GetMethod, SyntaxKind.GetKeyword); 451AddKeyword(symbol.MethodKind == MethodKind.PropertyGet ? SyntaxKind.GetKeyword :
Syntax\SyntaxKindFacts.cs (5)
740case SyntaxKind.GetKeyword: 774case SyntaxKind.GetKeyword: 1161case SyntaxKind.GetKeyword: 1251return SyntaxKind.GetKeyword; 1689case SyntaxKind.GetKeyword:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
418await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.GetKeyword);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\GetKeywordRecommender.cs (3)
14: base(SyntaxKind.GetKeyword) 21context.TargetToken.IsAccessorDeclarationContext<PropertyDeclarationSyntax>(position, SyntaxKind.GetKeyword) || 22context.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); 3148Assert.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)); 13124Assert.Equal(SyntaxKind.GetKeyword, node.Keyword.Kind());
Parsing\AsyncParsingTests.cs (4)
996N(SyntaxKind.GetKeyword); 1042N(SyntaxKind.GetKeyword); 2462N(SyntaxKind.GetKeyword); 2578N(SyntaxKind.GetKeyword);
Parsing\DeclarationParsingTests.cs (15)
4145Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4199Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4254Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4327Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4381Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4435Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4471TestClassPropertyWithValue(SyntaxKind.GetAccessorDeclaration, SyntaxKind.GetKeyword, SyntaxKind.IdentifierToken); 4632Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4717Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 4978Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 5045Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 5113Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 5189Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 5258Assert.Equal(SyntaxKind.GetKeyword, ps.AccessorList.Accessors[0].Keyword.Kind()); 6298N(SyntaxKind.GetKeyword);
Parsing\FileModifierParsingTests.cs (2)
978N(SyntaxKind.GetKeyword); 1122N(SyntaxKind.GetKeyword);
Parsing\MemberDeclarationParsingTests.cs (7)
1073N(SyntaxKind.GetKeyword); 1222N(SyntaxKind.GetKeyword); 1248N(SyntaxKind.GetKeyword); 1296N(SyntaxKind.GetKeyword); 1364N(SyntaxKind.GetKeyword); 1736N(SyntaxKind.GetKeyword); 10415N(SyntaxKind.GetKeyword);
Parsing\ParsingErrorRecoveryTests.cs (5)
5663Assert.Equal(SyntaxKind.GetKeyword, acc.Keyword.Kind()); 5698Assert.Equal(SyntaxKind.GetKeyword, acc.Keyword.Kind()); 5737Assert.Equal(SyntaxKind.GetKeyword, acc.Keyword.Kind()); 5768Assert.Equal(SyntaxKind.GetKeyword, getDecl.Keyword.Kind()); 5800Assert.Equal(SyntaxKind.GetKeyword, getDecl.Keyword.Kind());
Parsing\RefFieldParsingTests.cs (1)
314N(SyntaxKind.GetKeyword);
Parsing\ScriptParsingTests.cs (12)
837N(SyntaxKind.GetKeyword); 893N(SyntaxKind.GetKeyword); 942N(SyntaxKind.GetKeyword); 1304N(SyntaxKind.GetKeyword); 1637N(SyntaxKind.GetKeyword); 1684N(SyntaxKind.GetKeyword); 1787N(SyntaxKind.GetKeyword); 1806N(SyntaxKind.GetKeyword); 2077N(SyntaxKind.GetKeyword); 2096N(SyntaxKind.GetKeyword); 2127N(SyntaxKind.GetKeyword); 2155N(SyntaxKind.GetKeyword);
Parsing\TopLevelStatementsParsingTests.cs (1)
866N(SyntaxKind.GetKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
264=> token.IsKind(SyntaxKind.GetKeyword)