private function parseBoundVariables(\PDepend\Source\AST\ASTClosure $closure)
{
$this->consumeToken(Tokens::T_USE);
$this->consumeComments();
$this->consumeToken(Tokens::T_PARENTHESIS_OPEN);
while ($this->tokenizer->peek() !== Tokenizer::T_EOF) {
$this->consumeComments();
if ($this->tokenizer->peek() === Tokens::T_BITWISE_AND) {
$this->consumeToken(Tokens::T_BITWISE_AND);
$this->consumeComments();
}
$this->consumeToken(Tokens::T_VARIABLE);
$this->consumeComments();
if ($this->tokenizer->peek() === Tokens::T_COMMA) {
$this->consumeToken(Tokens::T_COMMA);
continue;
}
break;
}
$this->consumeComments();
$this->consumeToken(Tokens::T_PARENTHESIS_CLOSE);
return $closure;
}