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




``` 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>)