File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ internal ObjectCreationExpressionSyntax ToInvocationSyntax()
58
58
/// </summary>
59
59
internal ConstructorDeclarationSyntax ToDeclarationSyntax ( string typeName )
60
60
=> ConstructorDeclaration ( Identifier ( typeName ) )
61
- . WithModifiers ( TokenList ( Token ( SyntaxKind . PublicKeyword ) ) )
61
+ . AddModifiers ( Token ( SyntaxKind . PublicKeyword ) )
62
62
. WithParameterList ( GetParameterList ( ) )
63
63
. WithInitializer ( ConstructorInitializer ( SyntaxKind . BaseConstructorInitializer , GetArgumentList ( thisKeyword : false ) ) )
64
64
. WithBody ( Block ( ) ) ;
Original file line number Diff line number Diff line change 5
5
using System . Collections . Generic ;
6
6
using System . Linq ;
7
7
using Microsoft . CodeAnalysis ;
8
- using Microsoft . CodeAnalysis . CSharp ;
9
8
using Microsoft . CodeAnalysis . CSharp . Syntax ;
10
9
using static Microsoft . CodeAnalysis . CSharp . SyntaxFactory ;
11
10
You can’t perform that action at this time.
0 commit comments