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