MCPcopy
hub / github.com/postcss/postcss / isInline

Method isInline

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

Source from the content-addressed store, hash-verified

219 }
220
221 isInline() {
222 if (typeof this.mapOpts.inline !== 'undefined') {
223 return this.mapOpts.inline
224 }
225
226 let annotation = this.mapOpts.annotation
227 if (typeof annotation !== 'undefined' && annotation !== true) {
228 return false
229 }
230
231 if (this.previous().length) {
232 return this.previous().some(i => i.inline)
233 }
234 return true
235 }
236
237 isMap() {
238 if (typeof this.opts.map !== 'undefined') {

Callers 3

addAnnotationMethod · 0.95
generateMapMethod · 0.95
isAnnotationMethod · 0.95

Calls 2

previousMethod · 0.95
someMethod · 0.80

Tested by

no test coverage detected