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




Create a ` HackBuilder `; this is used to generate code, rather than
declarations




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




## Returns




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