421 references to PublicKeyword
Microsoft.AspNetCore.App.Analyzers (1)
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (1)
41
&& modifiers.Any(SyntaxKind.
PublicKeyword
)
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentParametersShouldBePublicCodeFixProvider.cs (2)
77
modifier.IsKind(SyntaxKind.
PublicKeyword
))
83
var publicModifier = SyntaxFactory.Token(SyntaxKind.
PublicKeyword
);
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParametersShouldBePublicCodeFixProvider.cs (2)
77
modifier.IsKind(SyntaxKind.
PublicKeyword
))
83
var publicModifier = SyntaxFactory.Token(SyntaxKind.
PublicKeyword
);
Microsoft.CodeAnalysis.CSharp (12)
Parser\LanguageParser.cs (5)
351
case SyntaxKind.
PublicKeyword
:
1297
case SyntaxKind.
PublicKeyword
:
2325
case SyntaxKind.
PublicKeyword
:
10353
case SyntaxKind.
PublicKeyword
:
10370
case SyntaxKind.
PublicKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (1)
408
AddKeyword(SyntaxKind.
PublicKeyword
);
Symbols\Source\ModifierUtils.cs (2)
288
return SyntaxFacts.GetText(SyntaxKind.
PublicKeyword
);
346
case SyntaxKind.
PublicKeyword
:
Syntax\SyntaxFacts.cs (1)
375
return SyntaxFacts.GetText(
PublicKeyword
);
Syntax\SyntaxKindFacts.cs (3)
72
case SyntaxKind.
PublicKeyword
:
931
return SyntaxKind.
PublicKeyword
;
1579
case SyntaxKind.
PublicKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
132
if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.
PublicKeyword
or SyntaxKind.ProtectedKeyword or SyntaxKind.InternalKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
70
public static readonly SyntaxToken PublicKeyword = Token(SyntaxKind.
PublicKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
150
SyntaxKind.
PublicKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
83
case SyntaxKind.
PublicKeyword
:
321
case SyntaxKind.
PublicKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
113
(SyntaxKind.
PublicKeyword
, _) => Accessibility.Public,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
316
if (ContainsToken(modifiers, SyntaxKind.
PublicKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
571
SyntaxKind.
PublicKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
17
SyntaxKind.
PublicKeyword
,
35
SyntaxKind.
PublicKeyword
,
53
SyntaxKind.
PublicKeyword
,
63
SyntaxKind.
PublicKeyword
,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
ExtractMethod\MiscTests.cs (2)
49
var publicToken = rootWithAnnotation.DescendantTokens().First(t => t.Kind() == SyntaxKind.
PublicKeyword
);
94
var publicToken = rootWithAnnotation.DescendantTokens().First(t => t.Kind() == SyntaxKind.
PublicKeyword
);
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
2275
SyntaxKind.
PublicKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (64)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
599
case SyntaxKind.
PublicKeyword
:
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
145
case SyntaxKind.
PublicKeyword
:
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
43
case SyntaxKind.
PublicKeyword
:
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
19
SyntaxKind.
PublicKeyword
,
30
SyntaxKind.
PublicKeyword
,
41
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
17
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
17
SyntaxKind.
PublicKeyword
,
26
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
18
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
17
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
18
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (3)
17
SyntaxKind.
PublicKeyword
,
25
SyntaxKind.
PublicKeyword
,
43
modifiers.Contains(SyntaxKind.
PublicKeyword
) &&
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (2)
20
SyntaxKind.
PublicKeyword
,
33
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
17
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (3)
17
SyntaxKind.
PublicKeyword
,
25
SyntaxKind.
PublicKeyword
,
43
modifiers.Contains(SyntaxKind.
PublicKeyword
) &&
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
17
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (1)
66
!precedingModifiers.Contains(SyntaxKind.
PublicKeyword
) &&
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
22
SyntaxKind.
PublicKeyword
,
37
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (1)
18
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
85
!precedingModifiers.Contains(SyntaxKind.
PublicKeyword
) &&
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (1)
71
!precedingModifiers.Contains(SyntaxKind.
PublicKeyword
) &&
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (2)
14
: base(SyntaxKind.
PublicKeyword
)
56
!precedingModifiers.Contains(SyntaxKind.
PublicKeyword
) &&
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
19
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
17
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
33
SyntaxKind.
PublicKeyword
,
54
SyntaxKind.
PublicKeyword
,
72
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
20
SyntaxKind.
PublicKeyword
,
31
SyntaxKind.
PublicKeyword
,
41
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
19
SyntaxKind.
PublicKeyword
,
32
SyntaxKind.
PublicKeyword
,
47
SyntaxKind.
PublicKeyword
,
62
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
18
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
19
SyntaxKind.
PublicKeyword
,
34
SyntaxKind.
PublicKeyword
,
49
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
19
SyntaxKind.
PublicKeyword
,
30
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
18
SyntaxKind.
PublicKeyword
,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
18
SyntaxKind.
PublicKeyword
,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
71
var modifierKinds = new[] { SyntaxKind.PrivateKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.InternalKeyword, SyntaxKind.
PublicKeyword
};
GenerateType\CSharpGenerateTypeService.cs (3)
700
return typeDecl.GetModifiers().Any(SyntaxKind.
PublicKeyword
) && IsAllContainingTypeDeclsPublic(typeDecl);
713
node.GetModifiers().Any(SyntaxKind.
PublicKeyword
) &&
729
|| containingTypeDeclarations.All(typedecl => typedecl.GetModifiers().Any(SyntaxKind.
PublicKeyword
));
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
122
if (xModifiers.Any(SyntaxKind.
PublicKeyword
))
Organizing\Organizers\ModifiersOrganizer.Comparer.cs (1)
48
case SyntaxKind.
PublicKeyword
:
Snippets\AbstractCSharpTypeSnippetProvider.cs (2)
62
preferredOrder.TryGetValue((int)SyntaxKind.
PublicKeyword
, out var publicModifierOrder))
79
return new TextChange(TextSpan.FromBounds(targetPosition, targetPosition), SyntaxFacts.GetText(SyntaxKind.
PublicKeyword
) + " ");
Snippets\CSharpClassSnippetProvider.cs (1)
28
SyntaxKind.
PublicKeyword
,
Snippets\CSharpConstructorSnippetProvider.cs (1)
32
SyntaxKind.
PublicKeyword
,
Snippets\CSharpEnumSnippetProvider.cs (1)
28
SyntaxKind.
PublicKeyword
,
Snippets\CSharpInterfaceSnippetProvider.cs (1)
28
SyntaxKind.
PublicKeyword
,
Snippets\CSharpStructSnippetProvider.cs (1)
28
SyntaxKind.
PublicKeyword
,
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
132
if (member.Modifiers.Any(m => m.Kind() is SyntaxKind.
PublicKeyword
or SyntaxKind.ProtectedKeyword or SyntaxKind.InternalKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (302)
IncrementalParsing\IncrementalParsingTests.cs (2)
676
N(SyntaxKind.
PublicKeyword
);
682
N(SyntaxKind.
PublicKeyword
);
Parsing\AnonymousFunctionParsingTests.cs (29)
50
N(SyntaxKind.
PublicKeyword
);
151
N(SyntaxKind.
PublicKeyword
);
248
N(SyntaxKind.
PublicKeyword
);
349
N(SyntaxKind.
PublicKeyword
);
450
N(SyntaxKind.
PublicKeyword
);
554
N(SyntaxKind.
PublicKeyword
);
685
N(SyntaxKind.
PublicKeyword
);
803
N(SyntaxKind.
PublicKeyword
);
2494
N(SyntaxKind.
PublicKeyword
);
2642
N(SyntaxKind.
PublicKeyword
);
2790
N(SyntaxKind.
PublicKeyword
);
2916
N(SyntaxKind.
PublicKeyword
);
3052
N(SyntaxKind.
PublicKeyword
);
3175
N(SyntaxKind.
PublicKeyword
);
3315
N(SyntaxKind.
PublicKeyword
);
3468
N(SyntaxKind.
PublicKeyword
);
3621
N(SyntaxKind.
PublicKeyword
);
3753
N(SyntaxKind.
PublicKeyword
);
3759
N(SyntaxKind.
PublicKeyword
);
3898
N(SyntaxKind.
PublicKeyword
);
3904
N(SyntaxKind.
PublicKeyword
);
4030
N(SyntaxKind.
PublicKeyword
);
4036
N(SyntaxKind.
PublicKeyword
);
4179
N(SyntaxKind.
PublicKeyword
);
4185
N(SyntaxKind.
PublicKeyword
);
4341
N(SyntaxKind.
PublicKeyword
);
4347
N(SyntaxKind.
PublicKeyword
);
4503
N(SyntaxKind.
PublicKeyword
);
4509
N(SyntaxKind.
PublicKeyword
);
Parsing\AsyncParsingTests.cs (3)
1208
N(SyntaxKind.
PublicKeyword
);
2208
N(SyntaxKind.
PublicKeyword
);
2345
N(SyntaxKind.
PublicKeyword
);
Parsing\CollectionExpressionParsingTests.cs (7)
16865
N(SyntaxKind.
PublicKeyword
);
16974
N(SyntaxKind.
PublicKeyword
);
17047
N(SyntaxKind.
PublicKeyword
);
17185
N(SyntaxKind.
PublicKeyword
);
17418
N(SyntaxKind.
PublicKeyword
);
17667
N(SyntaxKind.
PublicKeyword
);
17910
N(SyntaxKind.
PublicKeyword
);
Parsing\DeclarationParsingTests.cs (24)
810
Assert.Equal(SyntaxKind.
PublicKeyword
, cs.Modifiers[0].Kind());
1940
Assert.Equal(SyntaxKind.
PublicKeyword
, cs.Modifiers[0].Kind());
2720
TestClassMethodModifiers(SyntaxKind.
PublicKeyword
);
2729
TestClassMethodModifiers(SyntaxKind.
PublicKeyword
, SyntaxKind.VirtualKeyword);
2730
TestClassMethodModifiers(SyntaxKind.VirtualKeyword, SyntaxKind.
PublicKeyword
);
3552
TestClassConstructorWithModifier(SyntaxKind.
PublicKeyword
);
3741
TestClassFieldModifier(SyntaxKind.
PublicKeyword
);
3796
TestClassEventFieldModifier(SyntaxKind.
PublicKeyword
);
4647
TestClassPropertyWithModifier(SyntaxKind.
PublicKeyword
);
4662
TestClassPropertyWithModifier(SyntaxKind.
PublicKeyword
);
4842
TestClassEventPropertyWithModifier(SyntaxKind.
PublicKeyword
);
4855
TestClassEventPropertyWithModifier(SyntaxKind.
PublicKeyword
);
6007
N(SyntaxKind.
PublicKeyword
);
6015
N(SyntaxKind.
PublicKeyword
);
6067
N(SyntaxKind.
PublicKeyword
);
6075
N(SyntaxKind.
PublicKeyword
);
6133
N(SyntaxKind.
PublicKeyword
);
6141
N(SyntaxKind.
PublicKeyword
);
6206
N(SyntaxKind.
PublicKeyword
);
6214
N(SyntaxKind.
PublicKeyword
);
6327
N(SyntaxKind.
PublicKeyword
);
8111
N(SyntaxKind.
PublicKeyword
);
8162
N(SyntaxKind.
PublicKeyword
);
8213
N(SyntaxKind.
PublicKeyword
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (103)
53
N(SyntaxKind.
PublicKeyword
);
60
N(SyntaxKind.
PublicKeyword
);
85
N(SyntaxKind.
PublicKeyword
);
109
N(SyntaxKind.
PublicKeyword
);
128
N(SyntaxKind.
PublicKeyword
);
136
N(SyntaxKind.
PublicKeyword
);
185
N(SyntaxKind.
PublicKeyword
);
202
N(SyntaxKind.
PublicKeyword
);
226
N(SyntaxKind.
PublicKeyword
);
245
N(SyntaxKind.
PublicKeyword
);
264
N(SyntaxKind.
PublicKeyword
);
291
N(SyntaxKind.
PublicKeyword
);
346
N(SyntaxKind.
PublicKeyword
);
397
N(SyntaxKind.
PublicKeyword
);
421
N(SyntaxKind.
PublicKeyword
);
440
N(SyntaxKind.
PublicKeyword
);
501
N(SyntaxKind.
PublicKeyword
);
566
N(SyntaxKind.
PublicKeyword
);
618
N(SyntaxKind.
PublicKeyword
);
642
N(SyntaxKind.
PublicKeyword
);
661
N(SyntaxKind.
PublicKeyword
);
722
N(SyntaxKind.
PublicKeyword
);
831
N(SyntaxKind.
PublicKeyword
);
908
N(SyntaxKind.
PublicKeyword
);
932
N(SyntaxKind.
PublicKeyword
);
951
N(SyntaxKind.
PublicKeyword
);
1012
N(SyntaxKind.
PublicKeyword
);
1033
N(SyntaxKind.
PublicKeyword
);
1119
N(SyntaxKind.
PublicKeyword
);
1143
N(SyntaxKind.
PublicKeyword
);
1162
N(SyntaxKind.
PublicKeyword
);
1223
N(SyntaxKind.
PublicKeyword
);
1283
N(SyntaxKind.
PublicKeyword
);
1289
N(SyntaxKind.
PublicKeyword
);
1309
N(SyntaxKind.
PublicKeyword
);
1328
N(SyntaxKind.
PublicKeyword
);
1336
N(SyntaxKind.
PublicKeyword
);
1407
N(SyntaxKind.
PublicKeyword
);
1424
N(SyntaxKind.
PublicKeyword
);
1448
N(SyntaxKind.
PublicKeyword
);
1467
N(SyntaxKind.
PublicKeyword
);
1495
N(SyntaxKind.
PublicKeyword
);
1522
N(SyntaxKind.
PublicKeyword
);
1577
N(SyntaxKind.
PublicKeyword
);
1628
N(SyntaxKind.
PublicKeyword
);
1652
N(SyntaxKind.
PublicKeyword
);
1671
N(SyntaxKind.
PublicKeyword
);
1732
N(SyntaxKind.
PublicKeyword
);
1781
N(SyntaxKind.
PublicKeyword
);
1874
N(SyntaxKind.
PublicKeyword
);
1985
N(SyntaxKind.
PublicKeyword
);
1992
N(SyntaxKind.
PublicKeyword
);
2017
N(SyntaxKind.
PublicKeyword
);
2041
N(SyntaxKind.
PublicKeyword
);
2060
N(SyntaxKind.
PublicKeyword
);
2068
N(SyntaxKind.
PublicKeyword
);
2117
N(SyntaxKind.
PublicKeyword
);
2134
N(SyntaxKind.
PublicKeyword
);
2158
N(SyntaxKind.
PublicKeyword
);
2177
N(SyntaxKind.
PublicKeyword
);
2196
N(SyntaxKind.
PublicKeyword
);
2223
N(SyntaxKind.
PublicKeyword
);
2278
N(SyntaxKind.
PublicKeyword
);
2329
N(SyntaxKind.
PublicKeyword
);
2353
N(SyntaxKind.
PublicKeyword
);
2372
N(SyntaxKind.
PublicKeyword
);
2433
N(SyntaxKind.
PublicKeyword
);
2489
N(SyntaxKind.
PublicKeyword
);
2553
N(SyntaxKind.
PublicKeyword
);
2577
N(SyntaxKind.
PublicKeyword
);
2596
N(SyntaxKind.
PublicKeyword
);
2657
N(SyntaxKind.
PublicKeyword
);
2713
N(SyntaxKind.
PublicKeyword
);
2786
N(SyntaxKind.
PublicKeyword
);
2810
N(SyntaxKind.
PublicKeyword
);
2829
N(SyntaxKind.
PublicKeyword
);
2890
N(SyntaxKind.
PublicKeyword
);
2959
N(SyntaxKind.
PublicKeyword
);
2997
N(SyntaxKind.
PublicKeyword
);
3021
N(SyntaxKind.
PublicKeyword
);
3040
N(SyntaxKind.
PublicKeyword
);
3049
N(SyntaxKind.
PublicKeyword
);
3110
N(SyntaxKind.
PublicKeyword
);
3131
N(SyntaxKind.
PublicKeyword
);
3228
N(SyntaxKind.
PublicKeyword
);
3314
N(SyntaxKind.
PublicKeyword
);
3338
N(SyntaxKind.
PublicKeyword
);
3357
N(SyntaxKind.
PublicKeyword
);
3366
N(SyntaxKind.
PublicKeyword
);
3427
N(SyntaxKind.
PublicKeyword
);
3615
N(SyntaxKind.
PublicKeyword
);
3653
N(SyntaxKind.
PublicKeyword
);
3677
N(SyntaxKind.
PublicKeyword
);
3696
N(SyntaxKind.
PublicKeyword
);
3705
N(SyntaxKind.
PublicKeyword
);
3766
N(SyntaxKind.
PublicKeyword
);
3787
N(SyntaxKind.
PublicKeyword
);
3883
N(SyntaxKind.
PublicKeyword
);
3957
N(SyntaxKind.
PublicKeyword
);
3981
N(SyntaxKind.
PublicKeyword
);
4000
N(SyntaxKind.
PublicKeyword
);
4009
N(SyntaxKind.
PublicKeyword
);
4070
N(SyntaxKind.
PublicKeyword
);
Parsing\FileModifierParsingTests.cs (20)
514
N(SyntaxKind.
PublicKeyword
);
548
N(SyntaxKind.
PublicKeyword
);
1572
N(SyntaxKind.
PublicKeyword
);
1578
N(SyntaxKind.
PublicKeyword
);
1596
N(SyntaxKind.
PublicKeyword
);
1603
N(SyntaxKind.
PublicKeyword
);
1619
N(SyntaxKind.
PublicKeyword
);
1647
N(SyntaxKind.
PublicKeyword
);
1667
N(SyntaxKind.
PublicKeyword
);
1687
N(SyntaxKind.
PublicKeyword
);
1724
N(SyntaxKind.
PublicKeyword
);
1836
N(SyntaxKind.
PublicKeyword
);
1842
N(SyntaxKind.
PublicKeyword
);
1860
N(SyntaxKind.
PublicKeyword
);
1867
N(SyntaxKind.
PublicKeyword
);
1876
N(SyntaxKind.
PublicKeyword
);
1905
N(SyntaxKind.
PublicKeyword
);
1926
N(SyntaxKind.
PublicKeyword
);
1947
N(SyntaxKind.
PublicKeyword
);
1984
N(SyntaxKind.
PublicKeyword
);
Parsing\FunctionPointerTests.cs (2)
1720
N(SyntaxKind.
PublicKeyword
);
2360
N(SyntaxKind.
PublicKeyword
);
Parsing\LambdaParameterParsingTests.cs (1)
5523
N(SyntaxKind.
PublicKeyword
);
Parsing\LocalFunctionParsingTests.cs (6)
595
N(SyntaxKind.
PublicKeyword
);
2804
N(SyntaxKind.
PublicKeyword
);
2829
N(SyntaxKind.
PublicKeyword
);
2906
N(SyntaxKind.
PublicKeyword
);
2912
N(SyntaxKind.
PublicKeyword
);
3156
N(SyntaxKind.
PublicKeyword
);
Parsing\MemberDeclarationParsingTests.cs (60)
253
N(SyntaxKind.
PublicKeyword
);
304
N(SyntaxKind.
PublicKeyword
);
331
N(SyntaxKind.
PublicKeyword
);
374
N(SyntaxKind.
PublicKeyword
);
736
N(SyntaxKind.
PublicKeyword
);
755
N(SyntaxKind.
PublicKeyword
);
834
N(SyntaxKind.
PublicKeyword
);
927
N(SyntaxKind.
PublicKeyword
);
1014
N(SyntaxKind.
PublicKeyword
);
2355
N(SyntaxKind.
PublicKeyword
);
2497
N(SyntaxKind.
PublicKeyword
);
2621
N(SyntaxKind.
PublicKeyword
);
2727
N(SyntaxKind.
PublicKeyword
);
2833
N(SyntaxKind.
PublicKeyword
);
2889
N(SyntaxKind.
PublicKeyword
);
2969
N(SyntaxKind.
PublicKeyword
);
3020
N(SyntaxKind.
PublicKeyword
);
3071
N(SyntaxKind.
PublicKeyword
);
3135
N(SyntaxKind.
PublicKeyword
);
3238
N(SyntaxKind.
PublicKeyword
);
3383
N(SyntaxKind.
PublicKeyword
);
3511
N(SyntaxKind.
PublicKeyword
);
3621
N(SyntaxKind.
PublicKeyword
);
3731
N(SyntaxKind.
PublicKeyword
);
3791
N(SyntaxKind.
PublicKeyword
);
3875
N(SyntaxKind.
PublicKeyword
);
3930
N(SyntaxKind.
PublicKeyword
);
3985
N(SyntaxKind.
PublicKeyword
);
4053
N(SyntaxKind.
PublicKeyword
);
4125
N(SyntaxKind.
PublicKeyword
);
4188
N(SyntaxKind.
PublicKeyword
);
10181
N(SyntaxKind.
PublicKeyword
);
10187
N(SyntaxKind.
PublicKeyword
);
10218
N(SyntaxKind.
PublicKeyword
);
10235
N(SyntaxKind.
PublicKeyword
);
10387
N(SyntaxKind.
PublicKeyword
);
10393
N(SyntaxKind.
PublicKeyword
);
10441
N(SyntaxKind.
PublicKeyword
);
10447
N(SyntaxKind.
PublicKeyword
);
10631
N(SyntaxKind.
PublicKeyword
);
10739
N(SyntaxKind.
PublicKeyword
);
10864
N(SyntaxKind.
PublicKeyword
);
11039
N(SyntaxKind.
PublicKeyword
);
11213
N(SyntaxKind.
PublicKeyword
);
11508
N(SyntaxKind.
PublicKeyword
);
11832
N(SyntaxKind.
PublicKeyword
);
17868
N(SyntaxKind.
PublicKeyword
);
17923
N(SyntaxKind.
PublicKeyword
);
18003
N(SyntaxKind.
PublicKeyword
);
18095
N(SyntaxKind.
PublicKeyword
);
18487
N(SyntaxKind.
PublicKeyword
);
18539
N(SyntaxKind.
PublicKeyword
);
18611
N(SyntaxKind.
PublicKeyword
);
18722
N(SyntaxKind.
PublicKeyword
);
18804
N(SyntaxKind.
PublicKeyword
);
18900
N(SyntaxKind.
PublicKeyword
);
18992
N(SyntaxKind.
PublicKeyword
);
19073
N(SyntaxKind.
PublicKeyword
);
19155
N(SyntaxKind.
PublicKeyword
);
19227
N(SyntaxKind.
PublicKeyword
);
Parsing\RecordParsing.cs (3)
239
N(SyntaxKind.
PublicKeyword
);
1064
N(SyntaxKind.
PublicKeyword
);
1138
N(SyntaxKind.
PublicKeyword
);
Parsing\ScriptParsingTests.cs (6)
955
NewModifier_WithOtherModifier("public", SyntaxKind.
PublicKeyword
);
1059
N(SyntaxKind.
PublicKeyword
);
1089
N(SyntaxKind.
PublicKeyword
);
1571
N(SyntaxKind.
PublicKeyword
);
1613
N(SyntaxKind.
PublicKeyword
);
1660
N(SyntaxKind.
PublicKeyword
);
Parsing\SingleLineDeclarationParsingTests.cs (1)
774
N(SyntaxKind.
PublicKeyword
);
Parsing\StatementAttributeParsingTests.cs (3)
6910
N(SyntaxKind.
PublicKeyword
);
6994
N(SyntaxKind.
PublicKeyword
);
7088
N(SyntaxKind.
PublicKeyword
);
Parsing\StatementParsingTests.cs (1)
2529
N(SyntaxKind.
PublicKeyword
);
Parsing\SwitchExpressionParsingTests.cs (20)
501
N(SyntaxKind.
PublicKeyword
);
586
N(SyntaxKind.
PublicKeyword
);
675
N(SyntaxKind.
PublicKeyword
);
758
N(SyntaxKind.
PublicKeyword
);
837
N(SyntaxKind.
PublicKeyword
);
925
N(SyntaxKind.
PublicKeyword
);
1020
N(SyntaxKind.
PublicKeyword
);
1102
N(SyntaxKind.
PublicKeyword
);
1181
N(SyntaxKind.
PublicKeyword
);
1275
N(SyntaxKind.
PublicKeyword
);
1382
N(SyntaxKind.
PublicKeyword
);
1477
N(SyntaxKind.
PublicKeyword
);
1556
N(SyntaxKind.
PublicKeyword
);
1639
N(SyntaxKind.
PublicKeyword
);
1716
N(SyntaxKind.
PublicKeyword
);
1790
N(SyntaxKind.
PublicKeyword
);
1866
N(SyntaxKind.
PublicKeyword
);
1942
N(SyntaxKind.
PublicKeyword
);
2022
N(SyntaxKind.
PublicKeyword
);
2108
N(SyntaxKind.
PublicKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (4)
747
N(SyntaxKind.
PublicKeyword
);
821
N(SyntaxKind.
PublicKeyword
);
847
N(SyntaxKind.
PublicKeyword
);
1247
N(SyntaxKind.
PublicKeyword
);
Parsing\TypeArgumentListParsingTests.cs (4)
712
N(SyntaxKind.
PublicKeyword
);
718
N(SyntaxKind.
PublicKeyword
);
873
N(SyntaxKind.
PublicKeyword
);
933
N(SyntaxKind.
PublicKeyword
);
Syntax\SyntaxListTests.cs (1)
259
declaration = declaration.AddModifiers(SyntaxFactory.Token(SyntaxKind.
PublicKeyword
));
Syntax\SyntaxNodeTests.cs (2)
923
Assert.Equal(SyntaxKind.
PublicKeyword
, first.Kind());
931
Assert.Equal(SyntaxKind.
PublicKeyword
, first.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
828
|| x.Kind() == SyntaxKind.
PublicKeyword
);
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
604
case SyntaxKind.
PublicKeyword
: return Accessibility.Public;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
70
public static readonly SyntaxToken PublicKeyword = Token(SyntaxKind.
PublicKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
150
SyntaxKind.
PublicKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
83
case SyntaxKind.
PublicKeyword
:
321
case SyntaxKind.
PublicKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
113
(SyntaxKind.
PublicKeyword
, _) => Accessibility.Public,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
316
if (ContainsToken(modifiers, SyntaxKind.
PublicKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
571
SyntaxKind.
PublicKeyword
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
17
SyntaxKind.
PublicKeyword
,
35
SyntaxKind.
PublicKeyword
,
53
SyntaxKind.
PublicKeyword
,
63
SyntaxKind.
PublicKeyword
,
Microsoft.Gen.Logging.Unit.Tests (1)
ParserUtilitiesTests.cs (1)
22
SyntaxFactory.Token(SyntaxKind.
PublicKeyword
),
Microsoft.Interop.ComInterfaceGenerator (4)
ComClassGenerator.cs (1)
198
.AddModifiers(Token(SyntaxKind.
PublicKeyword
), Token(SyntaxKind.StaticKeyword)));
ComInterfaceGenerator.cs (3)
640
.AddModifiers(Token(SyntaxKind.
PublicKeyword
), Token(SyntaxKind.StaticKeyword))
659
.AddModifiers(Token(SyntaxKind.
PublicKeyword
), Token(SyntaxKind.StaticKeyword))
678
.AddModifiers(Token(SyntaxKind.
PublicKeyword
), Token(SyntaxKind.StaticKeyword))
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
89
if (tokenList[i].Kind() is SyntaxKind.
PublicKeyword
or SyntaxKind.InternalKeyword or SyntaxKind.ProtectedKeyword or SyntaxKind.PrivateKeyword)
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
153
else if (mod.IsKind(SyntaxKind.
PublicKeyword
) || mod.IsKind(SyntaxKind.ProtectedKeyword) || mod.IsKind(SyntaxKind.InternalKeyword))
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (1)
1057
if (modifiers.Any(SyntaxKind.
PublicKeyword
))
CodeModel\ModifierFlagsExtensions.cs (2)
19
{ ModifierFlags.Public, SyntaxKind.
PublicKeyword
},
46
case SyntaxKind.
PublicKeyword
: