---
layout: docs
title: appendToBuilder
id: interface.Facebook.HackCodegen.ICodeBuilderRenderer.appendToBuilder
docid: interface.Facebook.HackCodegen.ICodeBuilderRenderer.appendToBuilder
permalink: /docs/reference/interface.Facebook.HackCodegen.ICodeBuilderRenderer.appendToBuilder/
---
# Facebook\\HackCodegen\\ICodeBuilderRenderer::appendToBuilder()




Appends the code of this class to the builder




``` Hack
public function appendToBuilder(
  Facebook\HackCodegen\HackBuilder $builder,
): Facebook\HackCodegen\HackBuilder;
```




## Parameters




+ [` Facebook\HackCodegen\HackBuilder `](<class.Facebook.HackCodegen.HackBuilder.md>)`` $builder ``




## Returns




* [` Facebook\HackCodegen\HackBuilder `](<class.Facebook.HackCodegen.HackBuilder.md>)