Leafo\ScssPhp\Parser::append PHP 메소드

append() 보호된 메소드

Append statement to current block
protected append ( array $statement, integer $pos = null )
$statement array
$pos integer
    protected function append($statement, $pos = null)
    {
        if ($pos !== null) {
            list($line, $column) = $this->getSourcePosition($pos);
            $statement[static::SOURCE_LINE] = $line;
            $statement[static::SOURCE_COLUMN] = $column;
            $statement[static::SOURCE_INDEX] = $this->sourceIndex;
        }
        $this->env->children[] = $statement;
        $comments = $this->env->comments;
        if (count($comments)) {
            $this->env->children = array_merge($this->env->children, $comments);
            $this->env->comments = [];
        }
    }