Skip to content

Commit

Permalink
Write the generated file header to the ComInterfaceGenerator-generate…
Browse files Browse the repository at this point in the history
…d files (#86283)
  • Loading branch information
jkoritzinsky authored May 16, 2023
1 parent 55c4e8c commit ddd748e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
var ((((((interfaceContext, interfaceInfo), managedToNativeStubs), nativeToManagedStubs), nativeToManagedVtable), iUnknownDerivedAttribute), shadowingMethod) = data;

using StringWriter source = new();
source.WriteLine("// <auto-generated />");
interfaceInfo.WriteTo(source);
// Two newlines looks cleaner than one
source.WriteLine();
Expand Down

0 comments on commit ddd748e

Please sign in to comment.