17 references to RemoveKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
4212case SyntaxKind.RemoveKeyword: 4483SyntaxKind.RemoveKeyword => SyntaxKind.RemoveAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
456AddKeyword(symbol.MethodKind == MethodKind.EventAdd ? SyntaxKind.AddKeyword : SyntaxKind.RemoveKeyword);
Syntax\SyntaxKindFacts.cs (5)
776case SyntaxKind.RemoveKeyword: 806case SyntaxKind.RemoveKeyword: 1197case SyntaxKind.RemoveKeyword: 1291return SyntaxKind.RemoveKeyword; 1731case SyntaxKind.RemoveKeyword:
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\RemoveKeywordRecommender.cs (2)
14: base(SyntaxKind.RemoveKeyword) 19=> context.TargetToken.IsAccessorDeclarationContext<EventDeclarationSyntax>(position, SyntaxKind.RemoveKeyword);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\DeclarationParsingTests.cs (5)
4474TestClassEventWithValue(SyntaxKind.RemoveAccessorDeclaration, SyntaxKind.RemoveKeyword, SyntaxKind.IdentifierToken); 4479bool isEvent = accessorKeyword == SyntaxKind.AddKeyword || accessorKeyword == SyntaxKind.RemoveKeyword; 4779Assert.Equal(SyntaxKind.RemoveKeyword, es.AccessorList.Accessors[1].Keyword.Kind()); 4834Assert.Equal(SyntaxKind.RemoveKeyword, es.AccessorList.Accessors[1].Keyword.Kind()); 4918Assert.Equal(SyntaxKind.RemoveKeyword, es.AccessorList.Accessors[1].Keyword.Kind());
Parsing\FieldKeywordParsingTests.cs (1)
631N(useRemove ? SyntaxKind.RemoveKeyword : SyntaxKind.AddKeyword);
Parsing\MemberDeclarationParsingTests.cs (1)
11728N(SyntaxKind.RemoveKeyword);