Skip to content

Commit

Permalink
Comment in source that source file is auto-generated. (#1209)
Browse files Browse the repository at this point in the history
* Comment in source that source file is auto-generated.

Co-authored-by: Sam Harwell <sam@tunnelvisionlabs.com>
  • Loading branch information
AaronRobinsonMSFT and sharwell committed Jun 8, 2021
1 parent b11a26a commit fd4042c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DllImportGenerator/DllImportGenerator/DllImportGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ public void Execute(GeneratorExecutionContext context)
}

var env = new StubEnvironment(context.Compilation, isSupported, targetFrameworkVersion, context.AnalyzerConfigOptions.GlobalOptions);

var generatedDllImports = new StringBuilder();

// Mark in source that the file is auto-generated.
generatedDllImports.AppendLine("// <auto-generated/>");

foreach (SyntaxReference synRef in synRec.Methods)
{
var methodSyntax = (MethodDeclarationSyntax)synRef.GetSyntax(context.CancellationToken);
Expand Down

0 comments on commit fd4042c

Please sign in to comment.