Skip to content

Commit d4a58e8

Browse files
committed
Fix wrong generator type names in [GeneratedCode]
1 parent 4fb1357 commit d4a58e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ public static ImmutableArray<MemberDeclarationSyntax> GetOnPropertyChangeMethods
333333
AttributeList(SingletonSeparatedList(
334334
Attribute(IdentifierName("global::System.CodeDom.Compiler.GeneratedCode"))
335335
.AddArgumentListArguments(
336-
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ICommandGenerator).FullName))),
337-
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ICommandGenerator).Assembly.GetName().Version.ToString()))))))
336+
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ObservablePropertyGenerator).FullName))),
337+
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ObservablePropertyGenerator).Assembly.GetName().Version.ToString()))))))
338338
.WithOpenBracketToken(Token(TriviaList(Comment($"/// <summary>Executes the logic for when <see cref=\"{propertyInfo.PropertyName}\"/> is changing.</summary>")), SyntaxKind.OpenBracketToken, TriviaList())))
339339
.WithSemicolonToken(Token(SyntaxKind.SemicolonToken));
340340

@@ -351,8 +351,8 @@ public static ImmutableArray<MemberDeclarationSyntax> GetOnPropertyChangeMethods
351351
AttributeList(SingletonSeparatedList(
352352
Attribute(IdentifierName("global::System.CodeDom.Compiler.GeneratedCode"))
353353
.AddArgumentListArguments(
354-
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ICommandGenerator).FullName))),
355-
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ICommandGenerator).Assembly.GetName().Version.ToString()))))))
354+
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ObservablePropertyGenerator).FullName))),
355+
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(typeof(ObservablePropertyGenerator).Assembly.GetName().Version.ToString()))))))
356356
.WithOpenBracketToken(Token(TriviaList(Comment($"/// <summary>Executes the logic for when <see cref=\"{propertyInfo.PropertyName}\"/> just changed.</summary>")), SyntaxKind.OpenBracketToken, TriviaList())))
357357
.WithSemicolonToken(Token(SyntaxKind.SemicolonToken));
358358

0 commit comments

Comments
 (0)