private function parseUseOfTrait($stackSize, $stack)
{
$use = '';
for ($t = 0; $t < $stackSize; $t++) {
$current = (array) $stack[$t];
switch ($current[0]) {
case '{':
// find closing bracket to skip contents
for ($x = $t + 1; $x < $stackSize; $x++) {
$tok = $stack[$x];
if ($tok[0] == '}') {
$t = $x;
break;
}
}
continue;
case ';':
case ',':
$this->dependencies[$this->inUnit][] = $this->resolveDependencyName($use);
$use = '';
continue;
case T_NS_SEPARATOR:
case T_STRING:
$use .= $current[1];
continue;
}
}
}