MCPcopy Index your code
hub / github.com/postcss/postcss / decl

Method decl

lib/stringifier.js:127–139  ·  view source on GitHub ↗
(node, semicolon)

Source from the content-addressed store, hash-verified

125 }
126
127 decl(node, semicolon) {
128 let raws = node.raws
129 let between = this.raw(node, 'between', 'colon')
130
131 let string = node.prop + between + this.rawValue(node, 'value')
132
133 if (node.important) {
134 string += raws.important || ' !important'
135 }
136
137 if (semicolon) string += ';'
138 this.builder(escapeHTMLInCSS(string), node)
139 }
140
141 document(node) {
142 this.body(node)

Callers

nothing calls this directly

Calls 3

rawMethod · 0.95
rawValueMethod · 0.95
escapeHTMLInCSSFunction · 0.85

Tested by

no test coverage detected