Update and format
MODIFY
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
@@ -11,8 +11,9 @@ namespace WalletWasabi.Fluent.Generators
[Generator]
public class AutoNotifyGenerator : ISourceGenerator
{
- private const string AttributeText = @"
+ private const string AttributeText = @"// <auto-generated />
using System;
+
namespace WalletWasabi.Fluent
{
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
@@ -76,7 +77,8 @@ namespace WalletWasabi.Fluent
string namespaceName = classSymbol.ContainingNamespace.ToDisplayString();
- var source = new StringBuilder($@"namespace {namespaceName}
+ var source = new StringBuilder($@"// <auto-generated />
+namespace {namespaceName}
{{
public partial class {classSymbol.Name} : {notifySymbol.ToDisplayString()}
{{
@@ -149,10 +151,9 @@ namespace WalletWasabi.Fluent
return fieldName.Substring(0, 1).ToUpper() + fieldName.Substring(1);
#pragma warning restore IDE0057 // Use range operator
}
-
}
- class SyntaxReceiver : ISyntaxReceiver
+ private class SyntaxReceiver : ISyntaxReceiver
{
public List<FieldDeclarationSyntax> CandidateFields { get; } = new List<FieldDeclarationSyntax>();

MODIFY
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
@@ -116,7 +116,8 @@ namespace WalletWasabi.Fluent
string namespaceName = namedTypeSymbol.ContainingNamespace.ToDisplayString();
- var source = new StringBuilder($@"
+ var source = new StringBuilder($@"// <auto-generated />
+
namespace {namespaceName}
{{
public partial class {namedTypeSymbol.Name}

Update and format