original_string: private function EvalMixinCalls( $ruleset, $env, &$rsRuleCnt ){
  		for($i=0; $i < $rsRuleCnt; $i++){
  			$rule = $ruleset->rules[$i];
  
  			if( $rule instanceof Less_Tree_Mixin_Call ){
  				$rule = $rule->compile($env);
  
  				$temp = array();
  				foreach($rule as $r){
  					if( ($r instanceof Less_Tree_Rule) && $r->variable ){
  						// do not pollute the scope if the variable is
  						// already there. consider returning false here
  						// but we need a way to "return" variable from mixins
  						if( !$ruleset->variable($r->name) ){
  							$temp[] = $r;
  						}
  					}else{
  						$temp[] = $r;
  					}
  				}
  				$temp_count = count($temp)-1;
  				array_splice($ruleset->rules, $i, 1, $temp);
  				$rsRuleCnt += $temp_count;
  				$i += $temp_count;
  				$ruleset->resetCache();
  
  			}elseif( $rule instanceof Less_Tree_RulesetCall ){
  
  				$rule = $rule->compile($env);
  				$rules = array();
  				foreach($rule->rules as $r){
  					if( ($r instanceof Less_Tree_Rule) && $r->variable ){
  						continue;
  					}
  					$rules[] = $r;
  				}
  
  				array_splice($ruleset->rules, $i, 1, $rules);
  				$temp_count = count($rules);
  				$rsRuleCnt += $temp_count - 1;
  				$i += $temp_count-1;
  				$ruleset->resetCache();
  			}
  
  		}
  	}
code: private function EvalMixinCalls( $ruleset, $env, &$rsRuleCnt ){
  		for($i=0; $i < $rsRuleCnt; $i++){
  			$rule = $ruleset->rules[$i];
  
  			if( $rule instanceof Less_Tree_Mixin_Call ){
  				$rule = $rule->compile($env);
  
  				$temp = array();
  				foreach($rule as $r){
  					if( ($r instanceof Less_Tree_Rule) && $r->variable ){
  						// do not pollute the scope if the variable is
  						// already there. consider returning false here
  						// but we need a way to "return" variable from mixins
  						if( !$ruleset->variable($r->name) ){
  							$temp[] = $r;
  						}
  					}else{
  						$temp[] = $r;
  					}
  				}
  				$temp_count = count($temp)-1;
  				array_splice($ruleset->rules, $i, 1, $temp);
  				$rsRuleCnt += $temp_count;
  				$i += $temp_count;
  				$ruleset->resetCache();
  
  			}elseif( $rule instanceof Less_Tree_RulesetCall ){
  
  				$rule = $rule->compile($env);
  				$rules = array();
  				foreach($rule->rules as $r){
  					if( ($r instanceof Less_Tree_Rule) && $r->variable ){
  						continue;
  					}
  					$rules[] = $r;
  				}
  
  				array_splice($ruleset->rules, $i, 1, $rules);
  				$temp_count = count($rules);
  				$rsRuleCnt += $temp_count - 1;
  				$i += $temp_count-1;
  				$ruleset->resetCache();
  			}
  
  		}
  	}
code_tokens: private function EvalMixinCalls ( $ ruleset , $ env , & $ rsRuleCnt ) { for ( $ i = 0 ; $ i < $ rsRuleCnt ; $ i ++ ) { $ rule = $ ruleset -> rules [ $ i ] ; if ( $ rule instanceof Less_Tree_Mixin_Call ) { $ rule = $ rule -> compile ( $ env ) ; $ temp = array ( ) ; foreach ( $ rule as $ r ) { if ( ( $ r instanceof Less_Tree_Rule ) && $ r -> variable ) { // do not pollute the scope if the variable is // already there. consider returning false here // but we need a way to "return" variable from mixins if ( ! $ ruleset -> variable ( $ r -> name ) ) { $ temp [ ] = $ r ; } } else { $ temp [ ] = $ r ; } } $ temp_count = count ( $ temp ) - 1 ; array_splice ( $ ruleset -> rules , $ i , 1 , $ temp ) ; $ rsRuleCnt += $ temp_count ; $ i += $ temp_count ; $ ruleset -> resetCache ( ) ; } elseif ( $ rule instanceof Less_Tree_RulesetCall ) { $ rule = $ rule -> compile ( $ env ) ; $ rules = array ( ) ; foreach ( $ rule -> rules as $ r ) { if ( ( $ r instanceof Less_Tree_Rule ) && $ r -> variable ) { continue ; } $ rules [ ] = $ r ; } array_splice ( $ ruleset -> rules , $ i , 1 , $ rules ) ; $ temp_count = count ( $ rules ) ; $ rsRuleCnt += $ temp_count - 1 ; $ i += $ temp_count - 1 ; $ ruleset -> resetCache ( ) ; } } }
docstring: Compile Less_Tree_Mixin_Call objects
  
  @param Less_Tree_Ruleset $ruleset
  @param integer $rsRuleCnt
docstring_tokens: Compile Less_Tree_Mixin_Call objects