From 99ce9f08856693f10b0cceab23c978977f97c6bc Mon Sep 17 00:00:00 2001 From: David Janos Csillik Date: Thu, 3 Oct 2024 13:06:33 +0200 Subject: [PATCH] Add // to generated files --- InterfaceGenerator/Attributes.cs | 1 + InterfaceGenerator/AutoInterfaceGenerator.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/InterfaceGenerator/Attributes.cs b/InterfaceGenerator/Attributes.cs index 754b8ec..60b6387 100644 --- a/InterfaceGenerator/Attributes.cs +++ b/InterfaceGenerator/Attributes.cs @@ -12,6 +12,7 @@ internal class Attributes public const string InterfaceNamePropName = "Name"; public static readonly string AttributesSourceCode = $@" +// using System; using System.Diagnostics; diff --git a/InterfaceGenerator/AutoInterfaceGenerator.cs b/InterfaceGenerator/AutoInterfaceGenerator.cs index e4ec264..0c9a53a 100644 --- a/InterfaceGenerator/AutoInterfaceGenerator.cs +++ b/InterfaceGenerator/AutoInterfaceGenerator.cs @@ -145,6 +145,8 @@ private string GenerateInterfaceCode(INamedTypeSymbol implTypeSymbol, AttributeD var interfaceName = InferInterfaceName(implTypeSymbol, attributeData); var visibilityModifier = InferVisibilityModifier(implTypeSymbol, attributeData); + codeWriter.WriteLine("// "); + codeWriter.WriteLine(); codeWriter.WriteLine("namespace {0}", namespaceName); codeWriter.WriteLine("{");