Skip to content

Commit

Permalink
Update Formatter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Oct 23, 2023
1 parent da66869 commit bb6aa27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Draco.Compiler/Internal/Syntax/Formatting/Formatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ public override SyntaxNode VisitBinaryExpression(BinaryExpressionSyntax node) =>
Space,
node.Right));

public override SyntaxNode VisitRelationalExpression(RelationalExpressionSyntax node) => node.Update(this.AppendSequence(
node.Left,
node.Comparisons));

public override SyntaxNode VisitComparisonElement(ComparisonElementSyntax node) => node.Update(this.AppendSequence(
Space,
node.Operator,
Space,
node.Right));

public override SyntaxNode VisitGroupingExpression(GroupingExpressionSyntax node) => node.Update(this.AppendSequence(
node.OpenParen,
node.Expression,
Expand Down

0 comments on commit bb6aa27

Please sign in to comment.