Skip to content

Commit

Permalink
Update OneOfGenerator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomoya123 authored Feb 16, 2022
1 parent bbc69b5 commit 0a4d18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OneOf.SourceGenerator/OneOfGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed class {AttributeName} : Attribute

public void Execute(GeneratorExecutionContext context)
{
context.AddSource(AttributeName, SourceText.From(_attributeText, Encoding.UTF8));
context.AddSource($"{AttributeName}.g.cs", SourceText.From(_attributeText, Encoding.UTF8));

if (context.SyntaxReceiver is not OneOfSyntaxReceiver receiver)
{
Expand Down

0 comments on commit 0a4d18f

Please sign in to comment.