Lines Matching defs:references
55 * @param array $references Mapping of variable names to values
61 public static function parse(string $value = null, int $flags = 0, array &$references = [])
81 $result = self::parseSequence($value, $flags, $i, $references);
85 $result = self::parseMapping($value, $flags, $i, $references);
89 $result = self::parseScalar($value, $flags, null, $i, true, $references);
268 public static function parseScalar(string $scalar, int $flags = 0, array $delimiters = null, int &$i = 0, bool $evaluate = true, array &$references = [], bool &$isQuoted = null)
310 $output = self::evaluateScalar($output, $flags, $references, $isQuoted);
347 private static function parseSequence(string $sequence, int $flags, int &$i = 0, array &$references = []): array
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);
382 $value = self::parseMapping('{'.$value.'}', $flags, $pos, $references);
389 $references[$matches['ref']] = $matches['value'];
415 private static function parseMapping(string $mapping, int $flags, int &$i = 0, array &$references = [])
457 $evaluatedKey = self::evaluateScalar($key, $flags, $references);
483 $value = self::parseSequence($mapping, $flags, $i, $references);
504 $value = self::parseMapping($mapping, $flags, $i, $references);
522 $value = self::parseScalar($mapping, $flags, [',', '}', "\n"], $i, null === $tag, $references, $isValueQuoted);
531 $references[$matches['ref']] = $matches['value'];
561 private static function evaluateScalar(string $scalar, int $flags, array &$references = [], bool &$isQuotedString = null)
578 if (!\array_key_exists($value, $references)) {
582 return $references[$value];