Skip to content

Commit

Permalink
Formatting struct primary constructor (#971)
Browse files Browse the repository at this point in the history
closes #969
  • Loading branch information
belav authored Oct 10, 2023
1 parent cf47888 commit 3aeb571
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
struct BasicStruct { }

public readonly struct ReadonlyStruct { }

public struct NamedItem2(
string name1________________________________,
string name2________________________________
)
{
public string Name1 => name1;
public string Name2 => name1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static Doc Print(BaseTypeDeclarationSyntax node, FormattingContext contex
else if (node is StructDeclarationSyntax structDeclarationSyntax)
{
keyword = structDeclarationSyntax.Keyword;
parameterList = structDeclarationSyntax.ParameterList;
}
else if (node is InterfaceDeclarationSyntax interfaceDeclarationSyntax)
{
Expand Down

0 comments on commit 3aeb571

Please sign in to comment.