17 references to RemoveKeyword
Microsoft.CodeAnalysis.CSharp (8)
Parser\LanguageParser.cs (2)
4211
case SyntaxKind.
RemoveKeyword
:
4482
SyntaxKind.
RemoveKeyword
=> SyntaxKind.RemoveAccessorDeclaration,
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
456
AddKeyword(symbol.MethodKind == MethodKind.EventAdd ? SyntaxKind.AddKeyword : SyntaxKind.
RemoveKeyword
);
Syntax\SyntaxKindFacts.cs (5)
776
case SyntaxKind.
RemoveKeyword
:
806
case SyntaxKind.
RemoveKeyword
:
1197
case SyntaxKind.
RemoveKeyword
:
1291
return SyntaxKind.
RemoveKeyword
;
1731
case 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)
4474
TestClassEventWithValue(SyntaxKind.RemoveAccessorDeclaration, SyntaxKind.
RemoveKeyword
, SyntaxKind.IdentifierToken);
4479
bool isEvent = accessorKeyword == SyntaxKind.AddKeyword || accessorKeyword == SyntaxKind.
RemoveKeyword
;
4779
Assert.Equal(SyntaxKind.
RemoveKeyword
, es.AccessorList.Accessors[1].Keyword.Kind());
4834
Assert.Equal(SyntaxKind.
RemoveKeyword
, es.AccessorList.Accessors[1].Keyword.Kind());
4918
Assert.Equal(SyntaxKind.
RemoveKeyword
, es.AccessorList.Accessors[1].Keyword.Kind());
Parsing\FieldKeywordParsingTests.cs (1)
631
N(useRemove ? SyntaxKind.
RemoveKeyword
: SyntaxKind.AddKeyword);
Parsing\MemberDeclarationParsingTests.cs (1)
11728
N(SyntaxKind.
RemoveKeyword
);