You are here

protected function Twig_Lexer::pushToken in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Lexer.php \Twig_Lexer::pushToken()
8 calls to Twig_Lexer::pushToken()
Twig_Lexer::lexBlock in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexData in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexExpression in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexInterpolation in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexRawData in vendor/twig/twig/lib/Twig/Lexer.php

... See full list

File

vendor/twig/twig/lib/Twig/Lexer.php, line 351

Class

Twig_Lexer
Lexes a template string.

Code

protected function pushToken($type, $value = '') {

  // do not push empty text tokens
  if (Twig_Token::TEXT_TYPE === $type && '' === $value) {
    return;
  }
  $this->tokens[] = new Twig_Token($type, $value, $this->lineno);
}