Lines Matching refs:currentLine

36     private $currentLine = '';  variable in Symfony\\Component\\Yaml\\Parser
105 $this->currentLine = '';
119 $this->currentLine = '';
144 …if (null !== ($tag = $this->getLineTag($this->currentLine, $flags, false)) && !$this->moveToNextLi…
154 if ("\t" === $this->currentLine[0]) {
155 …ntain tabs as indentation.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
161 …if ('-' === $this->currentLine[0] && self::preg_match('#^\-((?P<leadspaces>\s+)(?P<value>.+))?$#u'…
163 …ce item when in a mapping.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
174 …tion('Complex mappings are not supported.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
183 $sequenceYaml = substr($this->currentLine, $sequenceIndentation);
218 …!php/const:)?[^ \'"\[\{!].*?)) *\:(( |\t)++(?P<value>.+))?$#u', rtrim($this->currentLine), $values)
222 … a mapping item when in a sequence.', $this->currentLineNb + 1, $this->currentLine, $this->filenam…
230 $e->setSnippet($this->currentLine);
236 …uote your evaluable mapping keys instead.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
251 …rsed, $pos), [$refName])), $refName), $this->currentLineNb + 1, $this->currentLine, $this->filenam…
254 …does not exist.', $refName), $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
264 …value instead of an array.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
281 …value instead of an array.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
327 …intf('Duplicate key "%s" detected.', $key), $this->getRealCurrentLineNb() + 1, $this->currentLine);
350 …tion(sprintf('Duplicate key "%s" detected.', $key), $realCurrentLineNbKey + 1, $this->currentLine);
360 …intf('Duplicate key "%s" detected.', $key), $this->getRealCurrentLineNb() + 1, $this->currentLine);
367 } elseif ('"' === $this->currentLine[0] || "'" === $this->currentLine[0]) {
369 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
376 $e->setSnippet($this->currentLine);
380 } elseif ('{' === $this->currentLine[0]) {
382 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
390 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
397 $e->setSnippet($this->currentLine);
401 } elseif ('[' === $this->currentLine[0]) {
403 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
411 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
418 $e->setSnippet($this->currentLine);
424 if ('---' === $this->currentLine) {
425 …ltiple documents are not supported.', $this->currentLineNb + 1, $this->currentLine, $this->filenam…
428 …if ($deprecatedUsage = (isset($this->currentLine[1]) && '?' === $this->currentLine[0] && ' ' === $…
429 …tion('Complex mappings are not supported.', $this->getRealCurrentLineNb() + 1, $this->currentLine);
438 $e->setSnippet($this->currentLine);
459 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
463 …owed in multi-line blocks.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
497 …xception('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
565 if (' ' !== ($this->currentLine[0] ?? '')) {
569 return \strlen($this->currentLine) - \strlen(ltrim($this->currentLine, ' '));
614 …tion('Indentation problem.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
623 $data[] = substr($this->currentLine, $newIndent ?? 0);
625 $data[] = $this->currentLine;
657 $data[] = substr($this->currentLine, $newIndent);
662 $data[] = substr($this->currentLine, $newIndent);
664 $data[] = $this->currentLine;
670 …tion('Indentation problem.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filenam…
691 $this->currentLine = $this->lines[++$this->currentLineNb];
705 $this->currentLine = $this->lines[--$this->currentLineNb];
732 …ngParsed, $pos), [$value])), $value), $this->currentLineNb + 1, $this->currentLine, $this->filenam…
735 …rence "%s" does not exist.', $value), $this->currentLineNb + 1, $this->currentLine, $this->filenam…
759 $cursor = \strlen(rtrim($this->currentLine)) - \strlen(rtrim($value));
763 $cursor = \strlen(rtrim($this->currentLine)) - \strlen(rtrim($value));
771 $cursor = \strlen(rtrim($this->currentLine)) - \strlen(rtrim($value));
774 …if (isset($this->currentLine[$cursor]) && preg_replace('/\s*(#.*)?$/A', '', substr($this->currentL…
775 …w ParseException(sprintf('Unexpected characters near "%s".', substr($this->currentLine, $cursor)));
790 $lines[] = trim($this->currentLine);
818 $e->setSnippet($this->currentLine);
852 $currentLineLength = \strlen($this->currentLine);
854 for ($i = 0; $i < $currentLineLength && ' ' === $this->currentLine[$i]; ++$i) {
865 self::preg_match($pattern, $this->currentLine, $matches)
868 if ($isCurrentLineBlank && \strlen($this->currentLine) > $indentation) {
869 $blockLines[] = substr($this->currentLine, $indentation);
977 return '' === $this->currentLine || '' === trim($this->currentLine, ' ');
986 …rimmedLine = '' !== $this->currentLine && ' ' === $this->currentLine[0] ? ltrim($this->currentLine
1066 return '-' === rtrim($this->currentLine) || 0 === strpos($this->currentLine, '- ');
1152 $quotation = $this->currentLine[$cursor];
1162 $cursor += strspn($this->currentLine, ' ', $cursor);
1171 for (; \strlen($this->currentLine) > $cursor; ++$cursor) {
1172 switch ($this->currentLine[$cursor]) {
1176 } elseif (isset($this->currentLine[++$cursor])) {
1177 $value .= '\\'.$this->currentLine[$cursor];
1184 …if ("'" === $quotation && isset($this->currentLine[$cursor]) && "'" === $this->currentLine[$cursor…
1191 $value .= $this->currentLine[$cursor];
1198 } elseif ('\\' === $this->currentLine[-1]) {
1217 $cursor += strcspn($this->currentLine, '[]{},: ', $cursor);
1223 return substr($this->currentLine, $offset, $cursor - $offset);
1238 $value = $this->currentLine[$cursor];
1244 while (isset($this->currentLine[$cursor])) {
1245 switch ($this->currentLine[$cursor]) {
1252 $value .= $this->currentLine[$cursor];
1262 $value .= $this->currentLine[$cursor];
1290 $whitespaceOnlyTokenLength = strspn($this->currentLine, ' ', $cursor);
1294 if (isset($this->currentLine[$cursor])) {