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




``` Hack
final public function codegenGeneratedFromScript(
  ?string $script = NULL,
): Facebook\HackCodegen\CodegenGeneratedFrom;
```




## Parameters




+ ` ?string $script = NULL `




## Returns




* [` Facebook\HackCodegen\CodegenGeneratedFrom `](<class.Facebook.HackCodegen.CodegenGeneratedFrom.md>)