Skip to content

Commit

Permalink
Update BuildApiTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Feb 18, 2024
1 parent 5f8e6da commit 797362f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Tests/BuildApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public void Run()
writer.WriteLine($"### Extension methods");
writer.WriteLine();
foreach (var type in PublicMethods(extensions.Methods)
.Where(_ => !_.IsConstructor)
.GroupBy(_ => _.Parameters[0].ParameterType.FullName)
.OrderBy(_ => _.Key))
{
Expand Down Expand Up @@ -59,7 +58,7 @@ static string GetTypeName(string targetType)
}

static IEnumerable<MethodDefinition> PublicMethods(IEnumerable<MethodDefinition> type) =>
type.Where(_=>_.IsPublic)
type.Where(_=>_ is {IsPublic: true, IsConstructor: false})
.OrderBy(_ => _.Name);

static void WriteSignature(MethodDefinition method, StreamWriter writer)
Expand Down

0 comments on commit 797362f

Please sign in to comment.