Skip to content

Commit

Permalink
Fix for the target to get passed too
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed May 7, 2024
1 parent 712d00c commit e96034f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ private static IEnumerable<MemberDeclarationSyntax> GenerateServiceMethod(string
if (service.Target is not null)
{
targetParam = $"{targetParam}, object? data = null";
targetArg = "target, data";
}
else
{
targetParam = "object? data = null";
targetArg = "null, data";
}
targetArg = "null, data";
// method without arguments
yield return ParseMemberDeclaration($$"""
void {{serviceMethodName}}({{targetParam}})
Expand Down

0 comments on commit e96034f

Please sign in to comment.