21 references to AddKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
4279
case SyntaxKind.
AddKeyword
:
4550
SyntaxKind.
AddKeyword
=> SyntaxKind.AddAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
464
AddKeyword(symbol.MethodKind == MethodKind.EventAdd ? SyntaxKind.
AddKeyword
: SyntaxKind.RemoveKeyword);
Syntax\SyntaxKindFacts.cs (5)
776
case SyntaxKind.
AddKeyword
:
807
case SyntaxKind.
AddKeyword
:
1199
case SyntaxKind.
AddKeyword
:
1293
return SyntaxKind.
AddKeyword
;
1735
case SyntaxKind.
AddKeyword
:
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\AddKeywordRecommender.cs (1)
14
=> context.TargetToken.IsAccessorDeclarationContext<EventDeclarationSyntax>(position, SyntaxKind.
AddKeyword
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
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\ExtensionsParsingTests.cs (1)
2457
N(SyntaxKind.
AddKeyword
);
Parsing\FieldKeywordParsingTests.cs (1)
631
N(useRemove ? SyntaxKind.RemoveKeyword : SyntaxKind.
AddKeyword
);
Parsing\MemberDeclarationParsingTests.cs (1)
11719
N(SyntaxKind.
AddKeyword
);
Parsing\PartialEventsAndConstructorsParsingTests.cs (4)
70
N(SyntaxKind.
AddKeyword
);
496
N(SyntaxKind.
AddKeyword
);
618
N(SyntaxKind.
AddKeyword
);
664
N(SyntaxKind.
AddKeyword
);