visitBinaryExpression method Null safety

  1. @override
StringSink visitBinaryExpression(
  1. BinaryExpression expression,
  2. [StringSink? output]
)
override

Implementation

@override
StringSink visitBinaryExpression(BinaryExpression expression,
    [StringSink? output]) {
  output ??= StringBuffer();
  expression.left.accept(this, output);
  if (expression.addSpace) {
    output.write(' ');
  }
  output.write(expression.operator);
  if (expression.addSpace) {
    output.write(' ');
  }
  startConstCode(expression.isConst, () {
    expression.right.accept(this, output);
  });
  return output;
}