parseOptionalExpressionForVersion() protected method

This method will be called when the base parser cannot handle an expression in the base version. In this method you can implement version specific expressions.
Since: 2.2
protected parseOptionalExpressionForVersion ( ) : PDepend\Source\AST\ASTNode
return PDepend\Source\AST\ASTNode
Beispiel #1
0
 /**
  * This method will be called when the base parser cannot handle an expression
  * in the base version. In this method you can implement version specific
  * expressions.
  *
  * @return \PDepend\Source\AST\ASTNode
  * @throws \PDepend\Source\Parser\UnexpectedTokenException
  * @since 2.3
  */
 protected function parseOptionalExpressionForVersion()
 {
     if ($expression = $this->parseExpressionVersion70()) {
         return $expression;
     }
     return parent::parseOptionalExpressionForVersion();
 }