7 references to Required
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1438DeclarationModifiers.Required | 1468DeclarationModifiers.Required |
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
145SyntaxKind.RequiredKeyword => DeclarationModifiers.Required,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.cs (4)
797Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Required), 1062Generator.PropertyDeclaration("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.Required), 4841TestModifiersAsync(DeclarationModifiers.ReadOnly | DeclarationModifiers.Required, 4863TestModifiersAsync(DeclarationModifiers.Required,