MCPcopy
hub / github.com/postcss/postcss / warn

Method warn

lib/result.js:23–34  ·  view source on GitHub ↗
(text, opts = {})

Source from the content-addressed store, hash-verified

21 }
22
23 warn(text, opts = {}) {
24 if (!opts.plugin) {
25 if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
26 opts.plugin = this.lastPlugin.postcssPlugin
27 }
28 }
29
30 let warning = new Warning(text, opts)
31 this.messages.push(warning)
32
33 return warning
34 }
35
36 warnings() {
37 return this.messages.filter(i => i.type === 'warning')

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected