Lines Matching refs:block
134 $this->formatter->block($this->scope);
425 protected function compileImportedProps($props, $block, $out, $sourceParser, $importDir) argument
436 $this->compileProp($prop, $block, $out);
464 protected function compileBlock($block) argument
466 switch ($block->type) {
468 $this->compileRoot($block);
471 $this->compileCSSBlock($block);
474 $this->compileMedia($block);
477 $name = '@' . $block->name;
478 if (!empty($block->value)) {
479 $name .= ' ' . $this->compileValue($this->reduce($block->value));
482 $this->compileNestedBlock($block, [$name]);
485 throw new Exception("unknown block type: $block->type\n");
492 protected function compileCSSBlock($block) argument
496 $selectors = $this->compileSelectors($block->tags);
501 $this->compileProps($block, $out);
503 $block->scope = $env; // mixins carry scope with them!
551 protected function compileNestedBlock($block, $selectors) argument
553 $this->pushEnv($block);
554 $this->scope = $this->makeOutputBlock($block->type, $selectors);
557 $this->compileProps($block, $this->scope);
577 protected function compileProps($block, $out) argument
579 foreach ($this->sortProps($block->props) as $prop) {
580 $this->compileProp($prop, $block, $out);
697 !empty($env->block->type) && $env->block->type != 'media') {
702 if (empty($env->block->type)) {
707 $queries = $env->block->queries;
810 protected function patternMatch($block, $orderedArgs, $keywordArgs) argument
814 if (!empty($block->guards)) {
816 foreach ($block->guards as $guardGroup) {
819 $this->zipSetArgs($block->args, $orderedArgs, $keywordArgs);
848 if (empty($block->args)) {
849 return $block->isVararg || empty($orderedArgs) && empty($keywordArgs);
852 $remainingArgs = $block->args;
855 foreach ($block->args as $arg) {
885 if ($block->isVararg) {
900 foreach ($blocks as $block) {
902 if (isset($skip[$block->id]) && !isset($block->args)) {
906 if ($this->patternMatch($block, $orderedArgs, $keywordArgs)) {
907 $matches[] = $block;
1011 protected function compileProp($prop, $block, $out) argument
1056 $mixins = $this->findBlocks($block, $path, $orderedArgs, $keywordArgs);
1059 $block->parser->throwError("{$prop[1][0]} is undefined", $block->count);
1068 if ($mixin === $block && !$orderedArgs) {
1087 if ($mixin != $block) $mixin->parent = $block;
1123 $result = $this->tryImport($importPath, $block, $out);
1139 $this->compileImportedProps($bottom, $block, $out, $parser, $importDir);
1144 $block->parser->throwError("unknown op: $prop[0]\n", $block->count);
1630 protected function pushEnv($block = null) argument
1635 $e->block = $block;