fix: Fixes sourcegen spacing (#766)

This commit is contained in:
Kamron Batman 2021-09-05 13:18:31 -07:00 committed by GitHub
parent 04b5a6c609
commit 21aa6aaade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 8 deletions

View file

@ -21,9 +21,14 @@ namespace SerializationGenerator
{
public static partial class SourceGeneration
{
public static void GenerateAttribute(this StringBuilder source, string attrClassName, ImmutableArray<TypedConstant> args)
public static void GenerateAttribute(
this StringBuilder source,
string indent,
string attrClassName,
ImmutableArray<TypedConstant> args
)
{
source.Append($" [{attrClassName}");
source.Append($"{indent}[{attrClassName}");
var hasArgs = args.Length > 0;
if (hasArgs)