protected function compFunction($name, $code)
    {
        $buf = new Buffer;
        $buf->appendLine("$name () {");
        $buf->indent();
        $buf->appendBuffer($code);
        $buf->unindent();
        $buf->appendLine("}");

        return $buf;
    }