17 references to AddKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
4210
case SyntaxKind.
AddKeyword
:
4481
SyntaxKind.
AddKeyword
=> SyntaxKind.AddAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
456
AddKeyword(symbol.MethodKind == MethodKind.EventAdd ? SyntaxKind.
AddKeyword
: SyntaxKind.RemoveKeyword);
Syntax\SyntaxKindFacts.cs (5)
774
case SyntaxKind.
AddKeyword
:
805
case SyntaxKind.
AddKeyword
:
1196
case SyntaxKind.
AddKeyword
:
1289
return SyntaxKind.
AddKeyword
;
1729
case 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)
4473
TestClassEventWithValue(SyntaxKind.AddAccessorDeclaration, SyntaxKind.
AddKeyword
, SyntaxKind.IdentifierToken);
4479
bool isEvent = accessorKeyword == SyntaxKind.
AddKeyword
|| accessorKeyword == SyntaxKind.RemoveKeyword;
4772
Assert.Equal(SyntaxKind.
AddKeyword
, es.AccessorList.Accessors[0].Keyword.Kind());
4827
Assert.Equal(SyntaxKind.
AddKeyword
, es.AccessorList.Accessors[0].Keyword.Kind());
4911
Assert.Equal(SyntaxKind.
AddKeyword
, es.AccessorList.Accessors[0].Keyword.Kind());
Parsing\FieldKeywordParsingTests.cs (1)
631
N(useRemove ? SyntaxKind.RemoveKeyword : SyntaxKind.
AddKeyword
);
Parsing\MemberDeclarationParsingTests.cs (1)
11719
N(SyntaxKind.
AddKeyword
);