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

Method atrule

packages/postcss-linaria/src/stringify.ts:86–96  ·  view source on GitHub ↗
(node: AtRule, semicolon?: boolean)

Source from the content-addressed store, hash-verified

84 }
85
86 public override atrule(node: AtRule, semicolon?: boolean) {
87 const { params } = node;
88
89 const expressionStrings = node.root().raws.linariaTemplateExpressions;
90 if (params.includes(placeholderText)) {
91 // eslint-disable-next-line no-param-reassign
92 node.params = substitutePlaceholders(params, expressionStrings);
93 }
94
95 super.atrule(node, semicolon);
96 }
97
98 /** @inheritdoc */
99 public override comment(node: Comment): void {

Callers

nothing calls this directly

Calls 2

substitutePlaceholdersFunction · 0.85
rootMethod · 0.80

Tested by

no test coverage detected