Lines Matching refs:references
60 * @param array $references Mapping of variable names to values
66 public static function parse(string $value = null, int $flags = 0, array $references = []) argument
86 $result = self::parseSequence($value, $flags, $i, $references);
90 $result = self::parseMapping($value, $flags, $i, $references);
94 … $result = self::parseScalar($value, $flags, null, $i, null === $tag, $references);
266 …t $flags = 0, array $delimiters = null, int &$i = 0, bool $evaluate = true, array $references = []) argument
305 $output = self::evaluateScalar($output, $flags, $references);
342 …ic function parseSequence(string $sequence, int $flags, int &$i = 0, array $references = []): array argument
363 $value = self::parseSequence($sequence, $flags, $i, $references);
367 $value = self::parseMapping($sequence, $flags, $i, $references);
371 … $value = self::parseScalar($sequence, $flags, [',', ']'], $i, null === $tag, $references);
378 $value = self::parseMapping('{'.$value.'}', $flags, $pos, $references);
406 …vate static function parseMapping(string $mapping, int $flags, int &$i = 0, array $references = []) argument
442 $evaluatedKey = self::evaluateScalar($key, $flags, $references);
468 $value = self::parseSequence($mapping, $flags, $i, $references);
489 $value = self::parseMapping($mapping, $flags, $i, $references);
507 … $value = self::parseScalar($mapping, $flags, [',', '}'], $i, null === $tag, $references);
541 private static function evaluateScalar(string $scalar, int $flags, array $references = []) argument
558 if (!\array_key_exists($value, $references)) {
562 return $references[$value];