-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added constructor initializer and xml documentation for arguments (#58)
- Loading branch information
Showing
8 changed files
with
195 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using Testura.Code.Generators.Common.Arguments.ArgumentTypes; | ||
|
||
namespace Testura.Code.Models | ||
{ | ||
/// <summary> | ||
/// Represent a constructor initializer. | ||
/// </summary> | ||
public class ConstructorInitializer | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConstructorInitializer"/> class. | ||
/// </summary> | ||
/// <param name="constructorInitializerType">Type of constructor initializer.</param> | ||
/// <param name="arguments">Constructor initializer arguments.</param> | ||
public ConstructorInitializer(ConstructorInitializerTypes constructorInitializerType, IEnumerable<Argument> arguments) | ||
{ | ||
ConstructorInitializerType = constructorInitializerType; | ||
Arguments = arguments; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the constructor initializer type. | ||
/// </summary> | ||
public ConstructorInitializerTypes ConstructorInitializerType { get; } | ||
|
||
/// <summary> | ||
/// Gets the constructor initializer arguments. | ||
/// </summary> | ||
public IEnumerable<Argument> Arguments { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters