MCPcopy
hub / github.com/postcss/postcss / setMessage

Method setMessage

lib/css-syntax-error.js:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 setMessage() {
42 this.message = this.plugin ? this.plugin + ': ' : ''
43 this.message += this.file ? this.file : '<css input>'
44 if (typeof this.line !== 'undefined') {
45 this.message += ':' + this.line + ':' + this.column
46 }
47 this.message += ': ' + this.reason
48 }
49
50 showSourceCode(color) {
51 if (!this.source) return ''

Callers 2

constructorMethod · 0.95
handleErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected