Lines Matching refs:source
33 private $source; variable in Twig\\Lexer
156 public function tokenize(Source $source) argument
158 $this->source = $source;
159 $this->code = str_replace(["\r\n", "\r"], "\n", $source->getCode());
203 throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
206 return new TokenStream($this->tokens, $this->source);
303 …::STATE_BLOCK === $this->state ? 'block' : 'variable'), $this->currentVarBlockLine, $this->source);
340 …SyntaxError(sprintf('Unexpected "%s".', $this->code[$this->cursor]), $this->lineno, $this->source);
345 … throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
365 …r(sprintf('Unexpected character "%s".', $this->code[$this->cursor]), $this->lineno, $this->source);
372 …ew SyntaxError('Unexpected end of file: Unclosed "verbatim" block.', $this->lineno, $this->source);
396 throw new SyntaxError('Unclosed comment.', $this->lineno, $this->source);
415 throw new SyntaxError(sprintf('Unclosed "%s".', $expect), $lineno, $this->source);
422 …r(sprintf('Unexpected character "%s".', $this->code[$this->cursor]), $this->lineno, $this->source);