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




``` Hack
private function assertIsVariable(
  string $name,
): void;
```




## Parameters




- ` string $name `




## Returns




+ ` void `