docs: function(value, type) {
        type = type || "current";
        var pos;
        if(type == "current") {
          pos = this.pos;
        } else if(type == "end") {
          pos = this.endPos;
        } else if(type == "start") {
          pos = this.startPos;
        }
        pos.set(value);
    }