Skip to content

Commit

Permalink
fix(python): Use Writer in Operator LHS & RHS (#5401)
Browse files Browse the repository at this point in the history
Use writer in operators
  • Loading branch information
noanflaherty authored Dec 12, 2024
1 parent 186588d commit 26b7ac8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generators/python-v2/ast/src/Operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ export class Operator extends AstNode {
}

public write(writer: Writer): void {
writer.write(`${this.lhs.toString()} `);
this.lhs.write(writer);
writer.write(" ");
writer.write(this.getOperatorString());
writer.write(` ${this.rhs.toString()}`);
writer.write(" ");
this.rhs.write(writer);
}
}

0 comments on commit 26b7ac8

Please sign in to comment.