MCPcopy Index your code
hub / github.com/callstack/linaria / rule

Method rule

packages/postcss-linaria/src/stringify.ts:196–206  ·  view source on GitHub ↗
(node: Rule)

Source from the content-addressed store, hash-verified

194 }
195
196 public override rule(node: Rule): void {
197 let value = this.rawValue(node, 'selector');
198 if (value.includes(placeholderText)) {
199 const expressionStrings = node.root().raws.linariaTemplateExpressions;
200 value = substitutePlaceholders(value, expressionStrings);
201 }
202 this.block(node, value);
203 if (node.raws.ownSemicolon) {
204 this.builder(node.raws.ownSemicolon, node, 'end');
205 }
206 }
207}
208
209export const stringify: StringifierFn = (

Callers

nothing calls this directly

Calls 3

rawValueMethod · 0.95
substitutePlaceholdersFunction · 0.85
rootMethod · 0.80

Tested by

no test coverage detected