20 references to InitKeyword
Microsoft.CodeAnalysis.CSharp (11)
Parser\LanguageParser.cs (2)
3837case SyntaxKind.InitKeyword: 4106SyntaxKind.InitKeyword => SyntaxKind.InitAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
179var keywordForSetAccessor = IsInitOnly(symbol.SetMethod) ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword; 452IsInitOnly(symbol) ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
60syntax.Keyword.IsKind(SyntaxKind.InitKeyword),
Symbols\Source\SourcePropertySymbol.cs (1)
202if (accessor.Keyword.IsKind(SyntaxKind.InitKeyword))
Syntax\SyntaxKindFacts.cs (5)
744case SyntaxKind.InitKeyword: 776case SyntaxKind.InitKeyword: 1190case SyntaxKind.InitKeyword: 1309return SyntaxKind.InitKeyword; 1753case SyntaxKind.InitKeyword:
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\KeywordRecommenders\InitKeywordRecommender.cs (3)
14: base(SyntaxKind.InitKeyword) 21context.TargetToken.IsAccessorDeclarationContext<PropertyDeclarationSyntax>(position, SyntaxKind.InitKeyword) || 22context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, SyntaxKind.InitKeyword);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\InitOnlyMemberTests.cs (1)
4065Assert.True(SyntaxFacts.IsAccessorDeclarationKeyword(SyntaxKind.InitKeyword));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\MemberDeclarationParsingTests.cs (4)
1078N(SyntaxKind.InitKeyword); 1114N(SyntaxKind.InitKeyword); 1155N(SyntaxKind.InitKeyword); 1194N(SyntaxKind.InitKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
272=> token.IsKind(SyntaxKind.InitKeyword)