63 references to New
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CodeGeneration\CSharpSyntaxGenerator.cs (12)
1438
DeclarationModifiers.
New
|
1450
DeclarationModifiers.
New
|
1468
DeclarationModifiers.
New
|
1480
DeclarationModifiers.
New
|
1491
DeclarationModifiers.
New
|
1501
DeclarationModifiers.
New
|
1510
DeclarationModifiers.
New
|
1517
DeclarationModifiers.
New
|
1524
private static readonly DeclarationModifiers s_interfaceModifiers = DeclarationModifiers.
New
| DeclarationModifiers.Partial | DeclarationModifiers.Unsafe | DeclarationModifiers.File;
1525
private static readonly DeclarationModifiers s_eventAccessorModifiers = DeclarationModifiers.Abstract | DeclarationModifiers.
New
| DeclarationModifiers.Override | DeclarationModifiers.Virtual;
1548
return DeclarationModifiers.
New
| DeclarationModifiers.File;
1551
return DeclarationModifiers.
New
| DeclarationModifiers.Unsafe | DeclarationModifiers.File;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
131
SyntaxKind.NewKeyword => DeclarationModifiers.
New
,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (21)
CodeGeneration\SyntaxGeneratorTests.cs (21)
1724
Generator.DelegateDeclaration("d", modifiers: DeclarationModifiers.
New
),
2994
Assert.Equal(DeclarationModifiers.
New
, Generator.GetModifiers(Generator.EnumDeclaration("e", modifiers: DeclarationModifiers.
New
)));
2995
Assert.Equal(DeclarationModifiers.
New
, Generator.GetModifiers(Generator.DelegateDeclaration("d", modifiers: DeclarationModifiers.
New
)));
3017
Assert.Equal(DeclarationModifiers.
New
, Generator.GetModifiers(Generator.WithModifiers(Generator.EnumDeclaration("e"), DeclarationModifiers.
New
)));
3018
Assert.Equal(DeclarationModifiers.
New
, Generator.GetModifiers(Generator.WithModifiers(Generator.DelegateDeclaration("d"), DeclarationModifiers.
New
)));
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,
3053
DeclarationModifiers.
New
| DeclarationModifiers.Unsafe,
3057
DeclarationModifiers.
New
,
3061
DeclarationModifiers.Const | DeclarationModifiers.
New
| DeclarationModifiers.ReadOnly | 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,
3093
DeclarationModifiers.Abstract | DeclarationModifiers.
New
| DeclarationModifiers.Override | DeclarationModifiers.Virtual | DeclarationModifiers.ReadOnly,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (10)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (10)
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
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
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
30
Public Shared ReadOnly s_accessorModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.
[New]
Or DeclarationModifiers.Override Or DeclarationModifiers.Virtual
306
Return DeclarationModifiers.
[New]
309
Return DeclarationModifiers.
[New]
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (1)
219
modifiers = modifiers Or DeclarationModifiers.
[New]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (10)
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
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
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
30
Public Shared ReadOnly s_accessorModifiers As DeclarationModifiers = DeclarationModifiers.Abstract Or DeclarationModifiers.
[New]
Or DeclarationModifiers.Override Or DeclarationModifiers.Virtual
306
Return DeclarationModifiers.
[New]
309
Return DeclarationModifiers.
[New]
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (8)
CodeGeneration\SyntaxGeneratorTests.vb (8)
2699
Assert.Equal(DeclarationModifiers.
[New]
, Generator.GetModifiers(Generator.EnumDeclaration("e", modifiers:=DeclarationModifiers.
[New]
)))
2700
Assert.Equal(DeclarationModifiers.
[New]
, Generator.GetModifiers(Generator.DelegateDeclaration("d", modifiers:=DeclarationModifiers.
[New]
)))
2721
Assert.Equal(DeclarationModifiers.
[New]
, Generator.GetModifiers(Generator.WithModifiers(Generator.EnumDeclaration("e"), DeclarationModifiers.
[New]
)))
2722
Assert.Equal(DeclarationModifiers.
[New]
, Generator.GetModifiers(Generator.WithModifiers(Generator.DelegateDeclaration("d"), DeclarationModifiers.
[New]
)))