Skip to content

Commit 6e48ed0

Browse files
committed
Fixed field token definitions
1 parent 42eb6be commit 6e48ed0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CommunityToolkit.Mvvm.SourceGenerators/Input/RelayCommandGenerator.Execute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public static ImmutableArray<MemberDeclarationSyntax> GetSyntax(CommandInfo comm
345345
ArrowExpressionClause(
346346
AssignmentExpression(
347347
SyntaxKind.CoalesceAssignmentExpression,
348-
commandInfo.FieldName is not null ? IdentifierName(commandInfo.FieldName) : IdentifierName(Token(SyntaxKind.FieldKeyword)),
348+
commandInfo.FieldName is not null ? IdentifierName(commandInfo.FieldName) : IdentifierName("field"),
349349
ObjectCreationExpression(IdentifierName(commandClassTypeName))
350350
.AddArgumentListArguments(commandCreationArguments.ToArray()))))
351351
.WithSemicolonToken(Token(SyntaxKind.SemicolonToken));
@@ -410,7 +410,7 @@ public static ImmutableArray<MemberDeclarationSyntax> GetSyntax(CommandInfo comm
410410
ArrowExpressionClause(
411411
AssignmentExpression(
412412
SyntaxKind.CoalesceAssignmentExpression,
413-
cancelCommandFieldName is not null ? IdentifierName(cancelCommandFieldName) : IdentifierName(Token(SyntaxKind.FieldKeyword)),
413+
cancelCommandFieldName is not null ? IdentifierName(cancelCommandFieldName) : IdentifierName("field"),
414414
InvocationExpression(
415415
MemberAccessExpression(
416416
SyntaxKind.SimpleMemberAccessExpression,

0 commit comments

Comments
 (0)