---
layout: docs
title: appendToBuilder
id: class.Facebook.HackCodegen.CodegenConstant.appendToBuilder
docid: class.Facebook.HackCodegen.CodegenConstant.appendToBuilder
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenConstant.appendToBuilder/
---
# Facebook\\HackCodegen\\CodegenConstant::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>)