40 references to Sealed
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
1451
DeclarationModifiers.
Sealed
|
1469
DeclarationModifiers.
Sealed
|
1480
DeclarationModifiers.
Sealed
|
1491
DeclarationModifiers.
Sealed
|
1500
DeclarationModifiers.
Sealed
|
1509
DeclarationModifiers.
Sealed
|
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
138
SyntaxKind.SealedKeyword => DeclarationModifiers.
Sealed
,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (12)
CodeGeneration\SyntaxGeneratorTests.cs (12)
1630
Generator.InterfaceDeclaration("i", members: [Generator.MethodDeclaration("m", returnType: Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Sealed
)]),
1634
Generator.InterfaceDeclaration("i", members: [Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Sealed
)]),
1642
Generator.InterfaceDeclaration("i", members: [Generator.IndexerDeclaration([Generator.ParameterDeclaration("y", Generator.IdentifierName("x"))], Generator.IdentifierName("t"), Accessibility.Public, DeclarationModifiers.
Sealed
)]),
1658
Generator.InterfaceDeclaration("i", members: [Generator.FieldDeclaration("f", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.
Sealed
)]),
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,
4795
TestModifiersAsync(DeclarationModifiers.
Sealed
| DeclarationModifiers.Override,
4885
TestModifiersAsync(DeclarationModifiers.ReadOnly | DeclarationModifiers.
Sealed
,
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
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 (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (1)
235
modifiers = modifiers Or DeclarationModifiers.
Sealed
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
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 (12)
CodeGeneration\SyntaxGeneratorTests.vb (12)
895
Dim md = Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Sealed
)
896
Assert.Equal(DeclarationModifiers.
Sealed
, Generator.GetModifiers(md))
902
Dim md2 = Generator.MethodDeclaration("m", modifiers:=DeclarationModifiers.
Sealed
+ DeclarationModifiers.Override)
903
Assert.Equal(DeclarationModifiers.
Sealed
+ DeclarationModifiers.Override, Generator.GetModifiers(md2))
909
Dim cd = Generator.ClassDeclaration("c", modifiers:=DeclarationModifiers.
Sealed
)
910
Assert.Equal(DeclarationModifiers.
Sealed
, Generator.GetModifiers(cd))
1541
Generator.InterfaceDeclaration("i", members:={Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
Sealed
)}),
1549
Generator.InterfaceDeclaration("i", members:={Generator.PropertyDeclaration("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.
Sealed
)}),
1565
Generator.InterfaceDeclaration("i", members:={Generator.IndexerDeclaration({Generator.ParameterDeclaration("y", Generator.IdentifierName("x"))}, Generator.IdentifierName("t"), Accessibility.Public, DeclarationModifiers.
Sealed
)}),
2742
Dim classBlockWithModifiers = Generator.WithModifiers(classBlock, DeclarationModifiers.
Sealed
)
2747
Dim classStatementWithModifiers = Generator.WithModifiers(classStatement, DeclarationModifiers.
Sealed
)
2754
classBlock = DirectCast(Generator.AddMembers(classBlock, Generator.WithModifiers(Generator.MethodDeclaration("Goo"), DeclarationModifiers.
Sealed
)), ClassBlockSyntax)