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




Add code specified using a %-placeholder format string and arguments,
followed by a newline




``` Hack
final public function addLinef(
  HH\Lib\Str\SprintfFormatString $code,
  mixed ...$args,
): this;
```




## Parameters




+ ` HH\Lib\Str\SprintfFormatString $code `
+ ` mixed ...$args `




## Returns




* ` this `