MCPcopy
hub / github.com/postcss/postcss / generate

Method generate

lib/map-generator.js:90–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 generate() {
91 this.clearAnnotation()
92 if (pathAvailable && sourceMapAvailable && this.isMap()) {
93 return this.generateMap()
94 } else {
95 let result = ''
96 this.stringify(this.root, i => {
97 result += i
98 })
99 return [result]
100 }
101 }
102
103 generateMap() {
104 if (this.root) {

Callers 2

constructorMethod · 0.95
stringifyMethod · 0.95

Calls 4

clearAnnotationMethod · 0.95
isMapMethod · 0.95
generateMapMethod · 0.95
stringifyMethod · 0.45

Tested by

no test coverage detected