47 references to VirtualKeyword
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser.cs (2)
1312case SyntaxKind.VirtualKeyword: 2356case SyntaxKind.VirtualKeyword:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
966AddKeyword(SyntaxKind.VirtualKeyword);
Symbols\Source\ModifierUtils.cs (2)
314return SyntaxFacts.GetText(SyntaxKind.VirtualKeyword); 362case SyntaxKind.VirtualKeyword:
Symbols\Source\SourceEventSymbol.cs (1)
565diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
867diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourcePropertySymbolBase.cs (1)
1102diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Syntax\SyntaxKindFacts.cs (2)
959return SyntaxKind.VirtualKeyword; 1607case SyntaxKind.VirtualKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
97public static readonly SyntaxToken VirtualKeyword = Token(SyntaxKind.VirtualKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162SyntaxKind.VirtualKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
90case SyntaxKind.VirtualKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
133SyntaxKind.VirtualKeyword => DeclarationModifiers.Virtual,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
43SyntaxKind.VirtualKeyword,
Microsoft.CodeAnalysis.CSharp.Features (10)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
577case SyntaxKind.VirtualKeyword:
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
23SyntaxKind.VirtualKeyword,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
26SyntaxKind.VirtualKeyword,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
29SyntaxKind.VirtualKeyword,
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
49modifiers.Contains(SyntaxKind.VirtualKeyword) ||
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
40SyntaxKind.VirtualKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (1)
54SyntaxKind.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)
10188N(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 (6)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
825|| x.Kind() == SyntaxKind.VirtualKeyword
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
97public static readonly SyntaxToken VirtualKeyword = Token(SyntaxKind.VirtualKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162SyntaxKind.VirtualKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
90case SyntaxKind.VirtualKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
133SyntaxKind.VirtualKeyword => DeclarationModifiers.Virtual,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
43SyntaxKind.VirtualKeyword,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
781yield return CS.SyntaxFactory.Token(CS.SyntaxKind.VirtualKeyword);
Microsoft.Gen.Logging.Unit.Tests (1)
ParserUtilitiesTests.cs (1)
34SyntaxFactory.Token(SyntaxKind.VirtualKeyword)),
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
23{ ModifierFlags.Virtual, SyntaxKind.VirtualKeyword }, 58case SyntaxKind.VirtualKeyword: