visitToCodeExpression method Null safety

  1. @override
StringSink visitToCodeExpression(
  1. ToCodeExpression expression,
  2. [StringSink? output]
)
override

Implementation

@override
StringSink visitToCodeExpression(ToCodeExpression expression,
    [StringSink? output]) {
  output ??= StringBuffer();
  expression.code.accept(this, output);
  if (expression.isStatement) {
    output.write(';');
  }
  return output;
}