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




Returns the maximum length of code based on the current identation level




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




## Returns




* ` int `