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

parseExpressionList() private method

This method parses multiple expressions and adds them as children to the given $exprList node.
Since: 1.0.0
private parseExpressionList ( PDepend\Source\AST\ASTNode $exprList ) : PDepend\Source\AST\ASTNode
$exprList PDepend\Source\AST\ASTNode Parent that accepts multiple expr.
return PDepend\Source\AST\ASTNode
    private function parseExpressionList(\PDepend\Source\AST\ASTNode $exprList)
    {
        $this->consumeComments();
        while ($expr = $this->parseOptionalExpression()) {
            $exprList->addChild($expr);
            $this->consumeComments();
            if (Tokens::T_COMMA === $this->tokenizer->peek()) {
                $this->consumeToken(Tokens::T_COMMA);
                $this->consumeComments();
            } else {
                break;
            }
        }
        return $exprList;
    }
AbstractPHPParser