/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Ternary.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class Ternary extends Expr { 8 /** @var Expr Condition */ 9 public Expr $cond; 10 /** @var null|Expr Expression for true */ 11 public ?Expr $if; 12 /** @var Expr Expression for false */ 13 public Expr $else; 18 * @param Expr $cond Condition [all …]
|
H A D | AssignOp.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 abstract class AssignOp extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 10 /** @var Expr Expression */ 11 public Expr $expr; 16 * @param Expr $var Variable 17 * @param Expr $expr Expression 20 public function __construct(Expr $var, Expr $expr, array $attributes = []) {
|
H A D | Assign.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class Assign extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 10 /** @var Expr Expression */ 11 public Expr $expr; 16 * @param Expr $var Variable 17 * @param Expr $expr Expression 20 public function __construct(Expr $var, Expr $expr, array $attributes = []) {
|
H A D | AssignRef.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class AssignRef extends Expr { 8 /** @var Expr Variable reference is assigned to */ 9 public Expr $var; 10 /** @var Expr Variable which is referenced */ 11 public Expr $expr; 16 * @param Expr $var Variable 17 * @param Expr $expr Expression 20 public function __construct(Expr $var, Expr $expr, array $attributes = []) {
|
H A D | ArrayDimFetch.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class ArrayDimFetch extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 10 /** @var null|Expr Array index / dim */ 11 public ?Expr $dim; 16 * @param Expr $var Variable 17 * @param null|Expr $dim Array index / dim 20 public function __construct(Expr $var, ?Expr $dim = null, array $attributes = []) {
|
H A D | BinaryOp.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 abstract class BinaryOp extends Expr { 8 /** @var Expr The left hand side expression */ 9 public Expr $left; 10 /** @var Expr The right hand side expression */ 11 public Expr $right; 16 * @param Expr $left The left hand side expression 17 * @param Expr $right The right hand side expression 20 public function __construct(Expr $left, Expr $right, array $attributes = []) {
|
H A D | Yield_.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class Yield_ extends Expr { 8 /** @var null|Expr Key expression */ 9 public ?Expr $key; 10 /** @var null|Expr Value expression */ 11 public ?Expr $value; 16 * @param null|Expr $value Value expression 17 * @param null|Expr $key Key expression 20 public function __construct(?Expr $value = null, ?Expr $key = null, array $attributes = []) {
|
H A D | Instanceof_.php | 3 namespace PhpParser\Node\Expr; 6 use PhpParser\Node\Expr; alias 9 class Instanceof_ extends Expr { 10 /** @var Expr Expression */ 11 public Expr $expr; 12 /** @var Name|Expr Class name */ 18 * @param Expr $expr Expression 19 * @param Name|Expr $class Class name 22 public function __construct(Expr $expr, Node $class, array $attributes = []) {
|
H A D | NullsafePropertyFetch.php | 3 namespace PhpParser\Node\Expr; 6 use PhpParser\Node\Expr; alias 9 class NullsafePropertyFetch extends Expr { 10 /** @var Expr Variable holding object */ 11 public Expr $var; 12 /** @var Identifier|Expr Property name */ 18 * @param Expr $var Variable holding object 19 * @param string|Identifier|Expr $name Property name 22 public function __construct(Expr $var, $name, array $attributes = []) {
|
H A D | PropertyFetch.php | 3 namespace PhpParser\Node\Expr; 6 use PhpParser\Node\Expr; alias 9 class PropertyFetch extends Expr { 10 /** @var Expr Variable holding object */ 11 public Expr $var; 12 /** @var Identifier|Expr Property name */ 18 * @param Expr $var Variable holding object 19 * @param string|Identifier|Expr $name Property name 22 public function __construct(Expr $var, $name, array $attributes = []) {
|
H A D | Cast.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 abstract class Cast extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | PostDec.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class PostDec extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 14 * @param Expr $var Variable 17 public function __construct(Expr $var, array $attributes = []) {
|
H A D | PostInc.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class PostInc extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 14 * @param Expr $var Variable 17 public function __construct(Expr $var, array $attributes = []) {
|
H A D | PreDec.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class PreDec extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 14 * @param Expr $var Variable 17 public function __construct(Expr $var, array $attributes = []) {
|
H A D | PreInc.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class PreInc extends Expr { 8 /** @var Expr Variable */ 9 public Expr $var; 14 * @param Expr $var Variable 17 public function __construct(Expr $var, array $attributes = []) {
|
H A D | BooleanNot.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class BooleanNot extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | Clone_.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class Clone_ extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | Empty_.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class Empty_ extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | ErrorSuppress.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class ErrorSuppress extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | Eval_.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class Eval_ extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | UnaryMinus.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class UnaryMinus extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | UnaryPlus.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class UnaryPlus extends Expr { 8 /** @var Expr Expression */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
H A D | YieldFrom.php | 3 namespace PhpParser\Node\Expr; 5 use PhpParser\Node\Expr; alias 7 class YieldFrom extends Expr { 8 /** @var Expr Expression to yield from */ 9 public Expr $expr; 14 * @param Expr $expr Expression 17 public function __construct(Expr $expr, array $attributes = []) {
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | fixup.test | 13 $stmts[0]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 15 $stmts[1]->expr->right = new Expr\BinaryOp\Plus(new Expr\Variable('b'), new Expr\Variable('c')); 17 $stmts[2]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 19 $stmts[3]->expr->cond = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 20 $stmts[3]->expr->if = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 21 $stmts[3]->expr->else = new Expr\Assign(new Expr\Variable('a'), new Expr\Variable('b')); 23 $stmts[4]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 24 $stmts[5]->expr->left = new Expr\BinaryOp\Plus(new Expr\Variable('a'), new Expr\Variable('b')); 53 $stmts[1]->expr->name = new Expr\BinaryOp\Concat(new Expr\Variable('a'), new Expr\Variable('b')); 55 $stmts[3]->expr->var = new Expr\BinaryOp\Concat(new Expr\Variable('a'), new Expr\Variable('b')); [all …]
|
/PHP-Parser/test/PhpParser/ |
H A D | BuilderFactoryTest.php | 7 use PhpParser\Node\Expr; alias 135 new Expr\FuncCall(new Expr\Variable('fn')), 180 $factory->staticCall(new Expr\Variable('foo'), new Expr\Variable('bar')) 190 new Expr\New_( 209 new Expr\ClassConstFetch(new Expr\Variable('foo'), new Identifier('BAR')), 213 new Expr\ClassConstFetch(new Name('Foo'), new Expr\Variable('foo')), 225 new Expr\Variable(new Expr\Variable("foo")), 233 new Expr\PropertyFetch(new Expr\Variable('foo'), 'bar'), 237 new Expr\PropertyFetch(new Expr\Variable('foo'), 'bar'), 241 new Expr\PropertyFetch(new Expr\Variable('foo'), new Expr\Variable('bar')), [all …]
|