private function processAs()
{
if (in_array($this->tokens[$this->id + 1][0], array(T_PRIVATE, T_PUBLIC, T_PROTECTED))) {
$current = $this->id;
$asId = $this->addAtom('As');
$left = $this->popExpression();
$this->addLink($asId, $left, 'NAME');
if (in_array($this->tokens[$this->id + 1][0], array(T_PRIVATE, T_PROTECTED, T_PUBLIC))) {
$visibilityId = $this->processNextAsIdentifier();
$this->addLink($asId, $visibilityId, strtoupper($this->atoms[$visibilityId]['code']));
}
if (!in_array($this->tokens[$this->id + 1][0], array(T_COMMA, T_SEMICOLON))) {
$aliasId = $this->processNextAsIdentifier();
$this->addLink($asId, $aliasId, 'AS');
} else {
$aliasId = $this->addAtomVoid();
$this->addLink($asId, $aliasId, 'AS');
}
$x = array('code' => $this->tokens[$current][1], 'fullcode' => $this->atoms[$left]['fullcode'] . ' ' . $this->tokens[$current][1] . ' ' . (isset($visibilityId) ? $this->atoms[$visibilityId]['fullcode'] . ' ' : ''), $this->atoms[$aliasId]['fullcode'], 'line' => $this->tokens[$current][2], 'token' => $this->getToken($this->tokens[$current][0]));
$this->setAtom($asId, $x);
$this->pushExpression($asId);
return $asId;
} else {
return $this->processOperator('As', $this->precedence->get($this->tokens[$this->id][0]), array('NAME', 'AS'));
}
}