Lines Matching refs:data

97             $data = $this->doParse($value, $flags);
113 return $data;
133 $data = [];
186 $data[] = $this->parseBlock($currentLineNumber, rtrim($sequenceYaml), $flags);
188 $data[] = $this->parseBlock($this->getRealCurrentLineNb() + 1, $this->getNextEmbedBlock(null, true) ?? '', $flags);
190 $data[] = new TaggedValue(
208 $data[] = $this->parseBlock($this->getRealCurrentLineNb(), $block, $flags);
210 $data[] = $this->parseValue($values['value'], $flags, $context);
214 $this->refs[$isRef] = end($data);
267 $data += $refValue; // array union
297 $data += $parsedItem; // array union
302 $data += $parsed; // array union
320 if ($allowOverwrite || !isset($data[$key])) {
322 $data[$key] = new TaggedValue($subTag, '');
324 $data[$key] = null;
340 $data += $value;
341 } elseif ($allowOverwrite || !isset($data[$key])) {
345 $data[$key] = new TaggedValue($subTag, $value);
347 $data[$key] = $value;
357 if ($allowOverwrite || !isset($data[$key])) {
358 $data[$key] = $value;
364 $this->refs[$isRef] = $data[$key];
502 $data = new TaggedValue($tag, $data);
505 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && 'mapping' === $context && !\is_object($data)) {
508 foreach ($data as $key => $value) {
512 $data = $object;
515 return empty($data) ? null : $data;
576 * @param bool $inSequence True if the enclosing data structure is a sequence
620 $data = [];
623 $data[] = substr($this->currentLine, $newIndent ?? 0);
625 $data[] = $this->currentLine;
632 if ($inSequence && $oldLineIndentation === $newIndent && isset($data[0][0]) && '-' === $data[0][0]) {
657 $data[] = substr($this->currentLine, $newIndent);
662 $data[] = substr($this->currentLine, $newIndent);
664 $data[] = $this->currentLine;
674 return implode("\n", $data);
744 $data = $this->parseBlockScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), abs((int) $modifiers));
748 return Inline::evaluateBinaryScalar($data);
751 return new TaggedValue(substr($matches['tag'], 1), $data);
754 return $data;
1096 $error = 'Malformed UTF-8 data.';