Skip to content

Commit ab5fdf6

Browse files
committed
Minor tweaks
1 parent 5766e9e commit ab5fdf6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/CodeGeneration/CSharpConstructor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ internal ObjectCreationExpressionSyntax ToInvocationSyntax()
5858
/// </summary>
5959
internal ConstructorDeclarationSyntax ToDeclarationSyntax(string typeName)
6060
=> ConstructorDeclaration(Identifier(typeName))
61-
.WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword)))
61+
.AddModifiers(Token(SyntaxKind.PublicKeyword))
6262
.WithParameterList(GetParameterList())
6363
.WithInitializer(ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, GetArgumentList(thisKeyword: false)))
6464
.WithBody(Block());

src/CodeGeneration/CSharpType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.Linq;
77
using Microsoft.CodeAnalysis;
8-
using Microsoft.CodeAnalysis.CSharp;
98
using Microsoft.CodeAnalysis.CSharp.Syntax;
109
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
1110

0 commit comments

Comments
 (0)