Home
last modified time | relevance | path

Searched refs:Expr (Results 1 – 25 of 185) sorted by relevance

12345678

/PHP-Parser/lib/PhpParser/Node/Expr/
H A DTernary.php3 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 DAssignOp.php3 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 DAssign.php3 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 DAssignRef.php3 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 DArrayDimFetch.php3 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 DBinaryOp.php3 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 DYield_.php3 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 DInstanceof_.php3 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 DNullsafePropertyFetch.php3 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 DPropertyFetch.php3 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 DCast.php3 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 DPostDec.php3 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 DPostInc.php3 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 DPreDec.php3 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 DPreInc.php3 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 DBooleanNot.php3 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 DClone_.php3 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 DEmpty_.php3 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 DErrorSuppress.php3 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 DEval_.php3 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 DUnaryMinus.php3 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 DUnaryPlus.php3 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 DYieldFrom.php3 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 Dfixup.test13 $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 DBuilderFactoryTest.php7 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 …]

Completed in 20 milliseconds

12345678