MCPcopy
hub / github.com/web-infra-dev/garfish / declaration

Method declaration

packages/css-scope/src/cssStringify.ts:200–219  ·  view source on GitHub ↗
(node: DeclNode)

Source from the content-addressed store, hash-verified

198 }
199
200 declaration(node: DeclNode) {
201 // eslint-disable-next-line prefer-const
202 let { value, property, position } = node;
203
204 if (this.id) {
205 if (animationRE.test(property)) {
206 value = processAnimation(value, this.id);
207 } else if (animationNameRE.test(property)) {
208 value = value
209 .split(',')
210 .map((v) => (v === 'none' ? v : `${v.trim()}-${this.id}`))
211 .join(',');
212 }
213 }
214 return (
215 this.emit(this.indent()) +
216 this.emit(`${property}: ${value}`, position) +
217 this.emit(';')
218 );
219 }
220
221 'font-face'(node: FontFaceNode) {
222 return (

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
indentMethod · 0.95
processAnimationFunction · 0.90

Tested by

no test coverage detected