Skip to content

Commit 011fcc7

Browse files
committed
Run csharpier
1 parent 53948f7 commit 011fcc7

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

AutomaticInterface/AutomaticInterface/InterfaceBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public string Build()
104104
cb.AppendLine(
105105
"[global::System.CodeDom.Compiler.GeneratedCode(\"AutomaticInterface\", \"\")]"
106106
);
107-
cb.AppendLine($"{(asInternal ? "internal" : "public")} partial interface {interfaceName}{genericType}");
107+
cb.AppendLine(
108+
$"{(asInternal ? "internal" : "public")} partial interface {interfaceName}{genericType}"
109+
);
108110
cb.AppendLine("{");
109111

110112
cb.Indent();

AutomaticInterface/Tests/Infrastructure.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ out var diagnostics
4646
Assert.Empty(errors);
4747

4848
// The first syntax tree is the input code, the second two are the two generated attribute classes, and the rest is the generated code.
49-
return string.Join(Environment.NewLine + Environment.NewLine, outputCompilation.SyntaxTrees.Skip(3));
49+
return string.Join(
50+
Environment.NewLine + Environment.NewLine,
51+
outputCompilation.SyntaxTrees.Skip(3)
52+
);
5053
}
5154
}

AutomaticInterface/Tests/Misc/Misc.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ class DemoClass
366366
}
367367

368368
[Fact]
369-
public async Task AsInternal()
370-
{
369+
public async Task AsInternal()
370+
{
371371
const string code = """
372372
373373
using AutomaticInterface;
@@ -381,13 +381,13 @@ public string AMethod(DemoClass? x, string y)
381381
}
382382
}
383383
384-
""";
384+
""";
385385
await Verify(Infrastructure.GenerateCode(code));
386-
}
387-
386+
}
387+
388388
[Fact]
389-
public async Task AsInternalExplicitFalse()
390-
{
389+
public async Task AsInternalExplicitFalse()
390+
{
391391
const string code = """
392392
393393
using AutomaticInterface;
@@ -401,7 +401,7 @@ public string AMethod(DemoClass? x, string y)
401401
}
402402
}
403403
404-
""";
404+
""";
405405
await Verify(Infrastructure.GenerateCode(code));
406406
}
407407
}

0 commit comments

Comments
 (0)