Lines Matching defs:sequence
343 * Parses a YAML sequence.
347 private static function parseSequence(string $sequence, int $flags, int &$i = 0, array &$references = []): array
350 $len = \strlen($sequence);
355 if (']' === $sequence[$i]) {
358 if (',' === $sequence[$i] || ' ' === $sequence[$i]) {
364 $tag = self::parseTag($sequence, $i, $flags);
365 switch ($sequence[$i]) {
367 // nested sequence
368 $value = self::parseSequence($sequence, $flags, $i, $references);
372 $value = self::parseMapping($sequence, $flags, $i, $references);
375 $value = self::parseScalar($sequence, $flags, [',', ']'], $i, null === $tag, $references, $isQuoted);
405 throw new ParseException(sprintf('Malformed inline YAML string: "%s".', $sequence), self::$parsedLineNumber + 1, null, self::$parsedFilename);
482 // nested sequence