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




``` Hack
final public function hasAttributes(): bool;
```




## Returns




- ` bool `