/** * Returns a child node at the given index. * * @param integer $index The child offset. * * @return \PHPMD\Node\ASTNode */ public function getChild($index) { return new ASTNode($this->node->getChild($index), $this->getFileName()); }