예제 #1
0
 /**
  * @override
  */
 protected function current_token()
 {
     $t = parent::current_token();
     if (is_array($t) && ($t[0] === T_WHITESPACE || $t[0] === T_COMMENT || $t[0] === T_DOC_COMMENT)) {
         $t = $this->next_token();
     }
     return $t;
 }
예제 #2
0
 /**
  * @override
  */
 protected function current_token()
 {
     $t = parent::current_token();
     if ($t[0] === J_LINE_TERMINATOR) {
         $t = $this->next_token();
         $this->newline = true;
     }
     return $t;
 }