---
layout: docs
title: codegenHackBuilder
id: trait.Facebook.HackCodegen.CodegenFactoryTrait.codegenHackBuilder
docid: trait.Facebook.HackCodegen.CodegenFactoryTrait.codegenHackBuilder
permalink: /docs/reference/trait.Facebook.HackCodegen.CodegenFactoryTrait.codegenHackBuilder/
---
# Facebook\\HackCodegen\\CodegenFactoryTrait::codegenHackBuilder()




``` Hack
final public function codegenHackBuilder(): Facebook\HackCodegen\HackBuilder;
```




## Returns




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