Skip to content

Commit

Permalink
Fixing extra space in pattern matching
Browse files Browse the repository at this point in the history
closes #167
  • Loading branch information
belav committed May 15, 2021
1 parent 514d9b8 commit 8fdb148
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ class ClassName
) {
return;
}

if (x is Y { NoExtraSpaceAfterThisNextBrace: true } && newGroup)
{
return;
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public static Doc Print(RecursivePatternSyntax node)
" "
),
" ",
Token.PrintWithSuffix(node.PropertyPatternClause.CloseBraceToken, " ")
)
Token.Print(node.PropertyPatternClause.CloseBraceToken)
)
: string.Empty,
node.Designation != null ? Node.Print(node.Designation) : string.Empty
node.Designation != null ? Doc.Concat(" ", Node.Print(node.Designation)) : string.Empty
);
}
}
Expand Down

0 comments on commit 8fdb148

Please sign in to comment.