public function visitSelectorSimplePseudoClassPosition(Ast\Selector\Simple\PseudoClass\Position $position)
{
if ($position->repeat == 2 && $position->add == 1) {
$css = 'odd';
} elseif ($position->repeat == 2 && $position->add == 0) {
$css = 'even';
} elseif ($position->repeat == 0) {
$css = $position->add;
} elseif ($position->repeat == 1) {
$css = 'n';
if ($position->add != 0) {
$css .= $position->add >= 0 ? '+' . $position->add : $position->add;
}
} else {
$css = $position->repeat . 'n';
if ($position->add != 0) {
$css .= $position->add >= 0 ? '+' . $position->add : $position->add;
}
}
$this->appendText($css);
return TRUE;
}