mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
Add missing doc and pretty print for Stmt_Declare
This commit is contained in:
parent
ea65ea7a32
commit
8bd8e815c9
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @property PHPParser_Node_Stmt_DeclareDeclare[] $declares List of declares
|
||||
* @property PHPParser_Node[] $stmts Statements
|
||||
*/
|
||||
class PHPParser_Node_Stmt_Declare extends PHPParser_Node_Stmt
|
||||
{
|
||||
}
|
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @property string $key Key
|
||||
* @property PHPParser_Node_Expr $value Value
|
||||
*/
|
||||
class PHPParser_Node_Stmt_DeclareDeclare extends PHPParser_Node_Stmt
|
||||
{
|
||||
}
|
@ -495,6 +495,15 @@ class PHPParser_PrettyPrinter_Zend extends PHPParser_PrettyPrinterAbstract
|
||||
return $node->name . ' = ' . $this->p($node->value);
|
||||
}
|
||||
|
||||
public function pStmt_Declare(PHPParser_Node_Stmt_Declare $node) {
|
||||
return 'declare (' . $this->pCommaSeparated($node->declares) . ') {'
|
||||
. "\n" . $this->pStmts($node->stmts) . "\n" . '}';
|
||||
}
|
||||
|
||||
public function pStmt_DeclareDeclare(PHPParser_Node_Stmt_DeclareDeclare $node) {
|
||||
return $node->key . ' = ' . $node->value;
|
||||
}
|
||||
|
||||
// Control flow
|
||||
|
||||
public function pStmt_If(PHPParser_Node_Stmt_If $node) {
|
||||
|
Loading…
Reference in New Issue
Block a user