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




Validate the manual sections and throws PartiallyGeneratedCodeException
if there are any errors (e




``` Hack
public function assertValidManualSections(): void;
```




g. unfinished manual section, nested
manual sections, duplicated ids, etc)




## Returns




- ` void `