Skip to content

Commit

Permalink
Open up SourceGeneratedParameterInformation constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhurst committed Mar 8, 2025
1 parent b9ca211 commit 7da83ec
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
using System.Diagnostics.CodeAnalysis;
namespace TUnit.Core;

namespace TUnit.Core;
public record SourceGeneratedParameterInformation<T>() : SourceGeneratedParameterInformation(typeof(T));

public record SourceGeneratedParameterInformation<T> : SourceGeneratedParameterInformation
{
[field: AllowNull, MaybeNull]
public override Type Type
{
get => field ??= typeof(T);
init;
}
}

public abstract record SourceGeneratedParameterInformation : SourceGeneratedMemberInformation;
public record SourceGeneratedParameterInformation(Type Type) : SourceGeneratedMemberInformation;

0 comments on commit 7da83ec

Please sign in to comment.