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




``` Hack
protected function getMaxCodeLength(): int;
```




## Returns




- ` int `