private function Parser::parseBlock in Lockr 7.3
1 call to Parser::parseBlock()
- Parser::doParse in vendor/
symfony/ yaml/ Parser.php
File
- vendor/
symfony/ yaml/ Parser.php, line 495
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
private function parseBlock($offset, $yaml, $flags) {
$skippedLineNumbers = $this->skippedLineNumbers;
foreach ($this->locallySkippedLineNumbers as $lineNumber) {
if ($lineNumber < $offset) {
continue;
}
$skippedLineNumbers[] = $lineNumber;
}
$parser = new self();
$parser->offset = $offset;
$parser->totalNumberOfLines = $this->totalNumberOfLines;
$parser->skippedLineNumbers = $skippedLineNumbers;
$parser->refs =& $this->refs;
$parser->refsBeingParsed = $this->refsBeingParsed;
return $parser
->doParse($yaml, $flags);
}