You are here

public function JSTokenizer::init in Advanced CSS/JS Aggregation 7.2

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jsminplus.inc \JSTokenizer::init()
  2. 8.2 advagg_js_minify/jsminplus.inc \JSTokenizer::init()
  3. 8.3 advagg_js_minify/jsminplus.inc \JSTokenizer::init()
  4. 6 advagg_js_compress/jsminplus.inc \JSTokenizer::init()
  5. 7 advagg_js_compress/jsminplus.inc \JSTokenizer::init()

File

advagg_js_compress/jsminplus.inc, line 1952
JSMinPlus version 1.4

Class

JSTokenizer

Code

public function init($source, $filename = '', $lineno = 1) {
  $this->source = $source;
  $this->filename = $filename ? $filename : '[inline]';
  $this->lineno = $lineno;
  $this->cursor = 0;
  $this->tokens = array();
  $this->tokenIndex = 0;
  $this->lookahead = 0;
  $this->scanNewlines = false;
  $this->scanOperand = true;
}