/** * 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']); } } }
/** * 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); }
/** * Accepts a visit * * @param ILess_Visitor $visitor The visitor */ public function accept(ILess_Visitor $visitor) { $this->value = $visitor->visit($this->value); }
/** * 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); } }
/** * 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; }
/** * 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); }
/** * @see ILess_Node_VisitableInterface::accept */ public function accept(ILess_Visitor $visitor) { $this->operands = $visitor->visit($this->operands); }
/** * Accepts a visitor * * @param ILess_Visitor $visitor * @return void */ public function accept(ILess_Visitor $visitor) { $this->args = $visitor->visit($this->args); }
/** * Accepts a visit * * @param ILess_Visitor $visitor */ public function accept(ILess_Visitor $visitor) { $this->selector = $visitor->visit($this->selector); }
/** * @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); }
/** * Accepts a visitor * * @param ILess_Visitor $visitor * @return void */ public function accept(ILess_Visitor $visitor) { $this->unit = $visitor->visit($this->unit); }
/** * Constructor * * @param ILess_Environment $env */ public function __construct(ILess_Environment $env) { parent::__construct(); $this->env = $env; }
/** * 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); }