102 references to Static
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
590
modifiers: DeclarationModifiers.Partial | DeclarationModifiers.
Static
);
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
38
property.IsStatic ? DeclarationModifiers.
Static
: DeclarationModifiers.None,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests_OptionSets.cs (1)
144
ImmutableArray.Create(new ModifierKind(DeclarationModifiers.
Static
)));
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
1439
DeclarationModifiers.
Static
|
1452
DeclarationModifiers.
Static
|
1458
DeclarationModifiers.
Static
|
1470
DeclarationModifiers.
Static
|
1481
DeclarationModifiers.
Static
|
1492
DeclarationModifiers.
Static
|
1501
DeclarationModifiers.
Static
|
1527
DeclarationModifiers.
Static
|
1533
DeclarationModifiers.
Static
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
134
SyntaxKind.StaticKeyword => DeclarationModifiers.
Static
,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (36)
CodeGeneration\SyntaxGeneratorTests.cs (36)
793
Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.
Static
| DeclarationModifiers.ReadOnly),
1016
Generator.ConstructorDeclaration("c", accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Static
),
1142
Generator.EventDeclaration("ef", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Static
),
1650
Generator.InterfaceDeclaration("i", members: [Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Static
)]),
1654
Generator.InterfaceDeclaration("i", members: [Generator.EventDeclaration("ef", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Static
)]),
2996
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Static
)));
2997
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.ConstructorDeclaration(modifiers: DeclarationModifiers.
Static
)));
3002
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.EventDeclaration("ef", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Static
)));
3003
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Static
)));
3019
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.MethodDeclaration("m"), DeclarationModifiers.
Static
)));
3020
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.ConstructorDeclaration(), DeclarationModifiers.
Static
)));
3025
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.EventDeclaration("ef", Generator.IdentifierName("t")), DeclarationModifiers.
Static
)));
3026
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t")), DeclarationModifiers.
Static
)));
3041
DeclarationModifiers.Abstract | DeclarationModifiers.New | DeclarationModifiers.Partial | DeclarationModifiers.Sealed | DeclarationModifiers.
Static
| DeclarationModifiers.Unsafe,
3061
DeclarationModifiers.Const | DeclarationModifiers.New | DeclarationModifiers.ReadOnly | DeclarationModifiers.
Static
| DeclarationModifiers.Unsafe,
3065
DeclarationModifiers.
Static
| DeclarationModifiers.Unsafe,
3073
DeclarationModifiers.Abstract | DeclarationModifiers.Async | DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.Partial | DeclarationModifiers.Sealed | DeclarationModifiers.
Static
| DeclarationModifiers.Virtual | DeclarationModifiers.Unsafe | DeclarationModifiers.ReadOnly,
3077
DeclarationModifiers.Abstract | DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.ReadOnly | DeclarationModifiers.Sealed | DeclarationModifiers.
Static
| DeclarationModifiers.Virtual | DeclarationModifiers.Unsafe,
3081
DeclarationModifiers.Abstract | DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.ReadOnly | DeclarationModifiers.Sealed | DeclarationModifiers.
Static
| DeclarationModifiers.Virtual | DeclarationModifiers.Unsafe,
3085
DeclarationModifiers.Abstract | DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.Sealed | DeclarationModifiers.
Static
| DeclarationModifiers.Virtual | DeclarationModifiers.Unsafe | DeclarationModifiers.ReadOnly,
3089
DeclarationModifiers.Abstract | DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.Sealed | DeclarationModifiers.
Static
| DeclarationModifiers.Virtual | DeclarationModifiers.Unsafe | DeclarationModifiers.ReadOnly,
3100
var ctor = Generator.ConstructorDeclaration("C", modifiers: DeclarationModifiers.
Static
);
3119
var staticCtor = Generator.WithModifiers(ctor, DeclarationModifiers.
Static
);
3800
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(declX));
3806
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(declY));
3812
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(declZ));
4785
TestModifiersAsync(DeclarationModifiers.
Static
,
4852
TestModifiersAsync(DeclarationModifiers.
Static
,
Microsoft.CodeAnalysis.Features (3)
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
197
DeclarationModifiers.
Static
,
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
97
DeclarationModifiers.
Static
,
Snippets\SnippetProviders\AbstractMainMethodSnippetProvider.cs (1)
33
modifiers: DeclarationModifiers.
Static
,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (6)
22
Public Shared ReadOnly s_fieldModifiers As DeclarationModifiers = DeclarationModifiers.Const Or DeclarationModifiers.[New] Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.
Static
Or DeclarationModifiers.WithEvents
23
Public Shared ReadOnly s_methodModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.Async Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.Partial Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Or DeclarationModifiers.Virtual
24
Public Shared ReadOnly s_constructorModifiers As DeclarationModifiers = DeclarationModifiers.
Static
25
Public Shared ReadOnly s_propertyModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WriteOnly Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Or DeclarationModifiers.Virtual
26
Public Shared ReadOnly s_indexerModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WriteOnly Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Or DeclarationModifiers.Virtual
27
Public Shared ReadOnly s_classModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.Partial Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (1)
225
modifiers = modifiers Or DeclarationModifiers.
Static
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (6)
22
Public Shared ReadOnly s_fieldModifiers As DeclarationModifiers = DeclarationModifiers.Const Or DeclarationModifiers.[New] Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.
Static
Or DeclarationModifiers.WithEvents
23
Public Shared ReadOnly s_methodModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.Async Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.Partial Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Or DeclarationModifiers.Virtual
24
Public Shared ReadOnly s_constructorModifiers As DeclarationModifiers = DeclarationModifiers.
Static
25
Public Shared ReadOnly s_propertyModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WriteOnly Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Or DeclarationModifiers.Virtual
26
Public Shared ReadOnly s_indexerModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WriteOnly Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Or DeclarationModifiers.Virtual
27
Public Shared ReadOnly s_classModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.Partial Or DeclarationModifiers.Sealed Or DeclarationModifiers.
Static
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (23)
CodeGeneration\SyntaxGeneratorTests.vb (23)
840
Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), modifiers:=DeclarationModifiers.
Static
Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WithEvents),
1337
Generator.EventDeclaration("ev", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
Static
),
1377
Generator.ConstructorDeclaration("c", accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
Static
),
1652
Generator.DelegateDeclaration("d", modifiers:=DeclarationModifiers.
Static
),
2701
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Static
)))
2702
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.ConstructorDeclaration(modifiers:=DeclarationModifiers.
Static
)))
2707
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.EventDeclaration("ef", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Static
)))
2708
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Static
)))
2723
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.MethodDeclaration("m"), DeclarationModifiers.
Static
)))
2724
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.ConstructorDeclaration(), DeclarationModifiers.
Static
)))
2729
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.EventDeclaration("ef", Generator.IdentifierName("t")), DeclarationModifiers.
Static
)))
2730
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(Generator.WithModifiers(Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t")), DeclarationModifiers.
Static
)))
3491
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(declX))
3497
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(declY))
3503
Assert.Equal(DeclarationModifiers.
Static
, Generator.GetModifiers(declZ))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
236
DeclarationModifiers.
Static
,
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
EditorConfigParsing\NamingStyleParserTests.cs (2)
79
modifier => Assert.Equal(new ModifierKind(DeclarationModifiers.
Static
), modifier));
348
modifier => Assert.Equal(new ModifierKind(DeclarationModifiers.
Static
), modifier));
Microsoft.Interop.LibraryImportGenerator (10)
Analyzers\CustomMarshallerAttributeFixer.cs (10)
227
modifiers: DeclarationModifiers.
Static
,
239
modifiers: DeclarationModifiers.
Static
,
250
DeclarationModifiers.
Static
),
266
modifiers: DeclarationModifiers.
Static
,
282
modifiers: DeclarationModifiers.
Static
,
297
modifiers: DeclarationModifiers.
Static
,
313
modifiers: DeclarationModifiers.
Static
,
329
modifiers: DeclarationModifiers.
Static
,
344
modifiers: DeclarationModifiers.
Static
,
462
DeclarationModifiers.
Static
),
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
186
modifiers: DeclarationModifiers.
Static
| DeclarationModifiers.Partial,