58 references to None
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
41
property.IsStatic ? DeclarationModifiers.Static : DeclarationModifiers.
None
,
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
82
DeclarationModifiers.
None
,
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
105
modifiers: hasExistingPart ? DeclarationModifiers.Partial : DeclarationModifiers.
None
,
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
433
AsModifierList(accessibility, DeclarationModifiers.
None
, SyntaxKind.PropertyDeclaration));
788
AsModifierList(accessibility, DeclarationModifiers.
None
),
855
DeclarationModifiers.
None
);
1602
return DeclarationModifiers.
None
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
106
modifiers = DeclarationModifiers.
None
;
146
_ => DeclarationModifiers.
None
,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (17)
CodeGeneration\SyntaxGeneratorTests.cs (17)
2998
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.ParameterDeclaration("p")));
3004
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.EnumMember("v")));
3005
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.NamespaceDeclaration("n")));
3006
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.NamespaceImportDeclaration("u")));
3007
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.LocalDeclarationStatement(Generator.IdentifierName("t"), "loc")));
3008
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.Attribute("a")));
3009
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(TypeParameter("tp")));
3021
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.ParameterDeclaration("p"), DeclarationModifiers.Abstract)));
3027
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.EnumMember("v"), DeclarationModifiers.Partial)));
3028
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.NamespaceDeclaration("n"), DeclarationModifiers.Abstract)));
3029
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.NamespaceImportDeclaration("u"), DeclarationModifiers.Abstract)));
3030
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.LocalDeclarationStatement(Generator.IdentifierName("t"), "loc"), DeclarationModifiers.Abstract)));
3031
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.Attribute("a"), DeclarationModifiers.Abstract)));
3032
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(TypeParameter("tp"), DeclarationModifiers.Abstract)));
3927
Generator.ReplaceNode(declC, declX, Generator.WithModifiers(declX, DeclarationModifiers.
None
)),
4767
TestModifiersAsync(DeclarationModifiers.
None
,
4777
TestModifiersAsync(DeclarationModifiers.
None
,
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
145
? DeclarationModifiers.
None
254
DeclarationModifiers.
None
,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
356
Return DeclarationModifiers.
None
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
854
SyntaxFactory.GetAccessorStatement().WithModifiers(GetModifierList(accessibility, DeclarationModifiers.
None
, declaration:=Nothing, DeclarationKind.Property)),
860
SyntaxFactory.SetAccessorStatement().WithModifiers(GetModifierList(accessibility, DeclarationModifiers.
None
, declaration:=Nothing, DeclarationKind.Property)),
1308
modifiers:=GetModifierList(accessibility, DeclarationModifiers.
None
, declaration:=Nothing, DeclarationKind.Interface),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (1)
187
modifiers = DeclarationModifiers.
None
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
356
Return DeclarationModifiers.
None
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (23)
CodeGeneration\SyntaxGeneratorTests.vb (23)
878
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("x"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
None
),
1294
Generator.IndexerDeclaration({Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))}, Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
None
),
1501
members:={Generator.ConstructorDeclaration(accessibility:=Accessibility.NotApplicable, modifiers:=DeclarationModifiers.
None
)}),
1762
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
None
),
1781
Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.
None
),
1885
Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
None
),
1898
Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
None
)),
2163
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
None
),
2171
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
None
),
2703
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.ParameterDeclaration("p")))
2709
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.EnumMember("v")))
2710
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.NamespaceDeclaration("n")))
2711
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.NamespaceImportDeclaration("u")))
2712
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.LocalDeclarationStatement(Generator.IdentifierName("t"), "loc")))
2713
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.Attribute("a")))
2714
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(SyntaxFactory.TypeParameter("tp")))
2725
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.ParameterDeclaration("p"), DeclarationModifiers.Abstract)))
2731
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.EnumMember("v"), DeclarationModifiers.Partial)))
2732
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.NamespaceDeclaration("n"), DeclarationModifiers.Abstract)))
2733
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.NamespaceImportDeclaration("u"), DeclarationModifiers.Abstract)))
2734
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.LocalDeclarationStatement(Generator.IdentifierName("t"), "loc"), DeclarationModifiers.Abstract)))
2735
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(Generator.Attribute("a"), DeclarationModifiers.Abstract)))
2736
Assert.Equal(DeclarationModifiers.
None
, Generator.GetModifiers(Generator.WithModifiers(SyntaxFactory.TypeParameter("tp"), DeclarationModifiers.Abstract)))
Microsoft.CodeAnalysis.Workspaces (1)
Editing\DeclarationModifiers.cs (1)
98
return DeclarationModifiers.
None
;