152 references to Abstract
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (8)
640
declaration = this.WithModifiers(declaration, this.GetModifiers(declaration) - DeclarationModifiers.
Abstract
);
1446
DeclarationModifiers.
Abstract
|
1465
DeclarationModifiers.
Abstract
|
1477
DeclarationModifiers.
Abstract
|
1488
DeclarationModifiers.
Abstract
|
1499
DeclarationModifiers.
Abstract
|
1508
DeclarationModifiers.
Abstract
|
1524
private static readonly DeclarationModifiers s_eventAccessorModifiers = DeclarationModifiers.
Abstract
| DeclarationModifiers.New | DeclarationModifiers.Override | DeclarationModifiers.Virtual;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
130
SyntaxKind.AbstractKeyword => DeclarationModifiers.
Abstract
,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (64)
CodeGeneration\SyntaxGeneratorTests.cs (64)
833
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("x"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Abstract
),
1034
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
| DeclarationModifiers.ReadOnly),
1038
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
| DeclarationModifiers.WriteOnly),
1058
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
),
1086
Generator.IndexerDeclaration([Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))], Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
| DeclarationModifiers.ReadOnly),
1090
Generator.IndexerDeclaration([Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))], Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
| DeclarationModifiers.WriteOnly),
1094
Generator.IndexerDeclaration([Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))], Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
),
1150
Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
),
1154
Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Abstract
),
1171
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
),
1177
Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.
Abstract
),
1183
Generator.IndexerDeclaration(parameters: [Generator.ParameterDeclaration("p", Generator.IdentifierName("a"))], type: Generator.IdentifierName("t"), accessibility: Accessibility.Internal, modifiers: DeclarationModifiers.
Abstract
),
1189
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.
Abstract
),
1474
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.
Abstract
),
1480
Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal, modifiers: DeclarationModifiers.
Abstract
),
1486
Generator.IndexerDeclaration(parameters: [Generator.ParameterDeclaration("p", Generator.IdentifierName("a"))], type: Generator.IdentifierName("t"), accessibility: Accessibility.Protected, modifiers: DeclarationModifiers.
Abstract
),
1492
Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
),
1498
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.
Abstract
),
1858
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
),
1864
Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
),
1870
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.
Abstract
),
1876
Generator.IndexerDeclaration([Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))], Generator.IdentifierName("x"), modifiers: DeclarationModifiers.
Abstract
),
1882
Generator.CustomEventDeclaration("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
),
2001
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
),
2007
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
)),
2012
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
),
2018
Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
),
2052
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2058
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2064
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2070
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2077
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a", "x"),
2084
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2090
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2096
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2102
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2108
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2114
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers: DeclarationModifiers.
Abstract
), "a"),
2778
[Generator.OperatorDeclaration(OperatorKind.Addition, modifiers: DeclarationModifiers.
Abstract
)]),
2992
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.ClassDeclaration("c", modifiers: DeclarationModifiers.
Abstract
)));
2999
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
)));
3000
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.IndexerDeclaration([Generator.ParameterDeclaration("i")], Generator.IdentifierName("t"), modifiers: DeclarationModifiers.
Abstract
)));
3015
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.WithModifiers(Generator.ClassDeclaration("c"), DeclarationModifiers.
Abstract
)));
3021
Assert.Equal(DeclarationModifiers.None, Generator.GetModifiers(Generator.WithModifiers(Generator.ParameterDeclaration("p"), DeclarationModifiers.
Abstract
)));
3022
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.WithModifiers(Generator.PropertyDeclaration("p", Generator.IdentifierName("t")), DeclarationModifiers.
Abstract
)));
3023
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.WithModifiers(Generator.IndexerDeclaration([Generator.ParameterDeclaration("i")], Generator.IdentifierName("t")), DeclarationModifiers.
Abstract
)));
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
)));
3041
DeclarationModifiers.
Abstract
| DeclarationModifiers.New | DeclarationModifiers.Partial | DeclarationModifiers.Sealed | 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.Features (1)
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
372
attributes: default, Accessibility.Public, DeclarationModifiers.
Abstract
,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (5)
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
30
Public Shared ReadOnly s_accessorModifiers As DeclarationModifiers = DeclarationModifiers.
Abstract
Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.Virtual
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1139
declaration = Me.WithModifiersInternal(declaration, Me.GetModifiers(declaration) - DeclarationModifiers.
Abstract
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (1)
217
modifiers = modifiers Or DeclarationModifiers.
Abstract
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (5)
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
30
Public Shared ReadOnly s_accessorModifiers As DeclarationModifiers = DeclarationModifiers.
Abstract
Or DeclarationModifiers.[New] Or DeclarationModifiers.Override Or DeclarationModifiers.Virtual
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (66)
CodeGeneration\SyntaxGeneratorTests.vb (66)
883
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("x"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
Abstract
),
920
Dim md = Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
)
921
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(md))
926
Dim cd = Generator.ClassDeclaration("c", modifiers:=DeclarationModifiers.
Abstract
)
927
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(cd))
1119
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
+ DeclarationModifiers.ReadOnly),
1123
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
+ DeclarationModifiers.WriteOnly),
1141
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
),
1250
Generator.IndexerDeclaration({Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))}, Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
+ DeclarationModifiers.ReadOnly),
1254
Generator.IndexerDeclaration({Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))}, Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
+ DeclarationModifiers.WriteOnly),
1258
Generator.IndexerDeclaration({Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))}, Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
),
1755
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
),
1769
Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.
Abstract
),
1793
Generator.IndexerDeclaration({Generator.ParameterDeclaration("p", Generator.IdentifierName("a"))}, Generator.IdentifierName("t"), Accessibility.Internal, DeclarationModifiers.
Abstract
),
1823
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.
Abstract
),
1830
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.
Abstract
),
1837
Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal, modifiers:=DeclarationModifiers.
Abstract
),
1849
Generator.IndexerDeclaration({Generator.ParameterDeclaration("p", Generator.IdentifierName("a"))}, Generator.IdentifierName("t"), Accessibility.Protected, DeclarationModifiers.
Abstract
),
1879
Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
),
1893
Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
)),
1905
Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
),
1919
Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
),
1958
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
1972
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
1986
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2000
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2015
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a", "x"),
2023
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2030
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2037
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2044
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2051
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2058
Generator.WithTypeParameters(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), "a"),
2150
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
),
2157
Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
),
2178
Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
),
2198
Generator.IndexerDeclaration({Generator.ParameterDeclaration("z", Generator.IdentifierName("y"))}, Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
),
2572
Assert.Equal(DeclarationKind.Method, Generator.GetDeclarationKind(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
)))
2576
Assert.Equal(DeclarationKind.Property, Generator.GetDeclarationKind(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
)))
2578
Assert.Equal(DeclarationKind.Indexer, Generator.GetDeclarationKind(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
)))
2597
Assert.Equal("m", Generator.GetName(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
)))
2600
Assert.Equal("p", Generator.GetName(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
)))
2603
Assert.Equal("Item", Generator.GetName(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
)))
2622
Assert.Equal("m", Generator.GetName(Generator.WithName(Generator.MethodDeclaration("x", modifiers:=DeclarationModifiers.
Abstract
), "m")))
2626
Assert.Equal("p", Generator.GetName(Generator.WithName(Generator.PropertyDeclaration("x", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
), "p")))
2628
Assert.Equal("X", Generator.GetName(Generator.WithName(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
), "X")))
2697
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.ClassDeclaration("c", modifiers:=DeclarationModifiers.
Abstract
)))
2704
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
)))
2705
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.
Abstract
)))
2719
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.WithModifiers(Generator.ClassDeclaration("c"), DeclarationModifiers.
Abstract
)))
2725
Assert.Equal(DeclarationModifiers.None, Generator.GetModifiers(Generator.WithModifiers(Generator.ParameterDeclaration("p"), DeclarationModifiers.
Abstract
)))
2726
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.WithModifiers(Generator.PropertyDeclaration("p", Generator.IdentifierName("t")), DeclarationModifiers.
Abstract
)))
2727
Assert.Equal(DeclarationModifiers.
Abstract
, Generator.GetModifiers(Generator.WithModifiers(Generator.IndexerDeclaration({Generator.ParameterDeclaration("i")}, Generator.IdentifierName("t")), DeclarationModifiers.
Abstract
)))
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
)))
2817
Generator.WithType(Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.
Abstract
), Nothing),
2821
Generator.WithType(Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Abstract
), Generator.IdentifierName("x")),