visitToCodeExpression method

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

Implementation

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