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

Method root

packages/postcss-linaria/src/stringify.ts:181–194  ·  view source on GitHub ↗

@inheritdoc

(node: Root)

Source from the content-addressed store, hash-verified

179
180 /** @inheritdoc */
181 public override root(node: Root): void {
182 this.builder(node.raws.codeBefore ?? '', node, 'start');
183
184 this.body(node);
185
186 // Here we want to recover any previously removed JS indentation
187 // if possible. Otherwise, we use the `after` string as-is.
188 const after = node.raws.linariaAfter ?? node.raws.after;
189 if (after) {
190 this.builder(after);
191 }
192
193 this.builder(node.raws.codeAfter ?? '', node, 'end');
194 }
195
196 public override rule(node: Rule): void {
197 let value = this.rawValue(node, 'selector');

Callers 7

collectFunction · 0.80
atomizeFunction · 0.80
atruleMethod · 0.80
commentMethod · 0.80
declMethod · 0.80
ruleMethod · 0.80
locationCorrectionWalkerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected