49 references to VirtualKeyword
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser.cs (2)
1038
case SyntaxKind.
VirtualKeyword
:
2022
case SyntaxKind.
VirtualKeyword
:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
968
AddKeyword(SyntaxKind.
VirtualKeyword
);
Symbols\Source\ModifierUtils.cs (2)
315
return SyntaxFacts.GetText(SyntaxKind.
VirtualKeyword
);
363
case SyntaxKind.
VirtualKeyword
:
Symbols\Source\SourceEventSymbol.cs (1)
557
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.
VirtualKeyword
));
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
391
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.
VirtualKeyword
));
Symbols\Source\SourcePropertySymbolBase.cs (1)
878
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.
VirtualKeyword
));
Syntax\SyntaxKindFacts.cs (2)
931
return SyntaxKind.
VirtualKeyword
;
1571
case SyntaxKind.
VirtualKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAccessibilityFacts.cs (1)
133
SyntaxKind.
VirtualKeyword
=> DeclarationModifiers.Virtual,
CSharpIdeCodeStyleOptions.cs (1)
24
SyntaxKind.
VirtualKeyword
, SyntaxKind.AbstractKeyword, SyntaxKind.SealedKeyword, SyntaxKind.OverrideKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
42
case SyntaxKind.
VirtualKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
MethodGenerator.cs (1)
303
tokens.Add(SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
));
PropertyGenerator.cs (1)
388
tokens.Add(SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
));
SyntaxKindSet.cs (1)
46
SyntaxKind.
VirtualKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (11)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
580
case SyntaxKind.
VirtualKeyword
:
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
318
yield return SyntaxFacts.GetText(SyntaxKind.
VirtualKeyword
);
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
23
SyntaxKind.
VirtualKeyword
,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
26
SyntaxKind.
VirtualKeyword
,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
30
SyntaxKind.
VirtualKeyword
,
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
49
modifiers.Contains(SyntaxKind.
VirtualKeyword
) ||
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
38
SyntaxKind.
VirtualKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (1)
53
SyntaxKind.
VirtualKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (1)
40
SyntaxKind.
VirtualKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (1)
38
: base(SyntaxKind.
VirtualKeyword
)
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
23
SyntaxKind.
VirtualKeyword
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Parsing\DeclarationParsingTests.cs (8)
2729
TestClassMethodModifiers(SyntaxKind.PublicKeyword, SyntaxKind.
VirtualKeyword
);
2730
TestClassMethodModifiers(SyntaxKind.
VirtualKeyword
, SyntaxKind.PublicKeyword);
2731
TestClassMethodModifiers(SyntaxKind.InternalKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.
VirtualKeyword
);
2732
TestClassMethodModifiers(SyntaxKind.InternalKeyword, SyntaxKind.
VirtualKeyword
, SyntaxKind.ProtectedKeyword);
4653
TestClassPropertyWithModifier(SyntaxKind.
VirtualKeyword
);
4667
TestClassPropertyWithModifier(SyntaxKind.
VirtualKeyword
);
4848
TestClassEventPropertyWithModifier(SyntaxKind.
VirtualKeyword
);
4860
TestClassEventPropertyWithModifier(SyntaxKind.
VirtualKeyword
);
Parsing\MemberDeclarationParsingTests.cs (1)
10199
N(SyntaxKind.
VirtualKeyword
);
Parsing\ScriptParsingTests.cs (1)
962
NewModifier_WithOtherModifier("virtual", SyntaxKind.
VirtualKeyword
);
Syntax\SyntaxTriviaListTests.cs (2)
22
var node2 = SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
);
38
var node2 = SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1706
list.Add(SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
));
CSharpAccessibilityFacts.cs (1)
133
SyntaxKind.
VirtualKeyword
=> DeclarationModifiers.Virtual,
CSharpIdeCodeStyleOptions.cs (1)
24
SyntaxKind.
VirtualKeyword
, SyntaxKind.AbstractKeyword, SyntaxKind.SealedKeyword, SyntaxKind.OverrideKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
42
case SyntaxKind.
VirtualKeyword
:
MethodGenerator.cs (1)
303
tokens.Add(SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
));
PropertyGenerator.cs (1)
388
tokens.Add(SyntaxFactory.Token(SyntaxKind.
VirtualKeyword
));
SyntaxKindSet.cs (1)
46
SyntaxKind.
VirtualKeyword
,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
795
yield return CS.SyntaxFactory.Token(CS.SyntaxKind.
VirtualKeyword
);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
24
{ ModifierFlags.Virtual, SyntaxKind.
VirtualKeyword
},
59
case SyntaxKind.
VirtualKeyword
: