class i {
  constructor(e, n = {}) {
    if (this.type = "warning", this.text = e, n.node && n.node.source) {
      let t = n.node.rangeBy(n);
      this.line = t.start.line, this.column = t.start.column, this.endLine = t.end.line, this.endColumn = t.end.column;
    }
    for (let t in n)
      this[t] = n[t];
  }
  toString() {
    return this.node ? this.node.error(this.text, {
      plugin: this.plugin,
      index: this.index,
      word: this.word
    }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
  }
}
var s = i;
i.default = i;
export {
  s as default
};
//# sourceMappingURL=warning.js.map
