You are here

protected function Twig_Lexer::popState in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Lexer.php \Twig_Lexer::popState()
4 calls to Twig_Lexer::popState()
Twig_Lexer::lexBlock in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexInterpolation in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexString in vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexVar in vendor/twig/twig/lib/Twig/Lexer.php

File

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

Class

Twig_Lexer
Lexes a template string.

Code

protected function popState() {
  if (0 === count($this->states)) {
    throw new Exception('Cannot pop state without a previous state');
  }
  $this->state = array_pop($this->states);
}