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

parseVariableList() private method

This method parses a comma separated list of valid php variables and/or properties and adds them to the given node instance.
Since: 0.9.12
private parseVariableList ( PDepend\Source\AST\ASTNode $node ) : PDepend\Source\AST\ASTNode
$node PDepend\Source\AST\ASTNode The context parent node.
return PDepend\Source\AST\ASTNode The prepared entire node.
    private function parseVariableList(ASTNode $node)
    {
        $this->consumeComments();
        while ($this->tokenizer->peek() !== Tokenizer::T_EOF) {
            $node->addChild($this->parseVariableOrConstantOrPrimaryPrefix());
            $this->consumeComments();
            if ($this->tokenizer->peek() === Tokens::T_COMMA) {
                $this->consumeToken(Tokens::T_COMMA);
                $this->consumeComments();
            } else {
                break;
            }
        }
        return $node;
    }
AbstractPHPParser