Skip to content

Commit

Permalink
Merge branch 'bug/duplicate_markers' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Newex committed Apr 5, 2024
2 parents b757dc6 + 6d6e40d commit 6f84909
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Generators/PartialIncrementalSourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ public class PartialIncrementalSourceGenerator : IIncrementalGenerator
using System;
#if !PARTIALSOURCEGEN_EXCLUDE_ATTRIBUTES
namespace PartialSourceGen
{
#nullable enable
/// <summary>
/// Generate partial optional properties of this class/struct.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
public class PartialAttribute : Attribute
internal sealed class PartialAttribute : Attribute
{
/// <summary>
/// The optional summary for the partial entity. If not given
Expand All @@ -64,7 +65,7 @@ public class PartialAttribute : Attribute
/// Include the initializer for this property in the partial entity.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class IncludeInitializerAttribute : Attribute
internal sealed class IncludeInitializerAttribute : Attribute
{
}
Expand All @@ -75,7 +76,7 @@ public class IncludeInitializerAttribute : Attribute
/// <typeparam name="TOriginal">The original type</typeparam>
/// <typeparam name="TPartial">The partial type</typeparam>
[AttributeUsage(AttributeTargets.Property)]
public class PartialReferenceAttribute<TOriginal, TPartial> : Attribute
internal sealed class PartialReferenceAttribute<TOriginal, TPartial> : Attribute
{
/// <summary>
/// Instantiate a partial reference attribute
Expand All @@ -90,7 +91,7 @@ public PartialReferenceAttribute(string? name = null)
/// Replace a type with a partial reference
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class PartialReferenceAttribute : Attribute
internal sealed class PartialReferenceAttribute : Attribute
{
/// <summary>
/// Instantiate a partial reference attribute
Expand All @@ -102,9 +103,9 @@ public PartialReferenceAttribute(Type original, Type partial, string? name = nul
{
}
}
#nullable disable
}
#endif
""";

/// <inheritdoc />
Expand Down

0 comments on commit 6f84909

Please sign in to comment.