Skip to content

Commit

Permalink
Fix import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rkodev committed Oct 23, 2024
1 parent 973150a commit a5db8e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override void WriteCodeElement(CodeFileDeclaration codeElement, LanguageW
.Where(static x => x is { IsExternal: false, Declaration.TypeDefinition: not null })
.GroupBy(static x =>
$"{x.Declaration!.TypeDefinition!.GetImmediateParentOfType<CodeNamespace>().Name}.{x.Declaration?.Name.ToLowerInvariant()}")
.Select(static x => x.OrderBy(static x => x.Parent?.Name).First()));
.Select(static x => x.OrderByDescending(static x => x.Alias).First()));

_codeUsingWriter.WriteCodeElement(filteredUsing, ns, writer);
}
Expand Down

0 comments on commit a5db8e9

Please sign in to comment.