Lines Matching refs:mapping
406 …private static function parseMapping(string $mapping, int $flags, int &$i = 0, array $references =… argument
409 $len = \strlen($mapping);
415 switch ($mapping[$i]) {
430 $isKeyQuoted = \in_array($mapping[$i], ['"', "'"], true);
431 $key = self::parseScalar($mapping, $flags, [':', ' '], $i, false, []);
434 … throw new ParseException('Missing mapping key.', self::$parsedLineNumber + 1, $mapping);
437 if (false === $i = strpos($mapping, ':', $i)) {
445 …not supported. Quote your evaluable mapping keys instead.', self::$parsedLineNumber + 1, $mapping);
449 …if (!$isKeyQuoted && (!isset($mapping[$i + 1]) || !\in_array($mapping[$i + 1], [' ', ',', '[', ']'…
450 …indication character (i.e. " ", ",", "[", "]", "{", "}").', self::$parsedLineNumber + 1, $mapping);
458 if (':' === $mapping[$i] || ' ' === $mapping[$i]) {
464 $tag = self::parseTag($mapping, $i, $flags);
465 switch ($mapping[$i]) {
468 $value = self::parseSequence($mapping, $flags, $i, $references);
484 …rseException(sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
489 $value = self::parseMapping($mapping, $flags, $i, $references);
503 …rseException(sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
507 … $value = self::parseScalar($mapping, $flags, [',', '}'], $i, null === $tag, $references);
521 …rseException(sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
531 …throw new ParseException(sprintf('Malformed inline YAML string: %s.', $mapping), self::$parsedLine…