17 references to AddKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
4229case SyntaxKind.AddKeyword: 4500SyntaxKind.AddKeyword => SyntaxKind.AddAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
464AddKeyword(symbol.MethodKind == MethodKind.EventAdd ? SyntaxKind.AddKeyword : SyntaxKind.RemoveKeyword);
Syntax\SyntaxKindFacts.cs (5)
774case SyntaxKind.AddKeyword: 805case SyntaxKind.AddKeyword: 1196case SyntaxKind.AddKeyword: 1289return SyntaxKind.AddKeyword; 1729case SyntaxKind.AddKeyword:
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\AddKeywordRecommender.cs (2)
14: base(SyntaxKind.AddKeyword) 19=> context.TargetToken.IsAccessorDeclarationContext<EventDeclarationSyntax>(position, SyntaxKind.AddKeyword);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\DeclarationParsingTests.cs (5)
4473TestClassEventWithValue(SyntaxKind.AddAccessorDeclaration, SyntaxKind.AddKeyword, SyntaxKind.IdentifierToken); 4479bool isEvent = accessorKeyword == SyntaxKind.AddKeyword || accessorKeyword == SyntaxKind.RemoveKeyword; 4772Assert.Equal(SyntaxKind.AddKeyword, es.AccessorList.Accessors[0].Keyword.Kind()); 4827Assert.Equal(SyntaxKind.AddKeyword, es.AccessorList.Accessors[0].Keyword.Kind()); 4911Assert.Equal(SyntaxKind.AddKeyword, es.AccessorList.Accessors[0].Keyword.Kind());
Parsing\FieldKeywordParsingTests.cs (1)
631N(useRemove ? SyntaxKind.RemoveKeyword : SyntaxKind.AddKeyword);
Parsing\MemberDeclarationParsingTests.cs (1)
11719N(SyntaxKind.AddKeyword);