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




Render a Codegen* value to code, and use it as the value




``` Hack
public static function codegen(): IHackBuilderValueRenderer<Facebook\HackCodegen\ICodeBuilderRenderer>;
```




## Returns




+ ` IHackBuilderValueRenderer<Facebook\HackCodegen\ICodeBuilderRenderer> `