24 references to InitKeyword
Microsoft.CodeAnalysis.CSharp (11)
Parser\LanguageParser.cs (2)
4209case SyntaxKind.InitKeyword: 4480SyntaxKind.InitKeyword => SyntaxKind.InitAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
178var keywordForSetAccessor = IsInitOnly(symbol.SetMethod) ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword; 442IsInitOnly(symbol) ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
59syntax.Keyword.IsKind(SyntaxKind.InitKeyword),
Symbols\Source\SourcePropertySymbolBase.cs (1)
348{ MethodKind: MethodKind.PropertySet, IsInitOnly: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword),
Syntax\SyntaxKindFacts.cs (5)
772case SyntaxKind.InitKeyword: 804case SyntaxKind.InitKeyword: 1223case SyntaxKind.InitKeyword: 1343return SyntaxKind.InitKeyword; 1789case 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)
4076Assert.True(SyntaxFacts.IsAccessorDeclarationKeyword(SyntaxKind.InitKeyword));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\FieldKeywordParsingTests.cs (4)
294N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword); 564N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword); 715N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword); 808N(useInit ? SyntaxKind.InitKeyword : SyntaxKind.SetKeyword);
Parsing\MemberDeclarationParsingTests.cs (4)
1072N(SyntaxKind.InitKeyword); 1108N(SyntaxKind.InitKeyword); 1149N(SyntaxKind.InitKeyword); 1188N(SyntaxKind.InitKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
269=> token.IsKind(SyntaxKind.InitKeyword)