http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Foreach.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Foreach.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Foreach.php deleted file mode 100644 index a209c32..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Foreach.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr $expr Expression to iterate - * @property null|PHPParser_Node_Expr $keyVar Variable to assign key to - * @property bool $byRef Whether to assign value by reference - * @property PHPParser_Node_Expr $valueVar Variable to assign value to - * @property PHPParser_Node[] $stmts Statements - */ -class PHPParser_Node_Stmt_Foreach extends PHPParser_Node_Stmt -{ - /** - * Constructs a foreach node. - * - * @param PHPParser_Node_Expr $expr Expression to iterate - * @param PHPParser_Node_Expr $valueVar Variable to assign value to - * @param array $subNodes Array of the following optional subnodes: - * 'keyVar' => null : Variable to assign key to - * 'byRef' => false : Whether to assign value by reference - * 'stmts' => array(): Statements - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Expr $expr, PHPParser_Node_Expr $valueVar, array $subNodes = array(), array $attributes = array()) { - parent::__construct( - $subNodes + array( - 'keyVar' => null, - 'byRef' => false, - 'stmts' => array(), - ), - $attributes - ); - $this->expr = $expr; - $this->valueVar = $valueVar; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Function.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Function.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Function.php deleted file mode 100644 index f62de9e..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Function.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -/** - * @property bool $byRef Whether returns by reference - * @property string $name Name - * @property PHPParser_Node_Param[] $params Parameters - * @property PHPParser_Node[] $stmts Statements - */ -class PHPParser_Node_Stmt_Function extends PHPParser_Node_Stmt -{ - /** - * Constructs a function node. - * - * @param string $name Name - * @param array $subNodes Array of the following optional subnodes: - * 'byRef' => false : Whether to return by reference - * 'params' => array(): Parameters - * 'stmts' => array(): Statements - * @param array $attributes Additional attributes - */ - public function __construct($name, array $subNodes = array(), array $attributes = array()) { - parent::__construct( - $subNodes + array( - 'byRef' => false, - 'params' => array(), - 'stmts' => array(), - ), - $attributes - ); - $this->name = $name; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Global.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Global.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Global.php deleted file mode 100644 index ba841ca..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Global.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr[] $vars Variables - */ -class PHPParser_Node_Stmt_Global extends PHPParser_Node_Stmt -{ - /** - * Constructs a global variables list node. - * - * @param PHPParser_Node_Expr[] $vars Variables to unset - * @param array $attributes Additional attributes - */ - public function __construct(array $vars, array $attributes = array()) { - parent::__construct( - array( - 'vars' => $vars, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Goto.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Goto.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Goto.php deleted file mode 100644 index 8de1020..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Goto.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property string $name Name of label to jump to - */ -class PHPParser_Node_Stmt_Goto extends PHPParser_Node_Stmt -{ - /** - * Constructs a goto node. - * - * @param string $name Name of label to jump to - * @param array $attributes Additional attributes - */ - public function __construct($name, array $attributes = array()) { - parent::__construct( - array( - 'name' => $name, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/HaltCompiler.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/HaltCompiler.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/HaltCompiler.php deleted file mode 100644 index 0f4c4b1..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/HaltCompiler.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property string $remaining Remaining text after halt compiler statement. - */ -class PHPParser_Node_Stmt_HaltCompiler extends PHPParser_Node_Stmt -{ - /** - * Constructs a __halt_compiler node. - * - * @param string $remaining Remaining text after halt compiler statement. - * @param array $attributes Additional attributes - */ - public function __construct($remaining, array $attributes = array()) { - parent::__construct( - array( - 'remaining' => $remaining, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/If.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/If.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/If.php deleted file mode 100644 index 44c150b..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/If.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr $cond Condition expression - * @property PHPParser_Node[] $stmts Statements - * @property PHPParser_Node_Stmt_ElseIf[] $elseifs Elseif clauses - * @property null|PHPParser_Node_Stmt_Else $else Else clause - */ -class PHPParser_Node_Stmt_If extends PHPParser_Node_Stmt -{ - - /** - * Constructs an if node. - * - * @param PHPParser_Node_Expr $cond Condition - * @param array $subNodes Array of the following optional subnodes: - * 'stmts' => array(): Statements - * 'elseifs' => array(): Elseif clauses - * 'else' => null : Else clause - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Expr $cond, array $subNodes = array(), array $attributes = array()) { - parent::__construct( - $subNodes + array( - 'stmts' => array(), - 'elseifs' => array(), - 'else' => null, - ), - $attributes - ); - $this->cond = $cond; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/InlineHTML.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/InlineHTML.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/InlineHTML.php deleted file mode 100644 index d0578de..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/InlineHTML.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property string $value String - */ -class PHPParser_Node_Stmt_InlineHTML extends PHPParser_Node_Stmt -{ - /** - * Constructs an inline HTML node. - * - * @param string $value String - * @param array $attributes Additional attributes - */ - public function __construct($value, array $attributes = array()) { - parent::__construct( - array( - 'value' => $value, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Interface.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Interface.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Interface.php deleted file mode 100644 index ec811c9..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Interface.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -/** - * @property string $name Name - * @property PHPParser_Node_Name[] $extends Extended interfaces - * @property PHPParser_Node[] $stmts Statements - */ -class PHPParser_Node_Stmt_Interface extends PHPParser_Node_Stmt -{ - protected static $specialNames = array( - 'self' => true, - 'parent' => true, - 'static' => true, - ); - - /** - * Constructs a class node. - * - * @param string $name Name - * @param array $subNodes Array of the following optional subnodes: - * 'extends' => array(): Name of extended interfaces - * 'stmts' => array(): Statements - * @param array $attributes Additional attributes - */ - public function __construct($name, array $subNodes = array(), array $attributes = array()) { - parent::__construct( - $subNodes + array( - 'extends' => array(), - 'stmts' => array(), - ), - $attributes - ); - $this->name = $name; - - if (isset(self::$specialNames[(string) $this->name])) { - throw new PHPParser_Error(sprintf('Cannot use \'%s\' as class name as it is reserved', $this->name)); - } - - foreach ($this->extends as $interface) { - if (isset(self::$specialNames[(string) $interface])) { - throw new PHPParser_Error(sprintf('Cannot use \'%s\' as interface name as it is reserved', $interface)); - } - } - } -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Label.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Label.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Label.php deleted file mode 100644 index 66dc51e..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Label.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property string $name Name - */ -class PHPParser_Node_Stmt_Label extends PHPParser_Node_Stmt -{ - /** - * Constructs a label node. - * - * @param string $name Name - * @param array $attributes Additional attributes - */ - public function __construct($name, array $attributes = array()) { - parent::__construct( - array( - 'name' => $name, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Namespace.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Namespace.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Namespace.php deleted file mode 100644 index f4064ce..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Namespace.php +++ /dev/null @@ -1,122 +0,0 @@ -<?php - -/** - * @property null|PHPParser_Node_Name $name Name - * @property PHPParser_Node[] $stmts Statements - */ -class PHPParser_Node_Stmt_Namespace extends PHPParser_Node_Stmt -{ - protected static $specialNames = array( - 'self' => true, - 'parent' => true, - 'static' => true, - ); - - /** - * Constructs a namespace node. - * - * @param null|PHPParser_Node_Name $name Name - * @param PHPParser_Node[] $stmts Statements - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Name $name = null, $stmts = array(), array $attributes = array()) { - parent::__construct( - array( - 'name' => $name, - 'stmts' => $stmts, - ), - $attributes - ); - - if (isset(self::$specialNames[(string) $this->name])) { - throw new PHPParser_Error(sprintf('Cannot use \'%s\' as namespace name', $this->name)); - } - - if (null !== $this->stmts) { - foreach ($this->stmts as $stmt) { - if ($stmt instanceof PHPParser_Node_Stmt_Namespace) { - throw new PHPParser_Error('Namespace declarations cannot be nested', $stmt->getLine()); - } - } - } - } - - public static function postprocess(array $stmts) { - // null = not in namespace, false = semicolon style, true = bracket style - $bracketed = null; - - // whether any statements that aren't allowed before a namespace declaration are encountered - // (the only valid statement currently is a declare) - $hasNotAllowedStmts = false; - - // offsets for semicolon style namespaces - // (required for transplanting the following statements into their ->stmts property) - $nsOffsets = array(); - - foreach ($stmts as $i => $stmt) { - if ($stmt instanceof PHPParser_Node_Stmt_Namespace) { - // ->stmts is null if semicolon style is used - $currentBracketed = null !== $stmt->stmts; - - // if no namespace statement has been encountered yet - if (!isset($bracketed)) { - // set the namespacing style - $bracketed = $currentBracketed; - - // and ensure that it isn't preceded by a not allowed statement - if ($hasNotAllowedStmts) { - throw new PHPParser_Error('Namespace declaration statement has to be the very first statement in the script', $stmt->getLine()); - } - // otherwise ensure that the style of the current namespace matches the style of - // namespaceing used before in this document - } elseif ($bracketed !== $currentBracketed) { - throw new PHPParser_Error('Cannot mix bracketed namespace declarations with unbracketed namespace declarations', $stmt->getLine()); - } - - // for semicolon style namespaces remember the offset - if (!$bracketed) { - $nsOffsets[] = $i; - } - // declare() and __halt_compiler() are the only valid statements outside of namespace declarations - } elseif (!$stmt instanceof PHPParser_Node_Stmt_Declare - && !$stmt instanceof PHPParser_Node_Stmt_HaltCompiler - ) { - if (true === $bracketed) { - throw new PHPParser_Error('No code may exist outside of namespace {}', $stmt->getLine()); - } - - $hasNotAllowedStmts = true; - } - } - - // if bracketed namespaces were used or no namespaces were used at all just return the - // original statements - if (!isset($bracketed) || true === $bracketed) { - return $stmts; - // for semicolon style transplant statements - } else { - // take all statements preceding the first namespace - $newStmts = array_slice($stmts, 0, $nsOffsets[0]); - - // iterate over all following namespaces - for ($i = 0, $c = count($nsOffsets); $i < $c; ++$i) { - $newStmts[] = $nsStmt = $stmts[$nsOffsets[$i]]; - - // the last namespace takes all statements after it - if ($c === $i + 1) { - $nsStmt->stmts = array_slice($stmts, $nsOffsets[$i] + 1); - - // if the last statement is __halt_compiler() put it outside the namespace - if (end($nsStmt->stmts) instanceof PHPParser_Node_Stmt_HaltCompiler) { - $newStmts[] = array_pop($nsStmt->stmts); - } - // and all the others take all statements between the current and the following one - } else { - $nsStmt->stmts = array_slice($stmts, $nsOffsets[$i] + 1, $nsOffsets[$i + 1] - $nsOffsets[$i] - 1); - } - } - - return $newStmts; - } - } -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Property.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Property.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Property.php deleted file mode 100644 index 5cc9d0c..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Property.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php - -/** - * @property int $type Modifiers - * @property PHPParser_Node_Stmt_PropertyProperty[] $props Properties - */ -class PHPParser_Node_Stmt_Property extends PHPParser_Node_Stmt -{ - /** - * Constructs a class property list node. - * - * @param int $type Modifiers - * @param PHPParser_Node_Stmt_PropertyProperty[] $props Properties - * @param array $attributes Additional attributes - */ - public function __construct($type, array $props, array $attributes = array()) { - parent::__construct( - array( - 'type' => $type, - 'props' => $props, - ), - $attributes - ); - } - - public function isPublic() { - return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_PUBLIC); - } - - public function isProtected() { - return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_PROTECTED); - } - - public function isPrivate() { - return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_PRIVATE); - } - - public function isStatic() { - return (bool) ($this->type & PHPParser_Node_Stmt_Class::MODIFIER_STATIC); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/PropertyProperty.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/PropertyProperty.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/PropertyProperty.php deleted file mode 100644 index e2854f1..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/PropertyProperty.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @property string $name Name - * @property null|PHPParser_Node_Expr $default Default - */ -class PHPParser_Node_Stmt_PropertyProperty extends PHPParser_Node_Stmt -{ - /** - * Constructs a class property node. - * - * @param string $name Name - * @param null|PHPParser_Node_Expr $default Default value - * @param array $attributes Additional attributes - */ - public function __construct($name, PHPParser_Node_Expr $default = null, array $attributes = array()) { - parent::__construct( - array( - 'name' => $name, - 'default' => $default, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Return.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Return.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Return.php deleted file mode 100644 index 4697530..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Return.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property null|PHPParser_Node_Expr $expr Expression - */ -class PHPParser_Node_Stmt_Return extends PHPParser_Node_Stmt -{ - /** - * Constructs a return node. - * - * @param null|PHPParser_Node_Expr $expr Expression - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Expr $expr = null, array $attributes = array()) { - parent::__construct( - array( - 'expr' => $expr, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Static.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Static.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Static.php deleted file mode 100644 index f44d1ed..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Static.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Stmt_StaticVar[] $vars Variable definitions - */ -class PHPParser_Node_Stmt_Static extends PHPParser_Node_Stmt -{ - /** - * Constructs a static variables list node. - * - * @param PHPParser_Node_Stmt_StaticVar[] $vars Variable definitions - * @param array $attributes Additional attributes - */ - public function __construct(array $vars, array $attributes = array()) { - parent::__construct( - array( - 'vars' => $vars, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/StaticVar.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/StaticVar.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/StaticVar.php deleted file mode 100644 index 3c5b144..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/StaticVar.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @property string $name Name - * @property null|PHPParser_Node_Expr $default Default value - */ -class PHPParser_Node_Stmt_StaticVar extends PHPParser_Node_Stmt -{ - /** - * Constructs a static variable node. - * - * @param string $name Name - * @param null|PHPParser_Node_Expr $default Default value - * @param array $attributes Additional attributes - */ - public function __construct($name, PHPParser_Node_Expr $default = null, array $attributes = array()) { - parent::__construct( - array( - 'name' => $name, - 'default' => $default, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Switch.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Switch.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Switch.php deleted file mode 100644 index f7022a0..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Switch.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr $cond Condition - * @property PHPParser_Node_Stmt_Case[] $cases Case list - */ -class PHPParser_Node_Stmt_Switch extends PHPParser_Node_Stmt -{ - /** - * Constructs a case node. - * - * @param PHPParser_Node_Expr $cond Condition - * @param PHPParser_Node_Stmt_Case[] $cases Case list - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Expr $cond, array $cases, array $attributes = array()) { - parent::__construct( - array( - 'cond' => $cond, - 'cases' => $cases, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Throw.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Throw.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Throw.php deleted file mode 100644 index 990de1a..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Throw.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr $expr Expression - */ -class PHPParser_Node_Stmt_Throw extends PHPParser_Node_Stmt -{ - /** - * Constructs a throw node. - * - * @param PHPParser_Node_Expr $expr Expression - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Expr $expr, array $attributes = array()) { - parent::__construct( - array( - 'expr' => $expr, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Trait.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Trait.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Trait.php deleted file mode 100644 index 14737a5..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Trait.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @property string $name Name - * @property PHPParser_Node[] $stmts Statements - */ -class PHPParser_Node_Stmt_Trait extends PHPParser_Node_Stmt -{ - /** - * Constructs a trait node. - * - * @param string $name Name - * @param PHPParser_Node[] $stmts Statements - * @param array $attributes Additional attributes - */ - public function __construct($name, array $stmts = array(), array $attributes = array()) { - parent::__construct( - array( - 'name' => $name, - 'stmts' => $stmts, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUse.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUse.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUse.php deleted file mode 100644 index 8db1b7e..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUse.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Name[] $traits Traits - * @property PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations - */ -class PHPParser_Node_Stmt_TraitUse extends PHPParser_Node_Stmt -{ - /** - * Constructs a trait use node. - * - * @param PHPParser_Node_Name[] $traits Traits - * @param PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations - * @param array $attributes Additional attributes - */ - public function __construct(array $traits, array $adaptations = array(), array $attributes = array()) { - parent::__construct( - array( - 'traits' => $traits, - 'adaptations' => $adaptations, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation.php deleted file mode 100644 index 63b2b27..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php - -abstract class PHPParser_Node_Stmt_TraitUseAdaptation extends PHPParser_Node_Stmt -{ -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Alias.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Alias.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Alias.php deleted file mode 100644 index 0a68512..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Alias.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -/** - * @property null|PHPParser_Node_Name $trait Trait name - * @property string $method Method name - * @property null|int $newModifier New modifier - * @property null|string $newName New name - */ -class PHPParser_Node_Stmt_TraitUseAdaptation_Alias extends PHPParser_Node_Stmt_TraitUseAdaptation -{ - /** - * Constructs a trait use precedence adaptation node. - * - * @param null|PHPParser_Node_Name $trait Trait name - * @param string $method Method name - * @param null|int $newModifier New modifier - * @param null|string $newName New name - * @param array $attributes Additional attributes - */ - public function __construct($trait, $method, $newModifier, $newName, array $attributes = array()) { - parent::__construct( - array( - 'trait' => $trait, - 'method' => $method, - 'newModifier' => $newModifier, - 'newName' => $newName, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Precedence.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Precedence.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Precedence.php deleted file mode 100644 index 30ae8e4..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TraitUseAdaptation/Precedence.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Name $trait Trait name - * @property string $method Method name - * @property PHPParser_Node_Name[] $insteadof Overwritten traits - */ -class PHPParser_Node_Stmt_TraitUseAdaptation_Precedence extends PHPParser_Node_Stmt_TraitUseAdaptation -{ - /** - * Constructs a trait use precedence adaptation node. - * - * @param PHPParser_Node_Name $trait Trait name - * @param string $method Method name - * @param PHPParser_Node_Name[] $insteadof Overwritten traits - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Name $trait, $method, array $insteadof, array $attributes = array()) { - parent::__construct( - array( - 'trait' => $trait, - 'method' => $method, - 'insteadof' => $insteadof, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TryCatch.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TryCatch.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TryCatch.php deleted file mode 100644 index 796aae3..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/TryCatch.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -/** - * @property PHPParser_Node[] $stmts Statements - * @property PHPParser_Node_Stmt_Catch[] $catches Catches - * @property PHPParser_Node[] $finallyStmts Finally statements - */ -class PHPParser_Node_Stmt_TryCatch extends PHPParser_Node_Stmt -{ - /** - * Constructs a try catch node. - * - * @param PHPParser_Node[] $stmts Statements - * @param PHPParser_Node_Stmt_Catch[] $catches Catches - * @param PHPParser_Node[] $finallyStmts Finally statements (null means no finally clause) - * @param array|null $attributes Additional attributes - */ - public function __construct(array $stmts, array $catches, array $finallyStmts = null, array $attributes = array()) { - if (empty($catches) && null === $finallyStmts) { - throw new PHPParser_Error('Cannot use try without catch or finally'); - } - - parent::__construct( - array( - 'stmts' => $stmts, - 'catches' => $catches, - 'finallyStmts' => $finallyStmts, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Unset.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Unset.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Unset.php deleted file mode 100644 index e079c29..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Unset.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr[] $vars Variables to unset - */ -class PHPParser_Node_Stmt_Unset extends PHPParser_Node_Stmt -{ - /** - * Constructs an unset node. - * - * @param PHPParser_Node_Expr[] $vars Variables to unset - * @param array $attributes Additional attributes - */ - public function __construct(array $vars, array $attributes = array()) { - parent::__construct( - array( - 'vars' => $vars, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Use.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Use.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Use.php deleted file mode 100644 index 36dc0b1..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/Use.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Stmt_UseUse[] $uses Aliases - */ -class PHPParser_Node_Stmt_Use extends PHPParser_Node_Stmt -{ - /** - * Constructs an alias (use) list node. - * - * @param PHPParser_Node_Stmt_UseUse[] $uses Aliases - * @param array $attributes Additional attributes - */ - public function __construct(array $uses, array $attributes = array()) { - parent::__construct( - array( - 'uses' => $uses, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/UseUse.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/UseUse.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/UseUse.php deleted file mode 100644 index d7d4fd6..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/UseUse.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Name $name Namespace/Class to alias - * @property string $alias Alias - */ -class PHPParser_Node_Stmt_UseUse extends PHPParser_Node_Stmt -{ - /** - * Constructs an alias (use) node. - * - * @param PHPParser_Node_Name $name Namespace/Class to alias - * @param null|string $alias Alias - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Name $name, $alias = null, array $attributes = array()) { - if (null === $alias) { - $alias = $name->getLast(); - } - - if ('self' == $alias || 'parent' == $alias) { - throw new PHPParser_Error(sprintf( - 'Cannot use %s as %s because \'%2$s\' is a special class name', - $name, $alias - )); - } - - parent::__construct( - array( - 'name' => $name, - 'alias' => $alias, - ), - $attributes - ); - } -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/While.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/While.php b/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/While.php deleted file mode 100644 index 4dde965..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/Node/Stmt/While.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @property PHPParser_Node_Expr $cond Condition - * @property PHPParser_Node[] $stmts Statements - */ -class PHPParser_Node_Stmt_While extends PHPParser_Node_Stmt -{ - /** - * Constructs a while node. - * - * @param PHPParser_Node_Expr $cond Condition - * @param PHPParser_Node[] $stmts Statements - * @param array $attributes Additional attributes - */ - public function __construct(PHPParser_Node_Expr $cond, array $stmts = array(), array $attributes = array()) { - parent::__construct( - array( - 'cond' => $cond, - 'stmts' => $stmts, - ), - $attributes - ); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeAbstract.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeAbstract.php b/vendor/nikic/php-parser/lib/PHPParser/NodeAbstract.php deleted file mode 100644 index e7d0456..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeAbstract.php +++ /dev/null @@ -1,125 +0,0 @@ -<?php - -abstract class PHPParser_NodeAbstract implements PHPParser_Node, IteratorAggregate -{ - protected $subNodes; - protected $attributes; - - /** - * Creates a Node. - * - * @param array $subNodes Array of sub nodes - * @param array $attributes Array of attributes - */ - public function __construct(array $subNodes = array(), array $attributes = array()) { - $this->subNodes = $subNodes; - $this->attributes = $attributes; - } - - /** - * Gets the type of the node. - * - * @return string Type of the node - */ - public function getType() { - return substr(get_class($this), 15); - } - - /** - * Gets the names of the sub nodes. - * - * @return array Names of sub nodes - */ - public function getSubNodeNames() { - return array_keys($this->subNodes); - } - - /** - * Gets line the node started in. - * - * @return int Line - */ - public function getLine() { - return $this->getAttribute('startLine', -1); - } - - /** - * Sets line the node started in. - * - * @param int $line Line - */ - public function setLine($line) { - $this->setAttribute('startLine', (int) $line); - } - - /** - * Gets the doc comment of the node. - * - * The doc comment has to be the last comment associated with the node. - * - * @return null|PHPParser_Comment_Doc Doc comment object or null - */ - public function getDocComment() { - $comments = $this->getAttribute('comments'); - if (!$comments) { - return null; - } - - $lastComment = $comments[count($comments) - 1]; - if (!$lastComment instanceof PHPParser_Comment_Doc) { - return null; - } - - return $lastComment; - } - - /** - * {@inheritDoc} - */ - public function setAttribute($key, $value) { - $this->attributes[$key] = $value; - } - - /** - * {@inheritDoc} - */ - public function hasAttribute($key) { - return array_key_exists($key, $this->attributes); - } - - /** - * {@inheritDoc} - */ - public function &getAttribute($key, $default = null) { - if (!array_key_exists($key, $this->attributes)) { - return $default; - } else { - return $this->attributes[$key]; - } - } - - /** - * {@inheritDoc} - */ - public function getAttributes() { - return $this->attributes; - } - - /* Magic interfaces */ - - public function &__get($name) { - return $this->subNodes[$name]; - } - public function __set($name, $value) { - $this->subNodes[$name] = $value; - } - public function __isset($name) { - return isset($this->subNodes[$name]); - } - public function __unset($name) { - unset($this->subNodes[$name]); - } - public function getIterator() { - return new ArrayIterator($this->subNodes); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeDumper.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeDumper.php b/vendor/nikic/php-parser/lib/PHPParser/NodeDumper.php deleted file mode 100644 index 283d630..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeDumper.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -class PHPParser_NodeDumper -{ - /** - * Dumps a node or array. - * - * @param array|PHPParser_Node $node Node or array to dump - * - * @return string Dumped value - */ - public function dump($node) { - if ($node instanceof PHPParser_Node) { - $r = $node->getType() . '('; - } elseif (is_array($node)) { - $r = 'array('; - } else { - throw new InvalidArgumentException('Can only dump nodes and arrays.'); - } - - foreach ($node as $key => $value) { - $r .= "\n" . ' ' . $key . ': '; - - if (null === $value) { - $r .= 'null'; - } elseif (false === $value) { - $r .= 'false'; - } elseif (true === $value) { - $r .= 'true'; - } elseif (is_scalar($value)) { - $r .= $value; - } else { - $r .= str_replace("\n", "\n" . ' ', $this->dump($value)); - } - } - - return $r . "\n" . ')'; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeTraverser.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeTraverser.php b/vendor/nikic/php-parser/lib/PHPParser/NodeTraverser.php deleted file mode 100644 index cfe9bf1..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeTraverser.php +++ /dev/null @@ -1,132 +0,0 @@ -<?php - -class PHPParser_NodeTraverser implements PHPParser_NodeTraverserInterface -{ - /** - * @var PHPParser_NodeVisitor[] Visitors - */ - protected $visitors; - - /** - * Constructs a node traverser. - */ - public function __construct() { - $this->visitors = array(); - } - - /** - * Adds a visitor. - * - * @param PHPParser_NodeVisitor $visitor Visitor to add - */ - public function addVisitor(PHPParser_NodeVisitor $visitor) { - $this->visitors[] = $visitor; - } - - /** - * Removes an added visitor. - * - * @param PHPParser_NodeVisitor $visitor - */ - public function removeVisitor(PHPParser_NodeVisitor $visitor) { - foreach ($this->visitors as $index => $storedVisitor) { - if ($storedVisitor === $visitor) { - unset($this->visitors[$index]); - break; - } - } - } - - /** - * Traverses an array of nodes using the registered visitors. - * - * @param PHPParser_Node[] $nodes Array of nodes - * - * @return PHPParser_Node[] Traversed array of nodes - */ - public function traverse(array $nodes) { - foreach ($this->visitors as $visitor) { - if (null !== $return = $visitor->beforeTraverse($nodes)) { - $nodes = $return; - } - } - - $nodes = $this->traverseArray($nodes); - - foreach ($this->visitors as $visitor) { - if (null !== $return = $visitor->afterTraverse($nodes)) { - $nodes = $return; - } - } - - return $nodes; - } - - protected function traverseNode(PHPParser_Node $node) { - $node = clone $node; - - foreach ($node->getSubNodeNames() as $name) { - $subNode =& $node->$name; - - if (is_array($subNode)) { - $subNode = $this->traverseArray($subNode); - } elseif ($subNode instanceof PHPParser_Node) { - foreach ($this->visitors as $visitor) { - if (null !== $return = $visitor->enterNode($subNode)) { - $subNode = $return; - } - } - - $subNode = $this->traverseNode($subNode); - - foreach ($this->visitors as $visitor) { - if (null !== $return = $visitor->leaveNode($subNode)) { - $subNode = $return; - } - } - } - } - - return $node; - } - - protected function traverseArray(array $nodes) { - $doNodes = array(); - - foreach ($nodes as $i => &$node) { - if (is_array($node)) { - $node = $this->traverseArray($node); - } elseif ($node instanceof PHPParser_Node) { - foreach ($this->visitors as $visitor) { - if (null !== $return = $visitor->enterNode($node)) { - $node = $return; - } - } - - $node = $this->traverseNode($node); - - foreach ($this->visitors as $visitor) { - $return = $visitor->leaveNode($node); - - if (false === $return) { - $doNodes[] = array($i, array()); - break; - } elseif (is_array($return)) { - $doNodes[] = array($i, $return); - break; - } elseif (null !== $return) { - $node = $return; - } - } - } - } - - if (!empty($doNodes)) { - while (list($i, $replace) = array_pop($doNodes)) { - array_splice($nodes, $i, 1, $replace); - } - } - - return $nodes; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeTraverserInterface.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeTraverserInterface.php b/vendor/nikic/php-parser/lib/PHPParser/NodeTraverserInterface.php deleted file mode 100644 index 898eaa0..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeTraverserInterface.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -interface PHPParser_NodeTraverserInterface -{ - /** - * Adds a visitor. - * - * @param PHPParser_NodeVisitor $visitor Visitor to add - */ - function addVisitor(PHPParser_NodeVisitor $visitor); - - /** - * Traverses an array of nodes using the registered visitors. - * - * @param PHPParser_Node[] $nodes Array of nodes - * - * @return PHPParser_Node[] Traversed array of nodes - */ - function traverse(array $nodes); -} - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor.php b/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor.php deleted file mode 100644 index 339dbb3..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php - -interface PHPParser_NodeVisitor -{ - /** - * Called once before traversal. - * - * Return value semantics: - * * null: $nodes stays as-is - * * otherwise: $nodes is set to the return value - * - * @param PHPParser_Node[] $nodes Array of nodes - * - * @return null|PHPParser_Node[] Array of nodes - */ - public function beforeTraverse(array $nodes); - - /** - * Called when entering a node. - * - * Return value semantics: - * * null: $node stays as-is - * * otherwise: $node is set to the return value - * - * @param PHPParser_Node $node Node - * - * @return null|PHPParser_Node Node - */ - public function enterNode(PHPParser_Node $node); - - /** - * Called when leaving a node. - * - * Return value semantics: - * * null: $node stays as-is - * * false: $node is removed from the parent array - * * array: The return value is merged into the parent array (at the position of the $node) - * * otherwise: $node is set to the return value - * - * @param PHPParser_Node $node Node - * - * @return null|PHPParser_Node|false|PHPParser_Node[] Node - */ - public function leaveNode(PHPParser_Node $node); - - /** - * Called once after traversal. - * - * Return value semantics: - * * null: $nodes stays as-is - * * otherwise: $nodes is set to the return value - * - * @param PHPParser_Node[] $nodes Array of nodes - * - * @return null|PHPParser_Node[] Array of nodes - */ - public function afterTraverse(array $nodes); -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor/NameResolver.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor/NameResolver.php b/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor/NameResolver.php deleted file mode 100644 index 25bffed..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeVisitor/NameResolver.php +++ /dev/null @@ -1,139 +0,0 @@ -<?php - -class PHPParser_NodeVisitor_NameResolver extends PHPParser_NodeVisitorAbstract -{ - /** - * @var null|PHPParser_Node_Name Current namespace - */ - protected $namespace; - - /** - * @var array Currently defined namespace and class aliases - */ - protected $aliases; - - public function beforeTraverse(array $nodes) { - $this->namespace = null; - $this->aliases = array(); - } - - public function enterNode(PHPParser_Node $node) { - if ($node instanceof PHPParser_Node_Stmt_Namespace) { - $this->namespace = $node->name; - $this->aliases = array(); - } elseif ($node instanceof PHPParser_Node_Stmt_UseUse) { - $aliasName = strtolower($node->alias); - if (isset($this->aliases[$aliasName])) { - throw new PHPParser_Error( - sprintf( - 'Cannot use "%s" as "%s" because the name is already in use', - $node->name, $node->alias - ), - $node->getLine() - ); - } - - $this->aliases[$aliasName] = $node->name; - } elseif ($node instanceof PHPParser_Node_Stmt_Class) { - if (null !== $node->extends) { - $node->extends = $this->resolveClassName($node->extends); - } - - foreach ($node->implements as &$interface) { - $interface = $this->resolveClassName($interface); - } - - $this->addNamespacedName($node); - } elseif ($node instanceof PHPParser_Node_Stmt_Interface) { - foreach ($node->extends as &$interface) { - $interface = $this->resolveClassName($interface); - } - - $this->addNamespacedName($node); - } elseif ($node instanceof PHPParser_Node_Stmt_Trait) { - $this->addNamespacedName($node); - } elseif ($node instanceof PHPParser_Node_Stmt_Function) { - $this->addNamespacedName($node); - } elseif ($node instanceof PHPParser_Node_Stmt_Const) { - foreach ($node->consts as $const) { - $this->addNamespacedName($const); - } - } elseif ($node instanceof PHPParser_Node_Expr_StaticCall - || $node instanceof PHPParser_Node_Expr_StaticPropertyFetch - || $node instanceof PHPParser_Node_Expr_ClassConstFetch - || $node instanceof PHPParser_Node_Expr_New - || $node instanceof PHPParser_Node_Expr_Instanceof - ) { - if ($node->class instanceof PHPParser_Node_Name) { - $node->class = $this->resolveClassName($node->class); - } - } elseif ($node instanceof PHPParser_Node_Stmt_Catch) { - $node->type = $this->resolveClassName($node->type); - } elseif ($node instanceof PHPParser_Node_Expr_FuncCall - || $node instanceof PHPParser_Node_Expr_ConstFetch - ) { - if ($node->name instanceof PHPParser_Node_Name) { - $node->name = $this->resolveOtherName($node->name); - } - } elseif ($node instanceof PHPParser_Node_Stmt_TraitUse) { - foreach ($node->traits as &$trait) { - $trait = $this->resolveClassName($trait); - } - } elseif ($node instanceof PHPParser_Node_Param - && $node->type instanceof PHPParser_Node_Name - ) { - $node->type = $this->resolveClassName($node->type); - } - } - - protected function resolveClassName(PHPParser_Node_Name $name) { - // don't resolve special class names - if (in_array((string) $name, array('self', 'parent', 'static'))) { - return $name; - } - - // fully qualified names are already resolved - if ($name->isFullyQualified()) { - return $name; - } - - // resolve aliases (for non-relative names) - $aliasName = strtolower($name->getFirst()); - if (!$name->isRelative() && isset($this->aliases[$aliasName])) { - $name->setFirst($this->aliases[$aliasName]); - // if no alias exists prepend current namespace - } elseif (null !== $this->namespace) { - $name->prepend($this->namespace); - } - - return new PHPParser_Node_Name_FullyQualified($name->parts, $name->getAttributes()); - } - - protected function resolveOtherName(PHPParser_Node_Name $name) { - // fully qualified names are already resolved and we can't do anything about unqualified - // ones at compiler-time - if ($name->isFullyQualified() || $name->isUnqualified()) { - return $name; - } - - // resolve aliases for qualified names - $aliasName = strtolower($name->getFirst()); - if ($name->isQualified() && isset($this->aliases[$aliasName])) { - $name->setFirst($this->aliases[$aliasName]); - // prepend namespace for relative names - } elseif (null !== $this->namespace) { - $name->prepend($this->namespace); - } - - return new PHPParser_Node_Name_FullyQualified($name->parts, $name->getAttributes()); - } - - protected function addNamespacedName(PHPParser_Node $node) { - if (null !== $this->namespace) { - $node->namespacedName = clone $this->namespace; - $node->namespacedName->append($node->name); - } else { - $node->namespacedName = new PHPParser_Node_Name($node->name, $node->getAttributes()); - } - } -} http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/nikic/php-parser/lib/PHPParser/NodeVisitorAbstract.php ---------------------------------------------------------------------- diff --git a/vendor/nikic/php-parser/lib/PHPParser/NodeVisitorAbstract.php b/vendor/nikic/php-parser/lib/PHPParser/NodeVisitorAbstract.php deleted file mode 100644 index 75ae698..0000000 --- a/vendor/nikic/php-parser/lib/PHPParser/NodeVisitorAbstract.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php - -/** - * @codeCoverageIgnore - */ -class PHPParser_NodeVisitorAbstract implements PHPParser_NodeVisitor -{ - public function beforeTraverse(array $nodes) { } - public function enterNode(PHPParser_Node $node) { } - public function leaveNode(PHPParser_Node $node) { } - public function afterTraverse(array $nodes) { } -} \ No newline at end of file
