code: FormattingContext appendAll(CodeChunk chunk) {
      appendInitialStatements(chunk);
      if (chunk instanceof Expression) {
        appendOutputExpression((Expression) chunk);
        append(";");
        endLine();
      }
      return this;
    }
docs: Writes all code for the {@code chunk} to the buffer.