Esempio n. 1
0
 /**
  * Parses an isset-expression node.
  *
  * <code>
  * //  -----------
  * if (isset($foo)) {
  * //  -----------
  * }
  *
  * //  -----------------------
  * if (isset($foo, $bar, $baz)) {
  * //  -----------------------
  * }
  * </code>
  *
  * @return PHP_Depend_Code_ASTIssetExpression
  * @since 0.9.12
  */
 private function parseIssetExpression()
 {
     $startToken = $this->consumeToken(self::T_ISSET);
     $this->consumeComments();
     $this->consumeToken(self::T_PARENTHESIS_OPEN);
     $expr = $this->builder->buildAstIssetExpression();
     $expr = $this->parseVariableList($expr);
     $stopToken = $this->consumeToken(self::T_PARENTHESIS_CLOSE);
     $expr->configureLinesAndColumns($startToken->startLine, $stopToken->endLine, $startToken->startColumn, $stopToken->endColumn);
     return $expr;
 }