Lines Matching defs:context
134 $context = null;
162 if ($context && 'mapping' == $context) {
165 $context = 'sequence';
210 $data[] = $this->parseValue($values['value'], $flags, $context);
221 if ($context && 'sequence' == $context) {
224 $context = 'mapping';
354 $value = $this->parseValue(rtrim($values['value']), $flags, $context);
368 if (null !== $context) {
381 if (null !== $context) {
402 if (null !== $context) {
505 if (Yaml::PARSE_OBJECT_FOR_MAP & $flags && 'mapping' === $context && !\is_object($data)) {
715 * @param string $context The parser context (either sequence or mapping)
721 private function parseValue(string $value, int $flags, string $context)
810 if ('mapping' === $context && \is_string($parsedValue) && '"' !== $value[0] && "'" !== $value[0] && '[' !== $value[0] && '{' !== $value[0] && '!' !== $value[0] && false !== strpos($parsedValue, ': ')) {