protected function pushBlock($selectors, $pos = 0)
    {
        list($line, $column) = $this->getSourcePosition($pos);

        $b = new Block;
        $b->sourceName   = $this->sourceName;
        $b->sourceLine   = $line;
        $b->sourceColumn = $column;
        $b->sourceIndex  = $this->sourceIndex;
        $b->selectors    = $selectors;
        $b->comments     = [];
        $b->parent       = $this->env;
        $b->atrootParent = $this->env;

        if (! $this->env) {
            $b->children = [];
        } elseif (empty($this->env->children)) {
            $this->env->children = $this->env->comments;
            $b->children = [];
            $this->env->comments = [];
        } else {
            $b->children = $this->env->comments;
            $this->env->comments = [];
        }

        $this->env = $b;

        return $b;
    }
protected function pushBlock($selectors, $pos = 0)
    {
        list($line, $column) = $this->getSourcePosition($pos);

        $b = new Block;
        $b->sourceName   = $this->sourceName;
        $b->sourceLine   = $line;
        $b->sourceColumn = $column;
        $b->sourceIndex  = $this->sourceIndex;
        $b->selectors    = $selectors;
        $b->comments     = [];
        $b->parent       = $this->env;
        $b->atrootParent = $this->env;

        if (! $this->env) {
            $b->children = [];
        } elseif (empty($this->env->children)) {
            $this->env->children = $this->env->comments;
            $b->children = [];
            $this->env->comments = [];
        } else {
            $b->children = $this->env->comments;
            $this->env->comments = [];
        }

        $this->env = $b;

        return $b;
    }
protected function pushBlock ( $ selectors , $ pos = 0 ) { list ( $ line , $ column ) = $ this -> getSourcePosition ( $ pos ) ; $ b = new Block ; $ b -> sourceName = $ this -> sourceName ; $ b -> sourceLine = $ line ; $ b -> sourceColumn = $ column ; $ b -> sourceIndex = $ this -> sourceIndex ; $ b -> selectors = $ selectors ; $ b -> comments = [ ] ; $ b -> parent = $ this -> env ; $ b -> atrootParent = $ this -> env ; if ( ! $ this -> env ) { $ b -> children = [ ] ; } elseif ( empty ( $ this -> env -> children ) ) { $ this -> env -> children = $ this -> env -> comments ; $ b -> children = [ ] ; $ this -> env -> comments = [ ] ; } else { $ b -> children = $ this -> env -> comments ; $ this -> env -> comments = [ ] ; } $ this -> env = $ b ; return $ b ; }
Push block onto parse tree

@param array   $selectors
@param integer $pos

@return \Leafo\ScssPhp\Block
Push block onto parse tree