aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/postcss/lib/result.js
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/postcss/lib/result.js')
-rw-r--r--vanilla/node_modules/postcss/lib/result.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/vanilla/node_modules/postcss/lib/result.js b/vanilla/node_modules/postcss/lib/result.js
deleted file mode 100644
index c6af4e8..0000000
--- a/vanilla/node_modules/postcss/lib/result.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict'
-
-let Warning = require('./warning')
-
-class Result {
- get content() {
- return this.css
- }
-
- constructor(processor, root, opts) {
- this.processor = processor
- this.messages = []
- this.root = root
- this.opts = opts
- this.css = ''
- this.map = undefined
- }
-
- toString() {
- return this.css
- }
-
- warn(text, opts = {}) {
- if (!opts.plugin) {
- if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
- opts.plugin = this.lastPlugin.postcssPlugin
- }
- }
-
- let warning = new Warning(text, opts)
- this.messages.push(warning)
-
- return warning
- }
-
- warnings() {
- return this.messages.filter(i => i.type === 'warning')
- }
-}
-
-module.exports = Result
-Result.default = Result