Lines Matching refs:value
11 $value = json_decode($json, true);
16 return $this->decodeRecursive($value);
20 * @param mixed $value
23 private function decodeRecursive($value) { argument
24 if (\is_array($value)) {
25 if (isset($value['nodeType'])) {
26 if ($value['nodeType'] === 'Comment' || $value['nodeType'] === 'Comment_Doc') {
27 return $this->decodeComment($value);
29 return $this->decodeNode($value);
31 return $this->decodeArray($value);
33 return $value;
38 foreach ($array as $key => $value) {
39 $decodedArray[$key] = $this->decodeRecursive($value);
44 private function decodeNode(array $value): Node { argument
45 $nodeType = $value['nodeType'];
53 if (isset($value['attributes'])) {
54 if (!\is_array($value['attributes'])) {
58 $node->setAttributes($this->decodeArray($value['attributes']));
61 foreach ($value as $name => $subNode) {
72 private function decodeComment(array $value): Comment { argument
73 $className = $value['nodeType'] === 'Comment' ? Comment::class : Comment\Doc::class;
74 if (!isset($value['text'])) {
79 $value['text'],
80 $value['line'] ?? -1, $value['filePos'] ?? -1, $value['tokenPos'] ?? -1,
81 $value['endLine'] ?? -1, $value['endFilePos'] ?? -1, $value['endTokenPos'] ?? -1