Skip to content

Commit 5ced73e

Browse files
committed
Extracted members from CSharpType to ICSharpType
1 parent db4dbad commit 5ced73e

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/CodeGeneration/CSharpType.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,10 @@ protected CSharpType(CSharpIdentifier identifier)
2828
Identifier = identifier ?? throw new ArgumentNullException(nameof(identifier));
2929
}
3030

31-
/// <summary>
32-
/// A summary used for an XML documentation comment.
33-
/// </summary>
31+
/// <inheritdoc/>
3432
public string? Summary { get; set; }
3533

36-
/// <summary>
37-
/// Attributes to apply to the type.
38-
/// </summary>
34+
/// <inheritdoc/>
3935
public List<CSharpAttribute> Attributes { get; } = new List<CSharpAttribute>();
4036

4137
/// <inheritdoc/>

src/CodeGeneration/ICSharpType.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Bastian Eicher
22
// Licensed under the MIT License
33

4+
using System.Collections.Generic;
45
using Microsoft.CodeAnalysis.CSharp.Syntax;
56

67
namespace NanoByte.CodeGeneration
@@ -15,6 +16,16 @@ public interface ICSharpType
1516
/// </summary>
1617
CSharpIdentifier Identifier { get; }
1718

19+
/// <summary>
20+
/// A summary used for an XML documentation comment.
21+
/// </summary>
22+
string? Summary { get; set; }
23+
24+
/// <summary>
25+
/// Attributes to apply to the type.
26+
/// </summary>
27+
List<CSharpAttribute> Attributes { get; }
28+
1829
/// <summary>
1930
/// Returns a Roslyn syntax for a file containing the type.
2031
/// </summary>

0 commit comments

Comments
 (0)