Lines Matching refs:mapping
415 …private static function parseMapping(string $mapping, int $flags, int &$i = 0, array &$references … argument
418 $len = \strlen($mapping);
424 switch ($mapping[$i]) {
440 $isKeyQuoted = \in_array($mapping[$i], ['"', "'"], true);
441 $key = self::parseScalar($mapping, $flags, [':', ' '], $i, false);
444 … throw new ParseException('Missing mapping key.', self::$parsedLineNumber + 1, $mapping);
448 $key .= ' '.self::parseScalar($mapping, $flags, [':'], $i, false);
452 if (false === $i = strpos($mapping, ':', $i)) {
460 …not supported. Quote your evaluable mapping keys instead.', self::$parsedLineNumber + 1, $mapping);
464 …if (!$isKeyQuoted && (!isset($mapping[$i + 1]) || !\in_array($mapping[$i + 1], [' ', ',', '[', ']'…
465 …indication character (i.e. " ", ",", "[", "]", "{", "}").', self::$parsedLineNumber + 1, $mapping);
473 if (':' === $mapping[$i] || ' ' === $mapping[$i] || "\n" === $mapping[$i]) {
479 $tag = self::parseTag($mapping, $i, $flags);
480 switch ($mapping[$i]) {
483 $value = self::parseSequence($mapping, $flags, $i, $references);
499 …rseException(sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
504 $value = self::parseMapping($mapping, $flags, $i, $references);
518 …rseException(sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
522 …$value = self::parseScalar($mapping, $flags, [',', '}', "\n"], $i, null === $tag, $references, $is…
541 …rseException(sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
551 …throw new ParseException(sprintf('Malformed inline YAML string: "%s".', $mapping), self::$parsedLi…