Ejemplo n.º 1
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->selector = $visitor->visit($this->selector);
     if (count($this->arguments)) {
         foreach ($this->arguments as &$argument) {
             $argument['value'] = $visitor->visit($argument['value']);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->elements = $visitor->visit($this->elements);
     $this->extendList = $visitor->visit($this->extendList);
     $this->condition = $visitor->visit($this->condition);
 }
Ejemplo n.º 3
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor The visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->value = $visitor->visit($this->value);
 }
Ejemplo n.º 4
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->features = $visitor->visit($this->features);
     $this->path = $visitor->visit($this->path);
     if (!$this->getOption('inline') && $this->root) {
         $this->root = $visitor->visit($this->root);
     }
 }
Ejemplo n.º 5
0
 /**
  * Constructor
  *
  * @param ILess_Environment $env The environment
  * @param ILess_Importer $importer The importer
  */
 public function __construct(ILess_Environment $env, ILess_Importer $importer)
 {
     parent::__construct();
     $this->env = $env;
     $this->importer = $importer;
 }
Ejemplo n.º 6
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->features = $visitor->visit($this->features);
     $this->rules = $visitor->visit($this->rules);
 }
Ejemplo n.º 7
0
 /**
  * @see ILess_Node_VisitableInterface::accept
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->operands = $visitor->visit($this->operands);
 }
Ejemplo n.º 8
0
 /**
  * Accepts a visitor
  *
  * @param ILess_Visitor $visitor
  * @return void
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->args = $visitor->visit($this->args);
 }
Ejemplo n.º 9
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->selector = $visitor->visit($this->selector);
 }
Ejemplo n.º 10
0
 /**
  * @see ILess_Node_VisitableInterface::accept
  */
 public function accept(ILess_Visitor $visitor)
 {
     if (count($this->params)) {
         // FIXME: is its correct format?
         // array of (name => $name, value => ILess_Expression instance)
         foreach ($this->params as &$param) {
             if (!isset($param['value']) || !$param['value'] instanceof ILess_Node) {
                 continue;
             }
             $param['value'] = $visitor->visit($param['value']);
         }
     }
     $this->rules = $visitor->visit($this->rules);
     $this->condition = $visitor->visit($this->condition);
 }
Ejemplo n.º 11
0
 /**
  * Accepts a visitor
  *
  * @param ILess_Visitor $visitor
  * @return void
  */
 public function accept(ILess_Visitor $visitor)
 {
     $this->unit = $visitor->visit($this->unit);
 }
Ejemplo n.º 12
0
 /**
  * Constructor
  *
  * @param ILess_Environment $env
  */
 public function __construct(ILess_Environment $env)
 {
     parent::__construct();
     $this->env = $env;
 }
Ejemplo n.º 13
0
 /**
  * Accepts a visit
  *
  * @param ILess_Visitor $visitor
  */
 public function accept(ILess_Visitor $visitor)
 {
     if (count($this->paths)) {
         for ($i = 0, $count = count($this->paths); $i < $count; $i++) {
             $this->paths[$i] = $visitor->visit($this->paths[$i]);
         }
     } else {
         $this->selectors = $visitor->visit($this->selectors);
     }
     $this->rules = $visitor->visit($this->rules);
 }