Skip to content

Commit 9b901c0

Browse files
authored
Merge pull request #3 from dotnet-campus/t/lvyi/generic
避免丢失来源类型
2 parents dc3f851 + ee1f2e3 commit 9b901c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dotnetCampus.CodeAnalysisUtils/GeneratorInfo.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public static string ToGlobalTypeOfDisplayString(this INamedTypeSymbol symbol)
7373
/// </summary>
7474
/// <param name="builder"></param>
7575
/// <returns></returns>
76-
public static IAllowAttributes AddGeneratedToolAndEditorBrowsingAttributes(this IAllowAttributes builder)
76+
public static T AddGeneratedToolAndEditorBrowsingAttributes<T>(this T builder)
77+
where T : IAllowAttributes
7778
{
7879
return builder
7980
.AddAttribute("[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]")

0 commit comments

Comments
 (0)