function Compiler::reset
Return value
$this
1 call to Compiler::reset()
- Compiler::compile in vendor/
twig/ twig/ src/ Compiler.php
File
-
vendor/
twig/ twig/ src/ Compiler.php, line 50
Class
- Compiler
- @author Fabien Potencier <fabien@symfony.com>
Namespace
TwigCode
public function reset(int $indentation = 0) {
$this->lastLine = null;
$this->source = '';
$this->debugInfo = [];
$this->sourceOffset = 0;
// source code starts at 1 (as we then increment it when we encounter new lines)
$this->sourceLine = 1;
$this->indentation = $indentation;
$this->varNameSalt = 0;
return $this;
}