You are here

private function Parser::getRealCurrentLineNb in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php \Symfony\Component\Yaml\Parser::getRealCurrentLineNb()

Returns the current line number (takes the offset into account).

Return value

int The current line number

3 calls to Parser::getRealCurrentLineNb()
Parser::doParse in vendor/symfony/yaml/Parser.php
Parser::getNextEmbedBlock in vendor/symfony/yaml/Parser.php
Returns the next embed block of YAML.
Parser::parseValue in vendor/symfony/yaml/Parser.php
Parses a YAML value.

File

vendor/symfony/yaml/Parser.php, line 328

Class

Parser
Parser parses YAML strings to convert them to PHP arrays.

Namespace

Symfony\Component\Yaml

Code

private function getRealCurrentLineNb() {
  $realCurrentLineNumber = $this->currentLineNb + $this->offset;
  foreach ($this->skippedLineNumbers as $skippedLineNumber) {
    if ($skippedLineNumber > $realCurrentLineNumber) {
      break;
    }
    ++$realCurrentLineNumber;
  }
  return $realCurrentLineNumber;
}