-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open up SourceGeneratedParameterInformation constructor
- Loading branch information
Showing
1 changed file
with
4 additions
and
13 deletions.
There are no files selected for viewing
17 changes: 4 additions & 13 deletions
17
TUnit.Core/Models/SourceGenerations/SourceGeneratedParameterInformation.cs
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 |
---|---|---|
@@ -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; | ||
|