MCPcopy Index your code
hub / github.com/postcss/postcss / toString

Method toString

lib/warning.js:19–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 toString() {
20 if (this.node) {
21 return this.node.error(this.text, {
22 index: this.index,
23 plugin: this.plugin,
24 word: this.word
25 }).message
26 }
27
28 if (this.plugin) {
29 return this.plugin + ': ' + this.text
30 }
31
32 return this.text
33 }
34}
35
36module.exports = Warning

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected