Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 148) sorted by relevance

123456

/PHP-Parser/lib/PhpParser/
H A DJsonDecoder.php11 $value = json_decode($json, true);
20 * @param mixed $value
24 if (\is_array($value)) {
25 if (isset($value['nodeType'])) {
26 if ($value['nodeType'] === 'Comment' || $value['nodeType'] === 'Comment_Doc') {
33 return $value;
45 $nodeType = $value['nodeType'];
74 if (!isset($value['text'])) {
79 $value['text'],
80 $value['line'] ?? -1, $value['filePos'] ?? -1, $value['tokenPos'] ?? -1,
[all …]
/PHP-Parser/test/code/parser/expr/
H A Dconstant_expr.test52 value: 1
55 value: 1
69 value: 1
72 value: 2
86 value: 1.5
89 value: 1.5
103 value: foo
128 value: 2
155 value: 4
241 value: 1
[all …]
H A DconcatPrecedence.test13 value: 1
16 value: 2
21 value: 3
24 value: 4
33 value: 1
36 value: 2
41 value: 3
44 value: 4
69 value: 3
73 value: 4
[all …]
H A DarraySpread.test36 value: 1
44 value: 2
52 value: 3
309 value: 0
337 value: 6
345 value: 7
353 value: 8
361 value: 9
369 value: 10
395 value: 0
[all …]
H A DarrayDef.test29 value: a
43 value: a
57 value: a
65 value: b
79 value: a
94 value: c
97 value: d
104 value: e
130 value: 1
138 value: 2
[all …]
H A Dmatch.test15 value: 1
21 value: 0
25 value: Foo
46 $value = match (1) {
55 name: value
59 value: 1
129 $value = match ($char) {
138 name: value
169 $value = match (1) {
178 name: value
[all …]
H A DarrayEmptyElemens.test17 value: Scalar_Int[3:2 - 3:2](
18 value: 1
25 value: Expr_Error[3:5 - 3:5](
32 value: Scalar_Int[3:7 - 3:7](
33 value: 2
46 value: Scalar_Int[4:7 - 4:7](
47 value: 1
54 value: Expr_Error[4:10 - 4:10](
61 value: Scalar_Int[4:12 - 4:12](
62 value: 2
H A DlistWithKeys.test15 value: a
17 value: Expr_Variable(
29 value: a
31 value: Scalar_String(
32 value: b
47 value: a
49 value: Expr_List(
55 value: Expr_Variable(
68 value: d
70 value: Expr_Variable(
/PHP-Parser/test/code/parser/expr/fetchAndCall/
H A DconstantDeref.test22 value: abc
25 value: 2
41 value: 0
45 value: 0
80 value: 2
125 value: 0
160 value: 2
205 value: 0
217 value: 0
232 value: 1
[all …]
/PHP-Parser/test/code/parser/stmt/generator/
H A DyieldPrecedence.test34 value: a
37 value: b
47 value: a
58 value: k
62 value: a
65 value: b
74 value: k
77 value: a
126 value: k1
159 value: a
[all …]
H A Dbasic.test8 yield $value;
9 yield $key => $value;
13 $data = (yield $value);
14 $data = (yield $key => $value);
49 value: null
58 value: Expr_Variable(
59 name: value
69 name: value
80 value: null
95 name: value
[all …]
/PHP-Parser/test/code/parser/scalar/
H A Dfloat.test28 value: 0
33 value: 0
38 value: 0
43 value: 0
48 value: 0
53 value: 0
58 value: 0
63 value: 302000000000
68 value: 3.002E+102
73 value: INF
[all …]
H A Dint.test18 value: 0
23 value: 1
28 value: @@{ PHP_INT_MAX }@@
33 value: @@{ PHP_INT_MAX + 1 }@@
38 value: 4095
43 value: 4095
48 value: 4095
53 value: 511
58 value: 3640
H A DconstantString.test22 value:
27 value:
32 value:
37 value:
42 value: Hi
47 value: Hi
52 value: Hi
57 value: Hi
62 value: Hi
67 value: Hi
[all …]
H A DflexibleDocString.test142 value:
147 value:
152 value:
157 value: a
178 value:
187 value:
216 value:
323 value:
336 value:
353 value: -
[all …]
/PHP-Parser/test/code/parser/expr/uvs/
H A DindirectCall.test39 value: Scalar_Int(
40 value: 1
81 value: 2
118 value: 4
185 value: 5
253 value: 8
342 value: 9
416 value: 10
461 value: 12
499 value: 13
[all …]
H A Dmisc.test15 value: string
29 value: foo
37 value: 0
46 value: foo
74 value: 0
80 value: Scalar_Int(
81 value: 1
97 value: 0
105 value: 1
113 value: 0
[all …]
H A Disset.test19 value: Scalar_Int(
20 value: 0
27 value: Scalar_Int(
28 value: 1
41 value: 0
55 value: a
57 value: Scalar_String(
58 value: b
77 value: str
/PHP-Parser/test/code/parser/stmt/
H A Ddeclare.test21 value: Scalar_String(
22 value: Y
34 value: Scalar_String(
35 value: B
42 value: Scalar_String(
43 value: D
51 value: foo
63 value: Scalar_String(
64 value: B
71 value: Scalar_String(
[all …]
H A Dconst.test14 value: Scalar_Int(
15 value: 0
22 value: Scalar_Float(
23 value: 1
30 value: Scalar_String(
31 value: A
38 value: Expr_ConstFetch(
/PHP-Parser/test/code/formatPreservation/
H A Dmatch.test4 $value = match (1)
14 $value = match (1)
23 $value = match (1) {
31 $value = match (1) {
37 $value = match (1) {
52 $value = match (1) {
63 $value = match (1) {
73 $value = match (1) {
79 $value = match (1) {
89 $value = match (1) {
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DInlineHTML.php9 public string $value; variable in PhpParser\\Node\\Stmt\\InlineHTML
14 * @param string $value String
17 public function __construct(string $value, array $attributes = []) { argument
19 $this->value = $value;
/PHP-Parser/test/code/parser/
H A DformattingAttributes.test51 value: 12
58 value: 12
65 value: 12
72 value: 12
92 value: foo
99 value: bar
106 value: foo
115 value: foo
163 value:
190 value: foo
[all …]
/PHP-Parser/lib/PhpParser/Node/
H A DInterpolatedStringPart.php9 public string $value; variable in PhpParser\\Node\\InterpolatedStringPart
14 * @param string $value String value
17 public function __construct(string $value, array $attributes = []) { argument
19 $this->value = $value;
/PHP-Parser/test/code/parser/stmt/class/
H A DconstModifiers.test35 value: Scalar_Int(
36 value: 1
51 value: Scalar_Int(
52 value: 2
67 value: Scalar_Int(
68 value: 3
83 value: Scalar_Int(
84 value: 4
99 value: Scalar_Int(
100 value: 5

Completed in 57 milliseconds

123456