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




Extract the generated code and returns it as a string




``` Hack
public function extractGeneratedCode(): string;
```




## Returns




- ` string `