You are here

private function Parser::moveToPreviousLine in Translation template extractor 7.2

Same name and namespace in other branches
  1. 6.3 vendor/Symfony/Component/Yaml/Parser.php \Symfony\Component\Yaml\Parser::moveToPreviousLine()
  2. 7.3 vendor/Symfony/Component/Yaml/Parser.php \Symfony\Component\Yaml\Parser::moveToPreviousLine()

Moves the parser to the previous line.

4 calls to Parser::moveToPreviousLine()
Parser::getNextEmbedBlock in vendor/Symfony/Component/Yaml/Parser.php
Returns the next embed block of YAML.
Parser::isNextLineIndented in vendor/Symfony/Component/Yaml/Parser.php
Returns true if the next line is indented.
Parser::isNextLineUnIndentedCollection in vendor/Symfony/Component/Yaml/Parser.php
Returns true if the next line starts unindented collection
Parser::parseFoldedScalar in vendor/Symfony/Component/Yaml/Parser.php
Parses a folded scalar.

File

vendor/Symfony/Component/Yaml/Parser.php, line 360

Class

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

Namespace

Symfony\Component\Yaml

Code

private function moveToPreviousLine() {
  $this->currentLine = $this->lines[--$this->currentLineNb];
}