菜谱项目

Error.php 645B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace PhpParser\Node\Expr;
  3. use PhpParser\Node\Expr;
  4. /**
  5. * Error node used during parsing with error recovery.
  6. *
  7. * An error node may be placed at a position where an expression is required, but an error occurred.
  8. * Error nodes will not be present if the parser is run in throwOnError mode (the default).
  9. */
  10. class Error extends Expr
  11. {
  12. /**
  13. * Constructs an error node.
  14. *
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct(array $attributes = array()) {
  18. parent::__construct($attributes);
  19. }
  20. public function getSubNodeNames() {
  21. return array();
  22. }
  23. }