protected function registerTempVariable($type, $location, Variable $variable, $compilationContext = null)
{
$compilationContext = $compilationContext ?: $this->compilationContext;
$branchId = $compilationContext->branchManager->getCurrentBranchId();
if (!isset($this->branchTempVariables[$branchId][$location][$type])) {
$this->branchTempVariables[$branchId][$location][$type] = array();
}
$this->branchTempVariables[$branchId][$location][$type][] = $variable;
}