public function getName() {
$tokens = $this->tokenStream
->tokens();
$namespace = (string) $tokens[$this->id + 2];
for ($i = $this->id + 3;; $i += 2) {
if (isset($tokens[$i]) && $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) {
$namespace .= '\\' . $tokens[$i + 1];
}
else {
break;
}
}
return $namespace;
}