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




Saves the generated file




``` Hack
public function save(): Facebook\HackCodegen\CodegenFileResult;
```




## Returns




- ` CodegenFileResultType `