protected function handleBlock(array $token)
{
$node = $this->createNode('block', $token);
$node->name = isset($token['name']) ? $token['name'] : null;
$node->mode = isset($token['mode']) ? $token['mode'] : null;
if (!$node->name && !$this->inMixin) {
$this->throwException("Blocks outside of a mixin always need a valid name.");
}
$this->current = $node;
$this->expectEnd($token);
}