Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 25 of 169) sorted by relevance

1234567

/PHP-Parser/test/code/parser/expr/
H A Dcast.test18 expr: Expr_Cast_Array(
19 expr: Expr_Variable(
25 expr: Expr_Cast_Bool(
26 expr: Expr_Variable(
32 expr: Expr_Cast_Bool(
33 expr: Expr_Variable(
39 expr: Expr_Cast_Double(
46 expr: Expr_Cast_Double(
53 expr: Expr_Cast_Double(
60 expr: Expr_Cast_Int(
[all …]
H A Dassign.test41 expr: Expr_Assign(
45 expr: Expr_Variable(
58 expr: Expr_Variable(
187 expr: Expr_Assign(
223 expr: Expr_Assign(
245 expr: Expr_Assign(
273 expr: Expr_Assign(
318 expr: Expr_PreInc(
328 expr: Expr_PostInc(
335 expr: Expr_PreDec(
[all …]
H A DincludeAndEval.test12 expr: Expr_Include(
13 expr: Scalar_String(
20 expr: Expr_Include(
21 expr: Scalar_String(
28 expr: Expr_Include(
29 expr: Scalar_String(
36 expr: Expr_Include(
37 expr: Scalar_String(
44 expr: Expr_Eval(
45 expr: Scalar_String(
H A Dexit.test20 expr: Expr_Exit(
21 expr: null
25 expr: Expr_Exit(
26 expr: null
30 expr: Expr_Exit(
37 expr: Expr_Exit(
38 expr: null
42 expr: Expr_Exit(
43 expr: null
47 expr: Expr_Exit(
[all …]
H A Dmath.test38 expr: Expr_BitwiseNot(
39 expr: Expr_Variable(
48 expr: Expr_UnaryPlus(
49 expr: Expr_Variable(
55 expr: Expr_UnaryMinus(
56 expr: Expr_Variable(
105 expr: Expr_BinaryOp_Div(
125 expr: Expr_BinaryOp_Mod(
135 expr: Expr_BinaryOp_Mul(
175 expr: Expr_BinaryOp_Pow(
[all …]
H A Dcomparison.test18 expr: Expr_BinaryOp_Smaller(
28 expr: Expr_BinaryOp_SmallerOrEqual(
38 expr: Expr_BinaryOp_Greater(
58 expr: Expr_BinaryOp_Equal(
68 expr: Expr_BinaryOp_Identical(
78 expr: Expr_BinaryOp_NotEqual(
98 expr: Expr_BinaryOp_Spaceship(
108 expr: Expr_Instanceof(
109 expr: Expr_Variable(
118 expr: Expr_Instanceof(
[all …]
H A Dalternative_array_syntax.test18 expr: Expr_ArrayDimFetch(
28 expr: Expr_FuncCall(
42 expr: Expr_ArrayDimFetch(
57 expr: Expr_ArrayDimFetch(
116 expr: Expr_New(
130 expr: Expr_New(
173 expr: Expr_Variable(
187 expr: Expr_Variable(
220 expr: Expr_MethodCall(
295 expr: Expr_New(
[all …]
H A Dlogic.test25 expr: Expr_BinaryOp_BooleanAnd(
38 expr: Expr_BinaryOp_BooleanOr(
48 expr: Expr_BooleanNot(
49 expr: Expr_Variable(
55 expr: Expr_BooleanNot(
56 expr: Expr_BooleanNot(
57 expr: Expr_Variable(
64 expr: Expr_BinaryOp_LogicalAnd(
77 expr: Expr_BinaryOp_LogicalOr(
140 expr: Expr_Assign(
[all …]
/PHP-Parser/lib/PhpParser/
H A DConstExprEvaluator.php111 return $expr->value;
120 return +$this->evaluate($expr->expr);
123 return -$this->evaluate($expr->expr);
126 return !$this->evaluate($expr->expr);
129 return ~$this->evaluate($expr->expr);
140 if ($expr instanceof Expr\ArrayDimFetch && null !== $expr->dim) {
141 return $this->evaluate($expr->var)[$this->evaluate($expr->dim)];
168 return $this->evaluate($expr->cond) ?: $this->evaluate($expr->else);
182 return $this->evaluate($expr->left->var)[$this->evaluate($expr->left->dim)]
188 $l = $expr->left;
[all …]
/PHP-Parser/test/code/parser/scalar/
H A Dfloat.test27 expr: Scalar_Float(
32 expr: Scalar_Float(
37 expr: Scalar_Float(
42 expr: Scalar_Float(
47 expr: Scalar_Float(
52 expr: Scalar_Float(
57 expr: Scalar_Float(
62 expr: Scalar_Float(
67 expr: Scalar_Float(
72 expr: Scalar_Float(
[all …]
H A DmagicConst.test17 expr: Scalar_MagicConst_Class(
21 expr: Scalar_MagicConst_Dir(
25 expr: Scalar_MagicConst_File(
29 expr: Scalar_MagicConst_Function(
33 expr: Scalar_MagicConst_Line(
37 expr: Scalar_MagicConst_Method(
41 expr: Scalar_MagicConst_Namespace(
45 expr: Scalar_MagicConst_Trait(
49 expr: Scalar_MagicConst_Property(
H A DnumberSeparators.test34 expr: Scalar_Float(
39 expr: Scalar_Int(
44 expr: Scalar_Int(
49 expr: Scalar_Int(
54 expr: Scalar_Int(
69 expr: Scalar_Int(
84 expr: Scalar_Int(
96 expr: Scalar_Int(
125 expr: Scalar_Int(
137 expr: Scalar_Int(
[all …]
H A Dint.test17 expr: Scalar_Int(
22 expr: Scalar_Int(
27 expr: Scalar_Int(
32 expr: Scalar_Float(
37 expr: Scalar_Int(
42 expr: Scalar_Int(
47 expr: Scalar_Int(
52 expr: Scalar_Int(
57 expr: Scalar_Int(
H A DconstantString.test21 expr: Scalar_String(
26 expr: Scalar_String(
31 expr: Scalar_String(
36 expr: Scalar_String(
41 expr: Scalar_String(
46 expr: Scalar_String(
51 expr: Scalar_String(
56 expr: Scalar_String(
61 expr: Scalar_String(
66 expr: Scalar_String(
[all …]
H A DencapsedString.test32 expr: Scalar_InterpolatedString(
41 expr: Scalar_InterpolatedString(
55 expr: Scalar_InterpolatedString(
69 expr: Scalar_InterpolatedString(
83 expr: Scalar_InterpolatedString(
97 expr: Scalar_InterpolatedString(
111 expr: Scalar_InterpolatedString(
125 expr: Scalar_InterpolatedString(
139 expr: Scalar_InterpolatedString(
153 expr: Scalar_InterpolatedString(
[all …]
H A DflexibleDocString.test114 expr: Expr_Assign(
118 expr: Expr_Array(
141 expr: Scalar_String(
146 expr: Scalar_String(
151 expr: Scalar_String(
156 expr: Scalar_String(
167 expr: Scalar_InterpolatedString(
186 expr: Scalar_String(
201 expr: Scalar_InterpolatedString(
352 expr: Scalar_String(
[all …]
/PHP-Parser/test/code/parser/errorHandling/
H A DlexerErrors.test12 expr: Expr_Assign(
16 expr: Scalar_Int(
39 expr: Expr_Assign[3:1 - 3:7](
43 expr: Scalar_Int[3:6 - 3:7](
49 expr: Expr_Assign[5:1 - 5:7](
53 expr: Scalar_Int[5:6 - 5:7](
70 expr: Expr_Assign[3:1 - 3:7](
80 expr: Expr_Assign[5:1 - 5:7](
104 expr: Expr_Assign[3:1 - 3:6](
114 expr: Expr_Assign[5:1 - 5:6](
[all …]
/PHP-Parser/test/code/formatPreservation/
H A Dmatch.test11 $stmts[0]->expr->expr->arms[] = new Node\MatchArm(null, new Scalar\String_('two'));
28 $stmts[0]->expr->expr->arms[0]->conds[] = new Scalar\LNumber(3);
49 array_splice($stmts[0]->expr->expr->arms, 1, 1, []);
69 $stmts[0]->expr->expr->arms[0]->conds = [new Scalar\LNumber(1)];
85 $stmts[0]->expr->expr->arms[0]->conds = null;
/PHP-Parser/test/code/parser/
H A DformattingAttributes.test50 expr: Scalar_Int(
57 expr: Scalar_Int(
64 expr: Scalar_Int(
71 expr: Scalar_Int(
78 expr: Scalar_Int(
85 expr: Scalar_Float(
91 expr: Scalar_String(
98 expr: Scalar_String(
105 expr: Scalar_String(
251 expr: Expr_Array(
[all …]
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DCast.php9 public Expr $expr; variable in PhpParser\\Node\\Expr\\Cast
14 * @param Expr $expr Expression
17 public function __construct(Expr $expr, array $attributes = []) { argument
19 $this->expr = $expr;
H A DBooleanNot.php9 public Expr $expr; variable in PhpParser\\Node\\Expr\\BooleanNot
14 * @param Expr $expr Expression
17 public function __construct(Expr $expr, array $attributes = []) { argument
19 $this->expr = $expr;
H A DClone_.php9 public Expr $expr; variable in PhpParser\\Node\\Expr\\Clone_
14 * @param Expr $expr Expression
17 public function __construct(Expr $expr, array $attributes = []) { argument
19 $this->expr = $expr;
H A DEmpty_.php9 public Expr $expr; variable in PhpParser\\Node\\Expr\\Empty_
14 * @param Expr $expr Expression
17 public function __construct(Expr $expr, array $attributes = []) { argument
19 $this->expr = $expr;
H A DErrorSuppress.php9 public Expr $expr; variable in PhpParser\\Node\\Expr\\ErrorSuppress
14 * @param Expr $expr Expression
17 public function __construct(Expr $expr, array $attributes = []) { argument
19 $this->expr = $expr;
H A DEval_.php9 public Expr $expr; variable in PhpParser\\Node\\Expr\\Eval_
14 * @param Expr $expr Expression
17 public function __construct(Expr $expr, array $attributes = []) { argument
19 $this->expr = $expr;

Completed in 33 milliseconds

1234567