You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.WithOpenBracketToken(Token(TriviaList(Comment($"/// <summary>The backing field for <see cref=\"{commandInfo.PropertyName}\"/>.</summary>")),SyntaxKind.OpenBracketToken,TriviaList())))
232
233
.AddAttributeLists(forwardedFieldAttributes);
234
+
235
+
declarations.Add(fieldDeclaration);
233
236
}
234
237
235
238
// Prepares the argument to pass the underlying method to invoke
@@ -347,22 +350,25 @@ public static ImmutableArray<MemberDeclarationSyntax> GetSyntax(CommandInfo comm
// Conditionally declare the additional members for the cancel commands
351
356
if(commandInfo.IncludeCancelCommand)
352
357
{
353
358
// Prepare all necessary member and type names
354
359
string?cancelCommandFieldName=commandInfo.FieldNameis not null?$"{commandInfo.FieldName.Substring(0,commandInfo.FieldName.Length-"Command".Length)}CancelCommand":null;
.WithOpenBracketToken(Token(TriviaList(Comment($"/// <summary>The backing field for <see cref=\"{cancelCommandPropertyName}\"/>.</summary>")),SyntaxKind.OpenBracketToken,TriviaList())));
377
383
384
+
declarations.Add(cancelCommandFieldDeclaration);
378
385
}
379
386
380
387
// Construct the generated property as follows (the explicit delegate cast is needed to avoid overload resolution conflicts):
@@ -412,20 +419,11 @@ public static ImmutableArray<MemberDeclarationSyntax> GetSyntax(CommandInfo comm
0 commit comments