示例#1
0
 /**
  * Runs the visitor
  *
  * @param ILess_Node|array $root The root node
  */
 public function run($root)
 {
     $finder = new ILess_Visitor_ExtendFinder();
     $finder->run($root);
     if (!$finder->foundExtends) {
         return $root;
     }
     $root->allExtends = $this->doExtendChaining($root->allExtends, $root->allExtends);
     $this->allExtendsStack = array();
     $this->allExtendsStack[] =& $root->allExtends;
     return $this->visit($root);
 }
示例#2
0
 /**
  * @covers __constructor
  */
 public function testVisit()
 {
     $v = new ILess_Visitor_ExtendFinder();
     $this->assertFalse($v->isReplacing());
 }