39 references to Partial
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
590
modifiers: DeclarationModifiers.
Partial
| DeclarationModifiers.Static);
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
105
modifiers: hasExistingPart ? DeclarationModifiers.
Partial
: DeclarationModifiers.None,
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
1449
DeclarationModifiers.
Partial
|
1499
DeclarationModifiers.
Partial
|
1508
DeclarationModifiers.
Partial
|
1515
DeclarationModifiers.
Partial
|
1521
private static readonly DeclarationModifiers s_interfaceModifiers = DeclarationModifiers.New | DeclarationModifiers.
Partial
| DeclarationModifiers.Unsafe | DeclarationModifiers.File;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
140
SyntaxKind.PartialKeyword => DeclarationModifiers.
Partial
,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (12)
CodeGeneration\SyntaxGeneratorTests.cs (12)
837
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Partial
),
841
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Partial
, statements: [Generator.IdentifierName("y")]),
845
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Partial
| DeclarationModifiers.Async, statements: null),
2993
Assert.Equal(DeclarationModifiers.
Partial
, Generator.GetModifiers(Generator.StructDeclaration("s", modifiers: DeclarationModifiers.
Partial
)));
3016
Assert.Equal(DeclarationModifiers.
Partial
, Generator.GetModifiers(Generator.WithModifiers(Generator.StructDeclaration("s"), DeclarationModifiers.
Partial
)));
3027
Assert.Equal(DeclarationModifiers.None, Generator.GetModifiers(Generator.WithModifiers(Generator.EnumMember("v"), DeclarationModifiers.
Partial
)));
3041
DeclarationModifiers.Abstract | DeclarationModifiers.New | DeclarationModifiers.
Partial
| DeclarationModifiers.Sealed | DeclarationModifiers.Static | DeclarationModifiers.Unsafe,
3045
DeclarationModifiers.New | DeclarationModifiers.
Partial
| DeclarationModifiers.Unsafe | DeclarationModifiers.ReadOnly,
3049
DeclarationModifiers.New | DeclarationModifiers.
Partial
| DeclarationModifiers.Unsafe,
3073
DeclarationModifiers.Abstract | DeclarationModifiers.Async | DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.
Partial
| DeclarationModifiers.Sealed | DeclarationModifiers.Static | DeclarationModifiers.Virtual | DeclarationModifiers.Unsafe | DeclarationModifiers.ReadOnly,
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
317
documentEditor.Generator.GetModifiers(node) | DeclarationModifiers.
Partial
);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (4)
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
27
Public Shared ReadOnly s_classModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.
Partial
Or DeclarationModifiers.Sealed Or DeclarationModifiers.Static
28
Public Shared ReadOnly s_structModifiers As DeclarationModifiers = DeclarationModifiers.[New] Or DeclarationModifiers.
Partial
29
Public Shared ReadOnly s_interfaceModifiers As DeclarationModifiers = DeclarationModifiers.[New] Or DeclarationModifiers.
Partial
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (1)
239
modifiers = modifiers Or DeclarationModifiers.
Partial
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (4)
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
27
Public Shared ReadOnly s_classModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.[New] Or DeclarationModifiers.
Partial
Or DeclarationModifiers.Sealed Or DeclarationModifiers.Static
28
Public Shared ReadOnly s_structModifiers As DeclarationModifiers = DeclarationModifiers.[New] Or DeclarationModifiers.
Partial
29
Public Shared ReadOnly s_interfaceModifiers As DeclarationModifiers = DeclarationModifiers.[New] Or DeclarationModifiers.
Partial
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (7)
CodeGeneration\SyntaxGeneratorTests.vb (7)
887
Generator.MethodDeclaration("m", accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.
Partial
),
1461
Generator.StructDeclaration("s", accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
Partial
),
2698
Assert.Equal(DeclarationModifiers.
Partial
, Generator.GetModifiers(Generator.StructDeclaration("s", modifiers:=DeclarationModifiers.
Partial
)))
2720
Assert.Equal(DeclarationModifiers.
Partial
, Generator.GetModifiers(Generator.WithModifiers(Generator.StructDeclaration("s"), DeclarationModifiers.
Partial
)))
2731
Assert.Equal(DeclarationModifiers.None, Generator.GetModifiers(Generator.WithModifiers(Generator.EnumMember("v"), DeclarationModifiers.
Partial
)))
System.Text.RegularExpressions.Generator (2)
UpgradeToGeneratedRegexCodeFixer.cs (2)
186
modifiers: DeclarationModifiers.Static | DeclarationModifiers.
Partial
,
237
((CompilationUnitSyntax)newTypeDeclarationOrCompilationUnit).AddMembers((ClassDeclarationSyntax)generator.ClassDeclaration("Program", modifiers: DeclarationModifiers.
Partial
, members: new[] { newMethod }));