Skip to content

Commit

Permalink
Regular constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop committed Jan 9, 2025
1 parent bc3bc73 commit 4a10708
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ namespace Microsoft.DotNet.GenAPI.SyntaxRewriter
/// - adds partial keyword
/// - remove Object from a list of base types.
/// </summary>
/// <remarks>
/// Initializes a new instance of the <see cref="TypeDeclarationCSharpSyntaxRewriter"/> class, and optionally allows deciding whether to insert the partial modifier for types or not.
/// </remarks>
/// <param name="addPartialModifier">Determines whether to insert the partial modifier for types or not.</param>
public class TypeDeclarationCSharpSyntaxRewriter(bool addPartialModifier) : CSharpSyntaxRewriter
public class TypeDeclarationCSharpSyntaxRewriter : CSharpSyntaxRewriter
{
private readonly bool _addPartialModifier = addPartialModifier;
private readonly bool _addPartialModifier;

/// <summary>
/// Initializes a new instance of the <see cref="TypeDeclarationCSharpSyntaxRewriter"/> class, and allows deciding whether to insert the partial modifier for types or not.
/// </summary>
/// <param name="addPartialModifier">Determines whether to insert the partial modifier for types or not.</param>
public TypeDeclarationCSharpSyntaxRewriter(bool addPartialModifier) => _addPartialModifier = addPartialModifier;

/// <inheritdoc />
public override SyntaxNode? VisitInterfaceDeclaration(InterfaceDeclarationSyntax node)
Expand Down

0 comments on commit 4a10708

Please sign in to comment.