modules/custom-css/custom-css/preprocessors/lessc.inc.php 1 location
|
@@ 263-272 (lines=10) @@
|
| 260 |
|
return $scope; |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
protected function compileNestedBlock($block, $selectors) { |
| 264 |
|
$this->pushEnv($block); |
| 265 |
|
$this->scope = $this->makeOutputBlock($block->type, $selectors); |
| 266 |
|
$this->scope->parent->children[] = $this->scope; |
| 267 |
|
|
| 268 |
|
$this->compileProps($block, $this->scope); |
| 269 |
|
|
| 270 |
|
$this->scope = $this->scope->parent; |
| 271 |
|
$this->popEnv(); |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
protected function compileRoot($root) { |
| 275 |
|
$this->pushEnv(); |
modules/custom-css/custom-css/preprocessors/scss.inc.php 1 location
|
@@ 365-374 (lines=10) @@
|
| 362 |
|
} |
| 363 |
|
|
| 364 |
|
// TODO refactor compileNestedBlock and compileMedia into same thing |
| 365 |
|
protected function compileNestedBlock($block, $selectors) { |
| 366 |
|
$this->pushEnv($block); |
| 367 |
|
|
| 368 |
|
$this->scope = $this->makeOutputBlock($block->type, $selectors); |
| 369 |
|
$this->scope->parent->children[] = $this->scope; |
| 370 |
|
$this->compileChildren($block->children, $this->scope); |
| 371 |
|
|
| 372 |
|
$this->scope = $this->scope->parent; |
| 373 |
|
$this->popEnv(); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
/** |
| 377 |
|
* Recursively compiles a block. |