PDepend\Source\Language\PHP\AbstractPHPParser::parseOptionalBoundVariables PHP Method

parseOptionalBoundVariables() private method

Parses an optional set of bound closure variables.
Since: 1.0.0
private parseOptionalBoundVariables ( PDepend\Source\AST\ASTClosure $closure ) : PDepend\Source\AST\ASTClosure
$closure PDepend\Source\AST\ASTClosure The context closure instance.
return PDepend\Source\AST\ASTClosure
    private function parseOptionalBoundVariables(\PDepend\Source\AST\ASTClosure $closure)
    {
        $this->consumeComments();
        if (Tokens::T_USE === $this->tokenizer->peek()) {
            return $this->parseBoundVariables($closure);
        }
        return $closure;
    }
AbstractPHPParser